summaryrefslogtreecommitdiff
path: root/src/net/ea/gamehandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-01 00:42:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:54 +0300
commited5325ebc95fd9d954730a27c0e57be35bc5d3d0 (patch)
treed08c494813e4ce6537010aea1263fdda71cdc234 /src/net/ea/gamehandler.cpp
parenta232b6c9ae2315c4658a0de6ba0fc779d4606fdd (diff)
downloadplus-ed5325ebc95fd9d954730a27c0e57be35bc5d3d0.tar.gz
plus-ed5325ebc95fd9d954730a27c0e57be35bc5d3d0.tar.bz2
plus-ed5325ebc95fd9d954730a27c0e57be35bc5d3d0.tar.xz
plus-ed5325ebc95fd9d954730a27c0e57be35bc5d3d0.zip
Move processMapLogin from ea to tmwa and eathena namespaces.
Diffstat (limited to 'src/net/ea/gamehandler.cpp')
-rw-r--r--src/net/ea/gamehandler.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/net/ea/gamehandler.cpp b/src/net/ea/gamehandler.cpp
index 653a014c7..cce62c1af 100644
--- a/src/net/ea/gamehandler.cpp
+++ b/src/net/ea/gamehandler.cpp
@@ -58,24 +58,6 @@ void GameHandler::setMap(const std::string &map)
mMap = map.substr(0, map.rfind("."));
}
-void GameHandler::processMapLogin(Net::MessageIn &msg) const
-{
- unsigned char direction;
- uint16_t x, y;
- msg.readInt32(); // server tick
- msg.readCoordinates(x, y, direction);
- msg.skip(2); // 0x0505
- logger->log("Protocol: Player start position: (%d, %d),"
- " Direction: %d", x, y, direction);
-
- mLastHost &= 0xffffff;
-
- // Switch now or we'll have problems
- client->setState(STATE_GAME);
- if (localPlayer)
- localPlayer->setTileCoords(x, y);
-}
-
void GameHandler::processWhoAnswer(Net::MessageIn &msg) const
{
NotifyManager::notify(NotifyTypes::ONLINE_USERS, msg.readInt32());