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

Function MakeRailWaypoint

src/station_map.h:759–764  ·  view source on GitHub ↗

* Make the given tile a rail waypoint tile. * @param t the tile to make a rail waypoint * @param o the owner of the waypoint * @param sid the waypoint to which this tile belongs * @param a the axis of this tile * @param section the StationGfx to be used for this tile * @param rt the railtype of this tile */

Source from the content-addressed store, hash-verified

757 * @param rt the railtype of this tile
758 */
759inline void MakeRailWaypoint(Tile t, Owner o, StationID sid, Axis a, uint8_t section, RailType rt)
760{
761 MakeStation(t, o, sid, StationType::RailWaypoint, section + a);
762 SetRailType(t, rt);
763 SetRailStationReservation(t, false);
764}
765
766/**
767 * Make the given tile a roadstop tile.

Callers 2

CmdBuildRailWaypointFunction · 0.85

Calls 3

MakeStationFunction · 0.85
SetRailTypeFunction · 0.85

Tested by

no test coverage detected