diff options
author | MirceaKitsune <sonichedgehog_hyperblast00@yahoo.com> | 2012-12-02 14:59:08 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-12-02 20:22:02 +0200 |
commit | 15b86a6b9b4d32cc1213ebf8e1a2c12f56a83c16 (patch) | |
tree | dddc025113b03cda3ce0bb976c4a333956a47966 /src/localplayer.cpp | |
parent | eeb0900291583c6d81656fbbd977fa74b1a733b6 (diff) | |
download | minetest-15b86a6b9b4d32cc1213ebf8e1a2c12f56a83c16.tar.gz minetest-15b86a6b9b4d32cc1213ebf8e1a2c12f56a83c16.tar.bz2 minetest-15b86a6b9b4d32cc1213ebf8e1a2c12f56a83c16.zip |
Don't send player position from client to server if the player hasn't moved
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 17c4cdeb9..14d1ac60e 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -36,6 +36,11 @@ LocalPlayer::LocalPlayer(IGameDef *gamedef): Player(gamedef), isAttached(false), overridePosition(v3f(0,0,0)), + last_position(v3f(0,0,0)), + last_speed(v3f(0,0,0)), + last_pitch(0), + last_yaw(0), + last_keyPressed(0), m_sneak_node(32767,32767,32767), m_sneak_node_exists(false), m_old_node_below(32767,32767,32767), |