Commit Graph
23343 Commits
Author SHA1 Message Date
Michael Steenbeek 810830fa87 Replace duplicate TILE_SIZE constant with kCoordsXYStep (#26513) 2026-05-07 19:49:54 +02:00
MarcelVos96 34df219b20 Fix #26510: Air time display limit is just 655.35 seconds instead of the correct 1966.05 seconds (#26511) 2026-05-07 00:14:30 +02:00
mix 10019dcfb5 Remove unnecessary Memory.hpp includes (#26506) 2026-05-06 11:43:45 +02:00
MarcelVos96andAaron van Geffen c311d68458 Add 'guests entertained' statistic for entertainers (#26327)
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
2026-05-06 08:53:21 +02:00
Michał Janiszewski bcb38ee336 Merge pull request #26502 from janisozaur/gcc-16-fixes
GCC 16 fixes
2026-05-05 23:11:18 +02:00
Michael Steenbeek 4d02f3dca9 Merge pull request #26487 from mixiate/remove-more-manual-allocs
Remove manual memory allocs in FileClassifier and Win32 platform
2026-05-05 21:48:50 +02:00
Michał Janiszewski 7e782373a4 Workaround for GCC 16 2026-05-05 21:38:39 +02:00
Michał Janiszewski b8f638f5a3 Unify widget idx types 2026-05-05 21:38:25 +02:00
frozensnowy 4638d3f505 Fix #26492: Drag tool shows per tile error when running out of money midway (#26493)
The path and wall drag tools query each tile individually for affordability so all queries pass when the player can afford any single tile. But if the total exceeds available funds, execution fails midway with per tile error windows. To fix it this adds a total cost check against available funds after the query phase, showing a single combined error with the full cost before execution actually starts
2026-05-05 11:23:21 +02:00
mix d4549d1287 Add w prefix to names of wide string variables in Platform.Win32.cpp 2026-05-03 01:01:02 +01:00
Michael Steenbeek e65fb01160 Merge pull request #26486 from mixiate/command-line-string-option-fix
Fix types of a couple of command line string options
2026-05-02 23:33:21 +02:00
mix 3fabecabc1 Remove manual new/delete in Win32 Platform::GetEnvironmentVariable 2026-05-02 15:32:08 +01:00
mix f4336f1feb Remove manual malloc and free in Win32 Platform::GetSteamPaths 2026-05-02 15:32:08 +01:00
mix 7595d6702b Remove manual alloc in TryClassifyAsTD4_TD6 2026-05-02 15:27:27 +01:00
mix 432baaaa61 Fix RootCommands _address type from char* to u8string 2026-05-02 15:21:21 +01:00
mix 8b90ce579d Fix CommandLine::Sprite::_mode type from char* to u8string 2026-05-02 15:18:51 +01:00
mix 4c0e9015fe Remove second manual memory allocation in ObjectRepository::SaveObject 2026-05-02 14:56:03 +01:00
mix 033a7cb030 Remove exception capture and rethrow in ObjectRepository::SaveObject 2026-05-02 14:55:55 +01:00
mix b09dc06a41 Remove first manual memory allocation in ObjectRepository::SaveObject 2026-05-02 14:55:49 +01:00
mix 2d36d7dfdf Remove unnecessary memory allocation in calculateExtraBytesToFixChecksum 2026-05-02 14:55:43 +01:00
Michael Steenbeek 95fbd1f6c8 Add station style whitelist to prepare for split (#26476) 2026-05-01 11:42:00 +02:00
Aaron van Geffen 7990dbed7d Reduce nesting/indentation in ReadWriteTilesChunk (#26468)
* ParkFile: reduce nesting/indentation in ReadWriteTilesChunk

* Remove unnecessary include from ParkFile.h
2026-04-29 10:34:10 +02:00
mix 310286821f Split upright and inverted multi dimension track paint code (#26436) 2026-04-28 22:41:03 +02:00
Michał Janiszewski 75f36ca1fe Add more context to IStream exceptions (#26106)
This adds a bit more context to IStream exceptions. Some methods already supply that information, but most don't. This unifies approach we have.
2026-04-28 20:31:40 +00:00
rinode 8de672bc82 Fix #26462: Opening Tile Inspector crashes the game 2026-04-28 22:00:37 +02:00
rinode 72446f7b3a Fix #26460: Delete, build, forward and backward buttons in Ride Construction window are always held 2026-04-28 22:00:03 +02:00
Michael Steenbeek d3067f2790 Fix #26463: getWidgetByIndex() causes a crash if index is out-of-bounds (#26470) 2026-04-28 21:56:04 +02:00
Marino Rottier 6e45d802ec Automatically publish plugin types to NPM (#26283)
* add workflow and package.json for publishing plugin TypeScript types

* move scripting-related files to scripting folder

* add support for trusted publishers

* fix path to scripting readme

* rename scripting README.md back to scripting.md

* support tagged/dev releases

* add workflow for development versions

* Update package.json website

* change dependencies in publish-plugin-types

* add timestamp to dev plugin versions

* note ScriptEngine.h grep dependency from CI

* use gh-describe to track release version for dev plugin types
2026-04-28 21:25:57 +02:00
Marino Rottier 45ff80d890 Refactor widget state to single storage model (#26443)
* Allow flag/bitmask coexistence in readers

* Add factory helpers and bulk setters for per-widget flags

* Switch coexistence from OR-both to per-window opt-in

* Migrate seven small windows to per-widget flags

* Migrate seven more windows to per-widget flags

* Migrate Cheats, MapGen and Footpath to per-widget flags

* Fix #26421: scenery tab highlight wraps when there are 64+ groups

* Migrate Ride window to per-widget flags

* Migrate ride and maze construction windows to per-widget flags

* Migrate six more windows to per-widget flags

* Migrate Banner, EditorScenarioOptions and RideList to per-widget flags

* Migrate SceneryScatter and LoadSave to per-widget flags

* Migrate EditorObjectSelection, GameBottomToolbar, Guest, Map, NewRide and Park to per-widget flags

* Migrate TopToolbar, TrackList, Research, Player and Options to per-widget flags

* Opt in remaining windows to per-widget flags

* Narrow getters and setters to per-widget flags

* Remove bitmask fields and useWidgetFlags switch

* Restore switch statements for tab/density pressed state

* Add makeHoldableSpinnerWidgets to drop per-page loops

* Update tests for per-widget flag storage

* Add changelog entry for #26421

* Reword narrative-tense comments from the migration

* Fix clang-format violations

* Remove dead holdable-widget tables from Park and Finances
2026-04-28 09:26:02 +02:00
Basssiiie a939eccc14 Add higher resolution app icons for Android (#26374) 2026-04-27 14:43:03 +00:00
michboy fda8fe0f6c Fix #26287: Game crashes upon connect/disconnect of physical keyboard (#26394)
Prevent Android Activity from re-creating on configuration changes.

Ensures the NativeActivity handles keyboard plugging and orientation changes smoothly by declaring them in android:configChanges.
2026-04-22 11:01:24 +00:00
MarcelVos96 f415e465bf Fix #26419: Having an inversion on the Flying Coaster doesn't prevent stat penalty for drops or negative g's (#26420) 2026-04-22 12:39:43 +02:00
Basssiiie c083a838fd Improve default config.ini settings on new Android installs (#26386) 2026-04-22 10:10:45 +00:00
MarcelVos96 8323e0f306 Fix #26432: Guests choose to head for rides they have already ridden if they don't have a map 2026-04-22 12:03:40 +02:00
MarcelVos96 e49fcfd7d1 Fix inverted logic around peep watching spots (#26426) 2026-04-22 09:23:14 +02:00
mix e2b324cc0e Fix tiles mistakenly culled when elements below water and none above (#26410) 2026-04-22 09:03:47 +02:00
Aaron van Geffen 5e7888b672 Minor clean ups for macOS Platform and UiContext units (#26416) 2026-04-20 11:30:04 +02:00
mix e55eebe102 Fix invert flying large loop tunnel and train drawing glitches 2026-04-14 15:04:06 +01:00
mix fa5c0f0b9f Fix #26019: Invert large loop tunnel, support and train drawing glitches 2026-04-14 14:46:12 +01:00
Alex Harvey 8a98258b96 Fix #26183: Ride stat graphs tab text is partially off screen. (#26395) 2026-04-18 03:49:46 +00:00
Basssiiieandguysv ce9470971c Expose show/hideGridlines to scripting more safely (#24879)
Co-authored-by: guysv <sviryguy@gmail.com>
2026-04-18 03:37:11 +00:00
Max efb268af7d Add ride breakdown hook for scripting (#24243) 2026-04-18 03:25:23 +00:00
Aaron van Geffen 274759a9d2 Offset scenery collision checks slightly from quartile checks 2026-04-16 21:18:50 +09:00
Aaron van Geffen 3362e4b4cd Fix type for ParkEntranceGetIndex argument 2026-04-11 22:54:50 +09:00
Aaron van Geffen c0e7b6b41f Bugfix: fix groupbox title for large scenery items 2026-04-11 22:53:41 +09:00
Aaron van Geffen 124cf139df Add bottom padding to properties group 2026-04-10 08:36:20 +09:00
Aaron van Geffen a05015262e Align base height label with spinner caption 2026-04-10 08:35:45 +09:00
Aaron van Geffen f1b4c213bc Fix property index for various surface detail widgets (off-by-one) 2026-04-09 18:01:52 +02:00
Aaron van Geffen cdffbcb5b0 Tile inspector: offset spinner captions at text top 2026-04-09 17:53:29 +02:00
Aaron van Geffen dbd0e5e487 Tile inspector: give spinners their own size class 2026-04-09 17:47:01 +02:00