changeset 1174 | 27e386195965 |
parent 1140 | c53b2b8a000c |
child 1181 | 6231b823d796 |
--- a/landscape.c Tue Jan 25 21:00:38 2005 +0000 +++ b/landscape.c Tue Jan 25 21:43:57 2005 +0000 @@ -730,10 +730,10 @@ int rn = rng; uint32 r = Random(); - return TILE_XY( + return TILE_MASK(TILE_XY( TileX(a) + ((byte)r * rn * 2 >> 8) - rn, TileY(a) + ((byte)(r >> 8) * rn * 2 >> 8) - rn - ); + )); } // This function checks if we add addx/addy to tile, if we