summaryrefslogtreecommitdiffstats
path: root/src/control/TrafficLights.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-20 12:41:12 +0200
committerGitHub <noreply@github.com>2020-05-20 12:41:12 +0200
commitfd4cd3e8f1599a62f70f4f2aa0931f7a82cf0f1b (patch)
treeb32e29a80a2bb4c4692ed6dccef9b8c5e7f81185 /src/control/TrafficLights.cpp
parentMerge pull request #568 from Nick007J/miami (diff)
parentCEntity and friends (diff)
downloadre3-fd4cd3e8f1599a62f70f4f2aa0931f7a82cf0f1b.tar
re3-fd4cd3e8f1599a62f70f4f2aa0931f7a82cf0f1b.tar.gz
re3-fd4cd3e8f1599a62f70f4f2aa0931f7a82cf0f1b.tar.bz2
re3-fd4cd3e8f1599a62f70f4f2aa0931f7a82cf0f1b.tar.lz
re3-fd4cd3e8f1599a62f70f4f2aa0931f7a82cf0f1b.tar.xz
re3-fd4cd3e8f1599a62f70f4f2aa0931f7a82cf0f1b.tar.zst
re3-fd4cd3e8f1599a62f70f4f2aa0931f7a82cf0f1b.zip
Diffstat (limited to 'src/control/TrafficLights.cpp')
-rw-r--r--src/control/TrafficLights.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/control/TrafficLights.cpp b/src/control/TrafficLights.cpp
index 500d6af2..b1816936 100644
--- a/src/control/TrafficLights.cpp
+++ b/src/control/TrafficLights.cpp
@@ -145,7 +145,10 @@ CTrafficLights::ScanForLightsOnMap(void)
CPtrList &list = CWorld::GetSector(x, y)->m_lists[ENTITYLIST_DUMMIES];
for(node = list.first; node; node = node->next){
CEntity *light = (CEntity*)node->item;
- if(light->GetModelIndex() != MI_TRAFFICLIGHTS)
+ if(light->GetModelIndex() != MI_TRAFFICLIGHTS &&
+ light->GetModelIndex() != MI_TRAFFICLIGHTS_VERTICAL &&
+ light->GetModelIndex() != MI_TRAFFICLIGHTS_MIAMI &&
+ light->GetModelIndex() != MI_TRAFFICLIGHTS_TWOVERTICAL)
continue;
// Check cars