summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2019-10-12 11:16:39 +0200
committerSergeanur <s.anureev@yandex.ua>2019-10-12 11:16:39 +0200
commit7c6c64982320eca950a27a1e5b2520a85ba01874 (patch)
tree9628a196c397e060075ed5c2f44510730e0d7cdc /src/control
parentLogic fix in CParticleObject::UpdateAll (diff)
downloadre3-7c6c64982320eca950a27a1e5b2520a85ba01874.tar
re3-7c6c64982320eca950a27a1e5b2520a85ba01874.tar.gz
re3-7c6c64982320eca950a27a1e5b2520a85ba01874.tar.bz2
re3-7c6c64982320eca950a27a1e5b2520a85ba01874.tar.lz
re3-7c6c64982320eca950a27a1e5b2520a85ba01874.tar.xz
re3-7c6c64982320eca950a27a1e5b2520a85ba01874.tar.zst
re3-7c6c64982320eca950a27a1e5b2520a85ba01874.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/CarAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/CarAI.cpp b/src/control/CarAI.cpp
index f01ab70f..10083059 100644
--- a/src/control/CarAI.cpp
+++ b/src/control/CarAI.cpp
@@ -441,7 +441,7 @@ float CCarAI::GetCarToGoToCoors(CVehicle* pVehicle, CVector* pTarget)
pVehicle->AutoPilot.m_nCarMission = (CCarCtrl::JoinCarWithRoadSystemGotoCoors(pVehicle, *pTarget, false)) ?
MISSION_GOTOCOORDS_STRAIGHT : MISSION_GOTOCOORDS;
}else if (Abs(pTarget->x - pVehicle->AutoPilot.m_vecDestinationCoors.x) > 2.0f ||
- Abs(pTarget->x - pVehicle->AutoPilot.m_vecDestinationCoors.x) > 2.0f){
+ Abs(pTarget->y - pVehicle->AutoPilot.m_vecDestinationCoors.y) > 2.0f){
pVehicle->AutoPilot.m_vecDestinationCoors = *pTarget;
}
return (pVehicle->GetPosition() - *pTarget).Magnitude2D();