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

Method IsDraggingDiagonal

src/viewport.cpp:2656–2659  ·  view source on GitHub ↗

* Is the user dragging a 'diagonal rectangle'? * @return User is dragging a rotated rectangle. */

Source from the content-addressed store, hash-verified

2654 * @return User is dragging a rotated rectangle.
2655 */
2656bool TileHighlightData::IsDraggingDiagonal()
2657{
2658 return (this->place_mode & HT_DIAGONAL) != 0 && _ctrl_pressed && _left_button_down;
2659}
2660
2661/**
2662 * Get the window that started the current highlighting.

Callers 2

UpdateTileSelectionFunction · 0.80
VpSelectTilesWithMethodFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected