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

Function DrawTrackFence_SW

src/rail_cmd.cpp:1980–1985  ·  view source on GitHub ↗

* Draw fence at SW border matching the tile slope. */

Source from the content-addressed store, hash-verified

1978 * Draw fence at SW border matching the tile slope.
1979 */
1980static void DrawTrackFence_SW(const TileInfo *ti, const PalSpriteID &psid, uint num_sprites)
1981{
1982 RailFenceOffset rfo = RFO_FLAT_Y_SW;
1983 if (ti->tileh & SLOPE_SW) rfo = (ti->tileh & SLOPE_S) ? RFO_SLOPE_SE_SW : RFO_SLOPE_NW_SW;
1984 DrawTrackFence(ti, psid, num_sprites, rfo);
1985}
1986
1987/**
1988 * Draw track fences.

Callers 1

DrawTrackDetailsFunction · 0.85

Calls 1

DrawTrackFenceFunction · 0.85

Tested by

no test coverage detected