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

Function DrawTrackFence_NW

src/rail_cmd.cpp:1950–1955  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1948 * Draw fence at NW border matching the tile slope.
1949 */
1950static void DrawTrackFence_NW(const TileInfo *ti, const PalSpriteID &psid, uint num_sprites)
1951{
1952 RailFenceOffset rfo = RFO_FLAT_X_NW;
1953 if (ti->tileh & SLOPE_NW) rfo = (ti->tileh & SLOPE_W) ? RFO_SLOPE_SW_NW : RFO_SLOPE_NE_NW;
1954 DrawTrackFence(ti, psid, num_sprites, rfo);
1955}
1956
1957/**
1958 * Draw fence at SE border matching the tile slope.

Callers 1

DrawTrackDetailsFunction · 0.85

Calls 1

DrawTrackFenceFunction · 0.85

Tested by

no test coverage detected