From a23dabd58e35da356f7bc0ed1914a71d330a77e6 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Wed, 4 Oct 2023 23:13:25 -0700 Subject: [PATCH] fix spectator count on joining a spectator team --- src/ReceiveCommands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReceiveCommands.cc b/src/ReceiveCommands.cc index 0e43fb90..0b2e4556 100644 --- a/src/ReceiveCommands.cc +++ b/src/ReceiveCommands.cc @@ -3564,11 +3564,11 @@ static void on_6F(shared_ptr c, uint16_t, uint32_t, const string& data) if (l->battle_player && (l->flags & Lobby::Flag::START_BATTLE_PLAYER_IMMEDIATELY)) { l->battle_player->start(); } else if (watched_lobby && watched_lobby->ep3_server) { - send_ep3_update_spectator_count(watched_lobby); if (!watched_lobby->ep3_server->battle_finished) { watched_lobby->ep3_server->send_commands_for_joining_spectator( c->channel, c->flags & Client::Flag::IS_EP3_TRIAL_EDITION); } + send_ep3_update_spectator_count(watched_lobby); } // If there are more players to bring in, try to do so