mirror of
https://github.com/halpz/re3.git
synced 2024-12-25 18:05:27 +00:00
fixed bike bomb
This commit is contained in:
parent
990637bf52
commit
dbf5c06144
|
@ -2239,8 +2239,12 @@ CWorld::UseDetonator(CEntity *pEntity)
|
||||||
{
|
{
|
||||||
int32 i = CPools::GetVehiclePool()->GetSize();
|
int32 i = CPools::GetVehiclePool()->GetSize();
|
||||||
while(--i >= 0) {
|
while(--i >= 0) {
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
CVehicle* pVehicle = CPools::GetVehiclePool()->GetSlot(i);
|
||||||
|
#else
|
||||||
CAutomobile *pVehicle = (CAutomobile *)CPools::GetVehiclePool()->GetSlot(i);
|
CAutomobile *pVehicle = (CAutomobile *)CPools::GetVehiclePool()->GetSlot(i);
|
||||||
if(pVehicle && !pVehicle->m_vehType && pVehicle->m_bombType == CARBOMB_REMOTE &&
|
#endif
|
||||||
|
if(pVehicle && pVehicle->m_bombType == CARBOMB_REMOTE &&
|
||||||
pVehicle->m_pBombRigger == pEntity) {
|
pVehicle->m_pBombRigger == pEntity) {
|
||||||
pVehicle->m_bombType = CARBOMB_NONE;
|
pVehicle->m_bombType = CARBOMB_NONE;
|
||||||
pVehicle->m_nBombTimer = 500;
|
pVehicle->m_nBombTimer = 500;
|
||||||
|
|
Loading…
Reference in a new issue