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

Function VpStartDragging

src/viewport.cpp:2832–2841  ·  view source on GitHub ↗

Drag over the map while holding the left mouse down. */

Source from the content-addressed store, hash-verified

2830
2831/** Drag over the map while holding the left mouse down. */
2832void VpStartDragging(ViewportDragDropSelectionProcess process)
2833{
2834 _thd.select_method = VPM_X_AND_Y;
2835 _thd.select_proc = process;
2836 _thd.selstart.x = 0;
2837 _thd.selstart.y = 0;
2838 _thd.next_drawstyle = HT_RECT;
2839
2840 _special_mouse_mode = WSM_DRAGGING;
2841}
2842
2843void VpSetPlaceSizingLimit(int limit)
2844{

Callers 1

OnPlaceObjectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected