Commit Graph
29 Commits
Author SHA1 Message Date
matheusvb3 39729f23e9 Remove redundant parenthesis around negated .has FlagHolder checks 2025-12-23 14:19:37 +01:00
Gymnasiast c744b76632 Rename members of GameActions::Result 2025-12-12 12:11:49 +01:00
Gymnasiast 5ffee91c8a Rename members of GameActions::Status 2025-12-12 11:41:49 +01:00
Michael Steenbeek 355bb5d58d Refactor GAME_COMMAND_FLAG_* to enum+FlagHolder 2025-12-11 00:12:21 +01:00
Gymnasiast ad96737e9a Make ClearingFunction a reference, rather than a pointer 2025-11-29 14:08:32 +01:00
Gymnasiast c2c834df15 Create struct for footpath slope 2025-10-12 22:46:59 +02:00
mix 845a0c597c Change land tool to account for sloped track and paths
This allows you to modify the land underneath sloped track and paths without the zero clearances cheat.

Closes #2296
Closes #2307

https://github.com/user-attachments/assets/8cb51199-a5b4-48e4-9cc3-34fd6ce7410e

It passes the slope in to the function that checks for construction clearances, and calculates whether it fits under the track or path.

In some very rare cases it is possible to build some track pieces in an arguably invalid way over 2 height sloped land, this does not let you raise the land in to that invalid position after the track piece has been built.
2025-09-09 20:29:06 +00:00
Aaron van Geffen 4446ff9f6f Pass game state ref as parameter to game actions (#25065) 2025-09-08 16:21:29 +02:00
Aaron van Geffen 5b8fedd5b2 Rework Map.h includes (remove transitive header includes) 2025-09-04 22:16:53 +02:00
Aaron van Geffen bcb803df96 Move Footpath game actions into GameActions namespace 2025-08-26 14:48:16 +02:00
Gymnasiast 61df9eaf9a Update ExpenditureType enum to new code style 2025-08-21 22:12:41 +02:00
Gymnasiast 4badffcdb6 Change GameState_t members to lowerCamelCase 2025-03-20 23:05:57 +01:00
Gymnasiast 3800d0bca1 Create strong enum for TrackElementSetFlag and TrackSelectionFlag 2025-03-14 21:27:27 +01:00
Michael Steenbeek 06c1fed4f7 Refactor gScreenFlags to LegacyScene enum 2025-03-05 20:45:04 +00:00
Aaron van Geffen cf448753c1 Move WindowInvalidate and WidgetInvalidate families into WindowManager (#23692)
* Move WindowInvalidate and WidgetInvalidate families into WindowManager

* Use InvalidateWidget shorthand in more places

* Cut back on UiContext includes

* Cut back on Window.h includes

* Remove outdated parameter comments
2025-01-25 13:46:08 +01:00
Aaron van Geffen fa06a49302 Update copyright year to 2025 (#23514) 2024-12-31 20:30:04 +01:00
RedMarcher c24e47dea1 Rename cheat variables to match new code style 2024-12-01 18:15:37 +01:00
Michael Steenbeek a2ed026264 Split up remaining tile elements 2024-10-15 22:02:31 +02:00
duncanspumpkin 6283993351 Move WallElement into its own header/source files 2024-10-07 22:04:13 +02:00
Gymnasiast 20173f22a1 Split off QuarterTile 2024-10-05 11:04:11 +02:00
Michael Steenbeek e6e0f97557 Split off EntranceElement header 2024-10-03 12:42:53 +02:00
Aaron van Geffen 5f37ba6615 Rename footpath height related constants 2024-08-16 21:18:33 +00:00
Michael Steenbeek 5407ba2d55 Close #22014: Change crossingMode to a strong enum (#22020) 2024-05-12 07:46:32 +01:00
Gymnasiast 4cdaaa9810 Refactor slope flags 2024-05-10 20:16:07 +02:00
Peter Froud 2b1d5ad9b7 Use specific error stringIDs 2024-03-30 17:12:54 +01:00
Claudio Tiecher 24688ad5a3 Part of #21421: Refactor TILE_ELEMENT_DIRECTION_MASK 2024-03-25 16:17:32 +01:00
Duncan 4b6ba80a46 Move cheats to struct in GameState_t 2024-03-03 22:44:15 +01:00
James103 1d8dc111f1 Replace 2023 with 2024 in copyright headers (#21139)
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
Stephan Spengler 2e9d06fabe Rename FootpathPlaceFromTrack to FootpathLayoutPlace (#19028) 2023-01-05 06:39:15 -03:00