diff options
Diffstat (limited to 'src/localplayer.h')
-rw-r--r-- | src/localplayer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/localplayer.h b/src/localplayer.h index 9d1829db8..c9d010d7c 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -44,6 +44,14 @@ public: void applyControl(float dtime); v3s16 getStandingNodePos(); + + // Used to check if anything changed and prevent sending packets if not + v3f last_position; + v3f last_speed; + float last_pitch; + float last_yaw; + unsigned int last_keyPressed; + private: // This is used for determining the sneaking range v3s16 m_sneak_node; |