Skip to content
Permalink
Browse files

Revert Client::sendPlayerPos optimization (part of 81c7f0a) (#9025)

Comment out the if statement that prevents sending TOSERVER_PLAYERPOS if the player is dead.
  • Loading branch information
ClobberXD authored and SmallJoker committed Oct 8, 2019
1 parent 825579b commit b49dfa92ce3ef37b1b73698906c64191fb47e226
Showing with 3 additions and 2 deletions.
  1. +3 −2 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() &&

0 comments on commit b49dfa9

Please sign in to comment.
You can’t perform that action at this time.