From 173aab787e9ddfcbdd04c2f1e1e61fdb2e7eb5c5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 31 Aug 2014 22:34:18 +0300 Subject: eathena: add comments into packet SMSG_CHAR_MAP_INFO 0x0071. --- src/net/eathena/charserverhandler.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/net/eathena/charserverhandler.cpp') 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(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; -- cgit v1.2.3-70-g09d2