Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
456
Point GetTileBelowCursor()
457
{
458
return GetTileFromScreenXY(_cursor.pos.x, _cursor.pos.y, _cursor.pos.x, _cursor.pos.y);
459
}
460
461
462
Point GetTileZoomCenterWindow(bool in, Window * w)
Callers
6
ShowExtraViewportWindowForTileUnderCursor
Function · 0.85
HandlePlacePresize
Function · 0.85
PlaceObject
Function · 0.85
UpdateTileSelection
Function · 0.85
VpHandlePlaceSizingDrag
Function · 0.85
OnHotkey
Method · 0.85
Calls
1
GetTileFromScreenXY
Function · 0.85
Tested by
no test coverage detected