From 55ee3f8a67132b6f6542b21e69d9ccab064256ca Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 27 Apr 2009 20:27:18 +0200 Subject: Moved special coordinates packing into MessageOut Is a better place. The reading part was already in MessageIn. --- src/net/ea/playerhandler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/net/ea/playerhandler.cpp') 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) -- cgit v1.2.3-70-g09d2