From d2b68f3feae43314c4d80471151311fb98e7b514 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 19 Sep 2019 14:40:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9C=BA=E5=99=A8=E4=BA=BA?= =?UTF-8?q?=E7=A7=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/android.ai.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/gameserver/android.ai.cc b/server/gameserver/android.ai.cc index ab08dd7..a230eb5 100644 --- a/server/gameserver/android.ai.cc +++ b/server/gameserver/android.ai.cc @@ -99,10 +99,10 @@ void AndroidAI::DoMove() for (int i = 0; i < speed; ++i) { a8::Vec2 old_pos = hum->pos; hum->pos = hum->pos + hum->move_dir; - if (hum->IsCollision()) { + if (hum->IsCollisionInMapService()) { hum->pos = old_pos; if (i == 0) { - hum->FindPath(); + hum->FindPathInMapService(); } break; }