diff options
author | sfan5 <sfan5@live.de> | 2019-08-21 15:30:52 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-08-21 15:30:52 +0200 |
commit | ba8fb774c1abe77c404b578929c6d2b657bf1436 (patch) | |
tree | 3430a5baeb60c7b3e91b1ec2529d6a6030dddf9d /src | |
parent | b52a79076d2e209686fca678fc574fab71b67359 (diff) | |
download | minetest-ba8fb774c1abe77c404b578929c6d2b657bf1436.tar.gz minetest-ba8fb774c1abe77c404b578929c6d2b657bf1436.tar.bz2 minetest-ba8fb774c1abe77c404b578929c6d2b657bf1436.zip |
Revert "Don't send position update packet if player is dead"
This reverts commit fb6f1fdcbe3ee2321cc33eb00f2c6da86744d00a.
Diffstat (limited to 'src')
-rw-r--r-- | src/client/client.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/client/client.cpp b/src/client/client.cpp index 36d7fd251..e78b9bb8a 100644 --- a/src/client/client.cpp +++ b/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() && |