From 7c6c64982320eca950a27a1e5b2520a85ba01874 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Sat, 12 Oct 2019 12:16:39 +0300 Subject: Fix typo in CCarAI::GetCarToGoToCoors --- src/control/CarAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3