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

Function GetTileBelowCursor

src/viewport.cpp:456–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456Point GetTileBelowCursor()
457{
458 return GetTileFromScreenXY(_cursor.pos.x, _cursor.pos.y, _cursor.pos.x, _cursor.pos.y);
459}
460
461
462Point GetTileZoomCenterWindow(bool in, Window * w)

Callers 6

HandlePlacePresizeFunction · 0.85
PlaceObjectFunction · 0.85
UpdateTileSelectionFunction · 0.85
VpHandlePlaceSizingDragFunction · 0.85
OnHotkeyMethod · 0.85

Calls 1

GetTileFromScreenXYFunction · 0.85

Tested by

no test coverage detected