summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorRogier-5 <rogier777@gmail.com>2016-12-11 19:49:49 +0100
committerest31 <est31@users.noreply.github.com>2016-12-11 19:49:49 +0100
commit60772071e9b63c24a939078c706b713f46bf3279 (patch)
treebf4fd991f240a81a8f3fbc99e382b757ee4ec5f1 /src/network
parent2886f0ccb06af04927d4cd661eaf82a253426c05 (diff)
downloadminetest-60772071e9b63c24a939078c706b713f46bf3279.tar.gz
minetest-60772071e9b63c24a939078c706b713f46bf3279.tar.bz2
minetest-60772071e9b63c24a939078c706b713f46bf3279.zip
Fix computation of viewing range (in blocks) sent to server (#4882)
Fixes #4878 Also remove an artificial viewing range reduction that (presumably) was added to compensate for miscomputed viewing ranges, and that doesn't seem to be needed any more (thanks to lhofhansl).
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkprotocol.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkprotocol.h b/src/network/networkprotocol.h
index c9919e1c4..018b392b6 100644
--- a/src/network/networkprotocol.h
+++ b/src/network/networkprotocol.h
@@ -652,7 +652,7 @@ enum ToServerCommand
[2+12+12+4] s32 yaw*100
[2+12+12+4+4] u32 keyPressed
[2+12+12+4+4+1] u8 fov*80
- [2+12+12+4+4+4+1] u8 wanted_range / MAP_BLOCKSIZE
+ [2+12+12+4+4+4+1] u8 ceil(wanted_range / MAP_BLOCKSIZE)
*/
TOSERVER_GOTBLOCKS = 0x24,