From ce0687db27ddd244c0f046cb0c8229f335aae571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?eray=20or=C3=A7unus?= Date: Mon, 3 Feb 2020 21:03:48 +0300 Subject: A bug fix and VC ports for veh. enter/exit --- src/vehicles/Automobile.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/vehicles/Automobile.cpp') diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index d6032457..a79f619c 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -3885,6 +3885,9 @@ CAutomobile::IsRoomForPedToLeaveCar(uint32 component, CVector *doorOffset) } CVector dist = doorPos - seatPos; + + // Removing that makes this func. return false for van doors. + doorPos.z += 0.5f; float length = dist.Magnitude(); CVector pedPos = seatPos + dist*((length+0.6f)/length); @@ -4193,6 +4196,7 @@ GetCurrentAtomicObjectCB(RwObject *object, void *data) } CColPoint aTempPedColPts[32]; // this name doesn't make any sense + // they probably copied it from Ped (both serves same purpose) and didn't change the name CObject* CAutomobile::SpawnFlyingComponent(int32 component, uint32 type) -- cgit v1.2.3