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

Function DrawHillyLandTile

src/clear_cmd.cpp:58–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void DrawHillyLandTile(const TileInfo *ti)
59{
60 if (ti->tileh != SLOPE_FLAT) {
61 DrawGroundSprite(SPR_FLAT_ROUGH_LAND + SlopeToSpriteOffset(ti->tileh), PAL_NONE);
62 } else {
63 DrawGroundSprite(_landscape_clear_sprites_rough[GB(TileHash(ti->x, ti->y), 0, 3)], PAL_NONE);
64 }
65}
66
67static void DrawClearLandFence(const TileInfo *ti)
68{

Callers 2

DrawTile_ClearFunction · 0.85
DrawTile_TreesFunction · 0.85

Calls 4

DrawGroundSpriteFunction · 0.85
SlopeToSpriteOffsetFunction · 0.85
GBFunction · 0.85
TileHashFunction · 0.85

Tested by

no test coverage detected