aboutsummaryrefslogtreecommitdiff
path: root/src/client/content_cso.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/content_cso.cpp')
-rw-r--r--src/client/content_cso.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/content_cso.cpp b/src/client/content_cso.cpp
index f9641afbe..50ae4e413 100644
--- a/src/client/content_cso.cpp
+++ b/src/client/content_cso.cpp
@@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "clientenvironment.h"
#include "client.h"
#include "map.h"
+#include "nodedef.h"
class SmokePuffCSO: public ClientSimpleObject
{
@@ -50,7 +51,7 @@ public:
bool pos_ok;
MapNode n = env->getMap().getNode(floatToInt(pos, BS), &pos_ok);
light = pos_ok ? decode_light(n.getLightBlend(env->getDayNightRatio(),
- env->getGameDef()->ndef()))
+ env->getGameDef()->ndef()->getLightingFlags(n)))
: 64;
video::SColor color(255,light,light,light);
m_spritenode->setColor(color);