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

Function SetRailDepotExitDirection

src/rail_map.h:537–541  ·  view source on GitHub ↗

* Sets the exit direction of a rail depot. * @param tile Tile of the depot. * @param dir Direction of the depot exit. */

Source from the content-addressed store, hash-verified

535 * @param dir Direction of the depot exit.
536 */
537inline void SetRailDepotExitDirection(Tile tile, DiagDirection dir)
538{
539 assert(IsRailDepotTile(tile));
540 SB(tile.m5(), 0, 2, dir);
541}
542
543/**
544 * Make a rail depot.

Callers 1

CmdBuildTrainDepotFunction · 0.85

Calls 2

IsRailDepotTileFunction · 0.85
SBFunction · 0.85

Tested by

no test coverage detected