diff options
author | aap <aap@papnet.eu> | 2020-04-11 19:33:39 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-04-11 19:33:39 +0200 |
commit | 3c999a1eb85e2b36cace2d4158f4777811174731 (patch) | |
tree | e41a77f38cec9d043e69467f5ae271189e38696f /src/control | |
parent | fuck you git, i fixed this already (diff) | |
download | re3-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 |
Diffstat (limited to 'src/control')
-rw-r--r-- | src/control/TrafficLights.cpp | 4 |
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; |