summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-07-26 03:40:23 +0200
committerSergeanur <s.anureev@yandex.ua>2021-07-26 03:40:23 +0200
commited9c911a0e0c0120e54166948d60c9efb01c1939 (patch)
tree535d71ca9bd747e4f6c9212ae881d57a6d9852a3
parentSmall fix (diff)
downloadre3-ed9c911a0e0c0120e54166948d60c9efb01c1939.tar
re3-ed9c911a0e0c0120e54166948d60c9efb01c1939.tar.gz
re3-ed9c911a0e0c0120e54166948d60c9efb01c1939.tar.bz2
re3-ed9c911a0e0c0120e54166948d60c9efb01c1939.tar.lz
re3-ed9c911a0e0c0120e54166948d60c9efb01c1939.tar.xz
re3-ed9c911a0e0c0120e54166948d60c9efb01c1939.tar.zst
re3-ed9c911a0e0c0120e54166948d60c9efb01c1939.zip
-rw-r--r--src/control/TrafficLights.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/TrafficLights.cpp b/src/control/TrafficLights.cpp
index df0761ab..e484d3be 100644
--- a/src/control/TrafficLights.cpp
+++ b/src/control/TrafficLights.cpp
@@ -277,7 +277,7 @@ CTrafficLights::DisplayActualLight(CEntity *ent)
12.0f, 1.0f, 40.0f, false, 0.0f);
if (id >= 0) {
- if (DotProduct(TheCamera.GetForward(), ent->GetForward()) < 0.0f)
+ if (DotProduct(TheCamera.GetForward(), ent->GetForward()) > 0.0f)
CCoronas::RegisterCorona((uintptr)ent + id,
r * CTimeCycle::GetSpriteBrightness() * 0.7f,
g * CTimeCycle::GetSpriteBrightness() * 0.7f,