- cleanup unused code

This commit is contained in:
Mark Vejvoda 2012-09-27 02:49:10 +00:00
parent e4f86ad71e
commit 7e581004d6
2 changed files with 0 additions and 3 deletions

View File

@ -1846,7 +1846,6 @@ void MenuStateCustomGame::render() {
delete factionVideo;
factionVideo = NULL;
NetworkManager &networkManager= NetworkManager::getInstance();
ServerInterface* serverInterface= NetworkManager::getInstance().getServerInterface();
if(serverInterface != NULL) {
initFactionPreview(serverInterface->getGameSettings());

View File

@ -563,13 +563,11 @@ void MenuStateJoinGame::update()
Config& config= Config::getInstance();
string host = labelServerIp.getText();
int port = config.getInt("ServerPort",intToStr(GameConstants::serverPort).c_str());
std::vector<std::string> hostPartsList;
Tokenize(host,hostPartsList,":");
if(hostPartsList.size() > 1) {
host = hostPartsList[0];
replaceAll(hostPartsList[1],"_","");
port = strToInt(hostPartsList[1]);
}
string saveHost = Ip(host).getString();
if(hostPartsList.size() > 1) {