diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-04-30 15:45:45 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-04-30 15:45:45 +0200 |
commit | 7d758f3a9f7ad9b46cc9ab296166365597898bf5 (patch) | |
tree | 906b8d3f86c6ee6969bc553b1ea73ed6386409f0 /src/control/GameLogic.cpp | |
parent | Fix downloading from PR (diff) | |
download | re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.tar re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.tar.gz re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.tar.bz2 re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.tar.lz re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.tar.xz re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.tar.zst re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/GameLogic.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/control/GameLogic.cpp b/src/control/GameLogic.cpp index f8c8fa69..abb5c5f3 100644 --- a/src/control/GameLogic.cpp +++ b/src/control/GameLogic.cpp @@ -102,8 +102,8 @@ CGameLogic::Update() if (pVehicle != nil) { if (pVehicle->pDriver == pPlayerInfo.m_pPed) { pVehicle->pDriver = nil; - if (pVehicle->m_status != STATUS_WRECKED) - pVehicle->m_status = STATUS_ABANDONED; + if (pVehicle->GetStatus() != STATUS_WRECKED) + pVehicle->SetStatus(STATUS_ABANDONED); } else pVehicle->RemovePassenger(pPlayerInfo.m_pPed); } @@ -172,8 +172,8 @@ CGameLogic::Update() if (pVehicle != nil) { if (pVehicle->pDriver == pPlayerInfo.m_pPed) { pVehicle->pDriver = nil; - if (pVehicle->m_status != STATUS_WRECKED) - pVehicle->m_status = STATUS_ABANDONED; + if (pVehicle->GetStatus() != STATUS_WRECKED) + pVehicle->SetStatus(STATUS_ABANDONED); } else pVehicle->RemovePassenger(pPlayerInfo.m_pPed); @@ -214,8 +214,8 @@ CGameLogic::Update() if (pVehicle != nil) { if (pVehicle->pDriver == pPlayerInfo.m_pPed) { pVehicle->pDriver = nil; - if (pVehicle->m_status != STATUS_WRECKED) - pVehicle->m_status = STATUS_ABANDONED; + if (pVehicle->GetStatus() != STATUS_WRECKED) + pVehicle->SetStatus(STATUS_ABANDONED); } else pVehicle->RemovePassenger(pPlayerInfo.m_pPed); } |