summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2020-12-15 15:45:06 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2020-12-15 15:45:06 +0100
commit970f84514a45e0181bd05ae02493908ec86f5683 (patch)
tree37e568870361124e7e34dfe20a7f66af254a8d39 /src/core
parentRadio scroll to prev. station & radio off text (diff)
parentfixed water.dat code (diff)
downloadre3-970f84514a45e0181bd05ae02493908ec86f5683.tar
re3-970f84514a45e0181bd05ae02493908ec86f5683.tar.gz
re3-970f84514a45e0181bd05ae02493908ec86f5683.tar.bz2
re3-970f84514a45e0181bd05ae02493908ec86f5683.tar.lz
re3-970f84514a45e0181bd05ae02493908ec86f5683.tar.xz
re3-970f84514a45e0181bd05ae02493908ec86f5683.tar.zst
re3-970f84514a45e0181bd05ae02493908ec86f5683.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/Fire.cpp4
-rw-r--r--src/core/PlayerInfo.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/Fire.cpp b/src/core/Fire.cpp
index e1be4194..2c57c066 100644
--- a/src/core/Fire.cpp
+++ b/src/core/Fire.cpp
@@ -228,7 +228,7 @@ CFireManager::StartFire(CEntity *entityOnFire, CEntity *fleeFrom, float strength
ped->bDrawLast = false;
ped->SetMoveState(PEDMOVE_SPRINT);
ped->SetMoveAnim();
- ped->m_nPedState = PED_ON_FIRE;
+ ped->SetPedState(PED_ON_FIRE);
}
if (fleeFrom) {
if (ped->m_nPedType == PEDTYPE_COP) {
@@ -401,7 +401,7 @@ CFireManager::StartScriptFire(const CVector &pos, CEntity *target, float strengt
CVector2D pos = target->GetPosition();
ped->SetFlee(pos, 10000);
ped->SetMoveAnim();
- ped->m_nPedState = PED_ON_FIRE;
+ ped->SetPedState(PED_ON_FIRE);
}
} else if (target->IsVehicle()) {
veh->m_pCarFire = fire;
diff --git a/src/core/PlayerInfo.cpp b/src/core/PlayerInfo.cpp
index 09b3a499..5866485d 100644
--- a/src/core/PlayerInfo.cpp
+++ b/src/core/PlayerInfo.cpp
@@ -419,7 +419,7 @@ CPlayerInfo::Process(void)
if (found)
sth.z = 1.0f + groundZ;
- m_pPed->m_nPedState = PED_IDLE;
+ m_pPed->SetPedState(PED_IDLE);
m_pPed->SetMoveState(PEDMOVE_STILL);
CPed::PedSetOutCarCB(0, m_pPed);
CAnimManager::BlendAnimation(m_pPed->GetClump(), m_pPed->m_animGroup, ANIM_IDLE_STANCE, 100.0f);