Fixes#26802
Skips drawing for 0 or -1 cars per train for `VehiclePaintStyle::splashBoatsOrWaterCoaster` that caused the recursion since they would be invisible anyway even if the recursion would be detected.
Tested with 0, -1, and normal amount of cars per train and various numbers of trains. Everything looks fine, and 0 and -1 cars per ride simply draw nothing now.
When using the "drag to place" footpath tool over uneven terrain, paths are now automatically connected with appropriate slopes instead of being placed as disconnected flat tiles. The algorithm works in three phases, first it gathers terrain height along the drag axis, then it filters out obstacles like spiked terrain (isolated height jumps), lastly it builds the path tiles with slopes to bridge height differences
Only applies when neither Shift nor Ctrl is pressed.
Quitting OpenRCT2 from outside the game, e.g. from the dock or the taskbar, from another application, or on session logout, leaves the window in the background, so the save prompt opens behind whatever the user is actually looking at with nothing to indicate that the game is waiting on an answer.
SavePromptOpen() now asks the UI context for attention when an OS quit request opens the prompt while the window is unfocused. The other prompt modes follow a click in the game, so they cannot arrive unfocused. SDL maps this to a bouncing dock icon on macOS, a highlighted taskbar button on Windows, the urgency hint on X11 and a serial-less xdg-activation request on Wayland.
A park loaded through a file association or the command line never passes the load/save window, so that window kept opening in the folder from a previous session.
* feat: add PathNavigator
* separate PathConnection from PathNavigator
* add PathNavigationOptions for PathNavigator
* make PathNavigationOptions positive instead of double-negative
* [skip ci] fix typo
* [skip ci] revert formatting
* align branch with develop after merge
* Address PR feedback
* Adapt PathNavigator to lowerCamelCase renames in develop
Upstream renamed TileElementType members and PathElement/BannerElement
accessors to lowerCamelCase (#26608, #26626 and follow-ups).
* Name PathNavigator/PathConnection Register and New
Use the same names as every other scripting engine class for these two
functions, so they don't read as doing something different.
The button's state was only checked when the window was opened, a tab was switched or the window was resized, so it kept its old appearance while the window sat open. It is now checked on redraw, like the staff window does.