From 94da959fd407412ef25fdfd3f6303f28558e6c24 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Thu, 14 Oct 2010 22:41:03 +0000 Subject: [PATCH] - force sending game settings just before launch if we detect something has changed (like random faction calculation) --- source/glest_game/menu/menu_state_custom_game.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/glest_game/menu/menu_state_custom_game.cpp b/source/glest_game/menu/menu_state_custom_game.cpp index 3b874df3..4ad7c756 100644 --- a/source/glest_game/menu/menu_state_custom_game.cpp +++ b/source/glest_game/menu/menu_state_custom_game.cpp @@ -929,6 +929,7 @@ void MenuStateCustomGame::PlayNow() { needToSetChangedGameSettings == true) || (RandomCount > 0)) { SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line %d]\n",__FILE__,__FUNCTION__,__LINE__); serverInterface->setGameSettings(&gameSettings,true); + serverInterface->broadcastGameSetup(&gameSettings); needToSetChangedGameSettings = false; lastSetChangedGameSettings = time(NULL);