summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay <nickvnuk@gmail.com>2020-11-22 00:29:17 +0100
committerGitHub <noreply@github.com>2020-11-22 00:29:17 +0100
commitd24e1ee5926a1d29633c62f2f29f9112b76b5a08 (patch)
tree949a911e590735bc5b4fcfcad23d5eefe0f28bf6 /src
parentMerge pull request #823 from aap/master (diff)
downloadre3-d24e1ee5926a1d29633c62f2f29f9112b76b5a08.tar
re3-d24e1ee5926a1d29633c62f2f29f9112b76b5a08.tar.gz
re3-d24e1ee5926a1d29633c62f2f29f9112b76b5a08.tar.bz2
re3-d24e1ee5926a1d29633c62f2f29f9112b76b5a08.tar.lz
re3-d24e1ee5926a1d29633c62f2f29f9112b76b5a08.tar.xz
re3-d24e1ee5926a1d29633c62f2f29f9112b76b5a08.tar.zst
re3-d24e1ee5926a1d29633c62f2f29f9112b76b5a08.zip
Diffstat (limited to 'src')
-rw-r--r--src/control/Restart.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Restart.cpp b/src/control/Restart.cpp
index a6482d04..5e9865dd 100644
--- a/src/control/Restart.cpp
+++ b/src/control/Restart.cpp
@@ -81,7 +81,7 @@ CRestart::FindClosestHospitalRestartPoint(const CVector &pos, CVector *outPos, f
}
eLevelName curlevel = CTheZones::FindZoneForPoint(pos);
- float fMinDist = 16000000.0f;
+ float fMinDist = SQR(4000.0f);
int closestPoint = NUM_RESTART_POINTS;
// find closest point on this level