CFlyingPirate: Fix TargetPatrol

This commit is contained in:
Luke Street 2020-03-13 16:28:19 -04:00
parent 26ae8beb74
commit 651e28e921
1 changed files with 2 additions and 0 deletions

View File

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