summaryrefslogtreecommitdiffstats
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
parentfuck you git, i fixed this already (diff)
downloadre3-3c999a1eb85e2b36cace2d4158f4777811174731.tar
re3-3c999a1eb85e2b36cace2d4158f4777811174731.tar.gz
re3-3c999a1eb85e2b36cace2d4158f4777811174731.tar.bz2
re3-3c999a1eb85e2b36cace2d4158f4777811174731.tar.lz
re3-3c999a1eb85e2b36cace2d4158f4777811174731.tar.xz
re3-3c999a1eb85e2b36cace2d4158f4777811174731.tar.zst
re3-3c999a1eb85e2b36cace2d4158f4777811174731.zip
-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;