aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgregorycu <gregory.currie@gmail.com>2015-02-02 23:54:32 +1100
committerCraig Robbins <kde.psych@gmail.com>2015-02-07 22:23:36 +1000
commita0535d286bc2437e4029b76b371343bc4e21d18b (patch)
tree62e66c05a3521d0011f2fefe818e00ea17c24a13
parent0904884ad47b5df67a5a26360d3bb35de1e76e5c (diff)
downloadminetest-a0535d286bc2437e4029b76b371343bc4e21d18b.tar.gz
minetest-a0535d286bc2437e4029b76b371343bc4e21d18b.tar.bz2
minetest-a0535d286bc2437e4029b76b371343bc4e21d18b.zip
Fix rebase bug, make render loop use cache setting
-rw-r--r--src/game.cpp2
1 files changed, 1 insertions, 1 deletions
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);