mirror of
https://github.com/glest/glest-source.git
synced 2025-09-03 04:52:34 +02:00
- fixed silly bug when editing username in custom game menu interferes with chat.
This commit is contained in:
@@ -1242,7 +1242,7 @@ void MenuStateCustomGame::update() {
|
||||
if(switchSetupRequests[i]->getNetworkPlayerName() != "") {
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line %d] i = %d, labelPlayerNames[newFactionIdx].getText() [%s] switchSetupRequests[i]->getNetworkPlayerName() [%s]\n",__FILE__,__FUNCTION__,__LINE__,i,labelPlayerNames[newFactionIdx].getText().c_str(),switchSetupRequests[i]->getNetworkPlayerName().c_str());
|
||||
labelPlayerNames[newFactionIdx].setText(switchSetupRequests[i]->getNetworkPlayerName());
|
||||
SetActivePlayerNameEditor();
|
||||
//SetActivePlayerNameEditor();
|
||||
}
|
||||
}
|
||||
catch(const runtime_error &e) {
|
||||
@@ -1268,7 +1268,7 @@ void MenuStateCustomGame::update() {
|
||||
else {
|
||||
labelPlayerNames[i].setText("");
|
||||
}
|
||||
SetActivePlayerNameEditor();
|
||||
//SetActivePlayerNameEditor();
|
||||
//switchSetupRequests[i]->clearSwitchFlag(ssrft_NetworkPlayerName);
|
||||
}
|
||||
}
|
||||
@@ -2025,7 +2025,7 @@ GameSettings MenuStateCustomGame::loadGameSettingsFromFile(std::string fileName)
|
||||
labelPlayerNames[i].setText(gameSettings.getNetworkPlayerName(i));
|
||||
}
|
||||
|
||||
SetActivePlayerNameEditor();
|
||||
//SetActivePlayerNameEditor();
|
||||
|
||||
updateControlers();
|
||||
updateNetworkSlots();
|
||||
|
Reference in New Issue
Block a user