From b160f8dfe7e3bf8176e3f9f64dc2d9a9868d7fce Mon Sep 17 00:00:00 2001 From: RealBadAngel Date: Sun, 28 Jun 2015 12:17:36 +0200 Subject: Minimap update --- src/nodedef.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/nodedef.cpp') 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 -- cgit v1.2.3