summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-09-14 19:58:09 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-09-14 19:58:09 +0200
commitfbe09534d9f1f745b9118ae783b0c1917a41e6d8 (patch)
tree27d6b484ef1377f691d6b7ce591dec85f488629d /src/control
parentMerge branch 'carctrl_dev' (diff)
downloadre3-fbe09534d9f1f745b9118ae783b0c1917a41e6d8.tar
re3-fbe09534d9f1f745b9118ae783b0c1917a41e6d8.tar.gz
re3-fbe09534d9f1f745b9118ae783b0c1917a41e6d8.tar.bz2
re3-fbe09534d9f1f745b9118ae783b0c1917a41e6d8.tar.lz
re3-fbe09534d9f1f745b9118ae783b0c1917a41e6d8.tar.xz
re3-fbe09534d9f1f745b9118ae783b0c1917a41e6d8.tar.zst
re3-fbe09534d9f1f745b9118ae783b0c1917a41e6d8.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/CarCtrl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp
index a543708e..6f695d00 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -1964,7 +1964,7 @@ void CCarCtrl::DragCarToPoint(CVehicle* pVehicle, CVector* pPoint)
float actualBehindZ;
CColPoint point;
CEntity* pRoadObject;
- if (CCollision::IsStoredPoluStillValidVerticalLine(CVector(posTarget.x, posTarget.y, pVehicle->GetPosition().z - 3.0f),
+ if (CCollision::IsStoredPolyStillValidVerticalLine(CVector(posTarget.x, posTarget.y, pVehicle->GetPosition().z - 3.0f),
pVehicle->GetPosition().z - 3.0f, point, &pVehicle->m_aCollPolys[0])){
actualAheadZ = point.point.z;
}else if (CWorld::ProcessVerticalLine(CVector(posTarget.x, posTarget.y, pVehicle->GetPosition().z + 1.5f),
@@ -1985,7 +1985,7 @@ void CCarCtrl::DragCarToPoint(CVehicle* pVehicle, CVector* pPoint)
actualAheadZ = pVehicle->m_fMapObjectHeightAhead;
}
pVehicle->m_fMapObjectHeightAhead = actualAheadZ;
- if (CCollision::IsStoredPoluStillValidVerticalLine(CVector(midPos.x, midPos.y, pVehicle->GetPosition().z - 3.0f),
+ if (CCollision::IsStoredPolyStillValidVerticalLine(CVector(midPos.x, midPos.y, pVehicle->GetPosition().z - 3.0f),
pVehicle->GetPosition().z - 3.0f, point, &pVehicle->m_aCollPolys[1])){
actualBehindZ = point.point.z;
}else if (CWorld::ProcessVerticalLine(CVector(midPos.x, midPos.y, pVehicle->GetPosition().z + 1.5f),