1
This commit is contained in:
parent
bad4c837ef
commit
507a6d469f
@ -24,7 +24,6 @@ void AIComponent::SetAiMode(int ai_mode)
|
|||||||
|
|
||||||
int AIComponent::GetAiLevel()
|
int AIComponent::GetAiLevel()
|
||||||
{
|
{
|
||||||
return 1;
|
|
||||||
return ai_level_;
|
return ai_level_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,7 +68,8 @@ void AndroidNewAI::Update(int delta_time)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (hum->room->GetGasData().gas_mode == GasInactive) {
|
if (hum->room->GetGasData().gas_mode == GasInactive ||
|
||||||
|
hum->room->GetGasData().gas_mode == GasJump) {
|
||||||
DefaultAi();
|
DefaultAi();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -209,8 +210,8 @@ void AndroidNewAI::DoAttackOldAI()
|
|||||||
bool shot_ok = false;
|
bool shot_ok = false;
|
||||||
sender->Shot(shot_dir, shot_ok, DEFAULT_FLY_DISTANCE);
|
sender->Shot(shot_dir, shot_ok, DEFAULT_FLY_DISTANCE);
|
||||||
}
|
}
|
||||||
|
old_ai_data_.last_target.Attach(enemy);
|
||||||
}
|
}
|
||||||
old_ai_data_.last_target.Attach(enemy);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user