Commit Graph
13192 Commits
Author SHA1 Message Date
Gymnasiast 5bc368dfdb Set G1Flag::hasZoomSprite when a zoom offset has been specified in JSON 2026-06-24 12:34:53 +02:00
Gymnasiast 0833b474c4 Always set G1Flag::hasTransparency (bit 0) when importing an image
RCT1/2 always set this flag when an entry is an image of any sort (as opposed to a palette entry). It may be misnamed, as both regular and compressed/"RLE" images support transparency.

This modifies a single bit in the example.dat file, as expected. For convenience:

2c2
< 00000010: 0000 0000 0400 0000 0001 0501 0a01 0f01  ................
---
> 00000010: 0000 0000 0500 0000 0001 0501 0a01 0f01  ................
2026-06-24 12:34:04 +02:00
Gymnasiast 96fae1b2ae Allow images over 256×256 pixels
RCT1 uses these and RCT2 may too (specifically for the reverse freefall coaster), so this limit does not seem to be inherent to g1.
Maybe it could be removed outright.
2026-06-24 12:10:38 +02:00
Alex Parisi 99ea620836 Fix desync when placing tracks (#26605)
When any player in multiplayer places a track design, `TrackDesignAction::Execute` runs on every client which calls `UtilRand()`, resulting in every client getting a different colour since it's non-deterministic. Each client then commits its own local colour to `Vehicle::colours`. Since that field is part of the entity checksum, `NetworkBase::CheckSRAND` will flag a desync.

This PR adds a parameter to `RideGetUnusedPresetVehicleColour` to allow the caller to pass in a random value and make the choice of determinism. The UI call sites can still use `UtilRand`, but `TrackDesignAction` should be using `ScenarioRand`.
2026-06-24 09:39:00 +00:00
Michael Steenbeek a5a2da1f12 Update to objects release v1.7.10 (#26715) 2026-06-24 11:06:49 +02:00
Tulio Leao d1d3044dac Part of #26654: Allow .parkpatch files to set rides to open 2026-06-22 19:46:53 -03:00
mix 34df5c1001 Fix #24613, #26578: Incorrect sprites drawn or crash with invalid paths (#26600) 2026-06-22 18:26:32 +00:00
Harry Hopkinson 63fd3f9458 Fix ratingMultiplier spelling mistake (#26664) 2026-06-22 20:02:15 +02:00
Alex Parisi f4008a433a Fix DEBUG flag checks 2026-06-22 19:51:45 +02:00
Harry Hopkinson 95df165f9b WALL_SCENERY_2_IS_OPAQUE flag denotes transparent wall object 2026-06-21 17:19:21 +02:00
Harry Hopkinson 7e01b1ec1e Remove redundant includes from openrct2/actions (#26699) 2026-06-19 11:03:19 +02:00
mrmbernardi a64f0eff6c Fix crash when ScPark::generateGuest fails to generate a guest (#26681) 2026-06-16 20:24:53 +02:00
Aaron van Geffen ad24c5c17f Introduce SceneManager class (#26691) 2026-06-14 16:46:48 +00:00
Michał Janiszewski 193b2da77e Turn off optimizations for MSVC to fix miscompilation (#26678)
This adds a workaround for the MSVC bug reported here:
https://developercommunity.visualstudio.com/t/MSVC-amd64-O2-miscompiles-SDL_ttf-deriv/11104938

Fixes #26637
2026-06-14 18:45:12 +02:00
Alex Parisi fd34b5b556 Free buffer during reassignment (#26582) 2026-06-14 18:39:50 +02:00
Aaron van Geffen 068af83a31 Move EditorStep to its own header file (#26690) 2026-06-14 18:27:02 +02:00
Aaron van Geffen e4a705b4e8 Allow starting editor directly from command line (#26689) 2026-06-14 18:26:16 +02:00
MarcelVos96 45e30a559a Fix the boosts/penalties to excitement and nausea that air time provides (#26505)
* Fix air time calculations

* Bump kStreamVersion

* Update rating tests

* Update replay bundle
2026-06-11 09:27:23 +00:00
MarcelVos96 bf4810ea50 Fix where walls block the view of rides/scenery on the first tile next to the path (#26495) 2026-06-10 18:49:31 +00:00
MarcelVos96 86f282f7c0 Add cheat to disable grass growing (#26442) 2026-06-09 23:03:27 +02:00
tbarford d56e884c60 Add all new track pieces to the inverted roller coaster (#26308) 2026-06-07 13:14:55 +00:00
Michał Janiszewski 7d2958ea63 Release v0.5.2
- Improved: [#26322] [Plugin] Add footpath flags to FootpathSurfaceObject in the plugin API.
- Improved: [#26566] Improve the performance of sorting sprites.
- Fix: [#26350] [Plugin] ListViews altered by plugins post their creation are not invalidated.
- Fix: [#26565] Game crashes when switching to another tab in the guest window.
- Fix: [#26583] The default tab is not highlighted when opening a ride window.
- Fix: [#26602] Crash when locating the nearest mechanic for a ride that has not previously been inspected.
- Fix: [#26615] Missing junction path tile in Build your own Six Flags Over Texas.
- Fix: [#26616] Fix gap in buyable land in Build your own Six Flags Magic Mountain.
- Fix: [#26624] Tile elements selected by clicking on them with the tile inspector open do not always redraw correctly.
- Fix: [#26634] Add missing park patch file for Build your own Six Flags Great Adventure.
2026-06-07 12:17:24 +02:00
Michał Janiszewski d35233a155 Update BACKTRACE_TOKEN for upcoming release 2026-06-07 12:11:01 +02:00
Harry Hopkinson 5e7fd1840c Move raw constant in Paint.Balloon.cpp to SpriteIds.h (#26642) 2026-06-06 16:37:16 -03:00
Stephan SpenglerandTulio Leao bcdac632a4 Add footpath object flags to API (#26322)
* add footpath object flags to API

* Add changelog

---------

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2026-06-06 16:31:03 -03:00
Harry Hopkinson 893cc8b565 Rename enum members to lowerCamelCase (#26626)
* Rename LightFX.h enums

* Rename Yaw.hpp enums

* Rename Chat.h enums

* Rename InteractiveConsole.h enums

* Rename NetworkTypes.h enums

* Rename VirtualFloor.h enums
2026-05-30 16:22:05 +02:00
mgiannopoulos24 ab47bbd5d9 Rename Guest entity members (#26625) 2026-05-30 14:21:37 +00:00
tbarford 0ed6ae9628 Build fix for macOS Tahoe (#26628) 2026-05-29 22:04:44 +02:00
Harry Hopkinson 8ce9661dc9 Rename more enum members to lowerCamelCase (#26608)
* Rename enums in Cheats.h

* Rename enums in Diagnostic.h

* Rename enums in Editor.h

* Rename enums in Input.h

* Rename enums in OpenRCT2.h

* Rename enums in ConfigTypes.h

* Rename enums in Identifier.hpp
2026-05-28 10:54:24 +00:00
mix 133c1fde0c Change pitch8 and pitch16 banked45 vehicle bbs to use flat banked45 bbs (#26621) 2026-05-28 12:40:33 +02:00
mgiannopoulos24 d85835a0a0 Rename Staff entity members (#26603)
* Rename Staff entity member fields

* Rename Staff entity methods for consistency

* Remove unused EntertainerCostume enum class
2026-05-28 12:28:45 +02:00
Alex HarveyandAaron van Geffen 6685f73c5f Replace old constant notation, convert ParkFileChunkType to enum (#26341)
* Update const notation in RideAudio.cpp

* Update const notation in TitleSequence.h

* Update const notation in ParkFile.cpp

* Add loonyduck1 to contributors.md

* Convert ParkFileChunkType to enum class

* Use lowerCamelCase for ParkFileChunkType enum members

* Avoid introducing EnumValue for readWriteChunk calls

---------

Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
2026-05-28 10:22:11 +00:00
mix 5ddd9d746a Fix #26602: Crash when find mechanic for ride that hasn't been inspected (#26606) 2026-05-23 13:57:30 +02:00
mgiannopoulos24 d841b2dcec Rename Litter entity members (#26597)
* Rename Litter entity members

* Rename `Serialise` → `serialise` in all entity types called from GameStateSnapshots.cpp.
2026-05-21 21:21:42 +02:00
Harry Hopkinson 9d5e532064 Rename enum members to lowerCamelCase in actions/ (#26593)
* Rename enums in LoadOrQuitAction.h

* Rename enums in ScenarioSetSettingAction.h

* Rename enums in TileModifyAction.h

* Rename enums in NetworkModifyGroupAction.h

* Rename enums in LandBuyRightsAction.h

* Rename enums in LandSetRightsAction.h

* Rename enums in ParkSetParameterAction.h

* Rename enums in PeepPickupAction.h

* Rename enums in StaffSetPatrolAreaAction.h

* Rename enums in RideFreezeRatingAction.h

* Rename enums in RideSetAppearanceAction.h

* Rename enums in RideSetSettingAction.h

* Rename enums in RideSetVehicleAction.h

* Rename enums in BannerSetStyleAction.h
2026-05-21 19:16:07 +00:00
Michał Janiszewski 9207ddd3f8 Rearrange quickjs-amalgam.c to be compiled earlier (#26598)
This rearranges compilation order such that quickjs gets compiled
earlier and doesn't stall when no other work can be performed.
2026-05-21 21:05:15 +02:00
Aaron van Geffen a045abfa45 Refactor ride window's vehicle draw routines (#26080)
* Rename nextSpriteToDraw to nextImageToDraw

* Differentiate firstCarIndex from inner carIndex

* Take Widget& instead of ptr

* RideUpdateVehicleColours: simplify logic around reversed trains

* RideUpdateVehicleColours: move `colours` var into inner loop

* Extract prepareTrainCarImages into its own function

* Extract getVehiclePreviewImageId into its own function

* Rework to use std::span, avoiding pointer arithmetic
2026-05-21 20:21:02 +02:00
Harry Hopkinson 9780eead48 Rename JumpingFountain and move paint code to paint/entity (#26571)
* Move JumpingFountain paint code to paint/entity

* Rename Fountain files to JumpingFountain

* Rename PaintFountain to PaintJumpingFountain
2026-05-20 18:34:41 +02:00
Harry Hopkinson ee3d6b163b Move Vehicle painting to paint/entity (#26589) 2026-05-20 16:07:41 +00:00
Tamara 2ed2ba3724 Rename AssetCheckResult, AssetInfo members to match code style (#26585) 2026-05-20 15:56:43 +00:00
Harry Hopkinson 9e41f99bce Move Particle and MoneyEffect paint code to paint/entity (#26573)
* Refactor Particle paint functions

* Refactor Money Effect paint functions

* Remove now unused includes from Particle.cpp
2026-05-20 17:50:04 +02:00
Harry Hopkinson 3f96e41bbb Refactor various constants to use kCamelCase (#26572)
* Rename constexpr in SideFrictionRollerCoaster.cpp

* Rename constexpr in ParkFile.cpp

* Rename constexpr in SawyerChunkWriter.cpp
2026-05-20 15:32:06 +00:00
Alex Parisi b196ce8217 Remove redundant pair in ReplayManager::AddChecksum (#26580)
`emplace_back` already forwards to the `std::pair` constructor, so there's no need to construct an intermediate here
2026-05-20 15:57:32 +02:00
mix f6cbe956f0 Fix #26475: Remove bounding box prefetch from sort functions (#26566) 2026-05-19 19:18:44 +00:00
Alex Parisi 7a2cddeed1 Use move semantics in GroupVector::Set (#26579) 2026-05-18 22:17:41 +02:00
Alex Parisi 14f0052faa Some typo fixes (#26577)
* continious --> continuous

* recieved --> received

* recieved --> received

* paramter --> parameter

* occured --> occurred
2026-05-18 20:59:01 +02:00
Aaron van Geffen 7462b589ab Fix land tool regressions (#26569)
* Regression: restore sentinel value for MapGetHighestLandHeight

* Regression: only perform park ownership check while not in editor/sandbox mode

* Regression: actually use the range provided instead of all drawable tiles
2026-05-17 20:31:32 +02:00
Aaron van Geffen 2ee0e74a69 Simplify loop body by returning early 2026-04-28 17:52:33 +09:00
Aaron van Geffen 0f1e6ae995 Rewrite MapGetLowest/HighestLandHeight using MapRangeView 2026-04-28 17:51:33 +09:00
Aaron van Geffen d5a5b1a2d3 Introduce MapRangeView iterator class 2026-04-28 15:15:52 +09:00