no crc refresh for non network games

This commit is contained in:
titiger 2021-02-03 20:32:13 +01:00
parent bf5fe0f561
commit 48733be2fc
1 changed files with 1 additions and 1 deletions

View File

@ -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);