- force sending game settings just before launch if we detect something has changed (like random faction calculation)
This commit is contained in:
parent
9a73cd520c
commit
94da959fd4
|
@ -929,6 +929,7 @@ void MenuStateCustomGame::PlayNow() {
|
||||||
needToSetChangedGameSettings == true) || (RandomCount > 0)) {
|
needToSetChangedGameSettings == true) || (RandomCount > 0)) {
|
||||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
serverInterface->setGameSettings(&gameSettings,true);
|
serverInterface->setGameSettings(&gameSettings,true);
|
||||||
|
serverInterface->broadcastGameSetup(&gameSettings);
|
||||||
|
|
||||||
needToSetChangedGameSettings = false;
|
needToSetChangedGameSettings = false;
|
||||||
lastSetChangedGameSettings = time(NULL);
|
lastSetChangedGameSettings = time(NULL);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user