games/digger: Fix flying trees

This commit is contained in:
Perttu Ahola 2014-10-15 16:01:35 +03:00
parent 6967ff6c9f
commit ed741ed353

View File

@ -245,7 +245,7 @@ struct Module: public interface::Module
}
y++;*/
double a = interface::NoisePerlin2D(&np, x, z, 0);
int y = a + 11.5;
int y = a + 11.0;
if(y < lc.getY() - 5 || y > uc.getY() - 5)
continue;