From 98fa00db12b4658f6bce61f0a2c03c69b963f8f2 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 10 Aug 2011 07:38:51 +0200 Subject: Introduce Player::getLightPosition This is currently only used in the lighting update for remote players in client. --- src/environment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/environment.cpp') diff --git a/src/environment.cpp b/src/environment.cpp index 680d209fc..e293eb511 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -1653,7 +1653,7 @@ void ClientEnvironment::step(float dtime) u8 light = LIGHT_MAX; try{ // Get node at head - v3s16 p = floatToInt(playerpos + v3f(0,BS+BS/2,0), BS); + v3s16 p = player->getLightPosition(); MapNode n = m_map->getNode(p); light = n.getLightBlend(getDayNightRatio()); } -- cgit v1.2.3