mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-30 04:54:15 +01:00
fixed wanted
This commit is contained in:
parent
9a50a59a3c
commit
4658ebfdc2
@ -40,19 +40,19 @@ CWanted::Initialise()
|
|||||||
bool
|
bool
|
||||||
CWanted::AreSwatRequired()
|
CWanted::AreSwatRequired()
|
||||||
{
|
{
|
||||||
return m_nWantedLevel >= 4;
|
return m_nWantedLevel == 4 || m_bSwatRequired;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
CWanted::AreFbiRequired()
|
CWanted::AreFbiRequired()
|
||||||
{
|
{
|
||||||
return m_nWantedLevel >= 5;
|
return m_nWantedLevel == 5 || m_bFbiRequired;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
CWanted::AreArmyRequired()
|
CWanted::AreArmyRequired()
|
||||||
{
|
{
|
||||||
return m_nWantedLevel >= 6;
|
return m_nWantedLevel == 6 || m_bArmyRequired;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32
|
int32
|
||||||
@ -77,6 +77,8 @@ void
|
|||||||
CWanted::SetWantedLevel(int32 level)
|
CWanted::SetWantedLevel(int32 level)
|
||||||
{
|
{
|
||||||
ClearQdCrimes();
|
ClearQdCrimes();
|
||||||
|
if (level > MaximumWantedLevel)
|
||||||
|
level = MaximumWantedLevel;
|
||||||
switch (level) {
|
switch (level) {
|
||||||
case 0:
|
case 0:
|
||||||
m_nChaos = 0;
|
m_nChaos = 0;
|
||||||
@ -100,8 +102,6 @@ CWanted::SetWantedLevel(int32 level)
|
|||||||
m_nChaos = 3220;
|
m_nChaos = 3220;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (level > MaximumWantedLevel)
|
|
||||||
m_nChaos = MaximumWantedLevel;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
UpdateWantedLevel();
|
UpdateWantedLevel();
|
||||||
|
Loading…
Reference in New Issue
Block a user