summaryrefslogtreecommitdiff
path: root/src/vehicles/Vehicle.h
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-09-13 22:04:55 +0300
committereray orçunus <erayorcunus@gmail.com>2019-09-14 02:24:53 +0300
commit88f0ef75e8596c752fe343c786294ffa6a8a7534 (patch)
treecacd806edb9ca44bda3a057a934b629cc7be1bc3 /src/vehicles/Vehicle.h
parent404115985560055141eb0be1de496bd9ce1fa690 (diff)
P.e.d.s.
Diffstat (limited to 'src/vehicles/Vehicle.h')
-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;