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

Function ResetObjectToPlace

src/viewport.cpp:3573–3576  ·  view source on GitHub ↗

Reset the cursor and mouse mode handling back to default (normal cursor, only clicking in windows). */

Source from the content-addressed store, hash-verified

3571
3572/** Reset the cursor and mouse mode handling back to default (normal cursor, only clicking in windows). */
3573void ResetObjectToPlace()
3574{
3575 SetObjectToPlace(SPR_CURSOR_MOUSE, PAL_NONE, HT_NONE, WC_MAIN_WINDOW, 0);
3576}
3577
3578Point GetViewportStationMiddle(const Viewport &vp, const Station *st)
3579{

Callers 15

SaveLoadWindowMethod · 0.85
OnClickMethod · 0.85
OnDropdownSelectMethod · 0.85
OnDragDropMethod · 0.85
SelectSignToolFunction · 0.85
PlaceLandBlockInfoFunction · 0.85
UpdateModeMethod · 0.85
BuildTreesWindowMethod · 0.85
CloseMethod · 0.85
HandleMouseDragDropFunction · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85

Calls 1

SetObjectToPlaceFunction · 0.85

Tested by

no test coverage detected