From 48733be2fce6e398bea1de61504b6ab5dc65cb16 Mon Sep 17 00:00:00 2001 From: titiger Date: Wed, 3 Feb 2021 20:32:13 +0100 Subject: [PATCH] no crc refresh for non network games --- source/glest_game/menu/menu_state_custom_game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/menu/menu_state_custom_game.cpp b/source/glest_game/menu/menu_state_custom_game.cpp index 166477c1..3350dee0 100644 --- a/source/glest_game/menu/menu_state_custom_game.cpp +++ b/source/glest_game/menu/menu_state_custom_game.cpp @@ -4345,7 +4345,7 @@ void MenuStateCustomGame::setCRCsToGameSettings(GameSettings *gameSettings) lastTechtreeChange= time(NULL); // now } - if(this->headlessServerMode == false && difftime(time(NULL),lastTechtreeChange) >5 ) { + if(this->headlessServerMode == false && difftime(time(NULL),lastTechtreeChange) >5 && hasNetworkGameSettings()) { // try a forced CRC recalculation if game settings stay the same for 5 seconds. // it will only recalculted CRC if it was not already done since program start. setRefreshedCrcToGameSettings(gameSettings);