Commit Graph
23629 Commits
Author SHA1 Message Date
Gymnasiast d943171fae Create enum class for EntranceType 2026-08-12 16:16:07 +02:00
Michael Steenbeek 34e8149e93 Merge pull request #26915 from Harry-Hopkinson/remove-final-openrct2-ui-includes
Finish removing openrct2-ui includes
2026-08-12 15:35:17 +02:00
Gymnasiast 631804fd13 Make WallElement members adhere to code style 2026-08-12 15:17:55 +02:00
Gymnasiast 84f1946db8 Make TrackElement members adhere to code style 2026-08-12 15:17:50 +02:00
Gymnasiast 25865dce31 Make SurfaceElement members adhere to code style 2026-08-12 15:17:44 +02:00
Gymnasiast d3c54532ca Make SmallSceneryElement members adhere to code style 2026-08-12 15:17:39 +02:00
Gymnasiast 2f9db0a5d4 Make PathElement members adhere to code style 2026-08-12 15:17:34 +02:00
Gymnasiast 95025ba916 Make LargeSceneryElement members adhere to code style 2026-08-12 15:17:29 +02:00
Gymnasiast 4af2e9d1fd Make EntranceElement members adhere to code style 2026-08-12 15:17:23 +02:00
Harry Hopkinson b95d24bb68 Remove openrct2-ui/windows includes 2026-08-11 22:57:19 +01:00
Harry Hopkinson 8a0507708f Remove openrct2-ui/title includes 2026-08-11 22:18:05 +01:00
Harry Hopkinson e75c1dde15 Remove openrct2-ui/scripting includes 2026-08-11 22:16:10 +01:00
Gymnasiast be98df4081 Make BannerElement.h adhere to code style 2026-08-11 22:19:46 +02:00
Gymnasiast ac2515d483 Make TileElement.h adhere to code style 2026-08-11 22:17:52 +02:00
spacek531 bdbe9013cc Rename track motion functions and name globals 2026-08-11 19:30:26 +02:00
Harry Hopkinson 2c8891ca8b Remove openrct2-ui/ride includes 2026-08-11 17:17:41 +01:00
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
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
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
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
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
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