diff options
author | withmorten <morten.with@gmail.com> | 2021-01-22 00:19:44 +0100 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2021-01-22 00:19:44 +0100 |
commit | 497e0b801ff30cf836887b625752c1643b533a7e (patch) | |
tree | e0c2952a6d863b7cde0f46aca121c37ed39f8696 /src/control/Pickups.cpp | |
parent | free cam fixes (diff) | |
download | re3-497e0b801ff30cf836887b625752c1643b533a7e.tar re3-497e0b801ff30cf836887b625752c1643b533a7e.tar.gz re3-497e0b801ff30cf836887b625752c1643b533a7e.tar.bz2 re3-497e0b801ff30cf836887b625752c1643b533a7e.tar.lz re3-497e0b801ff30cf836887b625752c1643b533a7e.tar.xz re3-497e0b801ff30cf836887b625752c1643b533a7e.tar.zst re3-497e0b801ff30cf836887b625752c1643b533a7e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/Pickups.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Pickups.cpp b/src/control/Pickups.cpp index 857f74ec..96a8a670 100644 --- a/src/control/Pickups.cpp +++ b/src/control/Pickups.cpp @@ -129,7 +129,7 @@ CPickup::CanBePickedUp(CPlayerPed *player) bool cannotBePickedUp = (m_pObject->GetModelIndex() == MI_PICKUP_BODYARMOUR && player->m_fArmour > 99.5f) || (m_pObject->GetModelIndex() == MI_PICKUP_HEALTH && player->m_fHealth > 99.5f) - || (m_pObject->GetModelIndex() == MI_PICKUP_BRIBE && player->m_pWanted->m_nWantedLevel == 0) + || (m_pObject->GetModelIndex() == MI_PICKUP_BRIBE && player->m_pWanted->GetWantedLevel() == 0) || (m_pObject->GetModelIndex() == MI_PICKUP_KILLFRENZY && (CTheScripts::IsPlayerOnAMission() || CDarkel::FrenzyOnGoing() || !CGame::nastyGame)); return !cannotBePickedUp; } @@ -456,7 +456,7 @@ CPickups::GivePlayerGoodiesWithPickUpMI(int16 modelIndex, int playerIndex) DMAudio.PlayFrontEndSound(SOUND_PICKUP_BONUS, 0); return true; } else if (modelIndex == MI_PICKUP_BRIBE) { - int32 level = FindPlayerPed()->m_pWanted->m_nWantedLevel - 1; + int32 level = FindPlayerPed()->m_pWanted->GetWantedLevel() - 1; if (level < 0) level = 0; player->SetWantedLevel(level); DMAudio.PlayFrontEndSound(SOUND_PICKUP_BONUS, 0); |