Commit Graph
30151 Commits
Author SHA1 Message Date
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
ZeeMaji e5e79ac237 Fix gap in buyable land in BYO SFMM (#26616)
* Fix gap in buyable land in BYO SFMM

* Update changelog.txt

* BYO > Build your own
2026-05-27 01:52:57 -03:00
ZeeMaji 823eb66580 Fix missing path tile in BYO SFOT (#26615)
* Fix missing path tile in BYO SFOT

* Update changelog.txt
2026-05-26 04:47:57 -03:00
Alex Parisi 41bd2af26e Use correct widx entries for volume sliders (#26609) 2026-05-24 14:25:30 +02:00
Aaron van Geffen dd31d9ad44 Minor correction to StaffSetCostumeArgs in openrct2.d.ts (#26604) 2026-05-23 18:30:15 +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
Kennedy McCarthy bb436fe6e1 Refactor duck and litter paint systems (#26434) 2026-05-17 12:37:47 +02:00
Tulio Leao 40eaa31621 Start v0.5.2 2026-05-17 07:34:19 -03:00
Tulio Leao b7f45e9c28 Merge branch 'master' into develop 2026-05-17 07:33:18 -03:00
Tulio Leao 90bec9b246 Release v0.5.1
- Feature: [#24242] [Plugin] Add ride-breakdown hooktype.
- Feature: [#24879] [Plugin] Add methods for showing and hiding gridlines.
- Feature: [#26327] Add ‘guests entertained’ statistic to entertainers.
- Improved: [#26374] Add higher resolution app icons for Android.
- Improved: [#26386] Initial window scale and toolbar options on fresh Android installations.
- Change: [#26476] Limit creation of new station styles to prepare for more flexibility with ride stations and entrances.
- Fix: [#25581] Chart drawing issue on some platforms due to compiler optimisation.
- Fix: [#26019] Inverted and Inverted Flying Roller Coaster large half loops glitch with the train and don‘t draw in tunnels at some angles (original bug).
- Fix: [#26183] The ride stat graph placeholder text is not drawn in the expected position.
- Fix: [#26287] Game crashes upon connect/disconnect of physical keyboard.
- Fix: [#26299] Single Rail S-Bend sprites don’t fully connect to the next track piece at certain angles.
- Fix: [#26352] Large scenery items are incorrectly labelled as ‘banners’ in the tile inspector.
- Fix: [#26352] The label for path additions is using the wrong text colour in the tile inspector.
- Fix: [#26360] Inverted Lay-down Roller Coaster helices are invisible when loading old saves.
- Fix: [#26396] [Plugin] Socket interfaces were not closing properly and firing up correctly in parallel.
- Fix: [#26410] Tiles with water can draw incorrectly when there is something underwater and nothing above water.
- Fix: [#26418] Game crashes when a stack overflow occurs in plugin code.
- Fix: [#26419] Drop count & negative g’s stat requirements for Flying Roller Coaster don’t get nullified by having an inversion.
- Fix: [#26421] Wrong scenery tab highlighted when more than 64 scenery groups are selected.
- Fix: [#26425] Benches don’t reduce watching spots from 4 to 2 while other path additions do (should be reversed).
- Fix: [#26432] Guests choose to head for rides they have already ridden if they don’t have a map.
- Fix: [#26492] Drag tool shows per-tile error instead of total cost when running out of money midway through placement.
- Fix: [#26510] Displayed air time overflows after 655.35 seconds instead of the internal maximum of 1966.05 seconds.
2026-05-17 07:08:45 -03:00
Tulio Leao 40362c04de Merge branch 'develop' 2026-05-17 06:51:19 -03:00
mrmbernardiandTulio Leao 6b81c4efec Fix JS socket issues (#26539)
* Fix Qjs sockets

* Add changelog entry

* Fix changelog ordering

---------

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2026-05-17 09:45:31 +00:00
Michał Janiszewski 5f1f39c08e Modify CI workflow to adjust Windows runners (#26262)
Updated CI configuration to use 'windows-latest' for win32 and 'windows-2025-vs2026' for arm64.
2026-05-17 06:36:34 -03:00
Colton 7138d45971 Reorder finance graph logic to remove undefined behaviour (#26562)
* Reorder finance graph logic to prevent overly aggressive compiler optimization

* Add changelog entry
2026-05-17 08:40:29 +00:00
Michał Janiszewski 5be35c90e9 Update backtrace token for upcoming release 2026-05-17 09:41:39 +02:00
Alex Parisi d2e0a6ead5 Add object emptiness checks (#26557) 2026-05-16 22:30:00 -03:00
Tulio Leao d093945c41 Merge pull request #26558 from alex-parisi/null-socket-fix
Fixing crash when removing null socket
2026-05-16 22:28:49 -03:00
Alex Parisi 9acd252249 Fixing out-of-bounds enum lookup (#26559)
* Fixing out-of-bounds lookup

* Omit unmappable voucher fields
2026-05-16 22:26:55 -03:00
Michał Janiszewski e694091be9 Merge pull request #26554 from janisozaur/network-fix-missing-player
Make server drop connections without expected player data
2026-05-17 01:52:50 +02:00
Basssiiie ec47de51b0 Publish plugin API types to NPM only on main repository (#26561) 2026-05-16 19:28:37 +02:00
Michał Janiszewski 0161681dc5 Reconfigure CI ubuntu images to explicitly target version (#26527) 2026-05-16 19:27:13 +02:00