summaryrefslogtreecommitdiffstats
path: root/src/game-server/state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/state.cpp')
-rw-r--r--src/game-server/state.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game-server/state.cpp b/src/game-server/state.cpp
index a129e88..8beb089 100644
--- a/src/game-server/state.cpp
+++ b/src/game-server/state.cpp
@@ -216,6 +216,15 @@ static void informPlayer(MapComposite *map, Character *p)
gameHandler->sendTo(p, LooksMsg);
}
+ // Send direction change messages.
+ if (oflags & UPDATEFLAG_DIRCHANGE)
+ {
+ MessageOut DirMsg(GPMSG_BEING_DIR_CHANGE);
+ DirMsg.writeShort(oid);
+ DirMsg.writeByte(o->getDirection());
+ gameHandler->sendTo(p, DirMsg);
+ }
+
// Send damage messages.
if (o->canFight())
{