Commit Graph
23098 Commits
Author SHA1 Message Date
Michał Janiszewski 0999cf7ea6 Fix #25961: Only draw next vehicle sprite if it is present (#25970) 2026-02-24 10:58:02 +00:00
Eve SilfanusandMichał Janiszewski 52d7e1833b Build Performance Optimization (#26015)
* Build Performance Optimization

* Fixed include order formatting

* Reverted CMakeLists.txt

* Fixed pch implementation

* Removed cmake pch

* Update test/tests/CMakeLists.txt

---------

Co-authored-by: Michał Janiszewski <janisozaur@users.noreply.github.com>
2026-02-24 11:39:15 +01:00
matheusvb3 1e3d1cf252 Rename TrackElemType::watersplash -> waterSplash (#26088) 2026-02-24 08:58:01 +01:00
Aaron van Geffen 8a0fef3d9b Refactor StationObject image indices (#26042)
* Refactor StationObject image indices

* Minor rewrite to avoid kNumOrthogonalDirections

* Return early in StationObject::Load if there are no images

* Unset all indices when unloading a station object
2026-02-23 23:53:56 +01:00
pg805 b4a59ef4c7 Fix #26058: RCT Classic .sea scenarios with packed objects silently excluded from scenario index (#26081) 2026-02-23 22:42:43 +01:00
Michael Steenbeek ef00b67b19 Merge pull request #26076 from Gymnasiast/fix/26057
Fix #26057: Infogrames logo is taken off screen too early + small refactor
2026-02-23 07:38:23 +01:00
Aaron van Geffen fecdfa47a8 Merge pull request #26030 from AaronVanGeffen/ride-appearance-tab-refactor
Ride colour/appearance tab refactor
2026-02-22 23:32:27 +01:00
Gymnasiast a52380b325 Create constants for some stuff in IntroScene.cpp 2026-02-22 00:51:00 +01:00
Gymnasiast 520cd30cba Fix #26057: Infogrames logo is taken off the screen before it reaches the bottom 2026-02-22 00:38:19 +01:00
matheusvb3 40e4c0d5ae Update comment in RideObject.cpp (#26063)
Updated comment for VEHICLE_ENTRY_FLAG_11 to clarify its obsolescence.
2026-02-21 06:58:55 +01:00
mix c05e49e384 Fix selecting elements in tile inspector list and all track tiles invalidation (#26037)
* Invalidate tile when selecting elements in tile inspector list

* Invalidate all track tiles in TileInspector::TrackBaseHeightOffset

* Invalidate all track tiles in TileInspector::TrackSetChain

* Add changelog entry for tile inspector invalidation fixes
2026-02-21 06:57:40 +01:00
Michael Steenbeek 4b2bedd1ce Merge pull request #26059 from Broxzier/feature/intro-refactor
Refactor IntroScene
2026-02-20 22:05:03 +01:00
Michał Janiszewski bc899b99c1 Android: Use android:requestLegacyExternalStorage="true" (#26068)
This fixes Android 10 support
2026-02-20 20:07:40 +01:00
Michał Janiszewski 1e3790cb77 Optimize Android CI by splitting builds and parallelizing ABIs (#26069)
`src/openrct2-android/app/build.gradle` now supports `abiFilter` and
`skipNativeBuild` properties, which can be used to selectively build
individual architectures. Each architecture is built in its own job and
after the upload/download artifacts dance they get merged in the
`android` job.

This improves cache locality for ccache by splitting it into
ABI-specific keys.

The parameters are optional, so no changes are required to build
instructions - all the supported architectures will be built by default.
2026-02-20 20:06:09 +01:00
matheusvb3 fb504ee0cc Remove empty comments in TrackData.cpp (#26065) 2026-02-20 10:21:05 +01:00
Hielke Morsink 24ee46680c Move all IntroScene implementations to the end 2026-02-19 14:07:31 +01:00
Hielke Morsink 93ccb908b5 Move ownership and details to IntroSceneImpl 2026-02-19 14:01:21 +01:00
Hielke Morsink ac30eeb06e Remove unused function 2026-02-19 12:31:16 +01:00
Hielke Morsink 923d9f7ff0 Move IntroState enum out of header 2026-02-19 12:05:52 +01:00
Aaron van Geffen d4302bc6c9 Refactor dropdown drawing (#26045)
* Minor tweaks to Dropdown code

* Split off DropdownWindow::drawSeparator

* Split off DropdownWindow::drawItem

* Rework WindowDropdownShowImage to take ScreenCoordsXY&
2026-02-18 14:26:03 +01:00
Gymnasiast 9a067f2654 Bump network version after guest generation change 2026-02-17 20:51:15 +01:00
MarcelVos96 4db23ede3e Slow down guest generation above 52000, instead of 7000 (#26049) 2026-02-17 20:39:35 +01:00
matheusvb3andGymnasiast c11ac55bbc Fix playSplashSound flag bug (#25992)
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com>
2026-02-16 23:47:02 +01:00
Michael Steenbeek f9756b988f Add TD7 format 2026-02-16 23:42:35 +01:00
Aaron van Geffen 2576236916 Rename WIDX_PRIMARY_PREVIEW, WIDX_SECONDARY_PREVIEW 2026-02-16 14:58:49 +01:00
Aaron van Geffen ac0dd3b8bd Replace libspeexdsp with custom linear resampling (#26011) 2026-02-15 22:08:58 +00:00
Michał Janiszewski 43c8fd70f6 Be more descriptive about error (#26033) 2026-02-15 21:15:07 +01:00
Aaron van Geffen a9226b1482 Move station style label into widget 2026-02-15 16:52:54 +01:00
Aaron van Geffen 172801e7cb Rework previews to always use clipped RTs 2026-02-15 16:27:11 +01:00
Aaron van Geffen 4899622c19 Split up ColourOnDrawPrimaryPreview into sub functions 2026-02-15 16:13:07 +01:00
Aaron van Geffen a57d60963d Split off ColourOnDrawTrackPreview, ColourOnDrawEntrancePreview 2026-02-15 16:01:23 +01:00
Aaron van Geffen 02b4d32d26 Ride window: reduce scope of temporary variables 2026-02-15 15:51:35 +01:00
Aaron van Geffen f4d5d6499d ShopItem.cpp: fix table alignment due to renamed kStringIdNone 2026-02-15 15:49:02 +01:00
Michael Steenbeek 92d5574ffb Close #25526: When a shop item cannot be recoloured, show a preview of the building (#25528) 2026-02-14 23:49:40 +01:00
spacek531 cd8aa64140 Convert miniGolfFlags to FlagHolder (#26017) 2026-02-13 12:49:51 +01:00
spacek531 281aea6ebe Refactor VehicleFlags to FlagHolder (#26014) 2026-02-13 09:50:54 +00:00
Michał Janiszewski 37545dfd5e Use assets.json as single source of truth for OpenRCT2 assets (#25968)
* Use assets.json as single source of truth for OpenRCT2 assets

This ensures there's single source of truth for all downloadable assets.
I figured the "version" information is actually redundant because we can
embed the whole URL as the "zipversion", therefore this is dropped now.

The newly-introdcued MSBuild task uses Roslyn-based code and I updated
`DownloadDependency` task to RoslynCodeTaskFactory as well.

* Rename OpenMSX to OpenMusic
2026-02-12 21:44:42 +01:00
frozensnowy 8ff9efa3a1 Fix #25963: Crash when loading corrupted saves with duplicate entity indices (#25980)
Corrupted RCT1/RCT2 save files may contain entities with duplicate or invalid EntityIndex values and when importing these saves, CreateEntityAt returns nullptr for duplicate indices, causing a null pointer dereference crash in ImportEntityCommonProperties, this sanitises each entity's (entities?) EntityIndex to match its array position, so that CreateEntityAt always succeeds. Added unit tests too for just this case, with a crashing save file.
2026-02-12 13:33:06 +00:00
frozensnowy 7c5caea558 Fix: Remove unused constants + fixed include order 2026-02-11 22:42:55 +01:00
frozensnowy e00c8aade8 Refactor: Move door animation logic to Vehicle.SceneryDoors.cpp
Moves scenery and landscape door functions to a dedicated file
2026-02-11 22:33:46 +01:00
frozensnowy 1140f441af Refactor: Move dodgems logic to Vehicle.Dodgems.cpp
Moves dodgems mode, motion, and collision detection to a dedicated file
2026-02-11 22:24:37 +01:00
frozensnowy 68274c31f5 Fix: Removed unused constants 2026-02-11 21:51:27 +01:00
frozensnowy e68f249c0e Refactor: Move collision logic to Vehicle.Collision.cpp
Moves collision detection and reverser car functions to a dedicated file for it
2026-02-11 21:09:09 +01:00
frozensnowy 7a7a4ebb49 Refactor: Move track motion logic to Vehicle.TrackMotion.cpp
Moves velocity updates, forward and backward motion and block brake functions to a dedicated file
2026-02-11 20:57:28 +01:00
Michael Steenbeek 5a73dc39d5 Merge pull request #25996 from Gymnasiast/refactor/track-import-export
Small refactor of TD4/6 import/export
2026-02-11 11:15:46 +01:00
spacek531 4b616d53df Fix #25999: Scenery picker tool does not pick tertiary colour of LS correctly 2026-02-10 22:36:45 +00:00
spacek531 52aef7b77c Fix indentation of RTDs 2026-02-10 23:09:18 +01:00
spacek531 c72fd6b8ac Set powered launch speed without operating limits cheat (#25994) 2026-02-10 19:17:44 +00:00
frozensnowy 4c88430ebb Preview images from different windows overwrite each other when using OpenGL (#25986)
The Map, Track Design List, Track Design Placement, Install Track, and Park Preview windows all shared a single SPR_TEMP sprite ID for rendering dynamic preview images. In OpenGL mode, this caused them to overwrite each other's textures when multiple windows were open simultaneously. To fix it I added separate temp sprite IDs for each window that needs one, with an array of G1Elements to store each separetely
2026-02-10 19:42:32 +01:00
Gymnasiast 1a05e28b46 Create Limits::kTD6MaxMazeElements and Limits::kTD6MaxSceneryElements 2026-02-10 19:14:30 +01:00