mirror of
https://github.com/glest/glest-source.git
synced 2025-10-01 09:56:41 +02:00
- bugfixes for network player disconnect feature
This commit is contained in:
@@ -2305,6 +2305,10 @@ void MenuStateCustomGame::update() {
|
||||
labelPlayerStatus[i].setText(lang.get("PlayerStatusSetup"));
|
||||
labelPlayerStatus[i].setTextColor(Vec3f(1.f, 0.f, 0.f));
|
||||
break;
|
||||
case npst_Disconnected:
|
||||
labelPlayerStatus[i].setText(lang.get("Closed"));
|
||||
break;
|
||||
|
||||
default:
|
||||
labelPlayerStatus[i].setText("");
|
||||
break;
|
||||
@@ -3220,7 +3224,7 @@ void MenuStateCustomGame::loadGameSettings(GameSettings *gameSettings,bool force
|
||||
}
|
||||
else {
|
||||
//gameSettings->setNetworkPlayerName("");
|
||||
gameSettings->setNetworkPlayerStatuses(factionCount, 0);
|
||||
gameSettings->setNetworkPlayerStatuses(factionCount, npst_Disconnected);
|
||||
labelPlayerNames[i].setText("");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user