summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-30 01:46:52 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-30 16:37:02 +0300
commit3bea3e2804fbec4c7697d29af46c6330b1ca9b92 (patch)
treed39688b6fdfc42f63f3155ed2c0f19a5bafecc1a /src/net/ea
parent509c746b147458bcc94c2d66932b5bb89175c732 (diff)
downloadplus-3bea3e2804fbec4c7697d29af46c6330b1ca9b92.tar.gz
plus-3bea3e2804fbec4c7697d29af46c6330b1ca9b92.tar.bz2
plus-3bea3e2804fbec4c7697d29af46c6330b1ca9b92.tar.xz
plus-3bea3e2804fbec4c7697d29af46c6330b1ca9b92.zip
Remove additional parameters from processCharMapInfo function.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/charserverhandler.cpp35
-rw-r--r--src/net/ea/charserverhandler.h4
2 files changed, 0 insertions, 39 deletions
diff --git a/src/net/ea/charserverhandler.cpp b/src/net/ea/charserverhandler.cpp
index 9b747ed49..90b1cfba9 100644
--- a/src/net/ea/charserverhandler.cpp
+++ b/src/net/ea/charserverhandler.cpp
@@ -248,41 +248,6 @@ void CharServerHandler::clear()
mCharacters.clear();
}
-void CharServerHandler::processCharMapInfo(Net::MessageIn &restrict msg,
- Network *restrict const network,
- ServerInfo &restrict server)
-{
- BLOCK_START("CharServerHandler::processCharMapInfo")
-// msg.skip(4); // CharID, must be the same as localPlayer->charID
- PlayerInfo::setCharId(msg.readInt32());
- GameHandler *const gh = static_cast<GameHandler*>(Net::getGameHandler());
- gh->setMap(msg.readString(16));
- if (config.getBoolValue("usePersistentIP") || settings.persistentIp)
- {
- msg.readInt32();
- server.hostname = settings.serverName;
- }
- else
- {
- server.hostname = ipToString(msg.readInt32());
- }
- server.port = msg.readInt16();
-
- // Prevent the selected local player from being deleted
- localPlayer = mSelectedCharacter->dummy;
- PlayerInfo::setBackend(mSelectedCharacter->data);
-
- mSelectedCharacter->dummy = nullptr;
-
- Net::getCharServerHandler()->clear();
- updateCharSelectDialog();
-
- if (network)
- network->disconnect();
- client->setState(STATE_CONNECT_GAME);
- BLOCK_END("CharServerHandler::processCharMapInfo")
-}
-
void CharServerHandler::processChangeMapServer(Net::MessageIn &restrict msg,
Network *restrict const network,
ServerInfo &restrict server)
diff --git a/src/net/ea/charserverhandler.h b/src/net/ea/charserverhandler.h
index e86965f6b..ebafea22c 100644
--- a/src/net/ea/charserverhandler.h
+++ b/src/net/ea/charserverhandler.h
@@ -76,10 +76,6 @@ class CharServerHandler notfinal : public Net::CharServerHandler
virtual void processCharDeleteFailed(Net::MessageIn &msg);
- virtual void processCharMapInfo(Net::MessageIn &restrict msg,
- Network *restrict const network,
- ServerInfo &restrict mapServer);
-
virtual void processChangeMapServer(Net::MessageIn &restrict msg,
Network *restrict const network,
ServerInfo &restrict mapServer)