diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-07-14 11:49:03 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-07-14 11:49:03 +0200 |
commit | 41dbd754dee344c79207e0821df6bcc262f90726 (patch) | |
tree | e80d10adead90967de74b488a8253d2d3343be73 /src/modelinfo | |
parent | fixed policeDontCare (diff) | |
download | re3-41dbd754dee344c79207e0821df6bcc262f90726.tar re3-41dbd754dee344c79207e0821df6bcc262f90726.tar.gz re3-41dbd754dee344c79207e0821df6bcc262f90726.tar.bz2 re3-41dbd754dee344c79207e0821df6bcc262f90726.tar.lz re3-41dbd754dee344c79207e0821df6bcc262f90726.tar.xz re3-41dbd754dee344c79207e0821df6bcc262f90726.tar.zst re3-41dbd754dee344c79207e0821df6bcc262f90726.zip |
Diffstat (limited to 'src/modelinfo')
-rw-r--r-- | src/modelinfo/ModelInfo.cpp | 7 | ||||
-rw-r--r-- | src/modelinfo/ModelInfo.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/modelinfo/ModelInfo.cpp b/src/modelinfo/ModelInfo.cpp index 454a73f1..0c3ec76a 100644 --- a/src/modelinfo/ModelInfo.cpp +++ b/src/modelinfo/ModelInfo.cpp @@ -175,6 +175,13 @@ CModelInfo::IsBoatModel(int32 id) ((CVehicleModelInfo*)GetModelInfo(id))->m_vehicleType == VEHICLE_TYPE_BOAT; } +bool +CModelInfo::IsBikeModel(int32 id) +{ + return GetModelInfo(id)->m_type == MITYPE_VEHICLE && + ((CVehicleModelInfo*)GetModelInfo(id))->m_vehicleType == VEHICLE_TYPE_BIKE; +} + void CModelInfo::RemoveColModelsFromOtherLevels(eLevelName level) { diff --git a/src/modelinfo/ModelInfo.h b/src/modelinfo/ModelInfo.h index d20367d1..ee82276d 100644 --- a/src/modelinfo/ModelInfo.h +++ b/src/modelinfo/ModelInfo.h @@ -36,5 +36,6 @@ public: } static bool IsBoatModel(int32 id); + static bool IsBikeModel(int32 id); static void RemoveColModelsFromOtherLevels(eLevelName level); }; |