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

+ farmesh config options

This commit is contained in:
Jiří Procházka 2011-07-11 14:29:59 +02:00 committed by Nils Dagsson Moskopp
parent cdd2ebc519
commit 692bd66011
4 changed files with 12 additions and 15 deletions

View file

@ -1874,15 +1874,9 @@ void the_game(
*/
if(farmesh)
{
farmesh_range = draw_control.wanted_range * 10;
if(draw_control.range_all && farmesh_range < 500)
farmesh_range = 500;
if(farmesh_range > 1000)
farmesh_range = 1000;
farmesh->step(dtime);
farmesh->update(v2f(player_position.X, player_position.Z),
0.05+brightness*0.95, farmesh_range);
0.05+brightness*0.95);
}
// Store brightness value