diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-11 20:02:04 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-11 20:02:04 +0200 |
commit | fbb1bc5b0d1a14f0b29d7c8739c3b7d105546d50 (patch) | |
tree | d9fd307ecb19dbea1db29a0b53cd5c46a6a63120 /src/control | |
parent | fixed malloc/new (diff) | |
parent | Merge branch 'master' of github.com:gtamodding/re3 (diff) | |
download | re3-fbb1bc5b0d1a14f0b29d7c8739c3b7d105546d50.tar re3-fbb1bc5b0d1a14f0b29d7c8739c3b7d105546d50.tar.gz re3-fbb1bc5b0d1a14f0b29d7c8739c3b7d105546d50.tar.bz2 re3-fbb1bc5b0d1a14f0b29d7c8739c3b7d105546d50.tar.lz re3-fbb1bc5b0d1a14f0b29d7c8739c3b7d105546d50.tar.xz re3-fbb1bc5b0d1a14f0b29d7c8739c3b7d105546d50.tar.zst re3-fbb1bc5b0d1a14f0b29d7c8739c3b7d105546d50.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; |