diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-15 04:11:02 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-15 04:11:02 +0100 |
commit | f76dfaee82c0573518d247f7d5666151ccfed765 (patch) | |
tree | e2a4357d5b50c4648fb1ee88963ec1d95c67e357 /src/peds/CivilianPed.cpp | |
parent | Merge pull request #882 from GTAmodding/ShFil119-patch-1 (diff) | |
download | re3-f76dfaee82c0573518d247f7d5666151ccfed765.tar re3-f76dfaee82c0573518d247f7d5666151ccfed765.tar.gz re3-f76dfaee82c0573518d247f7d5666151ccfed765.tar.bz2 re3-f76dfaee82c0573518d247f7d5666151ccfed765.tar.lz re3-f76dfaee82c0573518d247f7d5666151ccfed765.tar.xz re3-f76dfaee82c0573518d247f7d5666151ccfed765.tar.zst re3-f76dfaee82c0573518d247f7d5666151ccfed765.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/CivilianPed.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/peds/CivilianPed.cpp b/src/peds/CivilianPed.cpp index 401d2e67..a2f44357 100644 --- a/src/peds/CivilianPed.cpp +++ b/src/peds/CivilianPed.cpp @@ -274,7 +274,7 @@ CCivilianPed::ProcessControl(void) } else { crimeReporters[m_phoneId] = this; m_facePhoneStart = true; - m_nPedState = PED_FACE_PHONE; + SetPedState(PED_FACE_PHONE); } #else } else if (bRunningToPhone) { @@ -283,7 +283,7 @@ CCivilianPed::ProcessControl(void) m_phoneId = -1; } else { gPhoneInfo.m_aPhones[m_phoneId].m_nState = PHONE_STATE_REPORTING_CRIME; - m_nPedState = PED_FACE_PHONE; + SetPedState(PED_FACE_PHONE); } #endif } else if (m_objective != OBJECTIVE_KILL_CHAR_ANY_MEANS && m_objective != OBJECTIVE_KILL_CHAR_ON_FOOT) { @@ -305,7 +305,7 @@ CCivilianPed::ProcessControl(void) break; case PED_FACE_PHONE: if (FacePhone()) - m_nPedState = PED_MAKE_CALL; + SetPedState(PED_MAKE_CALL); break; case PED_MAKE_CALL: if (MakePhonecall()) @@ -331,7 +331,7 @@ CCivilianPed::ProcessControl(void) for (int j = 0; j < m_numNearPeds; ++j) { CPed *nearPed = m_nearPeds[j]; if (nearPed->m_nPedType == m_nPedType && nearPed->m_nPedState == PED_WANDER_PATH) { - nearPed->m_nPedState = PED_UNKNOWN; + nearPed->SetPedState(PED_UNKNOWN); } } } |