1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00
Commit Graph

138 Commits

Author SHA1 Message Date
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 Geffen
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
ζeh Matt
c4c3743a6b Fix formatting 2023-06-01 01:25:07 +03:00
ζeh Matt
0f00ad2dd2 Signal that we are inside the update phase in the right function 2023-06-01 01:17:02 +03:00
ζeh Matt
94525e1742 Fix #20250: Entity tweening corrupting entity positions changing parks 2023-05-22 04:31:48 +03:00
Matthias Moninger
6bd5f75330 Update the UI at screen refresh rate (#20214)
* Update the UI at screen refresh rate

* Decouple input from ticks, fix scroll at high frame rates

* Fix holding down mouse button on buttons causing too many events

* Subtract the initial delay to keep the same behavior as before

* Guard against the rare case where the value might be 0

* Fix right click not working correctly

* Fix odd behavior when using right click to scroll lists

* Make touch work again, fix mouse panning in fullscreen (borderless)

* Update changelog.txt
2023-05-17 19:19:44 +00:00
Michael Steenbeek
fd80b4c822 Refactor and clean up date handling (#19666)
* Refactor and clean up date handling

* Remove gDate, remove direct access to days_in_month

* Adjust the MultiLaunch test

* Bump network version

---------

Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com>
2023-04-02 09:25:41 +01:00
Hielke Morsink
2c224cfd53 Rename snake_case functions in OpenRCT2/network folder (#19203) 2023-01-18 06:05:53 +00:00
Hielke Morsink
917c091e6b Rename snake_case functions in OpenRCT2/marketing folder 2023-01-17 23:13:39 +00:00