From e65aa099a74e1a9e7c7960ed5ebfe5df5e5da7e6 Mon Sep 17 00:00:00 2001 From: KJeff01 Date: Mon, 6 Nov 2023 09:27:02 -0600 Subject: [PATCH] Prevent campaign difficulty influencing skirmish in-game saveload Loading skirmish saves from in-game would have bMultiPlayer as false before resetDamageModifiers() was encountered. Thus resulting in the campaign difficulty modifiers the player currently has set to override the expected damage modifiers for skirmish/mp. --- src/game.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game.cpp b/src/game.cpp index f92fb5cd75a..fe1d6a11924 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -4644,6 +4644,10 @@ static bool loadMainFile(const std::string &fileName) { game.playerLeaveMode = static_cast(save.value("playerLeaveMode").toInt()); } + if (save.contains("multiplayer")) + { + bMultiPlayer = save.value("multiplayer").toBool(); + } save.beginArray("players"); while (save.remainingArrayItems() > 0)