fix spectator count when joining an existing spectator team

This commit is contained in:
Martin Michelsen
2023-09-17 11:43:20 -07:00
parent fbe621173f
commit e27bce9313
+1
View File
@@ -3504,6 +3504,7 @@ static void on_6F(shared_ptr<ServerState> s, shared_ptr<Client> c,
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);
watched_lobby->ep3_server->send_commands_for_joining_spectator(
c->channel, c->flags & Client::Flag::IS_EP3_TRIAL_EDITION);
}