mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-21 12:39:47 +01: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
0a2e46c6c7
commit
c7e324bb40
@ -951,14 +951,3 @@ void CallLandscapeTick()
|
|||||||
OnTick_Companies();
|
OnTick_Companies();
|
||||||
OnTick_Train();
|
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 InitializeLandscape();
|
||||||
void GenerateLandscape(byte mode);
|
void GenerateLandscape(byte mode);
|
||||||
|
|
||||||
TileIndex AdjustTileCoordRandomly(TileIndex a, byte rng);
|
|
||||||
|
|
||||||
#endif /* LANDSCAPE_H */
|
#endif /* LANDSCAPE_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user