This commit is contained in:
aozhiwei 2024-04-19 15:40:25 +08:00
parent 6fc3fb460a
commit f1a24c90b0
2 changed files with 1 additions and 5 deletions

View File

@ -113,7 +113,7 @@ void Player::_CMExecCommand(f8::MsgHdr* hdr, const cs::CMExecCommand& msg)
if (team == GetTeam()) { if (team == GetTeam()) {
team = room->GetMobaTeamB(); team = room->GetMobaTeamB();
} }
while (team->GetKillCount() <100) { while (team->GetKillCount() < 100) {
team->IncKillCount(); team->IncKillCount();
} }
if (!room->moba_over_timer.expired()) { if (!room->moba_over_timer.expired()) {

View File

@ -1803,11 +1803,7 @@ void Room::UpdateGasMoving()
gas_data_.pos_old = gas_data_.pos_old_bk + dir * distance; gas_data_.pos_old = gas_data_.pos_old_bk + dir * distance;
} }
if (gas_data_.rad_old - distance <= gas_data_.rad_new) { if (gas_data_.rad_old - distance <= gas_data_.rad_new) {
#if 1
assert(gas_data_.rad_old - distance <= gas_data_.rad_new + 5); assert(gas_data_.rad_old - distance <= gas_data_.rad_new + 5);
#else
assert(gas_data_.pos_new == gas_data_.pos_old);
#endif
} }
} }
if (std::abs(gas_data_.gas_progress - gas_data_.rad_new) <= 0.001f) { if (std::abs(gas_data_.gas_progress - gas_data_.rad_new) <= 0.001f) {