summaryrefslogtreecommitdiffstats
path: root/src/control/Script5.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-15 03:16:29 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-15 03:16:29 +0100
commitac95138c1800140b8c0ca52536d15f77786f0aed (patch)
tree7530ee2d3b9183c9b0c102941227b0e1e1061908 /src/control/Script5.cpp
parentSetPedState fixes (diff)
downloadre3-ac95138c1800140b8c0ca52536d15f77786f0aed.tar
re3-ac95138c1800140b8c0ca52536d15f77786f0aed.tar.gz
re3-ac95138c1800140b8c0ca52536d15f77786f0aed.tar.bz2
re3-ac95138c1800140b8c0ca52536d15f77786f0aed.tar.lz
re3-ac95138c1800140b8c0ca52536d15f77786f0aed.tar.xz
re3-ac95138c1800140b8c0ca52536d15f77786f0aed.tar.zst
re3-ac95138c1800140b8c0ca52536d15f77786f0aed.zip
Diffstat (limited to 'src/control/Script5.cpp')
-rw-r--r--src/control/Script5.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/control/Script5.cpp b/src/control/Script5.cpp
index 3fa416f8..62dc33ad 100644
--- a/src/control/Script5.cpp
+++ b/src/control/Script5.cpp
@@ -2122,9 +2122,6 @@ void CTheScripts::CleanUpThisPed(CPed* pPed)
if (pPed->IsPedInControl())
pPed->SetWanderPath(CGeneral::GetRandomNumber() & 7);
if (flees) {
- if (pPed->m_nPedState == PED_FOLLOW_PATH && state != PED_FOLLOW_PATH)
- pPed->ClearFollowPath();
-
pPed->SetPedState(state);
pPed->SetMoveState(ms);
}