summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorANAND <ClobberXD@gmail.com>2019-10-09 00:06:56 +0530
committerSmallJoker <SmallJoker@users.noreply.github.com>2019-10-08 20:36:56 +0200
commitb49dfa92ce3ef37b1b73698906c64191fb47e226 (patch)
treee41684c783c870ad4ba850f3831a85c78e00c118 /src
parent825579b43d6454cc33607ab8eff4e896b003b801 (diff)
downloadminetest-b49dfa92ce3ef37b1b73698906c64191fb47e226.tar.gz
minetest-b49dfa92ce3ef37b1b73698906c64191fb47e226.tar.bz2
minetest-b49dfa92ce3ef37b1b73698906c64191fb47e226.zip
Revert Client::sendPlayerPos optimization (part of 81c7f0a) (#9025)
Comment out the if statement that prevents sending TOSERVER_PLAYERPOS if the player is dead.
Diffstat (limited to 'src')
-rw-r--r--src/client/client.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/client.cpp b/src/client/client.cpp
index 6bb118695..caa3cc78c 100644
--- a/src/client/client.cpp
+++ b/src/client/client.cpp
@@ -1245,8 +1245,9 @@ void Client::sendPlayerPos()
// Save bandwidth by only updating position when
// player is not dead and something changed
- if (m_activeobjects_received && player->isDead())
- return;
+ // FIXME: This part causes breakages in mods like 3d_armor, and has been commented for now
+ // if (m_activeobjects_received && player->isDead())
+ // return;
if (
player->last_position == player->getPosition() &&