summaryrefslogtreecommitdiffstats
path: root/src/modelinfo
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-16 18:25:46 +0200
committerGitHub <noreply@github.com>2019-07-16 18:25:46 +0200
commit568b3de9cc682b4963d4fc6129692d11cfffe64a (patch)
treee119d9af8c6dc6fe93387c1cb264ea12304fbc0a /src/modelinfo
parentstarted making frontend accurate to game (diff)
parentfix (diff)
downloadre3-568b3de9cc682b4963d4fc6129692d11cfffe64a.tar
re3-568b3de9cc682b4963d4fc6129692d11cfffe64a.tar.gz
re3-568b3de9cc682b4963d4fc6129692d11cfffe64a.tar.bz2
re3-568b3de9cc682b4963d4fc6129692d11cfffe64a.tar.lz
re3-568b3de9cc682b4963d4fc6129692d11cfffe64a.tar.xz
re3-568b3de9cc682b4963d4fc6129692d11cfffe64a.tar.zst
re3-568b3de9cc682b4963d4fc6129692d11cfffe64a.zip
Diffstat (limited to '')
-rw-r--r--src/modelinfo/ModelInfo.cpp7
-rw-r--r--src/modelinfo/ModelInfo.h1
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);
};