This commit is contained in:
aozhiwei 2019-04-18 10:44:15 +08:00
parent bcc8aeabd1
commit 7b6ba13dd3
2 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#include "android.h" #include "android.h"
#include "metamgr.h" #include "metamgr.h"
#include "android.ai.h" #include "android.ai.h"
#include "room.h"
Android::Android():Human() Android::Android():Human()
{ {
@ -27,5 +28,8 @@ void Android::Initialize()
void Android::Update(int delta_time) void Android::Update(int delta_time)
{ {
if (a8::HasBitFlag(status, HS_Fly)) {
pos = room->plane.curr_pos;
}
ai->Update(delta_time); ai->Update(delta_time);
} }

View File

@ -37,6 +37,9 @@ void Player::Update(int delta_time)
if (poisoning) { if (poisoning) {
poisoning_time += delta_time; poisoning_time += delta_time;
} }
if (a8::HasBitFlag(status, HS_Fly)) {
pos = room->plane.curr_pos;
}
if (moving) { if (moving) {
UpdateMove(); UpdateMove();
} }