summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-11-13 14:02:06 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-11-13 14:02:06 +0100
commit3048a77a05dcc42fb6b47a5f29ae8fa74fd4d4c6 (patch)
treeadab36315fd76b5b847b82e7c0a592e8d40e73fe /src
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-3048a77a05dcc42fb6b47a5f29ae8fa74fd4d4c6.tar
re3-3048a77a05dcc42fb6b47a5f29ae8fa74fd4d4c6.tar.gz
re3-3048a77a05dcc42fb6b47a5f29ae8fa74fd4d4c6.tar.bz2
re3-3048a77a05dcc42fb6b47a5f29ae8fa74fd4d4c6.tar.lz
re3-3048a77a05dcc42fb6b47a5f29ae8fa74fd4d4c6.tar.xz
re3-3048a77a05dcc42fb6b47a5f29ae8fa74fd4d4c6.tar.zst
re3-3048a77a05dcc42fb6b47a5f29ae8fa74fd4d4c6.zip
Diffstat (limited to '')
-rw-r--r--src/control/CarCtrl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp
index db7d7b66..2ae12412 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -3229,7 +3229,7 @@ bool CCarCtrl::GenerateOneEmergencyServicesCar(uint32 mi, CVector vecPos)
float posBetweenNodes;
while (!created && attempts < 5){
if (ThePaths.GenerateCarCreationCoors(pPlayerPos.x, pPlayerPos.y, 0.707f, 0.707f,
- 120.0f, -1.0f, true, &spawnPos, &curNode, &nextNode, &posBetweenNodes, false)){
+ REQUEST_ONSCREEN_DISTANCE, -1.0f, true, &spawnPos, &curNode, &nextNode, &posBetweenNodes, false)){
int16 colliding[2];
if (!ThePaths.GetNode(curNode)->bWaterPath) {
CWorld::FindObjectsKindaColliding(spawnPos, 10.0f, true, colliding, 2, nil, false, true, true, false, false);