Commit Graph
145 Commits
Author SHA1 Message Date
Tulio Leao 74e329c015 Move RideRatingsUpdateAll into namespace 2025-08-17 06:27:02 -03:00
Aaron van Geffen 3f9352b511 Split off ParkData.h from Park.h 2025-08-13 19:55:58 +02:00
mix 78c2b85b1d Rename MapAnimation namespace to MapAnimations 2025-06-13 21:13:33 +01:00
mix d847c37fc8 Calculate visible animated tiles by tile position 2025-06-13 21:13:33 +01:00
ζeh Matt 769a85afb7 Refactor how map animations are created and stored 2025-06-13 21:13:32 +01:00
Matt 42df41efdb Remove the use of shared_ptr for the Context (#24404)
* Replace shared_ptr with unique_ptr for Context systems, return refs

* Fix all the users

* clang-format fix

* Fix linux builds
2025-05-15 22:46:06 +03:00
mix 3c6ff344bb Prevent animation invalidation when paused 2025-04-07 22:12:03 +02:00
Gymnasiast 2002f697e0 Refactor INPUT_FLAGS into FlagHolder 2025-03-26 13:00:54 +01:00
Gymnasiast eaaba9fbfb Rename HOOK_TYPE and its members 2025-03-26 12:16:47 +01:00
Gymnasiast 4badffcdb6 Change GameState_t members to lowerCamelCase 2025-03-20 23:05:57 +01:00
Gymnasiast 79514bbb79 Modify News::InitQueue to take GameState_t 2025-03-18 23:25:25 +01:00
Aaron van Geffen 8eb8f045b5 Purge old climate setting from gamestate 2025-02-04 16:25:17 +01:00
Michael Steenbeek 05b64985f4 Update Ride struct to new codestyle 2025-03-09 00:26:25 +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
Aaron van Geffen fa06a49302 Update copyright year to 2025 (#23514) 2024-12-31 20:30:04 +01:00
Basssiiie 9ba4beb1dc Fix #23496: missing spatial index update when paused (#23505) 2024-12-30 08:02:25 -03:00
ζeh Matt 551a6b5275 Move the call to UpdateEntitiesSpatialIndex to more appropriate places 2024-10-12 04:17:17 +03:00
Michael Steenbeek cc1d11a01b Merge pull request #22689 from Gymnasiast/refactor/provisional-elements-to-ui
Move removal/restoring of provisional elements to UI project
2024-09-06 23:44:39 +02:00
Gymnasiast ab3e919678 Move removal/restoring of provisional elements to UI project 2024-09-06 23:31:50 +02:00
Aaron van Geffen 960bea7aae Prefer using passed game state in save import classes (#22682)
* Wrap global game state in a unique_ptr

* Make ImportTileElements, SetTileElements use game state passed

* Make ImportParkName, ImportSavedView use game state passed

* Make ImportPeepSpawns use game state passed

* Make FixEntrancePositions use game state passed
2024-09-06 23:04:14 +02:00
Aaron van Geffen 547b763e89 Reduce includes for GameState compilation unit (#22690) 2024-09-03 23:29:12 +03:00
Harry Hopkinson c1ac7c0700 Cleanup gameState usage 2024-09-02 22:42:37 +02:00
Aaron van Geffen d1ca17adef Remove ScenerySetDefaultPlacementConfiguration from _legacy.cpp 2024-07-31 20:12:23 +02:00
Aaron van Geffen 3d5c19de08 Drop Localisation.h include where not required 2024-07-13 13:33:32 +02:00
Aaron van Geffen 3fd91038c3 Rename Date.h to Localisation.Date.h to match unit file 2024-07-12 22:18:43 +02:00
Aaron van Geffen a63d86c488 Introduce Config namespace and struct 2024-05-10 12:10:21 +02:00
Michał Janiszewski 7b12667ddb Reduce <algorithm> include (#21947) 2024-05-01 13:47:27 +02:00
duncanspumpkin 4810a72232 Move a number of ui only updates into UiContext tick 2024-04-29 14:10:52 +02:00
Aaron van Geffenandζeh Matt 255e89ec37 Refactor TitleScreen to TitleScene; introduce GameScene
Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com>
2024-04-23 21:31:05 +02:00
Gymnasiast 19e403068d Fix formatting 2024-04-04 18:18:25 +02:00
Gymnasiast c158854a7f Move Park into namespace, add other park-related things to struct 2024-04-04 18:14:27 +02:00
Gymnasiast 4f3b7aa8a9 Turn Park into struct 2024-04-04 18:12:36 +02:00
Gymnasiast 7b072808ee Turn Date into struct 2024-04-04 18:12:36 +02:00
Gymnasiast fef1a27342 Remove GameState class 2024-04-04 18:12:35 +02:00
Gymnasiast 28451027b1 Move Park to GameState_t 2024-04-04 18:12:08 +02:00
Gymnasiast 1f1377a8ef Move Date to GameState_t 2024-04-04 18:12:08 +02:00
Claudio Tiecher a94e6c54d8 Part of #21421: replace define with constexpr (#21679) 2024-04-01 07:00:32 -03:00
Harry Hopkinson 7797db10c8 Replace Macros and Notation in Cheats.h, common.h and Context.h. (#21437) 2024-02-23 19:30:35 -03:00
Harry Hopkinson b989ccbb20 Remove unused gSavedAge (#21410)
* Remove the unused SavedAge variable.
2024-02-20 16:58:46 -03:00
Severin Paul Höfer 89094cad0d Fix #21290: Sound keeps playing when paused from fast-forward mode (#21301)
* Stop additional calls to UpdateLogic after pausing

* Update changelog.txt
2024-01-29 15:35:28 +01:00
Michael Steenbeek 3827d1770b Move banners to GameState_t 2024-01-25 15:32:16 +01:00
Harry Hopkinson 8816aa607c Move gNextGuestNumber to Gamestate_t 2024-01-25 09:34:47 +00:00
Michael Steenbeek 115e7389a9 Move most gScenario* globals to GameState_t 2024-01-24 22:17:32 +01:00
ζeh Matt f708e911e4 Make clang-format happy 2024-01-19 16:32:19 +02:00
ζeh Matt a5dde0f8dc Replace gCurrentTicks with the one in GameState_t 2024-01-19 16:32:19 +02:00
ζeh Matt 4c919f74aa Start of the new GameState structure 2024-01-19 16:32:15 +02: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
Matt 2147b69104 Update the money effect even when the game is paused (#21102)
* Update the money effect even when the game is paused

* Update changelog.txt
2023-12-23 11:04:25 -03:00
ζeh Matt edabd97c8a Remove benchmark code from game logic 2023-06-30 16:35:05 +03:00