diff options
author | aap <aap@papnet.eu> | 2020-05-20 19:55:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 19:55:05 +0200 |
commit | 71b9b2ecf97bdd7d6813a11ca2df2dafba89f4b3 (patch) | |
tree | bcdf3151eaab37430d9aeac886a55acbe7f65ccd /src/control/TrafficLights.cpp | |
parent | Merge remote-tracking branch 'origin/master' into miami (diff) | |
parent | Fixes for melees and various things (diff) | |
download | re3-71b9b2ecf97bdd7d6813a11ca2df2dafba89f4b3.tar re3-71b9b2ecf97bdd7d6813a11ca2df2dafba89f4b3.tar.gz re3-71b9b2ecf97bdd7d6813a11ca2df2dafba89f4b3.tar.bz2 re3-71b9b2ecf97bdd7d6813a11ca2df2dafba89f4b3.tar.lz re3-71b9b2ecf97bdd7d6813a11ca2df2dafba89f4b3.tar.xz re3-71b9b2ecf97bdd7d6813a11ca2df2dafba89f4b3.tar.zst re3-71b9b2ecf97bdd7d6813a11ca2df2dafba89f4b3.zip |
Diffstat (limited to 'src/control/TrafficLights.cpp')
-rw-r--r-- | src/control/TrafficLights.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/control/TrafficLights.cpp b/src/control/TrafficLights.cpp index b1816936..8487847f 100644 --- a/src/control/TrafficLights.cpp +++ b/src/control/TrafficLights.cpp @@ -145,10 +145,7 @@ 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 && - light->GetModelIndex() != MI_TRAFFICLIGHTS_VERTICAL && - light->GetModelIndex() != MI_TRAFFICLIGHTS_MIAMI && - light->GetModelIndex() != MI_TRAFFICLIGHTS_TWOVERTICAL) + if (!IsTrafficLight(light->GetModelIndex())) continue; // Check cars |