diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/game-server/state.cpp | 1 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,10 @@ +2008-01-24 Philipp Sehmisch <tmw@crushnet.org> + + * src/game-server/state.cpp: The direction of attacking beings is + now transmitted together with attack messages (has already been + implemented on the client-side but the server-sided part has been + forgotten somehow). + 2008-01-23 Philipp Sehmisch <tmw@crushnet.org> * src/game-server/being.cpp: Fixed "immortal monster" bug. diff --git a/src/game-server/state.cpp b/src/game-server/state.cpp index 2f68d6ba..2c7a3633 100644 --- a/src/game-server/state.cpp +++ b/src/game-server/state.cpp @@ -193,6 +193,7 @@ static void informPlayer(MapComposite *map, Character *p) { MessageOut AttackMsg(GPMSG_BEING_ATTACK); AttackMsg.writeShort(oid); + AttackMsg.writeByte(o->getDirection()); gameHandler->sendTo(p, AttackMsg); } |