diff options
author | Lars Hofhansl <larsh@apache.org> | 2017-11-15 21:58:23 -0800 |
---|---|---|
committer | Lars Hofhansl <larsh@apache.org> | 2017-11-15 22:03:58 -0800 |
commit | ae9b1aa1774aedca8f452514d9462c281e36773a (patch) | |
tree | d3d4a8d9b8f5b4209bc10548562dbb88906220a5 /src/util/numeric.h | |
parent | ee6bb5a315cc13aa51cda509d02780c21333af44 (diff) | |
download | minetest-ae9b1aa1774aedca8f452514d9462c281e36773a.tar.gz minetest-ae9b1aa1774aedca8f452514d9462c281e36773a.tar.bz2 minetest-ae9b1aa1774aedca8f452514d9462c281e36773a.zip |
Allow zoom to actually show more data.
This allows the client to retrieve blocks at a greater distance
from the server, thus allowing for a real zoom.
Diffstat (limited to 'src/util/numeric.h')
-rw-r--r-- | src/util/numeric.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/numeric.h b/src/util/numeric.h index 347e7a49e..8ee2d585c 100644 --- a/src/util/numeric.h +++ b/src/util/numeric.h @@ -232,6 +232,8 @@ u64 murmur_hash_64_ua(const void *key, int len, unsigned int seed); bool isBlockInSight(v3s16 blockpos_b, v3f camera_pos, v3f camera_dir, f32 camera_fov, f32 range, f32 *distance_ptr=NULL); +s16 adjustDist(s16 dist, float zoom_fov); + /* Returns nearest 32-bit integer for given floating point number. <cmath> and <math.h> in VC++ don't provide round(). |