diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-01-01 00:35:54 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-01-01 00:35:54 +0100 |
commit | 80453d3f4ddc13f8458e14353c318a69cfe10518 (patch) | |
tree | 6d3dd1729a0270c971ba840a5400a586e9f1a290 /src/vehicles | |
parent | Merge remote-tracking branch 'upstream/master' into script_dev (diff) | |
download | re3-80453d3f4ddc13f8458e14353c318a69cfe10518.tar re3-80453d3f4ddc13f8458e14353c318a69cfe10518.tar.gz re3-80453d3f4ddc13f8458e14353c318a69cfe10518.tar.bz2 re3-80453d3f4ddc13f8458e14353c318a69cfe10518.tar.lz re3-80453d3f4ddc13f8458e14353c318a69cfe10518.tar.xz re3-80453d3f4ddc13f8458e14353c318a69cfe10518.tar.zst re3-80453d3f4ddc13f8458e14353c318a69cfe10518.zip |
Diffstat (limited to 'src/vehicles')
-rw-r--r-- | src/vehicles/Vehicle.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicles/Vehicle.h b/src/vehicles/Vehicle.h index 3046a58f..de05a738 100644 --- a/src/vehicles/Vehicle.h +++ b/src/vehicles/Vehicle.h @@ -2,6 +2,7 @@ #include "Physical.h" #include "AutoPilot.h" +#include "ModelIndices.h" class CPed; class CFire; @@ -267,6 +268,7 @@ public: bool IsAlarmOn(void) { return m_nAlarmState != 0 && m_nAlarmState != -1; } CVehicleModelInfo* GetModelInfo() { return (CVehicleModelInfo*)CModelInfo::GetModelInfo(GetModelIndex()); } + bool IsTaxi(void) { return GetModelIndex() == MI_TAXI || GetModelIndex() == MI_CABBIE || GetModelIndex() == MI_BORGNINE; } static bool &bWheelsOnlyCheat; static bool &bAllDodosCheat; |