From 9699b86d1e3d09c36c4944801cf3083bb8ad017a Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Mon, 28 Mar 2022 17:57:38 -0700 Subject: [PATCH] do something for E2 commands so clients don't get stuck --- src/ReceiveCommands.cc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/ReceiveCommands.cc b/src/ReceiveCommands.cc index df5d0cae..63d4a7ea 100644 --- a/src/ReceiveCommands.cc +++ b/src/ReceiveCommands.cc @@ -548,6 +548,22 @@ void process_ep3_server_data_request(shared_ptr s, shared_ptr, shared_ptr c, + uint16_t, uint32_t, uint16_t, const void*) { // E2 + // The client will get stuck here unless we send something. An 01 (lobby + // message box) seems to get them unstuck. + send_lobby_message_box(c, u"$C6Tournaments are\nnot supported."); + + // In case we ever implement this (doubtful), the flag values are: + // 00 - list tournaments + // 01 - check tournament entry status + // 02 - cancel tournament entry + // 03 - create tournament spectator team (presumably get battle list, like get team list) + // 04 - join tournament spectator team (presumably also get battle list) +} + + + //////////////////////////////////////////////////////////////////////////////// // menu commands @@ -2088,7 +2104,7 @@ static process_command_t gc_handlers[0x100] = { process_ep3_menu_challenge, nullptr, nullptr, nullptr, // E0 - nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, process_ep3_tournament_control, nullptr, process_ignored_command, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, process_create_game_dc_gc, nullptr, nullptr, nullptr,