summaryrefslogtreecommitdiffstats
path: root/src/control/Pickups.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-01 21:08:05 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-01 21:53:09 +0100
commit24b5406a1ddce8d9c10aee8b2443407276f25ba4 (patch)
tree9c05c60eb3a0a65291c617740a7e3c027df8ba74 /src/control/Pickups.cpp
parentMerge pull request #857 from majesticCoding/miami (diff)
downloadre3-24b5406a1ddce8d9c10aee8b2443407276f25ba4.tar
re3-24b5406a1ddce8d9c10aee8b2443407276f25ba4.tar.gz
re3-24b5406a1ddce8d9c10aee8b2443407276f25ba4.tar.bz2
re3-24b5406a1ddce8d9c10aee8b2443407276f25ba4.tar.lz
re3-24b5406a1ddce8d9c10aee8b2443407276f25ba4.tar.xz
re3-24b5406a1ddce8d9c10aee8b2443407276f25ba4.tar.zst
re3-24b5406a1ddce8d9c10aee8b2443407276f25ba4.zip
Diffstat (limited to '')
-rw-r--r--src/control/Pickups.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Pickups.cpp b/src/control/Pickups.cpp
index 4d325101..1ff4f8f6 100644
--- a/src/control/Pickups.cpp
+++ b/src/control/Pickups.cpp
@@ -619,11 +619,11 @@ CPickup::Update(CPlayerPed *player, CVehicle *vehicle, int playerId)
m_pObject->GetMatrix().UpdateRW();
m_pObject->UpdateRwFrame();
- if (CWaterLevel::GetWaterLevel(m_pObject->GetPosition().x, m_pObject->GetPosition().y, m_pObject->GetPosition().z + 5.0f, &waterLevel, 0) && waterLevel >= m_pObject->GetPosition().z)
+ if (CWaterLevel::GetWaterLevel(m_pObject->GetPosition().x, m_pObject->GetPosition().y, m_pObject->GetPosition().z + 5.0f, &waterLevel, false) && waterLevel >= m_pObject->GetPosition().z)
m_eType = PICKUP_FLOATINGPACKAGE_FLOATING;
break;
case PICKUP_FLOATINGPACKAGE_FLOATING:
- if (CWaterLevel::GetWaterLevel(m_pObject->GetPosition().x, m_pObject->GetPosition().y, m_pObject->GetPosition().z + 5.0f, &waterLevel, 0))
+ if (CWaterLevel::GetWaterLevel(m_pObject->GetPosition().x, m_pObject->GetPosition().y, m_pObject->GetPosition().z + 5.0f, &waterLevel, false))
m_pObject->GetMatrix().GetPosition().z = waterLevel;
m_pObject->GetMatrix().UpdateRW();