diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-22 22:35:19 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-22 22:35:19 +0200 |
commit | 6e51ed3c53fc3a4acb79f3545d3c4984dcc02b2c (patch) | |
tree | 25d4899924a591e4dafd44caf488dd9bf62db95e /src/rw/Lights.cpp | |
parent | Merge remote-tracking branch 'upstream/miami' into miami (diff) | |
parent | Merge pull request #579 from Xinerki/miami (diff) | |
download | re3-6e51ed3c53fc3a4acb79f3545d3c4984dcc02b2c.tar re3-6e51ed3c53fc3a4acb79f3545d3c4984dcc02b2c.tar.gz re3-6e51ed3c53fc3a4acb79f3545d3c4984dcc02b2c.tar.bz2 re3-6e51ed3c53fc3a4acb79f3545d3c4984dcc02b2c.tar.lz re3-6e51ed3c53fc3a4acb79f3545d3c4984dcc02b2c.tar.xz re3-6e51ed3c53fc3a4acb79f3545d3c4984dcc02b2c.tar.zst re3-6e51ed3c53fc3a4acb79f3545d3c4984dcc02b2c.zip |
Diffstat (limited to 'src/rw/Lights.cpp')
-rw-r--r-- | src/rw/Lights.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rw/Lights.cpp b/src/rw/Lights.cpp index 8f7f92b6..cd45b81f 100644 --- a/src/rw/Lights.cpp +++ b/src/rw/Lights.cpp @@ -86,9 +86,9 @@ SetLightsWithTimeOfDayColour(RpWorld *) RwFrameTransform(RpLightGetFrame(pDirect), &mat, rwCOMBINEREPLACE); } - if(CMenuManager::m_PrefsBrightness > 256){ - float f1 = 2.0f * (CMenuManager::m_PrefsBrightness/256.0f - 1.0f) * 0.6f + 1.0f; - float f2 = 3.0f * (CMenuManager::m_PrefsBrightness/256.0f - 1.0f) * 0.6f + 1.0f; + if(FrontEndMenuManager.m_PrefsBrightness > 256){ + float f1 = 2.0f * (FrontEndMenuManager.m_PrefsBrightness/256.0f - 1.0f) * 0.6f + 1.0f; + float f2 = 3.0f * (FrontEndMenuManager.m_PrefsBrightness/256.0f - 1.0f) * 0.6f + 1.0f; AmbientLightColourForFrame.red = Min(1.0f, AmbientLightColourForFrame.red * f2); AmbientLightColourForFrame.green = Min(1.0f, AmbientLightColourForFrame.green * f2); |