- bugfix when restoring game settings (from previously saved) we no longer restore playernames of non human slots.

This commit is contained in:
Mark Vejvoda 2010-09-28 20:15:54 +00:00
parent c300905d70
commit 3749d58557

View File

@ -1915,8 +1915,13 @@ GameSettings MenuStateCustomGame::loadGameSettingsFromFile(std::string fileName)
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] i = %d, factionTypeName [%s]\n",__FILE__,__FUNCTION__,__LINE__,i,gameSettings.getFactionTypeName(i).c_str());
if(gameSettings.getFactionControl(i) == ctHuman) {
gameSettings.setNetworkPlayerName(i,properties.getString(string("FactionPlayerNameForIndex") + intToStr(i),"") );
}
else {
gameSettings.setNetworkPlayerName(i,"");
}
}
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s] Line: %d\n",__FILE__,__FUNCTION__,__LINE__);