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

861 Commits

Author SHA1 Message Date
Michael Steenbeek
3e11a8efdf Fix #24998: Some custom small scenery objects do not load 2025-09-23 14:06:20 +02:00
Gymnasiast
73d3e4f0e3 Change "sprite exportalldat" into "sprite exportobject", take a filename instead of an already loaded DAT 2025-09-21 21:18:59 +02:00
Gymnasiast
161a8359fc Create function to create object from file 2025-09-21 21:18:22 +02:00
Gymnasiast
d4a0bca091 Rename Window fields 2025-09-17 20:10:12 +02:00
spacek531
b65f633456 Fix checking incorrect flags field when determining number of sprites of legacy vehicles 2025-09-16 13:46:09 +02:00
spacek531
3e10c20792 Add variable for number of spin frames 2025-09-08 12:57:04 +02:00
Michał Janiszewski
f4b5ba72eb Fix incorrect synchronisation reporting number of processed objects (#25043)
This resolves annoying reports of loaded percentage going backwards
2025-08-29 06:51:50 -03:00
Aaron van Geffen
a053a84486 Move all object units into OpenRCT2 namespace (#24980)
* Move all object units into OpenRCT2 namespace

* Dealing with fallout, part 1

* Dealing with fallout, part 2

* Dealing with fallout, part 3

* Apply clang-format in a few more places

* Remove redundant 'virtual' keyword
2025-08-17 06:46:03 -03:00
Michał Janiszewski
c54466ec28 Fix #24904: gracefully handle incomplete CSS files (#24923)
* Fix #24904: gracefully handle incomplete CSS files

Some CSS files are truncated, possibly due to users overwriting RCT2
assets with parts of RCT1. This causes incorrect access to freed memory
and potential double frees.

This change verifies CSS data has expected samples and if not, informs
user about incorrect assets. The samples that exist are still loaded and
available for use.

There was no backtrace report generated for this on Windows.

* Skip reading of unused variables
2025-08-09 21:56:12 +00:00
Michał Janiszewski
f6292b4c13 Use clang-format 20 (#24861)
https://clang.llvm.org/docs/ClangFormatStyleOptions.html
2025-07-31 11:01:48 +02:00
mix
5eaeaf3c95 Fix the pattern of long grass being different to RCT1 and 2 (#24829) 2025-07-24 20:19:14 +00:00
mix
92cf940b86 Fix #24785: Change scenery window filter to use filename instead of full path (#24786) 2025-07-23 07:03:09 -03:00
Gymnasiast
e29ba3bca4 Move Sawyer coding into its own namespace 2025-07-04 22:47:09 +02:00
Gymnasiast
8c001ba4b5 Move SawyerEncoding files to their own folder 2025-07-04 22:07:17 +02:00
Gymnasiast
9f2db42a19 Move SawyerEncoding into OpenRCT2::SawyerCoding namespace, rename to ChunkEncoding 2025-07-04 22:07:17 +02:00
Gymnasiast
6bdca7bcc9 Replace duplicate CHUNK_ENCODING_* with SawyerEncoding::* 2025-07-04 22:07:17 +02:00
LRFLEW
4101fb65a9 Refactor Compression and Streams, and Add IStream Direct Interface 2025-07-04 18:55:17 +02:00
Michael Steenbeek
31d2092b69 Always try mapping footpaths for .park files 2025-07-04 18:54:18 +02:00
Michael Steenbeek
b77aa9a956 Small cleanup of sound range parameters 2025-07-04 18:52:58 +02:00
Michael Steenbeek
2815d1958c Fix #18080: Obsolote .DAT objects can be loaded accidentally 2025-06-26 10:57:40 +00:00
mix
14aa6f7fdd Play door sounds for land edge doors 2025-06-14 22:29:21 +01:00
Aaron van Geffen
a4e92770fd Defer temp object Load/Unload to calling side 2025-05-28 00:58:25 +02:00
Aaron van Geffen
7cd59ab75f Create park preview images from scenario meta objects 2025-05-16 14:33:21 +02:00
Aaron van Geffen
66d67e2ee6 Populate image table for scenario meta objects 2025-05-16 13:02:36 +02:00
Aaron van Geffen
2d8d1e3eee Rename ScenarioText object type to ScenarioMeta 2025-05-16 12:54:14 +02:00
Matt
d2e3430df2 Add the ability to temporarily load objects without registering them (#24521) 2025-05-27 22:13:42 +00:00
Michael Steenbeek
2656f3acc2 Eliminate direct ride type check 2025-05-24 14:52:54 +02:00
mix
01f2651d2e Fix #20158: animated scenery dats draw random sprite at end of anim 2025-05-23 14:38:45 +02:00
Gymnasiast
ddacaacc71 Change SCROLLING_MODE_NONE to kScrollingModeNone 2025-05-20 22:57:59 +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
Matt
6335c31336 Rename DrawPixelInfo to RenderTarget (#24339)
* Begin backend separation, rename type DrawingPixelInfo to RenderTarget

* Rename dpi variables to rt
2025-05-04 22:06:46 +00:00
ζeh Matt
0b581281c5 Use string_view in ParseSourceGame lookup helper 2025-04-21 03:05:33 +03:00
ζeh Matt
a22c041379 Enable the use of std::string_view for find in ObjectRepository 2025-04-21 03:05:32 +03:00
Michael Steenbeek
cfb4b008b2 Create weak enum for PaletteIndex 2025-04-09 16:47:22 +02:00
Michael Steenbeek
ee7c7a3a9a Fix #21919: Non-recolourable cars still show colour picker 2025-04-07 20:50:40 +00:00
Gymnasiast
8d57f4d193 Rename ZIP_ACCESS and its members 2025-03-26 12:00:43 +01:00
Gymnasiast
b26a2953d7 Rename IMAGE_FORMAT and its members 2025-03-26 11:59:12 +01:00
Gymnasiast
74758c77b6 Rename PATHID and its members 2025-03-25 23:57:36 +01:00
Gymnasiast
ad547d2d6c Rename static constants of repositories 2025-03-25 23:42:27 +01: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
c5fff2bb77 Create enum class for FileMode 2025-03-25 22:47:08 +01:00
Gymnasiast
d0368a7f02 Rename STATION_OBJECT_FLAGS and its members 2025-03-25 22:05:53 +01:00
Michael Steenbeek
5ad0f5b411 Fix #24077: Track Designer crashes when clicking the park fence 2025-03-25 21:50:37 +01:00
Gymnasiast
bca715fb7f Rename TerrainSurfaceFlags and its members 2025-03-25 15:03:55 +01:00
Michael Steenbeek
70bdddcf36 Reduce object casting (#24072) 2025-03-25 08:51:44 +01:00
Aaron van Geffen
0a3e9fdfd9 Update object manager API to access new object types (#24009)
* Update object manager API to access new object types

* Use separate mapping for scripting due to different type names

* Amend changelog
2025-03-20 00:16:08 +01:00
discollizard
bef76d5017 Remove rideCategory field from ObjectRepositoryItem struct 2025-03-11 17:36:17 +01:00
Aaron van Geffen
2ce206ed03 Move item temperature thresholds to climate objects 2025-03-07 18:57:00 +01:00
Aaron van Geffen
23e6c26c2b Let ScClimate::type_get return a non-empty string again 2025-02-22 17:15:32 +01:00