diff options
author | erorcun <erayorcunus@gmail.com> | 2020-02-03 19:09:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-03 19:09:37 +0100 |
commit | 6a04ec01cbdca62bd8b648a3cda39654d1699023 (patch) | |
tree | abc03f5f4136a0f229c108943d82604eb8b4e73e /src/vehicles/Automobile.cpp | |
parent | Merge pull request #321 from Sergeanur/audio_enums (diff) | |
parent | A bug fix and VC ports for veh. enter/exit (diff) | |
download | re3-6a04ec01cbdca62bd8b648a3cda39654d1699023.tar re3-6a04ec01cbdca62bd8b648a3cda39654d1699023.tar.gz re3-6a04ec01cbdca62bd8b648a3cda39654d1699023.tar.bz2 re3-6a04ec01cbdca62bd8b648a3cda39654d1699023.tar.lz re3-6a04ec01cbdca62bd8b648a3cda39654d1699023.tar.xz re3-6a04ec01cbdca62bd8b648a3cda39654d1699023.tar.zst re3-6a04ec01cbdca62bd8b648a3cda39654d1699023.zip |
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r-- | src/vehicles/Automobile.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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) |