From a0535d286bc2437e4029b76b371343bc4e21d18b Mon Sep 17 00:00:00 2001 From: gregorycu Date: Mon, 2 Feb 2015 23:54:32 +1100 Subject: Fix rebase bug, make render loop use cache setting --- src/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game.cpp b/src/game.cpp index b674fd83b..fe3e838b2 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -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); -- cgit v1.2.3