diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-15 02:25:05 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-15 02:25:05 +0100 |
commit | ab3e258f19808641dde8940622d1fadb33ed18cb (patch) | |
tree | 0df30be50812691b8915e8c0653f12dd38886f6f /src/peds/PedAI.cpp | |
parent | Fix language initialization call order (diff) | |
download | re3-ab3e258f19808641dde8940622d1fadb33ed18cb.tar re3-ab3e258f19808641dde8940622d1fadb33ed18cb.tar.gz re3-ab3e258f19808641dde8940622d1fadb33ed18cb.tar.bz2 re3-ab3e258f19808641dde8940622d1fadb33ed18cb.tar.lz re3-ab3e258f19808641dde8940622d1fadb33ed18cb.tar.xz re3-ab3e258f19808641dde8940622d1fadb33ed18cb.tar.zst re3-ab3e258f19808641dde8940622d1fadb33ed18cb.zip |
Diffstat (limited to 'src/peds/PedAI.cpp')
-rw-r--r-- | src/peds/PedAI.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/peds/PedAI.cpp b/src/peds/PedAI.cpp index ecd11098..88d0a091 100644 --- a/src/peds/PedAI.cpp +++ b/src/peds/PedAI.cpp @@ -5290,7 +5290,7 @@ CPed::SetEnterTrain(CVehicle *train, uint32 unused) m_pMyVehicle = train; m_pMyVehicle->RegisterReference((CEntity **) &m_pMyVehicle); - m_nPedState = PED_ENTER_TRAIN; + SetPedState(PED_ENTER_TRAIN); m_pVehicleAnim = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_TRAIN_GETIN, 4.0f); m_pVehicleAnim->SetFinishCallback(PedSetInTrainCB, this); bUsesCollision = false; @@ -5364,7 +5364,7 @@ CPed::SetExitTrain(CVehicle* train) CVector exitPos; GetNearestTrainPedPosition(train, exitPos); */ - m_nPedState = PED_EXIT_TRAIN; + SetPedState(PED_EXIT_TRAIN); m_pVehicleAnim = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_TRAIN_GETOUT, 4.0f); m_pVehicleAnim->SetFinishCallback(PedSetOutTrainCB, this); bUsesCollision = false; @@ -5390,7 +5390,7 @@ CPed::PedSetOutTrainCB(CAnimBlendAssociation *animAssoc, void *arg) ped->bUsesCollision = true; ped->m_pVehicleAnim = nil; ped->bInVehicle = false; - ped->m_nPedState = PED_IDLE; + ped->SetPedState(PED_IDLE); ped->RestorePreviousObjective(); ped->SetMoveState(PEDMOVE_STILL); |