summaryrefslogtreecommitdiff
path: root/src/game-server/state.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-05-18 13:32:34 +0200
committerYohann Ferreira <yohann_ferreira_at_orange_fr_>2013-02-01 21:33:43 +0100
commit02602a6a7bb92fbe19b7a015f5c6764ab658c469 (patch)
treec7f53a585671036174b76f046e48e8f872846b50 /src/game-server/state.cpp
parent5c7bf62ca3204c6f8b91f1bd9178cb638e184f5a (diff)
downloadmanaserv-02602a6a7bb92fbe19b7a015f5c6764ab658c469.tar.gz
manaserv-02602a6a7bb92fbe19b7a015f5c6764ab658c469.tar.bz2
manaserv-02602a6a7bb92fbe19b7a015f5c6764ab658c469.tar.xz
manaserv-02602a6a7bb92fbe19b7a015f5c6764ab658c469.zip
Added emote support.
Diffstat (limited to 'src/game-server/state.cpp')
-rw-r--r--src/game-server/state.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/game-server/state.cpp b/src/game-server/state.cpp
index 006075b4..6fdfb6f5 100644
--- a/src/game-server/state.cpp
+++ b/src/game-server/state.cpp
@@ -193,6 +193,19 @@ static void informPlayer(MapComposite *map, Character *p)
gameHandler->sendTo(p, LooksMsg);
}
+ // Send emote messages.
+ if (oflags & UPDATEFLAG_EMOTE)
+ {
+ int emoteId = o->getLastEmote();
+ if (emoteId > -1)
+ {
+ MessageOut EmoteMsg(GPMSG_BEING_EMOTE);
+ EmoteMsg.writeInt16(oid);
+ EmoteMsg.writeInt16(emoteId);
+ gameHandler->sendTo(p, EmoteMsg);
+ }
+ }
+
// Send direction change messages.
if (oflags & UPDATEFLAG_DIRCHANGE)
{