summaryrefslogtreecommitdiffstats
path: root/src/control/CarAI.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-24 10:44:28 +0200
committerGitHub <noreply@github.com>2020-05-24 10:44:28 +0200
commit34f5e923efe620aa25192ce1fb31695b082ce5b4 (patch)
treedf812c11da162c563c3484e0dfe1851dd1a61e82 /src/control/CarAI.cpp
parentMerge branch 'master' into miami (diff)
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-34f5e923efe620aa25192ce1fb31695b082ce5b4.tar
re3-34f5e923efe620aa25192ce1fb31695b082ce5b4.tar.gz
re3-34f5e923efe620aa25192ce1fb31695b082ce5b4.tar.bz2
re3-34f5e923efe620aa25192ce1fb31695b082ce5b4.tar.lz
re3-34f5e923efe620aa25192ce1fb31695b082ce5b4.tar.xz
re3-34f5e923efe620aa25192ce1fb31695b082ce5b4.tar.zst
re3-34f5e923efe620aa25192ce1fb31695b082ce5b4.zip
Diffstat (limited to 'src/control/CarAI.cpp')
-rw-r--r--src/control/CarAI.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/control/CarAI.cpp b/src/control/CarAI.cpp
index a4406da9..589cc53b 100644
--- a/src/control/CarAI.cpp
+++ b/src/control/CarAI.cpp
@@ -350,6 +350,7 @@ void CCarAI::UpdateCarAI(CVehicle* pVehicle)
if (!FindPlayerVehicle() || DotProduct2D(CVector2D(diff.x / distance, diff.y / distance), FindPlayerSpeed()) > 0.05f)
pVehicle->AutoPilot.m_nCarMission = MISSION_BLOCKPLAYER_CLOSE;
BackToCruisingIfNoWantedLevel(pVehicle);
+ break;
}
default:
if (pVehicle->bIsLawEnforcer && FindPlayerPed()->m_pWanted->m_nWantedLevel > 0 && !CCullZones::NoPolice()){