summaryrefslogtreecommitdiff
path: root/src/itemdef.cpp
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-07-07 15:53:40 -0400
committerkwolekr <kwolekr@minetest.net>2013-07-07 19:49:52 -0400
commit88d43af276a4ed85500863b427bf370d8eca2095 (patch)
treed02fe1196639c48ad14bc4cfc6c5d621015488bf /src/itemdef.cpp
parent7e73b7cae9faf203e369dc5cf2b85cff6e6efbad (diff)
downloadminetest-88d43af276a4ed85500863b427bf370d8eca2095.tar.gz
minetest-88d43af276a4ed85500863b427bf370d8eca2095.tar.bz2
minetest-88d43af276a4ed85500863b427bf370d8eca2095.zip
Fix many formspec menu bugs
Diffstat (limited to 'src/itemdef.cpp')
-rw-r--r--src/itemdef.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/itemdef.cpp b/src/itemdef.cpp
index 238ff58c0..f692ccf55 100644
--- a/src/itemdef.cpp
+++ b/src/itemdef.cpp
@@ -389,7 +389,7 @@ public:
scene::IMesh *node_mesh = mapblock_mesh.getMesh();
assert(node_mesh);
video::SColor c(255, 255, 255, 255);
- if(g_settings->getS32("enable_shaders") != 0)
+ if(g_settings->getBool("enable_shaders"))
c = MapBlock_LightColor(255, 0xffff, decode_light(f.light_source));
setMeshColor(node_mesh, c);