diff options
author | erorcun <erayorcunus@gmail.com> | 2020-05-22 14:24:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-22 14:24:08 +0200 |
commit | 4fd1771f7179bb29ce11fc8910ec527b5f74d2b0 (patch) | |
tree | b05a0255a5742a13e90a3a8f735190e4dd7f5706 /src/rw/Lights.cpp | |
parent | Merge pull request #573 from Nick007J/miami (diff) | |
parent | VC CMenuManager struct, ctor etc. (diff) | |
download | re3-4fd1771f7179bb29ce11fc8910ec527b5f74d2b0.tar re3-4fd1771f7179bb29ce11fc8910ec527b5f74d2b0.tar.gz re3-4fd1771f7179bb29ce11fc8910ec527b5f74d2b0.tar.bz2 re3-4fd1771f7179bb29ce11fc8910ec527b5f74d2b0.tar.lz re3-4fd1771f7179bb29ce11fc8910ec527b5f74d2b0.tar.xz re3-4fd1771f7179bb29ce11fc8910ec527b5f74d2b0.tar.zst re3-4fd1771f7179bb29ce11fc8910ec527b5f74d2b0.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); |