This commit is contained in:
aozhiwei 2019-07-18 20:31:38 +08:00
parent 2a7ce32a2e
commit dfa635308a
2 changed files with 1 additions and 2 deletions

View File

@ -78,5 +78,4 @@ target_link_libraries(
curl curl
hiredis hiredis
tinyxml2 tinyxml2
tcmalloc
) )

View File

@ -102,7 +102,7 @@ void AndroidAI::DoMove()
for (int i = 0; i < speed; ++i) { for (int i = 0; i < speed; ++i) {
a8::Vec2 old_pos = hum->pos; a8::Vec2 old_pos = hum->pos;
hum->pos = hum->pos + hum->move_dir; hum->pos = hum->pos + hum->move_dir;
if (hum->IsCollision()) { if (hum->IsCollisionInMapService()) {
hum->pos = old_pos; hum->pos = old_pos;
if (i == 0) { if (i == 0) {
hum->FindPath(); hum->FindPath();