mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-23 01:29:16 +01:00
fixed double explosion
This commit is contained in:
parent
c995bdcdaf
commit
8cc3f867a6
@ -4246,7 +4246,9 @@ CPed::PedSetOutCarCB(CAnimBlendAssociation *animAssoc, void *arg)
|
|||||||
veh->m_nGettingOutFlags &= ~GetCarDoorFlag(ped->m_vehEnterType);
|
veh->m_nGettingOutFlags &= ~GetCarDoorFlag(ped->m_vehEnterType);
|
||||||
if (veh->pDriver == ped) {
|
if (veh->pDriver == ped) {
|
||||||
veh->RemoveDriver();
|
veh->RemoveDriver();
|
||||||
|
#ifndef FIX_BUGS // RemoveDriver does it anyway
|
||||||
veh->SetStatus(STATUS_ABANDONED);
|
veh->SetStatus(STATUS_ABANDONED);
|
||||||
|
#endif
|
||||||
if (veh->m_nDoorLock == CARLOCK_LOCKED_INITIALLY)
|
if (veh->m_nDoorLock == CARLOCK_LOCKED_INITIALLY)
|
||||||
veh->m_nDoorLock = CARLOCK_UNLOCKED;
|
veh->m_nDoorLock = CARLOCK_UNLOCKED;
|
||||||
if (ped->m_nPedType == PEDTYPE_COP && veh->IsLawEnforcementVehicle())
|
if (ped->m_nPedType == PEDTYPE_COP && veh->IsLawEnforcementVehicle())
|
||||||
|
@ -1171,6 +1171,9 @@ CVehicle::AddPassenger(CPed *passenger, uint8 n)
|
|||||||
void
|
void
|
||||||
CVehicle::RemoveDriver(void)
|
CVehicle::RemoveDriver(void)
|
||||||
{
|
{
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
if (GetStatus() != STATUS_WRECKED)
|
||||||
|
#endif
|
||||||
SetStatus(STATUS_ABANDONED);
|
SetStatus(STATUS_ABANDONED);
|
||||||
pDriver = nil;
|
pDriver = nil;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user