summaryrefslogtreecommitdiff
path: root/src/game-server/state.cpp
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 /src/game-server/state.cpp
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).
Diffstat (limited to 'src/game-server/state.cpp')
-rw-r--r--src/game-server/state.cpp1
1 files changed, 1 insertions, 0 deletions
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);
}