diff options
author | Sergeanur <s.anureev@yandex.ua> | 2019-10-03 01:39:23 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2019-10-03 01:39:23 +0200 |
commit | bd6e109441cb8c2012da7239364fdd3889768476 (patch) | |
tree | d6332ecc7e38431dbe22a32a291b27e0d5d16c66 /src | |
parent | Merge pull request #216 from erorcun/erorcun (diff) | |
download | re3-bd6e109441cb8c2012da7239364fdd3889768476.tar re3-bd6e109441cb8c2012da7239364fdd3889768476.tar.gz re3-bd6e109441cb8c2012da7239364fdd3889768476.tar.bz2 re3-bd6e109441cb8c2012da7239364fdd3889768476.tar.lz re3-bd6e109441cb8c2012da7239364fdd3889768476.tar.xz re3-bd6e109441cb8c2012da7239364fdd3889768476.tar.zst re3-bd6e109441cb8c2012da7239364fdd3889768476.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/control/CarCtrl.cpp | 2 |
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); |