diff options
author | Fate <fate-tmw@googlemail.com> | 2008-12-09 09:52:23 -0700 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2008-12-09 09:52:23 -0700 |
commit | f68e18efa64bdb9a67f7ce05b5868f450b9af2e0 (patch) | |
tree | 8f795a2f21cdf39dce7cc635612b2706b0339cf0 | |
parent | 5de95ae6a741ac8549a9e51be4a3872e91764d24 (diff) | |
download | mana-f68e18efa64bdb9a67f7ce05b5868f450b9af2e0.tar.gz mana-f68e18efa64bdb9a67f7ce05b5868f450b9af2e0.tar.bz2 mana-f68e18efa64bdb9a67f7ce05b5868f450b9af2e0.tar.xz mana-f68e18efa64bdb9a67f7ce05b5868f450b9af2e0.zip |
Only play status effect sound effects for localplayer
-rw-r--r-- | src/being.cpp | 2 | ||||
-rw-r--r-- | 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(); |