disband spectator teams when primary players go to results screen

This commit is contained in:
Martin Michelsen
2023-09-15 20:18:52 -07:00
parent 9cef4a14f8
commit 5caa21bccb
4 changed files with 18 additions and 10 deletions
+6
View File
@@ -2066,6 +2066,12 @@ void Server::handle_CAx21_end_battle(const string& data) {
in_cmd.header.subsubcommand, "END BATTLE");
if (this->setup_phase == SetupPhase::BATTLE_ENDED) {
this->battle_finished = true;
// This logic isn't part of the original implementation.
auto l = this->lobby.lock();
if (l) {
send_ep3_disband_watcher_lobbies(l);
}
}
}