1
This commit is contained in:
parent
2a7ce32a2e
commit
dfa635308a
@ -78,5 +78,4 @@ target_link_libraries(
|
||||
curl
|
||||
hiredis
|
||||
tinyxml2
|
||||
tcmalloc
|
||||
)
|
||||
|
@ -102,7 +102,7 @@ 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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user