This commit is contained in:
aozhiwei 2022-12-30 15:41:18 +08:00
parent 7a90166a53
commit 3b8b4bb870

View File

@ -397,11 +397,7 @@ void Bullet::MapServiceUpdate()
} }
} }
move_length -= step_len; move_length -= step_len;
// 999 GetMutablePos().AddGlmVec3(dir * step_len);
#if 1
#else
SetPos(GetPos() + dir * step_len);
#endif
float distance = GetPos().Distance2D2(born_pos); float distance = GetPos().Distance2D2(born_pos);
if (room->OverBorder(GetPos(), gun_meta->bullet_rad())) { if (room->OverBorder(GetPos(), gun_meta->bullet_rad())) {
if (IsBomb()) { if (IsBomb()) {