1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

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).
This commit is contained in:
Rogier-5 2016-12-11 19:49:49 +01:00 committed by est31
parent 2886f0ccb0
commit 60772071e9
3 changed files with 5 additions and 4 deletions

View file

@ -4214,7 +4214,7 @@ void Game::updateFrame(ProfilerGraph *graph, RunStats *stats,
if (draw_control->range_all) {
runData->fog_range = 100000 * BS;
} else {
runData->fog_range = 0.9 * draw_control->wanted_range * BS;
runData->fog_range = draw_control->wanted_range * BS;
}
/*