summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2019-10-03 03:04:54 +0200
committerGitHub <noreply@github.com>2019-10-03 03:04:54 +0200
commitfc5f6955777540e4f95a4bfbb335d61b184fdaca (patch)
treed6332ecc7e38431dbe22a32a291b27e0d5d16c66
parentMerge pull request #216 from erorcun/erorcun (diff)
parentFix typo in CCarCtrl::WeaveThroughPedsSectorList (diff)
downloadre3-fc5f6955777540e4f95a4bfbb335d61b184fdaca.tar
re3-fc5f6955777540e4f95a4bfbb335d61b184fdaca.tar.gz
re3-fc5f6955777540e4f95a4bfbb335d61b184fdaca.tar.bz2
re3-fc5f6955777540e4f95a4bfbb335d61b184fdaca.tar.lz
re3-fc5f6955777540e4f95a4bfbb335d61b184fdaca.tar.xz
re3-fc5f6955777540e4f95a4bfbb335d61b184fdaca.tar.zst
re3-fc5f6955777540e4f95a4bfbb335d61b184fdaca.zip
Diffstat (limited to '')
-rw-r--r--src/control/CarCtrl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp
index 0be8a0a0..710bae0f 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -1323,7 +1323,7 @@ void CCarCtrl::WeaveThroughPedsSectorList(CPtrList& lst, CVehicle* pVehicle, CPh
continue;
if (pPed->GetPosition().y < y_inf || pPed->GetPosition().y > y_sup)
continue;
- if (Abs(pPed->GetPosition().z - pPed->GetPosition().z) >= PED_HEIGHT_DIFF_TO_CONSIDER_WEAVING)
+ if (Abs(pPed->GetPosition().z - pVehicle->GetPosition().z) >= PED_HEIGHT_DIFF_TO_CONSIDER_WEAVING)
continue;
if (pPed->m_pCurSurface != pVehicle)
WeaveForPed(pPed, pVehicle, pAngleToWeaveLeft, pAngleToWeaveRight);