diff options
author | sfan5 <sfan5@live.de> | 2021-01-30 11:54:56 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-01-31 20:38:12 +0100 |
commit | fd1c1a755eaa2251c99680df3c72ca8886ca0a4e (patch) | |
tree | 8752c5e92f37084eb0e5c41ccb40dd4b9b30c0f9 /src | |
parent | 112a6adb10d3a5a2e55012a36580607d12ce9758 (diff) | |
download | minetest-fd1c1a755eaa2251c99680df3c72ca8886ca0a4e.tar.gz minetest-fd1c1a755eaa2251c99680df3c72ca8886ca0a4e.tar.bz2 minetest-fd1c1a755eaa2251c99680df3c72ca8886ca0a4e.zip |
Readd Client::sendPlayerPos optimization (was part of 81c7f0a)
This reverts commit b49dfa92ce3ef37b1b73698906c64191fb47e226.
Diffstat (limited to 'src')
-rw-r--r-- | src/client/client.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/client.cpp b/src/client/client.cpp index 6577c287d..61888b913 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -1275,9 +1275,8 @@ void Client::sendPlayerPos() // Save bandwidth by only updating position when // player is not dead and something changed - // FIXME: This part causes breakages in mods like 3d_armor, and has been commented for now - // if (m_activeobjects_received && player->isDead()) - // return; + if (m_activeobjects_received && player->isDead()) + return; if ( player->last_position == player->getPosition() && |