diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-01 22:08:05 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-01 22:53:09 +0200 |
commit | 24b5406a1ddce8d9c10aee8b2443407276f25ba4 (patch) | |
tree | 9c05c60eb3a0a65291c617740a7e3c027df8ba74 /src/control/Pickups.cpp | |
parent | 8de707272023f840a7e8dd78fcaea19d5482f933 (diff) |
Add GTA_REPLAY
# Conflicts:
# src/control/Replay.cpp
# src/control/Replay.h
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 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(); |