summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-01-24 14:59:05 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-01-24 14:59:05 +0000
commit2dd95f1b69e9b024d8877dd400a141ccdf1c153f (patch)
treec2f9131d191298b15e3b643698be8ba871e1d025
parentff6dc70fc1a23562fbaf675ba252f7710451e417 (diff)
downloadmanaserv-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--ChangeLog7
-rw-r--r--src/game-server/state.cpp1
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c292d400..1f847d5d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);
}