1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix and improve view range tuner

This commit is contained in:
Perttu Ahola 2013-08-03 18:46:18 +03:00
parent 45589fae58
commit c50c9a10f1
5 changed files with 43 additions and 30 deletions

View file

@ -33,7 +33,8 @@ struct MapDrawControl
wanted_max_blocks(0),
wanted_min_range(0),
blocks_drawn(0),
blocks_would_have_drawn(0)
blocks_would_have_drawn(0),
farthest_drawn(0)
{
}
// Overrides limits by drawing everything
@ -48,6 +49,8 @@ struct MapDrawControl
u32 blocks_drawn;
// Number of blocks that would have been drawn in wanted_range
u32 blocks_would_have_drawn;
// Distance to the farthest block drawn
float farthest_drawn;
};
class Client;