mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Don't send player position from client to server if the player hasn't moved
This commit is contained in:
parent
eeb0900291
commit
15b86a6b9b
4 changed files with 30 additions and 3 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue