summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-04-18 20:28:49 +0200
committereray orçunus <erayorcunus@gmail.com>2020-04-18 20:30:03 +0200
commit2f63e5e751dc268a6778e076098320dac9a03699 (patch)
tree7cb8524b094145f205bbf6585fa1ca31b8be2f98 /src/vehicles
parentChanged extraOffset value. (diff)
downloadre3-2f63e5e751dc268a6778e076098320dac9a03699.tar
re3-2f63e5e751dc268a6778e076098320dac9a03699.tar.gz
re3-2f63e5e751dc268a6778e076098320dac9a03699.tar.bz2
re3-2f63e5e751dc268a6778e076098320dac9a03699.tar.lz
re3-2f63e5e751dc268a6778e076098320dac9a03699.tar.xz
re3-2f63e5e751dc268a6778e076098320dac9a03699.tar.zst
re3-2f63e5e751dc268a6778e076098320dac9a03699.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Vehicle.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp
index 48c836f8..bc47b486 100644
--- a/src/vehicles/Vehicle.cpp
+++ b/src/vehicles/Vehicle.cpp
@@ -787,6 +787,10 @@ CVehicle::CanPedExitCar(void)
{
CVector up = GetUp();
if(up.z > 0.1f || up.z < -0.1f){
+#ifdef VC_PED_PORTS
+ if (IsBoat())
+ return true;
+#endif
// can't exit when car is moving too fast
if(m_vecMoveSpeed.MagnitudeSqr() > 0.005f)
return false;