From b885442a4b023b19d6b9712fc190ca23f49525b0 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sun, 10 Sep 2023 14:56:06 -0700 Subject: [PATCH] remove client ID checks during registration phase --- src/Episode3/Server.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Episode3/Server.cc b/src/Episode3/Server.cc index dc5cc545..d8a0e04c 100644 --- a/src/Episode3/Server.cc +++ b/src/Episode3/Server.cc @@ -1851,9 +1851,6 @@ void Server::handle_CAx14_update_deck_during_setup(const string& data) { const auto& in_cmd = check_size_t(data); this->send_debug_command_received_message( in_cmd.client_id, in_cmd.header.subsubcommand, "UPDATE DECK"); - if (in_cmd.client_id >= 4) { - throw runtime_error("invalid client ID"); - } if (!this->battle_in_progress) { if ((this->setup_phase == SetupPhase::REGISTRATION) && @@ -1919,9 +1916,6 @@ void Server::handle_CAx1B_update_player_name(const string& data) { const auto& in_cmd = check_size_t(data); this->send_debug_command_received_message( in_cmd.entry.client_id, in_cmd.header.subsubcommand, "UPDATE NAME"); - if (in_cmd.entry.client_id >= 4) { - throw runtime_error("invalid client ID"); - } if (!this->is_registration_complete() && (in_cmd.entry.client_id < 4)) { this->name_entries[in_cmd.entry.client_id] = in_cmd.entry;