1
This commit is contained in:
parent
af72a55260
commit
7a9c58ff93
@ -716,8 +716,10 @@ void AndroidNewAI::DoShotNewAI()
|
||||
shot_dir.Rotate(ai_meta->i->shot_offset_angle() / -180.0f);
|
||||
}
|
||||
}
|
||||
a8::Vec2 old_attack_dir = myself->attack_dir;
|
||||
myself->attack_dir = shot_dir;
|
||||
myself->Shot(shot_dir, shot_ok);
|
||||
myself->attack_dir = old_attack_dir;
|
||||
if (shot_ok) {
|
||||
if (node_.shot_times <= 0) {
|
||||
node_.start_shot_frameno = myself->room->GetFrameNo();
|
||||
|
@ -2914,7 +2914,7 @@ void Room::InitAndroidAI()
|
||||
for (Android* hum : androids) {
|
||||
#ifdef DEBUG
|
||||
#if 0
|
||||
hum->SetAiLevel(2);
|
||||
hum->SetAiLevel(3);
|
||||
continue;
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user