summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2008-12-09 09:52:23 -0700
committerFate <fate-tmw@googlemail.com>2008-12-09 09:52:23 -0700
commitf68e18efa64bdb9a67f7ce05b5868f450b9af2e0 (patch)
tree8f795a2f21cdf39dce7cc635612b2706b0339cf0
parent5de95ae6a741ac8549a9e51be4a3872e91764d24 (diff)
downloadmana-client-f68e18efa64bdb9a67f7ce05b5868f450b9af2e0.tar.gz
mana-client-f68e18efa64bdb9a67f7ce05b5868f450b9af2e0.tar.bz2
mana-client-f68e18efa64bdb9a67f7ce05b5868f450b9af2e0.tar.xz
mana-client-f68e18efa64bdb9a67f7ce05b5868f450b9af2e0.zip
Only play status effect sound effects for localplayer
-rw-r--r--src/being.cpp2
-rw-r--r--src/localplayer.cpp4
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();