summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-09-14 08:41:09 +0200
committerGitHub <noreply@github.com>2019-09-14 08:41:09 +0200
commit06be2f772a5b11b54c58b8c35e515ab77caf8129 (patch)
treecacd806edb9ca44bda3a057a934b629cc7be1bc3 /src/vehicles
parentfixed launch in space bug (diff)
parentP.e.d.s. (diff)
downloadre3-06be2f772a5b11b54c58b8c35e515ab77caf8129.tar
re3-06be2f772a5b11b54c58b8c35e515ab77caf8129.tar.gz
re3-06be2f772a5b11b54c58b8c35e515ab77caf8129.tar.bz2
re3-06be2f772a5b11b54c58b8c35e515ab77caf8129.tar.lz
re3-06be2f772a5b11b54c58b8c35e515ab77caf8129.tar.xz
re3-06be2f772a5b11b54c58b8c35e515ab77caf8129.tar.zst
re3-06be2f772a5b11b54c58b8c35e515ab77caf8129.zip
Diffstat (limited to 'src/vehicles')
-rw-r--r--src/vehicles/Vehicle.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Vehicle.h b/src/vehicles/Vehicle.h
index 96f57e06..08f55caa 100644
--- a/src/vehicles/Vehicle.h
+++ b/src/vehicles/Vehicle.h
@@ -269,7 +269,7 @@ public:
bool ShufflePassengersToMakeSpace(void);
bool IsAlarmOn(void) { return m_nAlarmState != 0 && m_nAlarmState != -1; }
-
+ bool IsWrecked(void) { return !this || m_status == STATUS_WRECKED; }
CVehicleModelInfo* GetModelInfo() { return (CVehicleModelInfo*)CModelInfo::GetModelInfo(GetModelIndex()); }
static bool &bWheelsOnlyCheat;