This commit is contained in:
aozhiwei 2022-08-22 18:44:42 +08:00
parent 38943b5ab8
commit ebe3e4f328

View File

@ -1186,7 +1186,11 @@ void Room::UpdateGas()
if (gas_data_.gas_mode != GasInactive && gas_data_.gas_mode != GasJump) {
if (gas_data_.gas_mode != GasInactive) {
if (IsPveRoom()) {
if (!IsGameOver() && pve_data.refreshed_mon > 0 && pve_data.killed_num >= pve_data.refreshed_mon) {
game_over_ = true;
game_over_frameno_ = GetFrameNo();
OnGameOver();
}
} else {
if (!IsGameOver() && alive_count_ <= MAX_TEAM_NUM && GetAliveTeamNum() <= 1) {
game_over_ = true;