summaryrefslogtreecommitdiffstats
path: root/src/modelinfo
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-06-14 23:15:56 +0200
committeraap <aap@papnet.eu>2020-06-14 23:15:56 +0200
commit0741fd5b1d9bd0249f40daa85e679b6e9180602c (patch)
tree9b4e7b2eee5ce06de1983c7c88ddeb5230f8eb80 /src/modelinfo
parentMerge pull request #631 from erorcun/miami (diff)
downloadre3-0741fd5b1d9bd0249f40daa85e679b6e9180602c.tar
re3-0741fd5b1d9bd0249f40daa85e679b6e9180602c.tar.gz
re3-0741fd5b1d9bd0249f40daa85e679b6e9180602c.tar.bz2
re3-0741fd5b1d9bd0249f40daa85e679b6e9180602c.tar.lz
re3-0741fd5b1d9bd0249f40daa85e679b6e9180602c.tar.xz
re3-0741fd5b1d9bd0249f40daa85e679b6e9180602c.tar.zst
re3-0741fd5b1d9bd0249f40daa85e679b6e9180602c.zip
Diffstat (limited to 'src/modelinfo')
-rw-r--r--src/modelinfo/ModelIndices.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/modelinfo/ModelIndices.h b/src/modelinfo/ModelIndices.h
index ad7b4aaf..7b67c199 100644
--- a/src/modelinfo/ModelIndices.h
+++ b/src/modelinfo/ModelIndices.h
@@ -437,6 +437,21 @@ IsLightObject(int16 id)
}
inline bool
+IsLampPost(int16 id)
+{
+ return id == MI_SINGLESTREETLIGHTS1 ||
+ id == MI_SINGLESTREETLIGHTS2 ||
+ id == MI_SINGLESTREETLIGHTS3 ||
+ id == MI_BOLLARDLIGHT ||
+ id == MI_MLAMPPOST ||
+ id == MI_STREETLAMP1 ||
+ id == MI_STREETLAMP2 ||
+ id == MI_TELPOLE02 ||
+ id == MI_TRAFFICLIGHTS_MIAMI ||
+ id == MI_TRAFFICLIGHTS_TWOVERTICAL;
+}
+
+inline bool
IsBodyPart(int16 id)
{
return id == MI_BODYPARTA || id == MI_BODYPARTB;