summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-10-03 03:05:21 +0200
committereray orçunus <erayorcunus@gmail.com>2019-10-03 03:05:21 +0200
commit63ac76474a3c9c2f91a4c56c76384f4489c0911f (patch)
treeb601dbb9390c2b9a6cd4a2181000d35dfbd10fad
parentFixes & peds (diff)
parentMerge pull request #217 from Sergeanur/WeaveThroughPedsSectorList (diff)
downloadre3-63ac76474a3c9c2f91a4c56c76384f4489c0911f.tar
re3-63ac76474a3c9c2f91a4c56c76384f4489c0911f.tar.gz
re3-63ac76474a3c9c2f91a4c56c76384f4489c0911f.tar.bz2
re3-63ac76474a3c9c2f91a4c56c76384f4489c0911f.tar.lz
re3-63ac76474a3c9c2f91a4c56c76384f4489c0911f.tar.xz
re3-63ac76474a3c9c2f91a4c56c76384f4489c0911f.tar.zst
re3-63ac76474a3c9c2f91a4c56c76384f4489c0911f.zip
-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);