mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-04 06:24:09 +00:00
Adding getters and setters for type and status
This commit is contained in:
parent
cf5a404f6b
commit
7d758f3a9f
41 changed files with 256 additions and 249 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue