summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-04-18 20:38:02 +0200
committerGitHub <noreply@github.com>2020-04-18 20:38:02 +0200
commit928ac4b0a5801043be6685955777b08f1a47518b (patch)
tree3db11d118bc9c1b0b04dd3c264e2242992e2d513 /src/vehicles
parentChanged extraOffset value. (diff)
parentsubmodule update (diff)
downloadre3-928ac4b0a5801043be6685955777b08f1a47518b.tar
re3-928ac4b0a5801043be6685955777b08f1a47518b.tar.gz
re3-928ac4b0a5801043be6685955777b08f1a47518b.tar.bz2
re3-928ac4b0a5801043be6685955777b08f1a47518b.tar.lz
re3-928ac4b0a5801043be6685955777b08f1a47518b.tar.xz
re3-928ac4b0a5801043be6685955777b08f1a47518b.tar.zst
re3-928ac4b0a5801043be6685955777b08f1a47518b.zip
Diffstat (limited to 'src/vehicles')
-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;