From 67e2428daa618c103cb3bed74da4b2731bf544fb Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Fri, 8 Dec 2023 20:22:04 -0800 Subject: [PATCH] don't load Challenge map data on quest start --- src/ReceiveCommands.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ReceiveCommands.cc b/src/ReceiveCommands.cc index 691304da..27f54b60 100644 --- a/src/ReceiveCommands.cc +++ b/src/ReceiveCommands.cc @@ -1847,7 +1847,9 @@ static void on_quest_loaded(shared_ptr l) { } auto s = l->require_server_state(); - if ((l->base_version == Version::BB_V4) && l->map) { + // For Challenge quests, don't replace the map now - the leader will send an + // 02DF command to create overlays, which also replaces the map. + if ((l->base_version == Version::BB_V4) && l->map && (l->quest->challenge_template_index < 0)) { auto leader_c = l->clients.at(l->leader_id); if (!leader_c) { throw logic_error("lobby leader is missing");