Commit Graph
30427 Commits
Author SHA1 Message Date
Harry Hopkinson a80faffd5c Remove openrct2-ui/ includes 2026-08-11 17:01:15 +01:00
Michael Steenbeek d9c423b1d6 Merge pull request #26907 from Harry-Hopkinson/start-removing-ui-includes
Start to remove includes in src/openrct2-ui
2026-08-11 17:15:09 +02:00
Harry Hopkinson d6863ccf99 Remove openrct2-ui/interface includes 2026-08-11 10:16:19 +01:00
Harry Hopkinson e6be313f1d Remove openrct2-ui/input includes 2026-08-10 23:38:43 +01:00
Harry Hopkinson 5ca2c1845c Remove openrct2-ui/drawing includes 2026-08-10 23:38:43 +01:00
Amonoman 4e576a04ad Fix forced portrait orientation on Android app launch (#26873)
* Fix forced portrait orientation on app launch

MainActivity had no android:screenOrientation set and GameActivity
used a fixed landscape value, so the app opened in portrait and the
device rotation lock could pin it there. SDLActivity also called
setRequestedOrientation() at runtime with a value computed from the
window width and height at creation time, which fought the manifest
setting and the system rotation lock.

Set android:screenOrientation to sensorLandscape on MainActivity and
GameActivity, and remove the runtime setRequestedOrientation() call
in SDLActivity so the manifest setting is respected and the system
rotation lock works as expected.

* Remove unused orientation logic from SDLActivity
2026-08-10 20:26:50 +02:00
Max a187bc9550 Close #26827: Add map resize hook to scripting API (#26828) 2026-08-09 20:55:24 +02:00
Michael Steenbeek bd935d75c9 Merge pull request #26899 from Gymnasiast/more-renames
Make CarEntry.h adhere to code style
2026-08-09 18:13:33 +02:00
Gymnasiast 24869300df Rename VehicleSpriteGroup member function to adhere to code style 2026-08-09 17:08:45 +02:00
Gymnasiast a629158a4b Rename SpriteGroupNames to kSpriteGroupNames 2026-08-09 17:08:45 +02:00
Gymnasiast 5c0fc86397 Rename CarEntry members to adhere to code style 2026-08-09 17:02:34 +02:00
Michael Steenbeek 5d3903209e More enum class conversions (plus a constexpr rename) (#26897)
* Refactor wall scenery flags 2 into enum class+FlagHolder

* Turn FrictionSound into enum class

* Refactor VEHICLE_VEHICLE_* to two enum classes

* Rename RTD constants
2026-08-09 16:53:58 +02:00
Gymnasiast bb0b26e3f2 Rename RTD constants 2026-08-09 16:30:50 +02:00
Gymnasiast 8b4b1c6561 Refactor VEHICLE_VEHICLE_* to two enum classes 2026-08-09 16:30:50 +02:00
Gymnasiast d4c67d9b8d Turn FrictionSound into enum class 2026-08-09 16:30:14 +02:00
Gymnasiast 4c1cedbb08 Refactor wall scenery flags 2 into enum class+FlagHolder 2026-08-09 16:30:14 +02:00
RayKoopa 2e43967fe5 Fix: water rides ignore zero clearances, preventing adjacent terrain modifications and building them anywhere (#26816)
Even with clearance checks disabled, it was not yet possible to build water elements (like Boat Hire track elements) on land or mid-air. This PR skips those validations if clearance checks are disabled.
2026-08-08 23:50:36 +02:00
Michael Steenbeek 5aa3f85c56 Merge pull request #26891 from Gymnasiast/more-enums
Refactor more enums into enum class and FlagHolder
2026-08-08 19:00:38 +02:00
Gymnasiast f08bc61f03 Refactor park flags into enum class+FlagHolder 2026-08-08 18:49:32 +02:00
Gymnasiast a70874710a Refactor peep flags to enum class+FlagHolder 2026-08-08 18:28:22 +02:00
Gymnasiast 11bf58dceb Refactor CLEARABLE_ITEMS into enum class+FlagHolder 2026-08-08 18:28:21 +02:00
Michael Steenbeek 8839956721 Merge pull request #26886 from Harry-Hopkinson/remove-more-includes
Remove final includes in src/openrct2
2026-08-08 11:27:29 +02:00
Darkroman d7d8915065 Fixed bug where ride.previousVerticalG was reset to 0 instead of 100 (#26879)
Fixed a bug where ride.previousVerticalG was erroneously reset to 0 in test_reset function in Vehicle.cpp instead of 100. I verified by finding the variable which would be ride.previousVerticalG in the original RCT2 assembly as the offset [edi+13629FA]. It is reset to the value 0x64 at address 0x006D6C9B within what would be the test_reset function first located at 0x006D6BE7. To verify it was previousVerticalG I made a test coaster that had a max negative G readout of 0.57g. I put a conditional breakpoint on it first as less than 0x39 (< 57) as a boundary test. When running my test coaster the breakpoint didn't hit. I deleted a turn track and rebuilt it, and then I changed the breakpoint condition to < 0x3A (< 58). I ran another test on the coaster, and sure enough the breakpoint was hit when the coaster went down the 2nd hill.
2026-08-08 10:58:58 +02:00
Harry Hopkinson 8cd44cc686 Remove openrct2/world includes 2026-08-08 00:04:30 +01:00
Harry Hopkinson 3c375c60ba Remove openrct2/windows includes 2026-08-07 23:54:34 +01:00
Harry Hopkinson 6c5c2079ce Remove openrct2/scripting includes 2026-08-07 23:54:10 +01:00
Harry Hopkinson f967ebc2d2 Remove openrct2/scenes includes 2026-08-07 23:54:08 +01:00
Harry Hopkinson f4ddda3f69 Remove openrct2/scenario includes 2026-08-07 23:50:56 +01:00
Harry Hopkinson f91e2d680b Remove openrct2/sawyer_coding includes 2026-08-07 23:50:56 +01:00
Michael Steenbeek 42885ec965 Update GitHub checkout action to v7 (#26885) 2026-08-07 20:51:06 +00:00
RayKoopa 5a814722e1 Add Walls-only and Footpath Addition modes to Clear Scenery (#26877)
* Add two new modes for Clear Scenery.
- Split "Walls" from "Small Scenery" into own mode
- Add "Footpath Additions" mode
2026-08-07 20:49:40 +00:00
Michael Steenbeek 263cb53047 Merge pull request #26884 from Gymnasiast/more-enum-refactor
Refactor some plain enums to enum class
2026-08-07 21:43:18 +02:00
Gymnasiast c2c126da9c Refactor BTM_TOOLBAR_DIRTY_FLAGS into enum class+FlagHolder 2026-08-07 21:37:03 +02:00
Gymnasiast 94a889e4c9 Refactor SCROLL_FLAGS into enum class+FlagHolder 2026-08-07 21:37:03 +02:00
Gymnasiast ac8b290671 Refactor WALL_SCENERY_FLAGS into enum class+FlagHolder 2026-08-07 20:27:12 +02:00
Gymnasiast 536973e9e6 Add GetFlagHolder() overload for normal/inverted flag 2026-08-07 20:27:12 +02:00
Gymnasiast 9c59a4c5e8 Fix notation of two numbers 2026-08-07 20:27:12 +02:00
Aaron van Geffen 15b36d6ced Introduce dedicated header for window-related enum types (#26883) 2026-08-07 19:53:17 +02:00
Aaron van Geffen 4087c9c6b9 Rework script binding includes (#26882)
* Rework entity binding includes

* Rework network binding includes

* Rework object binding includes

* Rework ride binding includes

* Rework world binding includes
2026-08-07 18:11:06 +02:00
Aaron van Geffen 51649e5873 Rework Ride and Vehicle headers into OpenRCT2 namespace (#26881)
* Move vehicle flags to their own header

* Move Ride, RideConstruction, RideRatings, Vehicle into OpenRCT2 namespace

* Rename to SpecialDropdownElement as suggested
2026-08-07 16:22:36 +02:00
Michael Steenbeek 53a81b1b45 Merge pull request #26874 from Harry-Hopkinson/remove-even-more-includes
Remove/reorder even more includes
2026-08-07 07:32:46 +02:00
Harry Hopkinson 6323d95edc Remove openrct2/ride includes 2026-08-07 07:13:38 +02:00
Harry Hopkinson 5c0caf461a Remove openrct2/rct1, openrct2/rct2 and openrct2/rct12 includes 2026-08-07 07:12:31 +02:00
Harry Hopkinson 7f8fc39ff5 Remove openrct2/platform includes 2026-08-07 07:12:31 +02:00
Harry Hopkinson b3ef890f38 Remove openrct2/peep includes 2026-08-07 07:12:31 +02:00
Harry Hopkinson 7f39bdebf5 Remove openrct2/park includes 2026-08-07 07:12:30 +02:00
Michael Steenbeek 205497a480 Merge pull request #26876 from Gymnasiast/refactor/remaining-enum-class-members
Fix code style for remaining enum class members
2026-08-07 07:10:20 +02:00
Gymnasiast 228c4bfb34 Rename CursorNames to kCursorNames 2026-08-07 06:57:39 +02:00
Gymnasiast a5892a2d17 Enforce enum class member code style via Clang-Tidy 2026-08-07 06:57:39 +02:00
Gymnasiast 38bce48524 Rename members of ScatterToolDensity 2026-08-07 06:57:38 +02:00