diff options
| author | David Athay <ko2fan@gmail.com> | 2008-10-15 15:44:55 +0000 |
|---|---|---|
| committer | David Athay <ko2fan@gmail.com> | 2008-10-15 15:44:55 +0000 |
| commit | ce23c2eecd596c3e83cb2d813889bf2a79dae2d0 (patch) | |
| tree | b6fb19466a271e28ce41d695ea9a86293406f04e /src/game-server/state.cpp | |
| parent | 5956dd7483ceda0d9e8464440d467fc7003c9182 (diff) | |
Added communicating change of direction to clients.
Diffstat (limited to 'src/game-server/state.cpp')
| -rw-r--r-- | src/game-server/state.cpp | 9 |
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()) { |
