diff options
author | David Athay <ko2fan@gmail.com> | 2009-05-18 18:18:23 +0100 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2009-05-18 18:18:23 +0100 |
commit | 72660d2c33773f0f74663efe6f9ac47648cdf283 (patch) | |
tree | e21d5a283eefaa5767d942f602c718eae42cbd4a /src/net/ea | |
parent | e7df8c9dd7ebc14c1263c19c6a238ebcf4fd9465 (diff) | |
download | mana-client-72660d2c33773f0f74663efe6f9ac47648cdf283.tar.gz mana-client-72660d2c33773f0f74663efe6f9ac47648cdf283.tar.bz2 mana-client-72660d2c33773f0f74663efe6f9ac47648cdf283.tar.xz mana-client-72660d2c33773f0f74663efe6f9ac47648cdf283.zip |
Added target combat
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/playerhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/ea/playerhandler.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp index b7131f0a..8cc4b44f 100644 --- a/src/net/ea/playerhandler.cpp +++ b/src/net/ea/playerhandler.cpp @@ -422,10 +422,10 @@ void PlayerHandler::handleMessage(MessageIn &msg) } } -void PlayerHandler::attack(Being *being) +void PlayerHandler::attack(int id) { MessageOut outMsg(CMSG_PLAYER_ATTACK); - outMsg.writeInt32(being->getId()); + outMsg.writeInt32(id); outMsg.writeInt8(0); } diff --git a/src/net/ea/playerhandler.h b/src/net/ea/playerhandler.h index 94ae952f..4429d856 100644 --- a/src/net/ea/playerhandler.h +++ b/src/net/ea/playerhandler.h @@ -35,7 +35,7 @@ class PlayerHandler : public MessageHandler, public Net::PlayerHandler void handleMessage(MessageIn &msg); - void attack(Being *being); + void attack(int id); void emote(int emoteId); |