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:08:05 +0100
commite33ab44b7d179a59887200fe6d22c15fa557c5e2 (patch)
treee626c0f1572ceca6a2bff0b3b3de876ccbaa6fab /src/control/Pickups.cpp
parentsome more GTA_VERSIONs and CGame tidy-up (not much actual memory moving yet) (diff)
downloadre3-e33ab44b7d179a59887200fe6d22c15fa557c5e2.tar
re3-e33ab44b7d179a59887200fe6d22c15fa557c5e2.tar.gz
re3-e33ab44b7d179a59887200fe6d22c15fa557c5e2.tar.bz2
re3-e33ab44b7d179a59887200fe6d22c15fa557c5e2.tar.lz
re3-e33ab44b7d179a59887200fe6d22c15fa557c5e2.tar.xz
re3-e33ab44b7d179a59887200fe6d22c15fa557c5e2.tar.zst
re3-e33ab44b7d179a59887200fe6d22c15fa557c5e2.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 2503f5c8..1b1c8cbc 100644
--- a/src/control/Pickups.cpp
+++ b/src/control/Pickups.cpp
@@ -353,11 +353,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();