mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r15582) -Cleanup: Remove unused function AdjustTileCoordRandomly(). Btw. it would also cause desyncs and wrap around the map.
This commit is contained in:
parent
f6d8e60799
commit
751a9bdf0a
@ -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
|
||||
));
|
||||
}
|
||||
|
@ -58,6 +58,4 @@ void RunTileLoop();
|
||||
void InitializeLandscape();
|
||||
void GenerateLandscape(byte mode);
|
||||
|
||||
TileIndex AdjustTileCoordRandomly(TileIndex a, byte rng);
|
||||
|
||||
#endif /* LANDSCAPE_H */
|
||||
|
Loading…
Reference in New Issue
Block a user