Revert Client::sendPlayerPos optimization (part of 81c7f0a) (#9025)
authorANAND <ClobberXD@gmail.com>
Tue, 8 Oct 2019 18:36:56 +0000 (00:06 +0530)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Tue, 8 Oct 2019 18:36:56 +0000 (20:36 +0200)
Comment out the if statement that prevents sending TOSERVER_PLAYERPOS if the player is dead.

src/client/client.cpp

index 6bb118695fc87d7a43f7a864c64cad605865fa06..caa3cc78cfbd5abdc9bd254df3b498e0a532e334 100644 (file)
@@ -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() &&