(svn r15582) -Cleanup: Remove unused function AdjustTileCoordRandomly(). Btw. it would also cause desyncs and wrap around the map.
This commit is contained in:
@@ -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
|
||||
));
|
||||
}
|
||||
|
Reference in New Issue
Block a user