diff options
author | aap <aap@papnet.eu> | 2020-12-02 10:38:39 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-12-02 10:38:39 +0100 |
commit | f5763118140591f980e89089e3f67c3d50a293b9 (patch) | |
tree | 0e6a15457497d9999f039b11260eda3d2679f580 /src/control/Pickups.cpp | |
parent | better cam lod dist fix (diff) | |
parent | fast fix (diff) | |
download | re3-f5763118140591f980e89089e3f67c3d50a293b9.tar re3-f5763118140591f980e89089e3f67c3d50a293b9.tar.gz re3-f5763118140591f980e89089e3f67c3d50a293b9.tar.bz2 re3-f5763118140591f980e89089e3f67c3d50a293b9.tar.lz re3-f5763118140591f980e89089e3f67c3d50a293b9.tar.xz re3-f5763118140591f980e89089e3f67c3d50a293b9.tar.zst re3-f5763118140591f980e89089e3f67c3d50a293b9.zip |
Diffstat (limited to 'src/control/Pickups.cpp')
-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 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(); |