diff --git a/source/glest_game/menu/menu_state_custom_game.cpp b/source/glest_game/menu/menu_state_custom_game.cpp index b6f15991..4c9d4c6a 100644 --- a/source/glest_game/menu/menu_state_custom_game.cpp +++ b/source/glest_game/menu/menu_state_custom_game.cpp @@ -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()); diff --git a/source/glest_game/menu/menu_state_join_game.cpp b/source/glest_game/menu/menu_state_join_game.cpp index a5a6e83c..60fff5a1 100644 --- a/source/glest_game/menu/menu_state_join_game.cpp +++ b/source/glest_game/menu/menu_state_join_game.cpp @@ -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 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) {