summaryrefslogtreecommitdiffstats
path: root/src/control/Pickups.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-11-08 14:00:54 +0100
committerSergeanur <s.anureev@yandex.ua>2020-11-08 14:00:54 +0100
commita2e0373d225b7826375939e74deff7d6bb6a32ef (patch)
treeb63cd9cc269c5de65072b834c965d63613deee54 /src/control/Pickups.cpp
parentPed comments fixes (diff)
downloadre3-a2e0373d225b7826375939e74deff7d6bb6a32ef.tar
re3-a2e0373d225b7826375939e74deff7d6bb6a32ef.tar.gz
re3-a2e0373d225b7826375939e74deff7d6bb6a32ef.tar.bz2
re3-a2e0373d225b7826375939e74deff7d6bb6a32ef.tar.lz
re3-a2e0373d225b7826375939e74deff7d6bb6a32ef.tar.xz
re3-a2e0373d225b7826375939e74deff7d6bb6a32ef.tar.zst
re3-a2e0373d225b7826375939e74deff7d6bb6a32ef.zip
Diffstat (limited to 'src/control/Pickups.cpp')
-rw-r--r--src/control/Pickups.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/control/Pickups.cpp b/src/control/Pickups.cpp
index 2a5863f1..3d76fe5b 100644
--- a/src/control/Pickups.cpp
+++ b/src/control/Pickups.cpp
@@ -508,7 +508,7 @@ CPickup::Update(CPlayerPed *player, CVehicle *vehicle, int playerId)
result = true;
Remove();
DMAudio.PlayFrontEndSound(SOUND_PICKUP_HIDDEN_PACKAGE, 0);
- return true;
+ break;
case PICKUP_MONEY:
CWorld::Players[playerId].m_nMoney += m_nQuantity;
sprintf(gString, "$%d", m_nQuantity);
@@ -518,12 +518,13 @@ CPickup::Update(CPlayerPed *player, CVehicle *vehicle, int playerId)
result = true;
Remove();
DMAudio.PlayFrontEndSound(SOUND_PICKUP_MONEY, 0);
- return true;
+ player->Say(SOUND_PED_MUGGING);
+ break;
case PICKUP_ASSET_REVENUE:
CWorld::Players[CWorld::PlayerInFocus].m_nMoney += m_fRevenue;
m_fRevenue = 0.0f;
DMAudio.PlayFrontEndSound(SOUND_PICKUP_MONEY, 0);
- return false;
+ break;
case PICKUP_PROPERTY_LOCKED:
if (!m_bWasControlMessageShown) {
m_bWasControlMessageShown = true;