This commit is contained in:
aozhiwei 2022-08-22 19:27:41 +08:00
parent 2f4051d7bd
commit 84a84c76d8

View File

@ -1194,7 +1194,9 @@ void Room::UpdateGas()
OnGameOver();
}
} else {
if (!IsGameOver() && alive_count_ <= MAX_TEAM_NUM && GetAliveTeamNum() <= 1) {
if (!IsGameOver() &&
alive_count_ <= MAX_TEAM_NUM &&
GetAliveTeamNum() <= 1) {
game_over_ = true;
game_over_frameno_ = GetFrameNo();
OnGameOver();