- bugfix to save server ip's in join menu

This commit is contained in:
Mark Vejvoda 2012-04-13 19:37:52 +00:00
parent 9aca26a0f0
commit c83cfc6e03
1 changed files with 3 additions and 0 deletions

View File

@ -635,6 +635,9 @@ void MenuStateJoinGame::connectToServer() {
if( clientInterface->isConnected() == true &&
clientInterface->getIntroDone() == true) {
servers.setString(clientInterface->getServerName(), Ip(labelServerIp.getText()).getString());
servers.save(serversSavedFile);
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line %d] Using FTP port #: %d\n",__FILE__,__FUNCTION__,__LINE__,clientInterface->getServerFTPPort());
abortAutoFind = true;
clientInterface->stopServerDiscovery();