1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +01:00
Commit Graph

239 Commits

Author SHA1 Message Date
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
spacek531
02ce098a2f Rename bank_rotation to roll, Pitch to pitch 2025-09-06 23:56:29 +02:00
Aaron van Geffen
5a4cc7d00d Remove Network function name prefixes given namespace qualifiers 2025-08-31 16:02:43 +02:00
Aaron van Geffen
12ab9195b6 Rework EntityRegistry into class 2025-08-31 14:29:36 +02:00
matheusvb3
aaa4ae05f4 Make guests in mazes not jump during heavy snow or blizzard (#25024) 2025-09-02 19:23:04 +02:00
Aaron van Geffen
f11d1e33d0 Move Scenario::Objective into its own unit; enum class ObjectiveType 2025-08-22 17:40:47 +02:00
Aaron van Geffen
aa35ec07cd Introduce Scenario::Options struct; move cash and guest options 2025-08-22 15:57:33 +02:00
matheusvb3
4b9a4ae604 Add ClimateIsPrecipitating() 2025-08-22 08:15:26 +02:00
Gymnasiast
61df9eaf9a Update ExpenditureType enum to new code style 2025-08-21 22:12:41 +02:00
Gymnasiast
9c810d9e32 Update ParkData fields to new code style 2025-08-21 22:12:41 +02:00
Tulio Leao
80b5187da9 Rename ride_rating to RideRating_t 2025-08-17 08:49:03 -03:00
Tulio Leao
8a542a348d Move MakeRideRating into namespace 2025-08-17 08:47:21 -03:00
matheusvb3
8dd7b7976f Prevent ride and stall statistics from overflowing (#24378)
* Prevent ride and stall statistic from overflowing

Clamps guestsFavourite, totalCustomers, lastInspection, totalProfit, numPrimaryItemsSold and numSecondaryItemsSold

* Change line of comment in Ride.h

This caused the tooltip with the comment to appear when hovering over notFixedTimeout instead of breakdownSoundModifier in Visual Studio

* Remove redundant overflow prevention

* Invalidate maintenance tab

Missed this before. Also fix an issue I inadvertently caused with PR #23719 when updating the count of vandals stopped

* Deduce lastInspection type in compile time

* Add changelog entry
2025-05-31 03:10:36 +03:00
Gymnasiast
d2615beb6e Change News enums to use lowerCamelCase 2025-05-24 23:47:18 +02:00
ζeh Matt
98c058be1c Make some members static functions 2025-05-21 22:27:14 +03:00
ζeh Matt
8c6ba00494 Couple more places 2025-05-21 21:59:31 +03:00
ζeh Matt
eb9cf26f1b Pass guest by reference, rename parameter 2025-05-21 21:48:46 +03:00
ζeh Matt
5a98133c1d Handle peep state directly in the update switch 2025-05-21 17:32:35 +03:00
ζeh Matt
04c75f6f8b Remove code duplication for stepping 2025-05-21 17:28:05 +03:00
ζeh Matt
db23e69597 Remove useless checks 2025-05-21 17:23:30 +03:00
ζeh Matt
f475ef050f Start splitting Peep::Update into Staff::Update and Guest::Update 2025-05-21 17:15:38 +03:00
Aaron van Geffen
99836faeff Rename Window_internal unit to WindowBase for consistency (#24163) 2025-04-06 17:43:36 +02:00
Gymnasiast
eaaba9fbfb Rename HOOK_TYPE and its members 2025-03-26 12:16:47 +01:00
Gymnasiast
fa15bc56d2 Rename INVALID_DIRECTION to kInvalidDirection 2025-03-25 22:47:08 +01:00
Matt
94be70f8a8 Merge pull request #24034 from Gymnasiast/refactor/gamestate-t-lower-camel-case
Change GameState_t members to lowerCamelCase
2025-03-21 23:32:02 +02:00
Gymnasiast
4badffcdb6 Change GameState_t members to lowerCamelCase 2025-03-20 23:05:57 +01:00
ζeh Matt
cac21504cd Refactor PerformNextAction, we don't need a wrapper 2025-03-20 21:23:32 +02:00
Aaron van Geffen
2ce206ed03 Move item temperature thresholds to climate objects 2025-03-07 18:57:00 +01:00
Michael Steenbeek
05b64985f4 Update Ride struct to new codestyle 2025-03-09 00:26:25 +01:00
Gymnasiast
3c35debafe Rename RIDE_VALUE_UNDEFINED to kRideValueUndefined 2025-03-06 23:30:57 +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
Michael Steenbeek
06c1fed4f7 Refactor gScreenFlags to LegacyScene enum 2025-03-05 20:45:04 +00:00
Aaron van Geffen
a380413c56 Remove Scenario.h include from many units (#23901)
* Reduce includes/dependencies for Scenario.h

* Remove Scenario.h include from many units
2025-03-01 17:32:32 +01:00
73
a976a43708 Rename network.h to Network.h (#23882) 2025-02-24 10:43:06 +01:00
73
c7c703515e Rename audio.h to Audio.h (#23842) 2025-02-17 13:24:03 +01:00
73
b9b2c96c97 Rename sprites.h to SpriteIds.h (#23804) 2025-02-13 15:51:46 +00:00
Aaron van Geffen
6933af25ae Rename 'Climate' properties to Weather (#23786)
* Rename ClimateState to WeatherState

* Rename ClimateCurrent to WeatherCurrent

* Rename ClimateNext to WeatherNext

* Rename ClimateUpdateTimer to WeatherUpdateTimer

* Use named initialisers for weather state import in S4/S6 importers

* Rename S4::ClimateTimer to WeatherUpdateTimer as well

* Rename WeatherState struct properties to lowerCamelCase
2025-02-13 07:38:45 -03:00
matheusvb3
850cc397c3 Prevent staff statistics from overflowing (#23719)
* Use AddClamp when incrementing staff stats

* Remove decltype from AddClamp

* Use lowercase u in increment
2025-02-02 17:44:12 -03: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
a3d5b4e0c3 Change FIXED_XDP from macros to constexprs 2025-01-25 13:42:22 +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
bed4d5bdca Move WindowCreate and WindowFocusOrCreate into WindowManager (#23643)
* Move WindowBringToFront into WindowManager

* Move WindowCreate and WindowFocusOrCreate into WindowManager

* Cut back on Context/UiContext includes
2025-01-19 06:58:28 -03:00
ζeh Matt
5261a5c102 Make sure that GuestNextInQueue is not uninitialized 2025-01-06 20:04:39 +02:00
Aaron van Geffen
42cbb0d1c0 Change leftover spelling of SuJongkwa to Sujeonggwa 2024-12-31 00:08:45 +01:00
Aaron van Geffen
6ed7fd461e Move isSlowWalking property to animation group level 2024-12-23 12:21:04 +01:00
Aaron van Geffen
7e3fe58067 Use peep animation objects for guest and staff sprites 2024-12-05 13:37:39 +01:00
Aaron van Geffen
48be2e911c Set consumption time when giving items to guests (#23581) 2025-01-09 20:01:53 +01:00
Aaron van Geffen
aa45247f21 Move WindowFind functions into WindowManager (#23517)
* Move WindowFind* functions into WindowManager

* Update parameter documentation where applicable
2025-01-08 21:12:11 +01:00