From f68e18efa64bdb9a67f7ce05b5868f450b9af2e0 Mon Sep 17 00:00:00 2001 From: Fate Date: Tue, 9 Dec 2008 09:52:23 -0700 Subject: Only play status effect sound effects for localplayer --- src/being.cpp | 2 -- src/localplayer.cpp | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/being.cpp b/src/being.cpp index 68b1a791..a9f5c973 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -458,8 +458,6 @@ Being::handleStatusEffect(StatusEffect *effect, int effectId) if (!effect) return; - effect->playSFX(); - SpriteAction action = effect->getAction(); if (action != ACTION_INVALID) setAction(action); diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 910de119..044f62bf 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -495,8 +495,12 @@ extern MiniStatusWindow *miniStatusWindow; void LocalPlayer::handleStatusEffect(StatusEffect *effect, int effectId) { Being::handleStatusEffect(effect, effectId); + + + if (effect) { effect->deliverMessage(); + effect->playSFX(); AnimatedSprite *sprite = effect->getIcon(); -- cgit v1.2.3-70-g09d2