From 77798e09be9dba3a64cb94705220d3768e94665b Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Mon, 4 Dec 2023 21:42:07 -0800 Subject: [PATCH] prevent player from joining game if a quest they don't have access to is in progress --- src/ReceiveCommands.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ReceiveCommands.cc b/src/ReceiveCommands.cc index b7725fc8..c841c92c 100644 --- a/src/ReceiveCommands.cc +++ b/src/ReceiveCommands.cc @@ -2370,6 +2370,10 @@ static void on_10(shared_ptr c, uint16_t, uint32_t, string& data) { send_lobby_message_box(c, "$C6A quest is already\nin progress."); break; } + if (!l->quest_include_condition()(q)) { + send_lobby_message_box(c, "$C6This quest has not\nbeen unlocked for\nall players in this\ngame."); + break; + } set_lobby_quest(l, q); } else {