From e2cb9ce3cd7c07cb20e90fb8f7f490a40c52993f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 4 Mar 2020 19:31:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9E=AC=E7=A7=BB=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/human.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: