]> git.lizzy.rs Git - minetest.git/blobdiff - src/camera.cpp
fix screen flickering black when rendering to texture
[minetest.git] / src / camera.cpp
index 0c391f10dc880daccac7fc2549720c6923ac05b1..1b9a8c763e6518e176daeeec787b076f28476c76 100644 (file)
@@ -189,7 +189,7 @@ void Camera::step(f32 dtime)
 
        if (m_digging_button != -1)
        {
-               f32 offset = dtime * 4.5;
+               f32 offset = dtime * 3.5;
                float m_digging_anim_was = m_digging_anim;
                m_digging_anim += offset;
                if (m_digging_anim >= 1)
@@ -544,7 +544,7 @@ void Camera::wield(const ItemStack &item)
 void Camera::drawWieldedTool()
 {
        // Set vertex colors of wield mesh according to light level
-       u8 li = decode_light(m_wieldlight);
+       u8 li = m_wieldlight;
        video::SColor color(255,li,li,li);
        setMeshColor(m_wieldnode->getMesh(), color);