From adb3b4b11dd8b2a5f5594fd7180a2475e285d85f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 22 Oct 2021 18:09:41 +0800 Subject: [PATCH] 1 --- server/gameserver/room.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index 9879ce1..fdf5b5d 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -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) {