Skip to content
Permalink
Browse files

Revert "Don't send position update packet if player is dead"

This reverts commit fb6f1fd.
  • Loading branch information...
sfan5 committed Aug 21, 2019
1 parent b52a790 commit ba8fb774c1abe77c404b578929c6d2b657bf1436
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/client/client.cpp
@@ -1244,12 +1244,8 @@ void Client::sendPlayerPos()
u8 camera_fov = map.getCameraFov();
u8 wanted_range = map.getControl().wanted_range;

// Save bandwidth by only updating position when
// player is not dead and something changed
if (myplayer->isDead())
return;

if (myplayer->last_position == myplayer->getPosition() &&
// Save bandwidth by only updating position when something changed
if(myplayer->last_position == myplayer->getPosition() &&
myplayer->last_speed == myplayer->getSpeed() &&
myplayer->last_pitch == myplayer->getPitch() &&
myplayer->last_yaw == myplayer->getYaw() &&

0 comments on commit ba8fb77

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