From ce23c2eecd596c3e83cb2d813889bf2a79dae2d0 Mon Sep 17 00:00:00 2001 From: David Athay Date: Wed, 15 Oct 2008 15:44:55 +0000 Subject: Added communicating change of direction to clients. --- src/game-server/state.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/game-server/state.cpp') 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()) { -- cgit