Commit Graph
23412 Commits
Author SHA1 Message Date
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
SunsetFiandTulio Leao c5a7f3091f Fix plugin-driven list view not invalidated on setting change (#26350)
* Fix: Plugin-driven list view not invalidated on setting changes

* fix: tweak list view invalidation conditions

* fix: WindowUpdateScrollWidgets needs reference, not pointer

* Add changelog entry

---------

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2026-06-06 18:30:50 +00: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
mix c04f866e48 Invalidate tile when clicking on element with tile inspector (#26624) 2026-05-28 21:51:39 +02:00
Michał Janiszewski 1492608cd9 Only disable guest pickup widget when on correct page (#26591) 2026-05-28 11:57:40 +00: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
Alex Parisi 41bd2af26e Use correct widx entries for volume sliders (#26609) 2026-05-24 14:25:30 +02: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
Marino Rottier 4fc19c9ccc Fix ride window default tab not being highlighted on open (#26587) 2026-05-19 21:05:47 +02: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
Michael Steenbeek 1aa1d9cdf3 Avoid additional audio buffer copy if frequency or samples are different from what we requested (#26488)
We pass a requested frequence and sample rate to SDL_OpenAudioDevice(), which will then return
an object that contains what we actually got. Our code properly handles this. However, unless
we explicit tell SDL that we can handle a different frequency or samples, SDL may try to emulate
what we requested, which incurs another copy in our already quite inefficient audio pipeline.

It’s unlikely to be triggered currently, since we still output as 22,050 Hz with 2048 samples
(though theoretically possible if a device cannot go lower than 44,100 Hz), but will become more
pressing once we going higher than that.

Approach discussed with @frozensnowy .
2026-05-17 17:58:06 +02:00
Aaron van Geffen caed40c4fc Merge pull request #26469 from AaronVanGeffen/maprangeview
Introduce MapRangeView iterator class
2026-05-17 17:22:44 +02:00
Aaron van Geffen 2543c42dbb Fix console error messages truncating the first byte (#26563) 2026-05-17 17:12:02 +02:00
Aaron van Geffen 1f5b1db2e6 Use ParkData& in Park and Finances windows (#26440)
* Park window: work with ParkData& property internally

* Finances window: work with ParkData& property internally
2026-05-17 15:22:26 +02:00
Marino Rottier 6c6acd527b Rename TileElementBase members (#26522)
* Rename TileElementBase members to camelCase

* Rename RCT12TileElementBase and RCT12TileElement members to camelCase
2026-05-17 13:21:16 +00:00
Marino Rottier ce23b3c644 Rename Management members (#26530)
* Rename Award members to lowerCamelCase

* Rename MarketingCampaign members to lowerCamelCase

* Rename ResearchItem members to lowerCamelCase

* Rename News::ItemQueues members to lowerCamelCase

* Rename News::ItemQueue members to lowerCamelCase
2026-05-17 14:58:29 +02:00
Marino Rottier c9ba4eee98 Rename Network members (#26523)
* Rename Network::Player members to camelCase

* Rename Network::NetworkGroup members to camelCase

* Rename Network::Connection members to camelCase

* Rename NetworkServerAdvertiser members to camelCase

* Rename NetworkAction members to camelCase

* Rename NetworkActions members to camelCase

* Rename Network::User members to camelCase

* Rename Network::UserManager members to camelCase

* Rename PacketLegacyHeader members to camelCase

* Rename Network::Packet members to camelCase
2026-05-17 12:57:47 +00:00
Marino Rottier 66e1411d84 Rename EntityBase and EntitySpriteData members (#26520)
* Rename EntitySpriteData members to camelCase

* Rename EntityBase members to camelCase
2026-05-17 11:21:59 +00:00
mgiannopoulos24 11a3a5c373 Rename MoneyEffect members (#26556) 2026-05-17 11:03:11 +00:00
Marino Rottier 93435462de Migrate remaining spinner widgets to makeHoldableSpinnerWidgets (#26499) 2026-05-17 12:56:56 +02:00