Don't trigger signal state/style desync message in GM_MENU mode

This occurs when loading a network savegame fails and the menu
game is reloaded
This commit is contained in:
Jonathan G Rennison
2022-08-27 21:59:40 +01:00
parent 22a1fdff5e
commit edd8b29794

View File

@@ -1851,7 +1851,7 @@ void UpdateExtraAspectsVariable()
bool style_change = DetermineExtraAspectsVariable(); bool style_change = DetermineExtraAspectsVariable();
if (style_remap || style_change) { if (style_remap || style_change) {
if (_networking && !_network_server) { if (_networking && !_network_server && _game_mode != GM_MENU) {
const char *msg = "Network client recalculating signal states and/or signal style mappings, this is likely to cause desyncs"; const char *msg = "Network client recalculating signal states and/or signal style mappings, this is likely to cause desyncs";
DEBUG(desync, 0, "%s", msg); DEBUG(desync, 0, "%s", msg);
LogDesyncMsg(msg); LogDesyncMsg(msg);