Skip to content

Commit

Permalink
Revert Client::sendPlayerPos optimization (part of 81c7f0a) (#9025)
Browse files Browse the repository at this point in the history
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 b49dfa9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/client/client.cpp
Expand Up @@ -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() &&
Expand Down

0 comments on commit b49dfa9

Please sign in to comment.