Commit Graph
30173 Commits
Author SHA1 Message Date
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
OpenRCT2 git bot 797f90cd01 Merge Localisation/master into OpenRCT2/develop 2026-06-11 05:31:38 +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 eaf38d2129 Start v0.5.3 2026-06-07 12:55:11 +02:00
Michał Janiszewski 8664a608cd Merge branch 'master' into develop 2026-06-07 12:52:58 +02: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 e0b1e826f0 Merge branch 'develop' 2026-06-07 12:13:24 +02:00
Michał Janiszewski d35233a155 Update BACKTRACE_TOKEN for upcoming release 2026-06-07 12:11:01 +02:00
OpenRCT2 git bot 63e7dfcc65 Merge Localisation/master into OpenRCT2/develop 2026-06-07 05:29:57 +00:00
Tulio Leao 5afa4f6f44 Add missing [Plugin] labels to changelog (#26660) 2026-06-06 16:48:55 -03: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
Xeonacid d8a6aab651 Fix build error on riscv64 (#26641)
Fixes:
In function ‘constexpr void std::_Construct(_Tp*, _Args&& ...) [with _Tp = unsigned char; _Args = {unsigned char}]’,
    inlined from ‘constexpr _ForwardIterator std::__do_uninit_copy(_InputIterator, _Sentinel, _ForwardIterator) [with _InputIterator = move_iterator<__gnu_cxx::__normal_iterator<unsigned char*, vector<unsigned char> > >; _Sentinel = move_iterator<__gnu_cxx::__normal_iterator<unsigned char*, vector<unsigned char> > >; _ForwardIterator = unsigned char*]’ at /usr/include/c++/16.1.1/bits/stl_uninitialized.h:165:17,
    inlined from ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = move_iterator<__gnu_cxx::__normal_iterator<unsigned char*, vector<unsigned char> > >; _ForwardIterator = unsigned char*]’ at /usr/include/c++/16.1.1/bits/stl_uninitialized.h:324:30,
    inlined from ‘constexpr _ForwardIterator std::__uninitialized_copy_a(_InputIterator, _Sentinel, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = move_iterator<__gnu_cxx::__normal_iterator<unsigned char*, vector<unsigned char> > >; _Sentinel = move_iterator<__gnu_cxx::__normal_iterator<unsigned char*, vector<unsigned char> > >; _ForwardIterator = unsigned char*; _Tp = unsigned char]’ at /usr/include/c++/16.1.1/bits/stl_uninitialized.h:659:32,
    inlined from ‘constexpr void std::vector<_Tp, _Alloc>::_M_range_initialize_n(_Iterator, _Sentinel, size_type) [with _Iterator = std::move_iterator<__gnu_cxx::__normal_iterator<unsigned char*, std::vector<unsigned char> > >; _Sentinel = std::move_iterator<__gnu_cxx::__normal_iterator<unsigned char*, std::vector<unsigned char> > >; _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]’ at /usr/include/c++/16.1.1/bits/stl_vector.h:1979:37,
    inlined from ‘constexpr std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = std::move_iterator<__gnu_cxx::__normal_iterator<unsigned char*, std::vector<unsigned char> > >; <template-parameter-2-2> = void; _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]’ at /usr/include/c++/16.1.1/bits/stl_vector.h:736:29,
    inlined from ‘static constexpr bool std::__shrink_to_fit_aux<_Tp, true>::_S_do_it(_Tp&) [with _Tp = std::vector<unsigned char>]’ at /usr/include/c++/16.1.1/bits/alloc_traits.h:1043:6,
    inlined from ‘constexpr bool std::vector<_Tp, _Alloc>::_M_shrink_to_fit() [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]’ at /usr/include/c++/16.1.1/bits/vector.tcc:924:56,
    inlined from ‘constexpr void std::vector<_Tp, _Alloc>::shrink_to_fit() [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>]’ at /usr/include/c++/16.1.1/bits/stl_vector.h:1189:25,
    inlined from ‘void EditorObjectFlagsClear()’ at /build/openrct2/src/OpenRCT2-0.5.1/src/openrct2/EditorObjectSelectionSession.cpp:368:40,
    inlined from ‘void EditorObjectFlagsClear()’ at /build/openrct2/src/OpenRCT2-0.5.1/src/openrct2/EditorObjectSelectionSession.cpp:365:6:
/usr/include/c++/16.1.1/bits/stl_construct.h:133:7: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
  133 |       ::new(static_cast<void*>(__p)) _Tp(std::forward<_Args>(__args)...);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2026-06-06 15:31:52 -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
ZeeMajiandTulio Leao 84211fdb56 Fix #26634: Apply patches for BYO version of Six Flags Great Adventure (#26657)
* Fix BYO Great Adventure missing park patch

Just simply adds park patches for BYO Great Adventure that are the same as the normal park's patches since the fixed issues between them are the same.

* Update changelog.txt

* Fix formatting error

* Fixing the format would be nice.

* Update data/scenario_patches/scenario_to_hash

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>

* Update data/scenario_patches/scenario_to_hash

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>

---------

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2026-06-06 15:22:28 -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
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
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