summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-11 19:33:39 +0200
committeraap <aap@papnet.eu>2020-04-11 19:33:39 +0200
commit3c999a1eb85e2b36cace2d4158f4777811174731 (patch)
treee41a77f38cec9d043e69467f5ae271189e38696f /src
parentdf872a26b091b5a2568227ee3bc32fa07c7d337c (diff)
fixed traffic light position
Diffstat (limited to 'src')
-rw-r--r--src/control/TrafficLights.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/TrafficLights.cpp b/src/control/TrafficLights.cpp
index e4416965..ab9cd92d 100644
--- a/src/control/TrafficLights.cpp
+++ b/src/control/TrafficLights.cpp
@@ -40,9 +40,9 @@ CTrafficLights::DisplayActualLight(CEntity *ent)
for(i = 1; i < 6; i++){
assert(mi->Get2dEffect(i));
yMin = min(yMin, mi->Get2dEffect(i)->pos.y);
- yMax = min(yMax, mi->Get2dEffect(i)->pos.y);
+ yMax = max(yMax, mi->Get2dEffect(i)->pos.y);
zMin = min(zMin, mi->Get2dEffect(i)->pos.z);
- zMax = min(zMax, mi->Get2dEffect(i)->pos.z);
+ zMax = max(zMax, mi->Get2dEffect(i)->pos.z);
}
CVector pos1, pos2;