diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-01-24 14:59:05 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-01-24 14:59:05 +0000 |
commit | 2dd95f1b69e9b024d8877dd400a141ccdf1c153f (patch) | |
tree | c2f9131d191298b15e3b643698be8ba871e1d025 | |
parent | ff6dc70fc1a23562fbaf675ba252f7710451e417 (diff) | |
download | manaserv-2dd95f1b69e9b024d8877dd400a141ccdf1c153f.tar.gz manaserv-2dd95f1b69e9b024d8877dd400a141ccdf1c153f.tar.bz2 manaserv-2dd95f1b69e9b024d8877dd400a141ccdf1c153f.tar.xz manaserv-2dd95f1b69e9b024d8877dd400a141ccdf1c153f.zip |
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).
-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); } |