Commit Graph
59 Commits
Author SHA1 Message Date
Aaron van Geffen 5b8fedd5b2 Rework Map.h includes (remove transitive header includes) 2025-09-04 22:16:53 +02:00
Aaron van Geffen 1bcee698a9 Move RideSetName/Price/Setting actions into GameActions namespace 2025-08-27 10:47:34 +02:00
Michał Janiszewski cf72933aa5 Fix #24589: Ride's music tab doesn't redraw in multiplayer
Trigger an invalidation of the window when actually executing the
command.
2025-06-18 23:36:00 +02:00
Michael Steenbeek 70bdddcf36 Reduce object casting (#24072) 2025-03-25 08:51:44 +01:00
Gymnasiast 4badffcdb6 Change GameState_t members to lowerCamelCase 2025-03-20 23:05:57 +01:00
Michael Steenbeek 05b64985f4 Update Ride struct to new codestyle 2025-03-09 00:26:25 +01:00
Gymnasiast 114e8da200 Update RideMode to current code style 2025-03-06 23:01:47 +01:00
Gymnasiast e35c7fdb5c Update RideStatus to current code style 2025-03-06 23:01:46 +01:00
Aaron van Geffen bb94ee8bc0 Rename ObjectType enum to follow recent code style (#23810) 2025-02-13 23:07:55 +01: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
Michael Steenbeek b0c99fcb6c Refactor more constants to kConstant notation 2025-01-22 16:16:55 +00:00
Michael Steenbeek be9f27e4f9 Mass rename constants (#23656) 2025-01-19 15:59:45 +00: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
Harry Hopkinson c1ac7c0700 Cleanup gameState usage 2024-09-02 22:42:37 +02:00
Michael Steenbeek 47800cddcf Change RTD flags to a strong enum 2024-08-13 20:20:25 +00:00
Duncan a07b56a655 Move Viewport functions into Ui (#22454)
* Move viewport functions into ui

* Move footpath function to ui

* Don't include viewport in footpath.h

* Include missing includes
2024-08-02 06:01:31 +01:00
Aaron van Geffen 51873dc0f6 Include Diagnostic.h at unit level 2024-07-09 16:23:31 +02:00
Harry-Hopkinson 1cca5d7ec3 Rename MaxCircuitsPerRide to kMaxCircuitsPerRide 2024-05-27 07:38:57 +00:00
Peter Froud 2b1d5ad9b7 Use specific error stringIDs 2024-03-30 17:12:54 +01:00
Peter Froud f49fe68cc6 Improve messages for default case in switch stmt 2024-03-30 17:12:54 +01:00
Peter Froud a1517a4fcb Use "X not found for Y" message style 2024-03-30 17:12:54 +01:00
Peter Froud 9e702d8b65 Missed an instance of ride == nullptr 2024-03-30 17:12:54 +01:00
Peter Froud 23958186bd Change LOG_ERROR to LOG_WARNING for errors 2024-03-30 17:12:53 +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
Hielke Morsinkandduncanspumpkin 6b7dc8fcdb Rename snake_case functions in openrct2/src folder
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2023-01-17 13:24:51 +01:00
Stephan Spengler 76b918e7ed Change openrct2/ride methods to UpperCamelCase, part 1 2023-01-17 01:32:54 +01:00
Stephan Spengler ceb9aee1a7 Rename action functions to UpperCamelCase 2023-01-16 21:16:29 +00:00
Hielke Morsink 6dafbbfb65 Rename global window functions to TitleCase (#19167) 2023-01-16 20:13:42 +00:00
Duncan 8a8d3105f3 Remove snake_case from first chunk of Drawing (#19164)
* Remove snake_case from first chunk of Drawing

* Address formatting
2023-01-16 13:50:43 +00:00
Michael Steenbeek 412bf8f8be Use ride references instead of pointers 2023-01-07 14:02:18 +01:00
James103 73738bbdc8 Replace 2022 with 2023 in copyright headers
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
Hielke Morsink 31dd4bf604 Use lower-case u integral suffix 2022-10-29 16:33:05 +02:00
Duncan 7dd8989e70 Next chunk of World/Map.h snakes (#18296)
* Next chunk of World/Map.h snakes

* Apply clang-format
2022-10-12 06:35:20 +01:00
73 b9e677945d Replace 20XX with 2022 (#18158)
* Replace 2020 with 2022

Replace all 2020 headers with 2022

* replace other years with 2022

add missing years
2022-10-01 08:42:14 +01:00
Hielke Morsink 7f29e4e39c Make rct_windowclass strong type WindowClass
This already revealed some places where implicit conversions were done, including some where its use was nonsense (MouseInput.cpp).
The changes to the Intent class were necessary to keep things working, and this splits things up more neatly.
2022-08-21 18:38:25 +02:00
Gymnasiast d3fd31c611 Rename rct_string_id to StringId 2022-07-31 22:30:13 +02:00
Hielke Morsink 2936de5c86 Replace hardcoded 255/0xFF with TUNE_ID_NULL 2022-06-28 22:55:25 +02:00
ζeh Matt 4554d6d883 Fix all uses of RideId 2022-02-12 18:11:18 +02:00
ζeh Matt a2470c0573 Rename ride_id_t to RideId 2022-02-12 18:11:18 +02:00
Duncan 5157b57a15 OpenRCT2 Limits (#16088)
* Move over max rides to limits file

* Move max stations to limits file

* Move over max inversions, golf holes, helices, custhistsize

* Move over max trains per ride

* Bring over Max cars per train and max circuits per ride

* Port over NumColourSchemes and max vehicle colours

* Fix compilation

* Move over max awards

* Move over max peep spawns and park entrances

* Fix rebase issues

* Remove future work

* Switch style

* Update copyright
2022-02-01 20:59:48 +00:00
Gymnasiast 9b81bacecd Move ride_remove_peeps() to method 2021-12-12 12:31:19 +01:00
ζeh Matt 83b911b193 #15634: Refactor passing GameActions::Result by copy (#15951)
* Refactor to result GameActions::Result as copy instead of unique_ptr

* Remove alias GameActions::Result::Ptr

* Remove MakeResult wrapper

* Remove type forwarder in TileInspector
2021-11-24 07:35:08 +00:00
ζeh Matt fc489452ab Refactor explicit constructor usage in RideSetSettingAction 2021-10-27 04:32:05 +03:00
Michael Steenbeek f7d61c67e6 Fix arbitrary ride type cheat not working 2021-09-26 16:21:34 +02:00
Hielke Morsink 4b4b3333d6 Remove unnecessary else blocks 2021-09-16 18:31:12 +02:00
ζeh Matt 516232e0a7 Change static casts to EnumValue 2021-09-10 19:10:15 +03:00
ZehMatt 3ad72baaae Cast fixes 2021-09-10 19:10:12 +03:00
Michael Steenbeek 624a32e93b Make Coords isNull/setNull functions TitleCase (#15382) 2021-09-08 20:48:53 -03:00