]> git.lizzy.rs Git - minetest.git/blobdiff - src/localplayer.h
Snake case for screen options in minetest.conf (#5792)
[minetest.git] / src / localplayer.h
index d8d2f310b9c9bc38e41cc648cb82000bc7a9cda4..9cbefae2342eca71f940af1df138ea57ff5e5aae 100644 (file)
@@ -47,7 +47,6 @@ class LocalPlayer : public Player
        ClientActiveObject *parent;
 
        u16 hp;
-       bool got_teleported;
        bool isAttached;
        bool touching_ground;
        // This oscillates so that the player jumps a bit above the surface
@@ -92,6 +91,8 @@ class LocalPlayer : public Player
 
        float camera_impact;
 
+       bool makes_footstep_sound;
+
        int last_animation;
        float last_animation_speed;
 
@@ -126,7 +127,11 @@ class LocalPlayer : public Player
 
        f32 getPitch() const { return m_pitch; }
 
-       void setPosition(const v3f &position) { m_position = position; }
+       inline void setPosition(const v3f &position)
+       {
+               m_position = position;
+               m_sneak_node_exists = false;
+       }
 
        v3f getPosition() const { return m_position; }
        v3f getEyePosition() const { return m_position + getEyeOffset(); }