diff --git a/src/ReceiveSubcommands.cc b/src/ReceiveSubcommands.cc index 82b7b61d..2e991bfc 100644 --- a/src/ReceiveSubcommands.cc +++ b/src/ReceiveSubcommands.cc @@ -249,14 +249,6 @@ static void on_unimplemented(shared_ptr c, uint8_t command, uint8_t flag } } -static void on_forward_check_game(shared_ptr c, uint8_t command, uint8_t flag, const void* data, size_t size) { - auto l = c->require_lobby(); - if (!l->is_game()) { - return; - } - forward_subcommand(c, command, flag, data, size); -} - template static void send_or_enqueue_joining_player_command(shared_ptr c, uint8_t command, uint8_t flag, const CmdT& data) { if (c->game_join_command_queue) { @@ -491,7 +483,6 @@ static void on_forward_check_client(shared_ptr c, uint8_t command, uint8 } static void on_forward_check_game(shared_ptr c, uint8_t command, uint8_t flag, const void* data, size_t size) { - check_size_t(data, size, 0xFFFF); auto l = c->require_lobby(); if (l->is_game()) { forward_subcommand(c, command, flag, data, size); @@ -708,7 +699,7 @@ static void on_word_select(shared_ptr c, uint8_t command, uint8_t flag, } } -static void on_warp(shared_ptr c, uint8_t command, uint8_t flag, const void* data, size_t size) { +static void on_warp(shared_ptr, uint8_t, uint8_t, const void* data, size_t size) { check_size_t(data, size); // Unconditionally block these. Players should use $warp instead. }