2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-06-05 06:33:28 +00:00

CFlyingPirate: Fix TargetPatrol

This commit is contained in:
Luke Street 2020-03-13 16:28:19 -04:00
parent 26ae8beb74
commit 651e28e921

View File

@ -1309,6 +1309,8 @@ void CFlyingPirate::UpdateCanSeePlayer(CStateManager& mgr) {
}
void CFlyingPirate::TargetPatrol(CStateManager& mgr, EStateMsg msg, float arg) {
CPatterned::Patrol(mgr, msg, arg);
if (msg == EStateMsg::Activate) {
x450_bodyController->GetCommandMgr().SetSteeringBlendMode(ESteeringBlendMode::Normal);
x2dc_destObj = GetWaypointForState(mgr, EScriptObjectState::Attack, EScriptObjectMessage::Follow);