From 648d9c516466bbd1ff95854c3c9b2b0e4c3af913 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Thu, 25 Sep 2025 09:06:53 -0700 Subject: [PATCH] remove leader check on 6x17 --- src/ReceiveSubcommands.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ReceiveSubcommands.cc b/src/ReceiveSubcommands.cc index a4103ee9..624e826f 100644 --- a/src/ReceiveSubcommands.cc +++ b/src/ReceiveSubcommands.cc @@ -3723,12 +3723,11 @@ static asio::awaitable on_set_entity_pos_and_angle_6x17(shared_ptr if (l->episode != Episode::EP1) { throw runtime_error("client sent 6x17 command in non-Ep1 game"); } + // TODO: If a quest is loaded, we should use the quest's floor assignments + // here instead of a constant if (c->floor != 0x0D) { throw runtime_error("client sent 6x17 command on floor other than Vol Opt"); } - if (l->leader_id != c->lobby_client_id) { - throw runtime_error("non-leader client sent 6x17 command"); - } if (cmd.header.entity_id != c->lobby_client_id) { // If the target is on a different floor or does not exist, just drop the // command instead of raising; this could have been due to a data race