From 70befcc989d783d1b7adff2a501052f3cdb02518 Mon Sep 17 00:00:00 2001 From: David Athay Date: Thu, 18 Sep 2008 15:59:49 +0000 Subject: Added postal system to chat server, and modified tick time. --- src/game-server/gamehandler.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'src/game-server/gamehandler.cpp') diff --git a/src/game-server/gamehandler.cpp b/src/game-server/gamehandler.cpp index 8b7be98..bd5248b 100644 --- a/src/game-server/gamehandler.cpp +++ b/src/game-server/gamehandler.cpp @@ -285,12 +285,7 @@ void GameHandler::processMessage(NetComputer *comp, MessageIn &message) case PGMSG_WALK: { - int x = message.readShort(); - int y = message.readShort(); - Point dst(x, y); - computer.character->setDestination(dst); - - // no response should be required + handleWalk(&computer, message); } break; case PGMSG_EQUIP: @@ -580,3 +575,13 @@ void GameHandler::sendError(NetComputer *computer, int id, std::string errorMsg) msg.writeString(errorMsg, errorMsg.size()); computer->send(msg); } + +void GameHandler::handleWalk(GameClient *client, MessageIn &message) +{ + int x = message.readShort(); + int y = message.readShort(); + + Point dst(x, y); + client->character->setDestination(dst); + +} -- cgit