Commit Graph
22988 Commits
Author SHA1 Message Date
matheusvb3 c7efa777f7 Remove deprecated C headers (#25921) 2026-02-02 12:41:50 +01:00
Peppersawce d28d4ae18f Fix compilation on Haiku 2026-02-01 22:10:41 +01:00
Peppersawce 8bc56a988f Re-enable multithreading on Haiku 2026-02-01 22:10:04 +01:00
Michał Janiszewski dae57fccf6 Release v0.4.31
- Feature: [#25844] The sprite builder now also supports adding JSON-based palettes.
- Improved: [#3788] Self-intersecting track designs can now be placed.
- Improved: [#25719] The weather change dropdown now shows icons next to the weather types for easier selection.
- Improved: [#25765] The ‘View options’ and ‘Special track elements’ dropdowns no longer need click-and-hold.
- Improved: [#25858] macOS now supports the onboarding menu.
- Improved: [#25882] Maze construction now auto-removes trees.
- Improved: [objects#421] The vehicle tab of some rides now shows more of the vehicle.
- Change: [#25018] Add upkeep cost to booster pieces.
- Fix: [#4643, #25167] Many metal supports draw with a filled in top when they didn’t in vanilla, causing some slight misalignment and glitching.
- Fix: [#15009] Landscaping tools do not display estimates when the game is paused (original bug).
- Fix: [#18441] Replacing footpaths sometimes results in a spurious “Footpath in the way” error (original bug).
- Fix: [#20620] In-game console caret does not update when pasting.
- Fix: [#20652] Twister Roller Coaster design ‘u(0241)’ has no preview and cannot be built (bug in track design).
- Fix: [#23859] Wrong banner text displayed after loading a different park.
- Fix: [#25221] When trying to cancel game file discovery, the prompt reappears.
- Fix: [#25703, #25889] Crash when scanning scenarios with packed objects in parallel.
- Fix: [#25739] Game freezes when a tab in the New Ride window contains more than 384 items.
- Fix: [#25745] Crash when a player connection is aborted early.
- Fix: [#25775] Network download sizes are in bytes instead of the listed kibibytes.
- Fix: [#25799] The animated options tab icon of the news window does not always redraw.
- Fix: [#25850] Guests do not have their happiness penalised by low energy, high hunger, high thirst, high toilet.
- Fix: [#25850] Ride nausea generation is different compared to vanilla.
- Fix: [#25854] When a guest is at 0 happiness or energy, the game draws too big of a bar in the guest stats window.
- Fix: [#25862] Diagonal and inclined brakes are not counted when calculating upkeep cost.
- Fix: [#25873] Repainting a banner in OpenRCT2-specific colours results in an error message.
- Fix: [#25879] Guest window viewport doesn’t follow vehicle when they board a ride.
- Fix: [#25908] Crash from use-after-free in banner text formatting during multithreaded rendering.
- Fix: [objects#419] Alignment of RCT2 red, yellow and green queue previews is off.
- Fix: [objects#424] Jet Aeroplane decor has a hole in it.
- Fix: [objects#425] Capacity of ‘Blob from outer space ride’ is incorrectly listed.
2026-02-01 16:17:17 +01:00
frozensnowy 10ea862bda Fix #23859: Wrong banner text displayed after loading different park
The scrolling text cache matches entries using memcmp on raw Formatter data which includes pointers to ride/banner names. When loading a new park, memory addresses can be reused, causing false cache matches that display text from the previous park. This adds invalidate() calls to both park loading paths to clear stale cache entries
2026-02-01 13:41:47 +01:00
frozensnowy ce0969884e Fix: Crash from use-after-free in banner text formatting during multithreaded rendering
The Banner struct had a mutable formattedTextBuffer member that was written during every call to formatTextWithColourTo(). During multithreaded rendering, multiple threads could write to this buffer simultaneously when the same banner appeared in different viewport columns, causing use-after-free. This is replaced with thread_local to give each thread its own buffer which matches the existing pattern used elsewhere in the codebase
2026-02-01 13:41:43 +01:00
frozensnowy 778c15142a Fix #25889, #25703: Crash when scanning scenarios with packed objects (#25899)
When ScenarioFileIndex scans scenarios in parallel via JobPool, S6 files with packed objects called ExportPackedObject from multiple threads,
causing a race condition in ObjectRepository's vector. This changes passes skipObjectCheck=true during scanning, consistent with .park and .sc4 file handling. Objects are extracted later when actually loading.
2026-02-01 00:09:08 +01:00
matheusvb3 ff72e07385 Remove redundant typename keyword usage (#25901) 2026-01-31 23:59:59 +01:00
frozensnowy 75db9f34c4 Fix #25879: Guest window viewport doesn't follow vehicle when on ride (#25883) 2026-01-31 14:41:20 +01:00
Michael Steenbeek 3af94367ec Merge pull request #25857 from matheusvb3/addclamp-final
Clamp some Guest and ParkData fields
2026-01-31 12:35:31 +01:00
frozensnowy 0552f8fdff Fix #25882: Maze construction does not auto-remove trees (#25886)
Changed `MazeSetTrackAction` to use `MapCanConstructWithClearAt` instead of `MapCanConstructAt` so trees get cleared like they do for regular track placement.
2026-01-31 11:33:03 +00:00
frozensnowy 52b0f68aee Fix #3788: Self-intersecting track designs cannot be placed (#25894)
When placing a track design that loops back on itself, earlier placed pieces would block later pieces during clearance checks.

This commit adds an optional RideId parameter to MapCanConstructWithClearAt to skip track elements belonging to the same ride during track design placement.
2026-01-31 12:29:58 +01:00
matheusvb3 d47fc1dc78 Clamp Guest fields 2026-01-31 12:20:31 +01:00
matheusvb3 3e224346d2 Clamp ParkData fields 2026-01-31 12:20:30 +01:00
Michał Janiszewski 7c38329a89 Update BACKTRACE_TOKEN for upcoming release 2026-01-31 12:18:40 +01:00
Aaron van Geffen 3602109659 Add small weather icons and tweak alignment 2026-01-29 22:21:55 +01:00
Aaron van Geffen 1c37891559 Fix weather dropdown item padding in enlarged UI 2026-01-28 21:05:47 +01:00
Aaron van Geffen 0669f0d107 Add sprites to weather cheat dropdown 2025-12-28 23:15:00 +01:00
frozensnowy 445b38fe0f Fix #20620: Console caret does not update when pasting
Add missing RefreshCaret call after pasting text in the console.
2026-01-29 21:07:20 +00:00
matheusvb3 20f8339963 Convert car entry flags into a FlagHolder (#25784) 2026-01-29 22:00:03 +01:00
frozensnowy 560fb471e0 Fix #25775: Network download sizes are not in the claimed KiB 2026-01-29 21:43:05 +01:00
Michael Steenbeek 343c7a70d7 Change colour to a strong enum (#25873) 2026-01-28 10:06:45 +01:00
Michael Steenbeek 6bc432dd12 Fix #18441: Spurious error when trying to replace footpath (#25880) 2026-01-27 22:47:19 +01:00
Michael Steenbeek 7aaa124cef Fix #15009: Landscaping tools do not display estimates when paused (#25866) 2026-01-27 22:09:33 +01:00
Nick Peters-Luciani 3512cef39a Extract TrackGetIsSheltered() 2026-01-25 13:39:51 +01:00
Tulio Leao 5485ae4bde Extract kDynamicRideShelterRating constant 2026-01-25 13:39:51 +01:00
Aaron van Geffen e6fa0e48d0 Rework palette information into palettes.dat (#25681)
* Rework all palette information into new palette.dat

* Harmonise order between sprites.json, SpriteIds.h, kPaletteToG1Offset

* Rename G1 counterparts for completeness/documentation

* Bump libsawyer to v1.4.0
2026-01-25 10:39:18 +01:00
Gymnasiast 27b5c8d44e Deduplicate water colour names 2026-01-24 17:17:13 +01:00
Gymnasiast 491f90b67a Replace kTextColour254 and kTextColour255 with COLOUR_NULL 2026-01-24 16:54:44 +01:00
Gymnasiast 96e349645c Move left palette index constants out of Colour.h 2026-01-24 16:50:09 +01:00
Michael Steenbeek 14d4fe362e Merge pull request #25862 from MarcelVos96/booster-running-cost
Fix #25018: Add upkeep cost to booster pieces
2026-01-24 00:27:18 +01:00
Gymnasiast 0343d721e3 Fix: diagonal and inclined brakes not counted when calculating upkeep cost 2026-01-24 00:06:26 +01:00
MarcelVos96 716e3c92ab Add running cost to boosters 2026-01-24 00:06:26 +01:00
matheusvb3 dcba4cb099 Remove redundant namespaces qualifiers (#25837) 2026-01-23 21:46:08 +00:00
Gymnasiast dcd097a3b1 Fix minimum height of Zenity/Kdialog window to 350 pixels 2026-01-22 20:59:24 +01:00
Gymnasiast 639c64974f Fix #25221: When trying to cancel game file discovery, the prompt reappears 2026-01-22 20:59:24 +01:00
Michael Berk 17533dae34 Add quit button to onboarding options 2026-01-22 20:59:24 +01:00
Michael Berk f8805635f6 Implement ShowMenuDialog on macOS 2026-01-22 20:59:24 +01:00
MarcelVos96 b6922173b5 Fix #25854: Game draws too much bar at 0 happiness and energy (#25855)
* Update changelog.txt

* Fix #25854: Game draws too much bar at 0 happiness and energy

Fixes #25854

Originally the minimum for happiness was 10/255. It was changed to 10/100, and this PR changes it to 3/100 to get back to the old minimum.

* Update changelog.txt
2026-01-21 07:37:22 +00:00
Duncan 8d25776c95 Fix implementation mistake from #1644. Guest happiness calcs (#25850)
* Fix implementation mistake from #1644. Guest happiness calcs

There was meant to be happiness growth rate penalties when very hungry, thirsty, low energy, high toilet

* Fix regression

* Fix nausea growth generation

* No really fix it

* Add changelog entry

* Change issue number

* Bump network version

* Update replays
2026-01-20 19:47:24 +00:00
Gymnasiast 626f70ad66 Move BlendColourMap to its own file 2026-01-18 23:35:39 +01:00
Gymnasiast 7909c889e9 Name palette fields in Water object 2026-01-18 23:06:13 +01:00
Michael Steenbeek 3e4261323a Rename some palette indices (#25843) 2026-01-18 21:24:45 +00:00
Michael SteenbeekandZehMatt 795cdaa53e Fix #23636: Mismatched entity count in save file (#25731)
This is based on #24552, with two changes:
1. The entity list is copied and used for both the count and the actual writes
2. It no longer asserts if the count mismatches (which is why #24552 was not merged).

Co-authored-by: ZehMatt <ZehMatt@users.noreply.github.com>
2026-01-18 14:18:44 +01:00
Gymnasiast c254c2e9f8 Improve error messages, add changelog entry 2026-01-17 23:44:37 +01:00
Gymnasiast e527ef8e26 Allow importing palettes in sprite build 2026-01-17 20:30:36 +01:00
Gymnasiast 9d7a0a167d Move importing JSON palettes to ImageImporter 2026-01-17 20:24:47 +01:00
Gymnasiast 6ec4c80e59 Remove commented-out code from Themes.cpp 2026-01-17 18:46:54 +01:00
Gymnasiast e46d2eba9e Move colour map to its own file 2026-01-17 18:46:54 +01:00
Michael Steenbeek 1ddb38dd07 Merge pull request #25830 from Gymnasiast/refactor/palette-renames-b
Refactor palette member names
2026-01-17 17:46:21 +01:00