summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-05 22:37:08 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-05 22:37:08 +0300
commitb29f54f0b8010a73550b9b5fed534253170b6f03 (patch)
tree226f5a9bb3f515232e29951562d13b0aa5054bd4 /src/being/being.cpp
parentedc6ce053eafbaaa55fcf7728e449d9e458a1ddc (diff)
downloadmanaverse-b29f54f0b8010a73550b9b5fed534253170b6f03.tar.gz
manaverse-b29f54f0b8010a73550b9b5fed534253170b6f03.tar.bz2
manaverse-b29f54f0b8010a73550b9b5fed534253170b6f03.tar.xz
manaverse-b29f54f0b8010a73550b9b5fed534253170b6f03.zip
Allow play sound effect if show emote.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 4e6c603d3..f85460c79 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -3072,6 +3072,11 @@ void Being::setEmote(const uint8_t emotion, const int emote_time)
else
mEmotionTime = emote_time;
}
+ const int effectId = info->effectId;
+ if (effectId >= 0)
+ {
+ effectManager->trigger(effectId, this);
+ }
}
}