调整机器人速度为正常速度

This commit is contained in:
aozhiwei 2020-07-15 17:20:08 +08:00
parent 2f7c124e1c
commit 1e9b30b8d1
2 changed files with 11 additions and 13 deletions

View File

@ -566,7 +566,6 @@ void AndroidNewAI::UpdatePursuit()
void AndroidNewAI::DoMoveNewAI() void AndroidNewAI::DoMoveNewAI()
{ {
Human* hum = (Human*)owner; Human* hum = (Human*)owner;
if (hum->UpdatedTimes() % 2 == 0) {
if (std::abs(hum->move_dir.x) > FLT_EPSILON || if (std::abs(hum->move_dir.x) > FLT_EPSILON ||
std::abs(hum->move_dir.y) > FLT_EPSILON) { std::abs(hum->move_dir.y) > FLT_EPSILON) {
hum->on_move_collision = hum->on_move_collision =
@ -579,7 +578,6 @@ void AndroidNewAI::DoMoveNewAI()
hum->on_move_collision = nullptr; hum->on_move_collision = nullptr;
} }
} }
}
void AndroidNewAI::ChangeToStateNewAI(AndroidStateEx_e to_state) void AndroidNewAI::ChangeToStateNewAI(AndroidStateEx_e to_state)
{ {

View File

@ -2914,7 +2914,7 @@ void Room::InitAndroidAI()
for (Android* hum : androids) { for (Android* hum : androids) {
#ifdef DEBUG #ifdef DEBUG
#if 0 #if 0
hum->SetAiLevel(3); hum->SetAiLevel(7);
continue; continue;
#endif #endif
#endif #endif