summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-07-28 12:35:24 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-07-28 12:35:24 +0200
commit128d31746df02da86a203baecf487a211b6cae39 (patch)
tree787972452abb44f64535fb8fc1d36e039f256058
parentfixed cargen load (diff)
downloadre3-128d31746df02da86a203baecf487a211b6cae39.tar
re3-128d31746df02da86a203baecf487a211b6cae39.tar.gz
re3-128d31746df02da86a203baecf487a211b6cae39.tar.bz2
re3-128d31746df02da86a203baecf487a211b6cae39.tar.lz
re3-128d31746df02da86a203baecf487a211b6cae39.tar.xz
re3-128d31746df02da86a203baecf487a211b6cae39.tar.zst
re3-128d31746df02da86a203baecf487a211b6cae39.zip
-rw-r--r--src/core/Wanted.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/Wanted.cpp b/src/core/Wanted.cpp
index e4ca0e8c..26b115e3 100644
--- a/src/core/Wanted.cpp
+++ b/src/core/Wanted.cpp
@@ -275,6 +275,9 @@ CWanted::UpdateWantedLevel()
{
int32 CurrWantedLevel = m_nWantedLevel;
+ if (m_nChaos > nMaximumWantedLevel)
+ m_nChaos = nMaximumWantedLevel;
+
if (m_nChaos >= 0 && m_nChaos < 40) {
m_nWantedLevel = 0;
m_MaximumLawEnforcerVehicles = 0;