- when masterserver game is over go right back to custom game lobby

This commit is contained in:
Mark Vejvoda
2011-09-24 20:22:47 +00:00
parent 4df997d0ca
commit f0b795377b
3 changed files with 16 additions and 0 deletions

View File

@@ -2077,6 +2077,10 @@ Stats Game::quitGame() {
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
endStats = *(world.getStats());
NetworkManager &networkManager= NetworkManager::getInstance();
if(networkManager.getNetworkRole() == nrServer && gameSettings.getMasterserver_admin() != -1) {
endStats.setIsMasterserverMode(true);
}
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);