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

Function DrawTrackFence_NE

src/rail_cmd.cpp:1970–1975  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1968 * Draw fence at NE border matching the tile slope.
1969 */
1970static void DrawTrackFence_NE(const TileInfo *ti, const PalSpriteID &psid, uint num_sprites)
1971{
1972 RailFenceOffset rfo = RFO_FLAT_Y_NE;
1973 if (ti->tileh & SLOPE_NE) rfo = (ti->tileh & SLOPE_E) ? RFO_SLOPE_SE_NE : RFO_SLOPE_NW_NE;
1974 DrawTrackFence(ti, psid, num_sprites, rfo);
1975}
1976
1977/**
1978 * Draw fence at SW border matching the tile slope.

Callers 1

DrawTrackDetailsFunction · 0.85

Calls 1

DrawTrackFenceFunction · 0.85

Tested by

no test coverage detected