From c7e324bb400d3d9fa5d1db5c0330861f366949af Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 25 Feb 2009 21:24:42 +0000 Subject: [PATCH] (svn r15582) -Cleanup: Remove unused function AdjustTileCoordRandomly(). Btw. it would also cause desyncs and wrap around the map. --- src/landscape.cpp | 11 ----------- src/landscape.h | 2 -- 2 files changed, 13 deletions(-) diff --git a/src/landscape.cpp b/src/landscape.cpp index 1ddd2bcfed..998a552d4e 100644 --- a/src/landscape.cpp +++ b/src/landscape.cpp @@ -951,14 +951,3 @@ void CallLandscapeTick() OnTick_Companies(); OnTick_Train(); } - -TileIndex AdjustTileCoordRandomly(TileIndex a, byte rng) -{ - int rn = rng; - uint32 r = Random(); - - return TILE_MASK(TileXY( - TileX(a) + (GB(r, 0, 8) * rn * 2 >> 8) - rn, - TileY(a) + (GB(r, 8, 8) * rn * 2 >> 8) - rn - )); -} diff --git a/src/landscape.h b/src/landscape.h index 414de3df70..4eae6394ed 100644 --- a/src/landscape.h +++ b/src/landscape.h @@ -58,6 +58,4 @@ void RunTileLoop(); void InitializeLandscape(); void GenerateLandscape(byte mode); -TileIndex AdjustTileCoordRandomly(TileIndex a, byte rng); - #endif /* LANDSCAPE_H */