diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-07-28 13:35:24 +0300 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-07-28 13:35:24 +0300 |
commit | 128d31746df02da86a203baecf487a211b6cae39 (patch) | |
tree | 787972452abb44f64535fb8fc1d36e039f256058 /src/core/Wanted.cpp | |
parent | 6ff6305be946918697b98100020417cdf2406f52 (diff) |
fixed wanted
Diffstat (limited to 'src/core/Wanted.cpp')
-rw-r--r-- | src/core/Wanted.cpp | 3 |
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; |