diff --git a/src/game.cpp b/src/game.cpp index b674fd83..fe3e838b 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);