mirror of
https://github.com/halpz/re3.git
synced 2025-02-02 08:11:00 +00:00
Fix traffic light corona facing wrong side
This commit is contained in:
parent
a510a03b8a
commit
ed9c911a0e
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue