don't load Challenge map data on quest start

This commit is contained in:
Martin Michelsen
2023-12-08 20:22:04 -08:00
parent 8654555777
commit 67e2428daa
+3 -1
View File
@@ -1847,7 +1847,9 @@ static void on_quest_loaded(shared_ptr<Lobby> 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");