Commit Graph
22419 Commits
Author SHA1 Message Date
Michael Steenbeek 63a1c49db2 Refactor footpath placement functions 2025-09-14 14:25:08 +02:00
mix 0e21f93359 Fix Junior RC flat to steep general support heights different to RCT1 2025-09-14 14:16:42 +02:00
mix ea66706fbb Fix go karts steep to flat general support heights 2025-09-12 20:42:03 +02:00
Aaron van Geffen 0c2a52dd36 Move command line units into OpenRCT2 namespace 2025-09-12 18:07:23 +02:00
Michael Steenbeek 09d348f4e4 Merge pull request #25157 from AaronVanGeffen/context-cleanup
Move types and constants out of Context.h
2025-09-12 15:01:25 +02:00
ζeh Matt 1b1f8123b9 Move Guest specific ThrowUp logic to Guest.cpp 2025-09-12 15:08:18 +03:00
Aaron van Geffen 9b7ee06e0f Move Context fully into OpenRCT2 namespace; types into Input.h 2025-09-12 14:03:44 +02:00
ζeh Matt 2e6ffa4285 No need to double check if its Guest or Staff 2025-09-12 14:58:07 +03:00
ζeh Matt ce3da4012e Remove redundant cast 2025-09-12 14:57:50 +03:00
ζeh Matt 977ec4517f Reduce scope of some variables 2025-09-12 14:52:34 +03:00
Aaron van Geffen ffa2c3ab6c Move game tick time constants from Context.h to Game.h 2025-09-12 13:45:16 +02:00
Aaron van Geffen 499af79831 Move Resolution struct from Context to UiContext 2025-09-12 13:42:30 +02:00
ζeh Matt 4698ddc5f5 Add a cast method for entities, sometimes we know the type 2025-09-12 14:40:01 +03:00
spacek531 9f0a307972 Fix vehicles visually glitching on diagonal steep slopes 2025-09-12 05:54:47 +00:00
mix 24e249a0dd Fix diag brakes general support height of junior, flying, lay down RCs 2025-09-12 07:31:39 +02:00
spacek531 793b53ad0e Rename local variable spr to entity 2025-09-12 07:28:00 +02:00
Michael Steenbeek 7ceaa4fed1 Merge pull request #25143 from Gymnasiast/refactor/footpath-cpp
Refactor a few selection enums
2025-09-11 22:19:12 +02:00
Aaron van Geffen 832a1d1f74 Move localisation units into OpenRCT2 namespace 2025-09-11 22:11:12 +02:00
mix a5cd5db91e Fix log flume steep general support heights 2025-09-11 22:08:41 +02:00
Gymnasiast 9db3d609d2 Turn MapSelectType into enum class 2025-09-11 22:06:10 +02:00
Gymnasiast 6f7987e1c7 Turn MapSelectFlags into FlagHolder 2025-09-11 22:06:10 +02:00
Gymnasiast 664602a572 Make PathConstructionMode into an enum class 2025-09-10 23:14:24 +02:00
mix 318262b479 Fix reverse freefall photo using the wrong track sprite
This fixes the on ride photo of the reverse freefall coaster having incorrectly coloured ties due to using a sprite from the air powered coaster. This uses the station sprite from the reverse freefall coaster instead.

This removes this special case in the paint code. If I remember right, it's the only function that changes colors in this way.
2025-09-09 21:23:10 +00: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
mix 8e4f4fa3a9 Rename tunnel door types and remove unused entries 2025-09-09 19:54:37 +00:00
Michał Janiszewski a37cdcf178 Fix #25132: crash when trying to use simulate on incomplete ride (#25133) 2025-09-09 14:22:05 +00:00
spacek531 8eb9e4aceb Use strong types for VehiclePitch and VehicleRoll 2025-09-09 15:47:19 +02:00
Aaron van Geffen 4446ff9f6f Pass game state ref as parameter to game actions (#25065) 2025-09-08 16:21:29 +02:00
spacek531 3e10c20792 Add variable for number of spin frames 2025-09-08 12:57:04 +02:00
matheusvb3 e4aa9c6920 Change some fields related to the spiral slide 2025-09-07 12:01:01 +00:00
spacek531 2fa20a2f3d Separate flat ride and tracked ride users of pitch and roll fields
In preparation for strong-typing the pitch and roll enums, unions are created to properly document which users of the field are flat rides.
2025-09-07 12:06:49 +02:00
Michael Steenbeek dc1c59e715 Merge pull request #25120 from Gymnasiast/rename/pitch-and-roll
Rename bank_rotation to roll, Pitch to pitch
2025-09-07 11:44:15 +02:00
Michał Janiszewski a3daec8150 Merge pull request #24892 from ethanaobrien/develop
Emscripten: Download/Upload parks
2025-09-07 07:28:08 +02:00
Michael Steenbeek 414689fb1b Dropdown: remove ‘format’ and ‘args’ altogether (#25053)
* Remove ‘format’ and ‘args’ altogether

* Change text field to a char array

* Small cleanup

* Apply changes to STR_1156/7 to all languages

* Fix width calculation
2025-09-07 00:09:46 +02:00
Matt 6333c91a8e Merge pull request #25090 from jaterx/develop
Fix for Attempt to decrement guests in park and guests heading for park below zero. #21172
2025-09-07 01:01:53 +03:00
spacek531 02ce098a2f Rename bank_rotation to roll, Pitch to pitch 2025-09-06 23:56:29 +02:00
Aaron van Geffen c1e3e8412b Rework ServerEvent, PlayerFlags, TickFlags 2025-09-05 13:24:00 +02:00
Aaron van Geffen d2c4a36787 Drop 'Network' prefix from more classes as suggested
* Rename Network::NetworkReadPacket class to Network::ReadPacket
* Rename Network::NetworkKey class to Network::Key
* Rename Network::NetworkPacket class to Network::Packet
* Rename Network::NetworkUser class to Network::User
* Rename Network::NetworkConnection class to Network::Connection
2025-09-05 13:17:14 +02:00
Aaron van Geffen cecac8ee0b Drop 'Network' from namespaced network constants 2025-09-05 12:53:42 +02:00
Gymnasiast 1cc2385ed7 Fix width calculation 2025-09-03 18:47:27 +02:00
Gymnasiast 7518cbb0c0 Small cleanup 2025-09-03 17:57:43 +02:00
Gymnasiast ac85de1e44 Change text field to a char array 2025-09-03 17:57:43 +02:00
Gymnasiast 7f2c4261b4 Remove ‘format’ and ‘args’ altogether 2025-09-03 17:57:43 +02:00
Michał Janiszewski 77012410a9 Revert "Fix #18048: Play music from all ride's stations (#24722)" (#25097)
This reverts commit 5a8150a941.
2025-09-03 11:54:16 +02:00
Jater Xu d90329731d Fix for Attempt to decrement guests in park and guests heading for park below zero.
Updated Review:
- Removed ignore warning variable
- Changed the log level of the related warnings to verbose
2025-09-02 10:33:18 -07:00
matheusvb3 aaa4ae05f4 Make guests in mazes not jump during heavy snow or blizzard (#25024) 2025-09-02 19:23:04 +02:00
Jater Xu 6fb00193ac Fix for Attempt to decrement guests in park and guests heading for park below zero. #21172
Fix:
- Calling recompute peep functions when in title sequence
- Provided a way to ignore the warning for title sequence
2025-09-01 19:47:42 -07:00
mix e9456ae68a Fix #25080: Missing water edges in certain land slope configurations 2025-09-01 09:58:27 +02:00
mrmbernardi fc0912d0da Fix dropdown separator fallback code 2025-08-31 20:43:01 +02:00
Aaron van Geffen 5a4cc7d00d Remove Network function name prefixes given namespace qualifiers 2025-08-31 16:02:43 +02:00