summaryrefslogtreecommitdiffstats
path: root/src/game-server/state.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-10-15 15:44:55 +0000
committerDavid Athay <ko2fan@gmail.com>2008-10-15 15:44:55 +0000
commitce23c2eecd596c3e83cb2d813889bf2a79dae2d0 (patch)
treeb6fb19466a271e28ce41d695ea9a86293406f04e /src/game-server/state.cpp
parent5956dd7483ceda0d9e8464440d467fc7003c9182 (diff)
Added communicating change of direction to clients.
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())
{