summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-09-13 21:04:55 +0200
committereray orçunus <erayorcunus@gmail.com>2019-09-14 01:24:53 +0200
commit88f0ef75e8596c752fe343c786294ffa6a8a7534 (patch)
treecacd806edb9ca44bda3a057a934b629cc7be1bc3 /src/vehicles
parentfixed launch in space bug (diff)
downloadre3-88f0ef75e8596c752fe343c786294ffa6a8a7534.tar
re3-88f0ef75e8596c752fe343c786294ffa6a8a7534.tar.gz
re3-88f0ef75e8596c752fe343c786294ffa6a8a7534.tar.bz2
re3-88f0ef75e8596c752fe343c786294ffa6a8a7534.tar.lz
re3-88f0ef75e8596c752fe343c786294ffa6a8a7534.tar.xz
re3-88f0ef75e8596c752fe343c786294ffa6a8a7534.tar.zst
re3-88f0ef75e8596c752fe343c786294ffa6a8a7534.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;