diff options
author | Sergeanur <s.anureev@yandex.ua> | 2019-10-12 22:03:44 +0300 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2019-10-12 22:03:44 +0300 |
commit | 1fed8e9482d18aaea0a11999b493996b0b28a2f3 (patch) | |
tree | 33b306c13d76fa955f33c118ee26cef2af7a65ed | |
parent | 47e98306c7bfd257b7896781baa91b3c1d5093ad (diff) |
Fixed floating package pickups
-rw-r--r-- | src/control/Pickups.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/control/Pickups.cpp b/src/control/Pickups.cpp index 93d73121..3ba01e46 100644 --- a/src/control/Pickups.cpp +++ b/src/control/Pickups.cpp @@ -355,6 +355,7 @@ CPickup::Update(CPlayerPed *player, CVehicle *vehicle, int playerId) if (vehicle != nil && vehicle->IsSphereTouchingVehicle(m_pObject->GetPosition().x, m_pObject->GetPosition().y, m_pObject->GetPosition().z, 2.0f)) {
Remove();
DMAudio.PlayFrontEndSound(SOUND_PICKUP_FLOAT_PACKAGE, 0);
+ return true;
}
break;
}
|