1
This commit is contained in:
parent
4afe9ea400
commit
48de1c3c71
@ -908,6 +908,21 @@ void Room::UpdateGas()
|
||||
UpdateGasMoving();
|
||||
break;
|
||||
}
|
||||
#if 1
|
||||
if (GetRoomMode() == kZombieMode) {
|
||||
int zombie_num = 0;
|
||||
for (auto& pair : human_hash_) {
|
||||
if (pair.second->GetRace() == kZombieRace) {
|
||||
++zombie_num;
|
||||
}
|
||||
}
|
||||
if (zombie_num >= GetRoomMaxPlayerNum() && !game_over_) {
|
||||
game_over_ = true;
|
||||
game_over_frameno_ = GetFrameNo();
|
||||
OnGameOver();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if (gas_data_.gas_mode != GasInactive && GetRoomMode() == kChiJiMode) {
|
||||
if (!IsGameOver() && alive_count_ <= MAX_TEAM_NUM && GetAliveTeamNum() <= 1) {
|
||||
game_over_ = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user