1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00
Commit Graph

111 Commits

Author SHA1 Message Date
LRFLEW
52e3c774bc Use ZStandard for Park and Replay Files (#24734) 2025-08-06 21:50:18 +02:00
LRFLEW
c79eb0609b Don't Double-Compress Park Chunks in Replay File (#24728) 2025-07-20 21:03:52 -03:00
LRFLEW
1ecb2f9efe Fix Compression Issue when Stopping Recording 2025-07-05 12:42:24 +02:00
LRFLEW
4101fb65a9 Refactor Compression and Streams, and Add IStream Direct Interface 2025-07-04 18:55:17 +02:00
Michał Janiszewski
9747c27664 GCC15 fix in ReplayManager.cpp (#24707)
```
In member function ‘bool OpenRCT2::ReplayManager::SerialiseCommand(DataSerialiser&, OpenRCT2::ReplayCommand&)’,
    inlined from ‘bool OpenRCT2::ReplayManager::Serialise(DataSerialiser&, OpenRCT2::ReplayRecordData&)’ at /home/janisozaur/workspace/openrct2/src/openrct2/ReplayManager.cpp:778:37:
/home/janisozaur/workspace/openrct2/src/openrct2/ReplayManager.cpp:719:38: error: potential null pointer dereference [-Werror=null-dereference]
  719 |             command.action->Serialise(serialiser);
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
```

```
$ gcc --version
gcc (GCC) 15.1.1 20250425
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```
2025-07-01 11:15:09 +00:00
Gymnasiast
d2615beb6e Change News enums to use lowerCamelCase 2025-05-24 23:47:18 +02:00
Gymnasiast
47bb449e34 Make news item fields lowerCamelCase 2025-05-24 23:47:18 +02: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
Gymnasiast
14b881e22b Rename DIRID and its members 2025-03-25 23:39:27 +01:00
Gymnasiast
622a8dc525 Rename DIRBASE and its members 2025-03-25 22:47:09 +01:00
Gymnasiast
4badffcdb6 Change GameState_t members to lowerCamelCase 2025-03-20 23:05:57 +01: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
Harry Hopkinson
c1ac7c0700 Cleanup gameState usage 2024-09-02 22:42:37 +02:00
Harry Hopkinson
9ff90adf87 Adjust more constants to new constexpr notation (#22463)
* Rename DUCK_MAX_STATES to kDuckMaxStates

* Rename DuckMoveOffset to kDuckMoveOffset

* Rename DuckAnimationFlyToWater to kDuckAnimationFlyToWater

* Rename DuckAnimationSwim to kDuckAnimationSwim

* Rename DuckAnimationDrink to kDuckAnimationDrink

* Rename DuckAnimationDoubleDrink to kDuckAnimationDoubleDrink

* Rename DuckAnimationFlyAway to kDuckAnimationFlyAway

* Rename DuckAnimations to kDuckAnimations

* Rename ReplayVersion to kReplayVersion

* Rename ReplayMagic to kReplayMagic

* Rename ReplayCompressionLevel to kReplayCompressionLevel

* Rename NormalRecordingChecksumTicks to kNormalRecordingChecksumTicks

* Rename SilentRecordingChecksumTicks to kSilentRecordingChecksumTicks

* Rename WindowButtonsOnTheLeftDefault to kWindowButtonsOnTheLeftDefault
2024-08-04 21:46:32 +02:00
Duncan
a07b56a655 Move Viewport functions into Ui (#22454)
* Move viewport functions into ui

* Move footpath function to ui

* Don't include viewport in footpath.h

* Include missing includes
2024-08-02 06:01:31 +01:00
Andrew
df07d9cb2b Close #19596: Disable replay effects with a startup flag (#22303) 2024-07-25 17:29:01 -03:00
Aaron van Geffen
51873dc0f6 Include Diagnostic.h at unit level 2024-07-09 16:23:31 +02:00
Aaron van Geffen
a63d86c488 Introduce Config namespace and struct 2024-05-10 12:10:21 +02:00
Gymnasiast
61e8b6d206 Move _suggestedGuestMaximum to GameState_t 2024-02-08 21:47:31 +01:00
Gymnasiast
142d708cee Move _guestGenerationProbability to GameState_t 2024-02-08 21:46:41 +01:00
ζeh Matt
9b2a79faf1 Adjust the import/export code to have the game state passed 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
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
Duncan
23b6d1840e Rename classes with snakes OpenRCT2/G*-M* 2023-01-19 15:13:23 +00:00
Hielke Morsink
2c224cfd53 Rename snake_case functions in OpenRCT2/network folder (#19203) 2023-01-18 06:05:53 +00:00
Michael Steenbeek
bb55c6ce66 Remove loadsasnakes (#19192)
* Rename snake_case methods in scenario folder

* Rename snake_case methods in title folder

* Rename snake_case methods in object folder

* Rename snake_case methods in platform folder

* Rename snake_case methods in windows folder

* Rename tile_inspector.h to TileInspectorGlobals.h

* Rename snake_case methods in ui/windows folder
2023-01-17 19:46:55 +00:00
Hielke Morsink
6b7dc8fcdb Rename snake_case functions in openrct2/src folder
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2023-01-17 13:24:51 +01:00
Stephan Spengler
76b918e7ed Change openrct2/ride methods to UpperCamelCase, part 1 2023-01-17 01:32:54 +01:00
Hielke Morsink
6dafbbfb65 Rename global window functions to TitleCase (#19167) 2023-01-16 20:13:42 +00:00
Stephan Spengler
f8ab17749d Rename CheatSetAction to fit naming pattern 2023-01-06 22:57:15 +01:00
James103
73738bbdc8 Replace 2022 with 2023 in copyright headers
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
Hielke Morsink
abac080d3e Rename public general config data members 2022-10-16 21:46:01 +02:00
73
b9e677945d Replace 20XX with 2022 (#18158)
* Replace 2020 with 2022

Replace all 2020 headers with 2022

* replace other years with 2022

add missing years
2022-10-01 08:42:14 +01:00
Hielke Morsink
a258008bef Refactor window functions to take references 4 2022-07-31 17:23:16 +02:00
duncanspumpkin
7e7947fe8b Move legacy identifier interpreting to separate file from parkfile 2021-12-15 21:29:02 +00:00
ζeh Matt
56e78d5733 Merge pull request #15985 from ZehMatt/refactor/entities2
Refactor Sprite to Entity
2021-11-25 12:53:50 -08:00
ζeh Matt
03fb9b390f Rename Sprite to EntityRegistry 2021-11-24 17:04:12 +02:00
ζeh Matt
7c726e2a0c Fix includes 2021-11-24 16:48:33 +02:00
ζeh Matt
c6242fd310 More renaming 2021-11-24 15:50:18 +02:00
ζeh Matt
83b911b193 #15634: Refactor passing GameActions::Result by copy (#15951)
* Refactor to result GameActions::Result as copy instead of unique_ptr

* Remove alias GameActions::Result::Ptr

* Remove MakeResult wrapper

* Remove type forwarder in TileInspector
2021-11-24 07:35:08 +00:00
IntelOrca
34128dc262 Add new .park save format
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com>
Co-authored-by: duncanspumpkin <duncanspumpkin@users.noreply.github.com>
Co-authored-by: ZehMatt <Zehmatt@users.noreply.github.com>
Co-authored-by: Broxzier <Broxzier@users.noreply.github.com>
2021-11-21 22:43:22 +01:00
Hielke Morsink
53c22c9b4b Check for nullptr explicitly (#15458) 2021-09-24 20:05:50 +02:00
Gymnasiast
bdab3219cb Modify object loading for JSON-only objects 2021-09-15 11:28:39 +02:00
Michael Steenbeek
624a32e93b Make Coords isNull/setNull functions TitleCase (#15382) 2021-09-08 20:48:53 -03:00
duncanspumpkin
3199029168 Split off EntityTweener into seperate file 2021-05-29 07:47:49 +01:00
Michał Janiszewski
8ee49ab615 Reduce inclusion of world/Sprite.h 2021-02-25 10:56:27 +01:00
Matt
6034cef358 Fix replay snapshots comparing states with different ticks 2021-01-22 15:35:16 +02:00
ζeh Matt
78f6e3e8e3 Fix replays not failing when last tick is the cause (#13834)
* Fix replays never failing

* Change replay dependency meta

* Stop replay when state mismatches
2021-01-14 13:48:12 +00:00
skdltmxn
7ef4d7762f Refactor to avoid unnecessary copies (#13736)
* Refactor to avoid unnecessary copies

* Fix dangling references
2021-01-11 18:14:15 -03:00