- cleanup unused code
This commit is contained in:
parent
e4f86ad71e
commit
7e581004d6
|
@ -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());
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user