Fix rebase bug, make render loop use cache setting
authorgregorycu <gregory.currie@gmail.com>
Mon, 2 Feb 2015 12:54:32 +0000 (23:54 +1100)
committerCraig Robbins <kde.psych@gmail.com>
Sat, 7 Feb 2015 12:23:36 +0000 (22:23 +1000)
src/game.cpp

index b674fd83b281bffd382db35562b95490321f1691..fe3e838b244854489e4316fd1265ba08638ac69f 100644 (file)
@@ -859,7 +859,7 @@ public:
                // Fog distance
                float fog_distance = 10000 * BS;
 
-               if (g_settings->getBool("enable_fog") && !*m_force_fog_off)
+               if (m_fogEnabled && !*m_force_fog_off)
                        fog_distance = *m_fog_range;
 
                services->setPixelShaderConstant("fogDistance", &fog_distance, 1);