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

Function GetAutorailHT

src/viewport.cpp:2636–2639  ·  view source on GitHub ↗

returns the best autorail highlight type from map coordinates */

Source from the content-addressed store, hash-verified

2634
2635/** returns the best autorail highlight type from map coordinates */
2636static HighLightStyle GetAutorailHT(int x, int y)
2637{
2638 return HT_RAIL | _autorail_piece[x & TILE_UNIT_MASK][y & TILE_UNIT_MASK];
2639}
2640
2641/**
2642 * Reset tile highlighting.

Callers 2

UpdateTileSelectionFunction · 0.85
CalcRaildirsDrawstyleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected