(svn r15582) -Cleanup: Remove unused function AdjustTileCoordRandomly(). Btw. it would also cause desyncs and wrap around the map.

This commit is contained in:
frosch 2009-02-25 21:24:42 +00:00
parent f6d8e60799
commit 751a9bdf0a
2 changed files with 0 additions and 13 deletions

View File

@ -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
));
}

View File

@ -58,6 +58,4 @@ void RunTileLoop();
void InitializeLandscape();
void GenerateLandscape(byte mode);
TileIndex AdjustTileCoordRandomly(TileIndex a, byte rng);
#endif /* LANDSCAPE_H */