From ed9c911a0e0c0120e54166948d60c9efb01c1939 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Mon, 26 Jul 2021 04:40:23 +0300 Subject: Fix traffic light corona facing wrong side --- src/control/TrafficLights.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3