Fix incorrect distance computation for visible blocks (#4765)
authorRogier-5 <rogier777@gmail.com>
Fri, 11 Nov 2016 08:30:37 +0000 (09:30 +0100)
committerZeno- <kde.psych@gmail.com>
Fri, 11 Nov 2016 08:30:37 +0000 (18:30 +1000)
commitb98f98b367f2c55d5a0bff4bafaaa183b3746403
treec76817eb29ffc8ec633888a834cfeeef5f890c84
parent7e17eaedb2e697581ace1bd038781f908e19a985
Fix incorrect distance computation for visible blocks (#4765)

The client would not compute the distance from the camera to
to a mapblock correctly. The result was that blocks that were in
view (i.e. not beyond the fog limit) would not be rendered.

With the improved distance computation, a range adjustment that
existed in clientiface.cpp is no longer required.
src/clientiface.cpp
src/util/numeric.cpp