This commit is contained in:
aozhiwei 2022-12-30 15:44:12 +08:00
parent 3b8b4bb870
commit d5334732a3

View File

@ -398,7 +398,7 @@ void Bullet::MapServiceUpdate()
}
move_length -= step_len;
GetMutablePos().AddGlmVec3(dir * step_len);
float distance = GetPos().Distance2D2(born_pos);
float distance = GetPos().DistanceGlmVec3(born_pos.ToGlmVec3());
if (room->OverBorder(GetPos(), gun_meta->bullet_rad())) {
if (IsBomb()) {
ProcBomb();