From fd1c1a755eaa2251c99680df3c72ca8886ca0a4e Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sat, 30 Jan 2021 11:54:56 +0100 Subject: Readd Client::sendPlayerPos optimization (was part of 81c7f0a) This reverts commit b49dfa92ce3ef37b1b73698906c64191fb47e226. --- src/client/client.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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() && -- cgit v1.2.3