diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-07-13 16:43:09 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-07-13 16:43:09 +0200 |
commit | 841fa5155c17b6edf4774deaa311a4e5935be4d6 (patch) | |
tree | 7fae91d0edd59cdb4c340d9cf590e0cd07a75310 /src/control/Restart.cpp | |
parent | Add cutscene borders switch to the menu (diff) | |
download | re3-841fa5155c17b6edf4774deaa311a4e5935be4d6.tar re3-841fa5155c17b6edf4774deaa311a4e5935be4d6.tar.gz re3-841fa5155c17b6edf4774deaa311a4e5935be4d6.tar.bz2 re3-841fa5155c17b6edf4774deaa311a4e5935be4d6.tar.lz re3-841fa5155c17b6edf4774deaa311a4e5935be4d6.tar.xz re3-841fa5155c17b6edf4774deaa311a4e5935be4d6.tar.zst re3-841fa5155c17b6edf4774deaa311a4e5935be4d6.zip |
Diffstat (limited to 'src/control/Restart.cpp')
-rw-r--r-- | src/control/Restart.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/control/Restart.cpp b/src/control/Restart.cpp index 5a322cdb..a6482d04 100644 --- a/src/control/Restart.cpp +++ b/src/control/Restart.cpp @@ -24,8 +24,8 @@ uint16 CRestart::NumberOfPoliceRestarts; void CRestart::Initialise() { - OverridePoliceStationLevel = LEVEL_NONE; - OverrideHospitalLevel = LEVEL_NONE; + OverridePoliceStationLevel = LEVEL_GENERIC; + OverrideHospitalLevel = LEVEL_GENERIC; bFadeInAfterNextArrest = true; bFadeInAfterNextDeath = true; OverrideHeading = 0.0f; @@ -86,7 +86,7 @@ CRestart::FindClosestHospitalRestartPoint(const CVector &pos, CVector *outPos, f // find closest point on this level for (int i = 0; i < NumberOfHospitalRestarts; i++) { - if (CTheZones::FindZoneForPoint(HospitalRestartPoints[i]) == (OverrideHospitalLevel != LEVEL_NONE ? OverrideHospitalLevel : curlevel)) { + if (CTheZones::FindZoneForPoint(HospitalRestartPoints[i]) == (OverrideHospitalLevel != LEVEL_GENERIC ? OverrideHospitalLevel : curlevel)) { float dist = (pos - HospitalRestartPoints[i]).MagnitudeSqr(); if (fMinDist >= dist) { fMinDist = dist; @@ -133,7 +133,7 @@ CRestart::FindClosestPoliceRestartPoint(const CVector &pos, CVector *outPos, flo // find closest point on this level for (int i = 0; i < NumberOfPoliceRestarts; i++) { - if (CTheZones::FindZoneForPoint(PoliceRestartPoints[i]) == (OverridePoliceStationLevel != LEVEL_NONE ? OverridePoliceStationLevel : curlevel)) { + if (CTheZones::FindZoneForPoint(PoliceRestartPoints[i]) == (OverridePoliceStationLevel != LEVEL_GENERIC ? OverridePoliceStationLevel : curlevel)) { float dist = (pos - PoliceRestartPoints[i]).MagnitudeSqr(); if (fMinDist >= dist) { fMinDist = dist; |