MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / RandomTileSeed

Function RandomTileSeed

src/map_func.h:654–657  ·  view source on GitHub ↗

* Get a random tile out of a given seed. * @param r the random 'seed' * @return a valid tile */

Source from the content-addressed store, hash-verified

652 * @return a valid tile
653 */
654inline TileIndex RandomTileSeed(uint32_t r)
655{
656 return Map::WrapToMap(TileIndex{r});
657}
658
659/**
660 * Get a valid random tile.

Callers 4

GenerateClearTileFunction · 0.85
PlaceTreesRandomlyFunction · 0.85
PlantRandomTreeFunction · 0.85
Disaster_Submarine_InitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected