diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-31 22:34:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:54 +0300 |
commit | 173aab787e9ddfcbdd04c2f1e1e61fdb2e7eb5c5 (patch) | |
tree | 9508c80d34ac77abcf5c29aa127d689164ce3fa5 /src/net/eathena/charserverhandler.cpp | |
parent | b82ec9239d6b9e61ce61760069061cd8a8fee1fd (diff) | |
download | manaverse-173aab787e9ddfcbdd04c2f1e1e61fdb2e7eb5c5.tar.gz manaverse-173aab787e9ddfcbdd04c2f1e1e61fdb2e7eb5c5.tar.bz2 manaverse-173aab787e9ddfcbdd04c2f1e1e61fdb2e7eb5c5.tar.xz manaverse-173aab787e9ddfcbdd04c2f1e1e61fdb2e7eb5c5.zip |
eathena: add comments into packet SMSG_CHAR_MAP_INFO 0x0071.
Diffstat (limited to 'src/net/eathena/charserverhandler.cpp')
-rw-r--r-- | src/net/eathena/charserverhandler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index 39ebe52e2..daa357100 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -328,19 +328,19 @@ void CharServerHandler::processCharMapInfo(Net::MessageIn &restrict msg) ServerInfo &server = mapServer; BLOCK_START("CharServerHandler::processCharMapInfo") // msg.skip(4); // CharID, must be the same as localPlayer->charID - PlayerInfo::setCharId(msg.readInt32()); + PlayerInfo::setCharId(msg.readInt32("char id")); GameHandler *const gh = static_cast<GameHandler*>(Net::getGameHandler()); - gh->setMap(msg.readString(16)); + gh->setMap(msg.readString(16, "map name")); if (config.getBoolValue("usePersistentIP") || settings.persistentIp) { - msg.readInt32(); + msg.readInt32("map ip address"); server.hostname = settings.serverName; } else { - server.hostname = ipToString(msg.readInt32()); + server.hostname = ipToString(msg.readInt32("map ip address")); } - server.port = msg.readInt16(); + server.port = msg.readInt16("map ip port"); // Prevent the selected local player from being deleted localPlayer = mSelectedCharacter->dummy; |