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

This reverts commit fb6f1fdcbe.
This commit is contained in:
sfan5 2019-08-21 15:30:52 +02:00
parent b52a79076d
commit ba8fb774c1
1 changed files with 2 additions and 6 deletions

View File

@ -1244,12 +1244,8 @@ void Client::sendPlayerPos()
u8 camera_fov = map.getCameraFov(); u8 camera_fov = map.getCameraFov();
u8 wanted_range = map.getControl().wanted_range; u8 wanted_range = map.getControl().wanted_range;
// Save bandwidth by only updating position when // Save bandwidth by only updating position when something changed
// player is not dead and something changed if(myplayer->last_position == myplayer->getPosition() &&
if (myplayer->isDead())
return;
if (myplayer->last_position == myplayer->getPosition() &&
myplayer->last_speed == myplayer->getSpeed() && myplayer->last_speed == myplayer->getSpeed() &&
myplayer->last_pitch == myplayer->getPitch() && myplayer->last_pitch == myplayer->getPitch() &&
myplayer->last_yaw == myplayer->getYaw() && myplayer->last_yaw == myplayer->getYaw() &&