summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay <nickvnuk@gmail.com>2020-11-22 00:31:52 +0100
committerGitHub <noreply@github.com>2020-11-22 00:31:52 +0100
commit222e7f56ffa950427b45a342f3ea795d639cba19 (patch)
treef2cdc8aac09725edf9b96e4426669ad9e32ed3c5 /src/control
parentsmall improvement (diff)
downloadre3-222e7f56ffa950427b45a342f3ea795d639cba19.tar
re3-222e7f56ffa950427b45a342f3ea795d639cba19.tar.gz
re3-222e7f56ffa950427b45a342f3ea795d639cba19.tar.bz2
re3-222e7f56ffa950427b45a342f3ea795d639cba19.tar.lz
re3-222e7f56ffa950427b45a342f3ea795d639cba19.tar.xz
re3-222e7f56ffa950427b45a342f3ea795d639cba19.tar.zst
re3-222e7f56ffa950427b45a342f3ea795d639cba19.zip
Diffstat (limited to '')
-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 5e9865dd..4ca18c3b 100644
--- a/src/control/Restart.cpp
+++ b/src/control/Restart.cpp
@@ -128,7 +128,7 @@ CRestart::FindClosestPoliceRestartPoint(const CVector &pos, CVector *outPos, flo
}
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