1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-11-01 01:15:55 +00:00

fixed CAutomobile bug

This commit is contained in:
aap 2019-07-26 20:11:11 +02:00
parent e200eb1a2f
commit e340400875
2 changed files with 6 additions and 6 deletions

View file

@ -2930,7 +2930,7 @@ CAutomobile::BurstTyre(uint8 wheel)
}
bool
CAutomobile::IsRoomForPedToLeaveCar(uint32 component, CVector *forcedDoorPos)
CAutomobile::IsRoomForPedToLeaveCar(uint32 component, CVector *doorOffset)
{
CColPoint colpoint;
CEntity *ent;
@ -2957,11 +2957,11 @@ CAutomobile::IsRoomForPedToLeaveCar(uint32 component, CVector *forcedDoorPos)
seatPos = GetMatrix() * seatPos;
CVector doorPos = CPed::GetPositionToOpenCarDoor(this, component);
if(forcedDoorPos){
doorPos = *forcedDoorPos;
if(doorOffset){
CVector off = *doorOffset;
if(component == CAR_DOOR_RF || component == CAR_DOOR_RR)
doorPos.x = -doorPos.x;
doorPos = Multiply3x3(GetMatrix(), doorPos);
off.x = -off.x;
doorPos += Multiply3x3(GetMatrix(), off);
}
if(GetUp().z < 0.0f){

View file

@ -108,7 +108,7 @@ public:
void BlowUpCar(CEntity *ent);
bool SetUpWheelColModel(CColModel *colModel);
void BurstTyre(uint8 tyre);
bool IsRoomForPedToLeaveCar(uint32 component, CVector *forcedDoorPos);
bool IsRoomForPedToLeaveCar(uint32 component, CVector *doorOffset);
float GetHeightAboveRoad(void);
void PlayCarHorn(void);