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

Function DrawTrackFence_SE

src/rail_cmd.cpp:1960–1965  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1958 * Draw fence at SE border matching the tile slope.
1959 */
1960static void DrawTrackFence_SE(const TileInfo *ti, const PalSpriteID &psid, uint num_sprites)
1961{
1962 RailFenceOffset rfo = RFO_FLAT_X_SE;
1963 if (ti->tileh & SLOPE_SE) rfo = (ti->tileh & SLOPE_S) ? RFO_SLOPE_SW_SE : RFO_SLOPE_NE_SE;
1964 DrawTrackFence(ti, psid, num_sprites, rfo);
1965}
1966
1967/**
1968 * Draw fence at NE border matching the tile slope.

Callers 1

DrawTrackDetailsFunction · 0.85

Calls 1

DrawTrackFenceFunction · 0.85

Tested by

no test coverage detected