diff options
author | aap <aap@papnet.eu> | 2020-05-09 12:45:27 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-09 12:45:27 +0200 |
commit | ea053467b53bf2182cb065e45f31ddd0e33d9a80 (patch) | |
tree | d8605b2a7249f9b38dd74d3b83d21a4d8f1bd510 /src/modelinfo/ModelInfo.cpp | |
parent | named anim assoc flags (diff) | |
parent | Merge pull request #526 from Nick007J/miami (diff) | |
download | re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.tar re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.tar.gz re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.tar.bz2 re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.tar.lz re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.tar.xz re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.tar.zst re3-ea053467b53bf2182cb065e45f31ddd0e33d9a80.zip |
Diffstat (limited to 'src/modelinfo/ModelInfo.cpp')
-rw-r--r-- | src/modelinfo/ModelInfo.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modelinfo/ModelInfo.cpp b/src/modelinfo/ModelInfo.cpp index 79353b1b..29466777 100644 --- a/src/modelinfo/ModelInfo.cpp +++ b/src/modelinfo/ModelInfo.cpp @@ -199,6 +199,13 @@ CModelInfo::IsBikeModel(int32 id) ((CVehicleModelInfo*)GetModelInfo(id))->m_vehicleType == VEHICLE_TYPE_BIKE; } +bool +CModelInfo::IsCarModel(int32 id) +{ + return GetModelInfo(id)->GetModelType() == MITYPE_VEHICLE && + ((CVehicleModelInfo*)GetModelInfo(id))->m_vehicleType == VEHICLE_TYPE_CAR; +} + void CModelInfo::ReInit2dEffects() { |