diff options
Diffstat (limited to 'landscape.c')
-rw-r--r-- | landscape.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/landscape.c b/landscape.c index 4dfe9953e..bb8454eb0 100644 --- a/landscape.c +++ b/landscape.c @@ -730,10 +730,10 @@ TileIndex AdjustTileCoordRandomly(TileIndex a, byte rng) 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 |