summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-02-15 12:54:46 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-02-15 12:54:46 +0100
commita361fc0ff5359cc4e1845cd6b62ee50b4d81a3d1 (patch)
tree147d551bbb7f0de6d6048566405956f18252bfff /src/vehicles
parentscript 900-999 (diff)
parentMerge pull request #326 from erorcun/erorcun (diff)
downloadre3-a361fc0ff5359cc4e1845cd6b62ee50b4d81a3d1.tar
re3-a361fc0ff5359cc4e1845cd6b62ee50b4d81a3d1.tar.gz
re3-a361fc0ff5359cc4e1845cd6b62ee50b4d81a3d1.tar.bz2
re3-a361fc0ff5359cc4e1845cd6b62ee50b4d81a3d1.tar.lz
re3-a361fc0ff5359cc4e1845cd6b62ee50b4d81a3d1.tar.xz
re3-a361fc0ff5359cc4e1845cd6b62ee50b4d81a3d1.tar.zst
re3-a361fc0ff5359cc4e1845cd6b62ee50b4d81a3d1.zip
Diffstat (limited to 'src/vehicles')
-rw-r--r--src/vehicles/Automobile.cpp4
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)