diff options
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r-- | src/nodedef.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp index ba1ca2c65..e392f477a 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -787,6 +787,7 @@ void CNodeDefManager::updateTextures(IGameDef *gamedef, bool enable_bumpmapping = g_settings->getBool("enable_bumpmapping"); bool enable_parallax_occlusion = g_settings->getBool("enable_parallax_occlusion"); bool enable_mesh_cache = g_settings->getBool("enable_mesh_cache"); + bool enable_minimap = g_settings->getBool("enable_minimap"); bool use_normal_texture = enable_shaders && (enable_bumpmapping || enable_parallax_occlusion); @@ -797,7 +798,7 @@ void CNodeDefManager::updateTextures(IGameDef *gamedef, ContentFeatures *f = &m_content_features[i]; // minimap pixel color - the average color of a texture - if (f->tiledef[0].name != "") + if (enable_minimap && f->tiledef[0].name != "") f->minimap_color = tsrc->getTextureAverageColor(f->tiledef[0].name); // Figure out the actual tiles to use |