summaryrefslogtreecommitdiff
path: root/src/net/ea/playerhandler.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-27 20:27:18 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-27 20:33:18 +0200
commit55ee3f8a67132b6f6542b21e69d9ccab064256ca (patch)
treedc7b59b8099b21975648c8641ccb748013992753 /src/net/ea/playerhandler.cpp
parent58bc517e0bb41a761b9cd8df75883ff3aa90365e (diff)
downloadmana-55ee3f8a67132b6f6542b21e69d9ccab064256ca.tar.gz
mana-55ee3f8a67132b6f6542b21e69d9ccab064256ca.tar.bz2
mana-55ee3f8a67132b6f6542b21e69d9ccab064256ca.tar.xz
mana-55ee3f8a67132b6f6542b21e69d9ccab064256ca.zip
Moved special coordinates packing into MessageOut
Is a better place. The reading part was already in MessageIn.
Diffstat (limited to 'src/net/ea/playerhandler.cpp')
-rw-r--r--src/net/ea/playerhandler.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index 55d54af8..4ff480d6 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -499,10 +499,8 @@ void PlayerHandler::setDirection(char direction)
void PlayerHandler::setDestination(int x, int y, int direction)
{
- char temp[4] = "";
- set_coordinates(temp, x, y, direction);
MessageOut outMsg(CMSG_PLAYER_CHANGE_DEST);
- outMsg.writeString(temp, 3);
+ outMsg.writeCoordinates(x, y, direction);
}
void PlayerHandler::changeAction(Being::Action action)