diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 78241a0..f673259 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -405,6 +405,7 @@ void Human::RecalcSelfCollider() bool Human::IsCollisionInMapService() { + Global::last_collider = nullptr; if (room->OverBorder(pos, meta->i->radius())){ return true; } @@ -416,7 +417,6 @@ bool Human::IsCollisionInMapService() std::set colliders; room->map_service.GetColliders(pos.x, pos.y, colliders); - Global::last_collider = nullptr; for (ColliderComponent* collider : colliders) { switch (collider->owner->entity_type) { case ET_Obstacle: