mirror of
https://github.com/glest/glest-source.git
synced 2025-08-28 10:19:55 +02:00
- attempt to fix reload game to not replace playernames
This commit is contained in:
@@ -3833,6 +3833,11 @@ GameSettings MenuStateCustomGame::loadGameSettingsFromFile(std::string fileName)
|
||||
|
||||
try {
|
||||
CoreData::getInstance().loadGameSettingsFromFile(fileName, &gameSettings);
|
||||
|
||||
for(int i = 0; i < GameConstants::maxPlayers; ++i) {
|
||||
gameSettings.setNetworkPlayerName(i,"");
|
||||
}
|
||||
|
||||
// correct game settings for headless:
|
||||
if(this->headlessServerMode == true) {
|
||||
for(int i = 0; i < GameConstants::maxPlayers; ++i) {
|
||||
|
Reference in New Issue
Block a user