summaryrefslogtreecommitdiffstats
path: root/src/core/Wanted.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-09 18:50:35 +0200
committeraap <aap@papnet.eu>2019-07-09 18:50:35 +0200
commita65dd41da736a12866526abc1405cbaa154771a8 (patch)
tree387f8103d69d373341e67a6373f681a454aa06db /src/core/Wanted.cpp
parentmore CAutomobile (diff)
downloadre3-a65dd41da736a12866526abc1405cbaa154771a8.tar
re3-a65dd41da736a12866526abc1405cbaa154771a8.tar.gz
re3-a65dd41da736a12866526abc1405cbaa154771a8.tar.bz2
re3-a65dd41da736a12866526abc1405cbaa154771a8.tar.lz
re3-a65dd41da736a12866526abc1405cbaa154771a8.tar.xz
re3-a65dd41da736a12866526abc1405cbaa154771a8.tar.zst
re3-a65dd41da736a12866526abc1405cbaa154771a8.zip
Diffstat (limited to '')
-rw-r--r--src/core/Wanted.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/Wanted.cpp b/src/core/Wanted.cpp
index 21853308..4608bfef 100644
--- a/src/core/Wanted.cpp
+++ b/src/core/Wanted.cpp
@@ -34,7 +34,7 @@ int CWanted::NumOfHelisRequired()
return 2;
default:
return 0;
- };
+ }
}
void CWanted::SetWantedLevel(int32 level)
@@ -70,11 +70,17 @@ void CWanted::SetWantedLevel(int32 level)
UpdateWantedLevel();
}
+void CWanted::SetWantedLevelNoDrop(int32 level)
+{
+ if (level > m_nWantedLevel)
+ SetWantedLevel(level);
+}
+
void CWanted::ClearQdCrimes()
{
for (int i = 0; i < 16; i++) {
m_sCrimes[i].m_eCrimeType = CRIME_NONE;
- };
+ }
}
void CWanted::UpdateWantedLevel()