summaryrefslogtreecommitdiffstats
path: root/src/modelinfo/ModelIndices.h
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-05-20 19:10:05 +0200
committereray orçunus <erayorcunus@gmail.com>2020-05-20 19:21:27 +0200
commit2ab3fb5dd02aad980718f1ac176f06f7b7e25f41 (patch)
tree974cd9b8b95fb9655621143932eca14154fe7df6 /src/modelinfo/ModelIndices.h
parentMerge pull request #569 from aap/miami (diff)
downloadre3-2ab3fb5dd02aad980718f1ac176f06f7b7e25f41.tar
re3-2ab3fb5dd02aad980718f1ac176f06f7b7e25f41.tar.gz
re3-2ab3fb5dd02aad980718f1ac176f06f7b7e25f41.tar.bz2
re3-2ab3fb5dd02aad980718f1ac176f06f7b7e25f41.tar.lz
re3-2ab3fb5dd02aad980718f1ac176f06f7b7e25f41.tar.xz
re3-2ab3fb5dd02aad980718f1ac176f06f7b7e25f41.tar.zst
re3-2ab3fb5dd02aad980718f1ac176f06f7b7e25f41.zip
Diffstat (limited to '')
-rw-r--r--src/modelinfo/ModelIndices.h33
1 files changed, 31 insertions, 2 deletions
diff --git a/src/modelinfo/ModelIndices.h b/src/modelinfo/ModelIndices.h
index 1d70be3d..b8c6964a 100644
--- a/src/modelinfo/ModelIndices.h
+++ b/src/modelinfo/ModelIndices.h
@@ -358,9 +358,38 @@ IsGlass(int16 id)
}
inline bool
-IsStreetLight(int16 id)
+IsTrafficLight(int16 id)
{
- return id == MI_SINGLESTREETLIGHTS1 ||
+ return id == MI_TRAFFICLIGHTS ||
+ id == MI_TRAFFICLIGHTS_VERTICAL ||
+ id == MI_TRAFFICLIGHTS_MIAMI ||
+ id == MI_TRAFFICLIGHTS_TWOVERTICAL;
+}
+
+inline bool
+IsLightWithoutShift(int16 id)
+{
+ return id == MI_TRAFFICLIGHTS ||
+ id == MI_SINGLESTREETLIGHTS1 ||
+ id == MI_SINGLESTREETLIGHTS2 ||
+ id == MI_SINGLESTREETLIGHTS3 ||
+ id == MI_DOUBLESTREETLIGHTS;
+}
+
+inline bool
+IsLightWithPreRenderEffects(int16 id)
+{
+ return IsTrafficLight(id) ||
+ id == MI_SINGLESTREETLIGHTS1 ||
+ id == MI_SINGLESTREETLIGHTS2 ||
+ id == MI_SINGLESTREETLIGHTS3 ||
+ id == MI_DOUBLESTREETLIGHTS;
+}
+
+inline bool
+IsLightThatNeedsRepositioning(int16 id)
+{
+ return id == MI_SINGLESTREETLIGHTS1 ||
id == MI_SINGLESTREETLIGHTS2 ||
id == MI_SINGLESTREETLIGHTS3 ||
id == MI_TRAFFICLIGHTS_MIAMI ||