1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix wielditem entity drawtype brightness control

This commit is contained in:
Perttu Ahola 2012-09-09 13:26:52 +03:00
parent ac628c9b0a
commit c4f400acd0
2 changed files with 22 additions and 11 deletions

View file

@ -2129,6 +2129,7 @@ void ClientEnvironment::step(float dtime)
Step active objects and update lighting of them
*/
bool update_lighting = m_active_object_light_update_interval.step(dtime, 0.21);
for(core::map<u16, ClientActiveObject*>::Iterator
i = m_active_objects.getIterator();
i.atEnd()==false; i++)
@ -2137,7 +2138,7 @@ void ClientEnvironment::step(float dtime)
// Step object
obj->step(dtime, this);
if(m_active_object_light_update_interval.step(dtime, 0.21))
if(update_lighting)
{
// Update lighting
u8 light = 0;