Commit Graph
30141 Commits
Author SHA1 Message Date
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
73 08ca5ec987 Fix copyright years in files that state 2025 still (#26540) 2026-05-16 17:51:22 +02:00
mrmbernardiandMichał Janiszewski e4ba212574 Set qjs stack limit to 7MB (#26489)
* Set qjs stack limit to 7MB

* Update distribution/changelog.txt

Co-authored-by: Michał Janiszewski <janisozaur@users.noreply.github.com>

---------

Co-authored-by: Michał Janiszewski <janisozaur@users.noreply.github.com>
2026-05-16 17:26:29 +02:00
Alex Parisi 7c0b555629 Move sockets before disposing of them 2026-05-14 14:31:31 -04:00
Alex Parisi 96cb09da9e Fixing crash when removing null socket 2026-05-14 12:27:47 -04:00
Michał Janiszewski e33a914e90 Add test for network connection missing player 2026-05-12 21:52:57 +02:00
Michał Janiszewski c584491061 Make server drop connections without expected player data
Fixes #26550
2026-05-12 21:45:23 +02:00
Michael Steenbeek 169e7345f7 Merge pull request #26516 from Gymnasiast/refactor/constexpr-clang-tidy
Add clang-tidy naming checks for constexpr
2026-05-08 22:16:02 +02:00
Gymnasiast db26e11183 Remove file_filter from clang-tidy job
Originally added here and stops clang-tidy from checking headers: https://github.com/OpenRCT2/OpenRCT2/pull/23465/changes#diff-2b7b9696b464e236f8066c1c1d33c6c91c95160f813e2b3fe59ddf0e83057ebf
2026-05-08 21:52:52 +02:00
Gymnasiast a0b1008e5a Add clang-tidy naming checks for constexpr 2026-05-08 21:52:52 +02:00
Marino Rottier ab3eea631c docs: update scripting.md from Duktape to QuickJS-NG (#26411) 2026-05-07 20:15:10 +02:00