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

Function RandomDiagDir

src/town_cmd.cpp:255–258  ·  view source on GitHub ↗

* Return a random direction * * @return a random direction */

Source from the content-addressed store, hash-verified

253 * @return a random direction
254 */
255static inline DiagDirection RandomDiagDir()
256{
257 return (DiagDirection)(RandomRange(DIAGDIR_END));
258}
259
260/**
261 * Draw a house and its tile. This is a tile callback routine.

Callers 2

GrowTownInTileFunction · 0.85
GrowTownAtRoadFunction · 0.85

Calls 1

RandomRangeFunction · 0.85

Tested by

no test coverage detected