fixed wanted

This commit is contained in:
Nikolay Korolev 2019-07-28 13:35:24 +03:00
parent 6ff6305be9
commit 128d31746d
1 changed files with 3 additions and 0 deletions

View File

@ -275,6 +275,9 @@ CWanted::UpdateWantedLevel()
{ {
int32 CurrWantedLevel = m_nWantedLevel; int32 CurrWantedLevel = m_nWantedLevel;
if (m_nChaos > nMaximumWantedLevel)
m_nChaos = nMaximumWantedLevel;
if (m_nChaos >= 0 && m_nChaos < 40) { if (m_nChaos >= 0 && m_nChaos < 40) {
m_nWantedLevel = 0; m_nWantedLevel = 0;
m_MaximumLawEnforcerVehicles = 0; m_MaximumLawEnforcerVehicles = 0;