From c053d87a6cdea8ead28001e8cd7a15a25af24b7b Mon Sep 17 00:00:00 2001 From: Jake Probst Date: Sun, 11 Jun 2023 13:31:28 -0600 Subject: [PATCH] small clarifying comment --- src/ReceiveSubcommands.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ReceiveSubcommands.cc b/src/ReceiveSubcommands.cc index fe1e0d84..a812cc18 100644 --- a/src/ReceiveSubcommands.cc +++ b/src/ReceiveSubcommands.cc @@ -963,7 +963,11 @@ static bool drop_item( // If the game is not BB, forward the request to the leader instead of // generating the item drop command if (l->version != GameVersion::BB) { - return false; + if (!(l->flags & Lobby::Flag::DROPS_ENABLED)) { + return true; // don't forward request to leader if drops are disabled + } else { + return false; // do the normal thing where we ask the leader for a drop + } } // If the game is BB, run the rare + common drop logic