This commit is contained in:
aozhiwei 2021-10-22 18:09:41 +08:00
parent 0daaa3ec3f
commit adb3b4b11d

View File

@ -1299,7 +1299,11 @@ void Room::UpdateGasMoving()
gas_data_.pos_old = gas_data_.pos_old_bk + dir * distance;
}
if (gas_data_.rad_old - distance <= gas_data_.rad_new) {
#if 1
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) {