mirror of
https://github.com/halpz/re3.git
synced 2025-07-03 07:50:47 +00:00
couple of fixes
This commit is contained in:
@ -180,8 +180,6 @@ CAutomobile::CAutomobile(int32 id, uint8 CreatedBy)
|
||||
bExplosionProof = true;
|
||||
bBulletProof = true;
|
||||
}
|
||||
|
||||
*(void**)this = (void*)0x600C1C;
|
||||
}
|
||||
|
||||
|
||||
@ -1443,9 +1441,11 @@ CAutomobile::RcbanditCheckHitWheels(void)
|
||||
{ EAXJMP(0x53C990);
|
||||
}
|
||||
|
||||
//WRAPPER void
|
||||
//CAutomobile::VehicleDamage(float impulse, uint16 damagedPiece)
|
||||
//{ EAXJMP(0x52F390);
|
||||
#if 0
|
||||
WRAPPER void
|
||||
CAutomobile::VehicleDamage(float impulse, uint16 damagedPiece)
|
||||
{ EAXJMP(0x52F390); }
|
||||
#else
|
||||
void
|
||||
CAutomobile::VehicleDamage(float impulse, uint16 damagedPiece)
|
||||
{
|
||||
@ -1494,7 +1494,7 @@ CAutomobile::VehicleDamage(float impulse, uint16 damagedPiece)
|
||||
return;
|
||||
|
||||
if(m_pDamageEntity){
|
||||
if(m_pDamageEntity->m_status == STATUS_PLAYER_PLAYBACKFROMBUFFER &&
|
||||
if(m_pDamageEntity->IsBuilding() &&
|
||||
DotProduct(m_vecDamageNormal, GetUp()) > 0.6f)
|
||||
return;
|
||||
}
|
||||
@ -1686,6 +1686,7 @@ CAutomobile::VehicleDamage(float impulse, uint16 damagedPiece)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
CAutomobile::dmgDrawCarCollidingParticles(const CVector &pos, float amount)
|
||||
|
@ -70,7 +70,7 @@ char VehicleNames[NUMHANDLINGS][14] = {
|
||||
|
||||
cHandlingDataMgr::cHandlingDataMgr(void)
|
||||
{
|
||||
memset(this, 0, sizeof(this));
|
||||
memset(this, 0, sizeof(*this));
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user