1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

22003 Commits

Author SHA1 Message Date
Tulio Leao
b8d73b523c Release v0.4.23
- Feature: [#22476] “Time since last inspection” statistic is available in the rides window.
- Feature: [#24313] [Plugin] Add API for setting a ride vehicle’s sprite to a smoke plume.
- Improved: [#24345] Vehicle fallback sprites are less likely to glitch with the track.
- Improved: [#24362, #24491] The Windows installer is now translated as well.
- Improved: [#24364] Improve the fallback vehicle sprites for Zero G Rolls, and allow small ones to be built without cheats if the fallbacks are available.
- Improved: [#24368] Clicking the in-game update notication now leads to a more user-friendly download page.
- Improved: [#24400] Ride list in preservation window is now sorted alphabetically.
- Improved: [#24409] Steam installs of RCT Classic are now detected automatically.
- Improved: [#24413] Better performance when moving the viewport on Windows and Linux platforms.
- Improved: [#24417] Improve the fallback vehicle sprites for Dive Loops.
- Improved: [#24433] The ride, new ride, scenery, path, viewport, park and tool windows no longer redraw every frame if they have not changed.
- Improved: [#24467] Apply tweening only to on-screen entities when not zoomed out for better performance with uncapped FPS.
- Improved: [#24474] More efficiently search viewports when playing Audio.
- Improved: [#24479] More descriptive error messages for `set` commands in the in-game console.
- Improved: [#24563] The Linux .desktop file will now request the more powerful dedicated GPU on hybrid graphics systems.
- Change: [#24342, #24484] g2.dat is now split into g2.dat, fonts.dat and tracks.dat.
- Change: [#24362] The Windows installer now prevents installing to the same folder as RollerCoaster Tycoon 2 or Classic.
- Change: [#24418] Small & Large Zero G Rolls can now be built on the LIM Launched RC without cheats if vehicle sprites are available.
- Fix: [#5269] Font bugs when using the Russian release of RCT2 as the base game.
- Fix: [#11071, #22958] The virtual floor does not always draw correctly.
- Fix: [#18220] Some custom RCT1 scenarios are detected as competition DLC scenarios.
- Fix: [#20095] UCES Halloween - Cemetery Ridge scenario has mismatched entrance/exit on haunted house.
- Fix: [#20158] Custom animated scenery .DATs with frame offsets draw a random sprite at the end of their animation.
- Fix: [#22628] Potential crash while rebuilding the scenario index.
- Fix: [#23289] Dodgems and Flying Saucer cars can spawn on top of each other when the ride is opened.
- Fix: [#24332] Banner font renders differently when using RCT Classic as the base game.
- Fix: [#24343] Large gently sloped turns are buildable without cheats when the vehicles do not have sprites for them.
- Fix: [#24346] Possible crash during line drawing in OpenGL mode.
- Fix: [#24353] ‘Show dirty visuals’ is off by one pixel and does not work correctly with higher framerates.
- Fix: [#24362] When upgrading from an older version on Windows, old versions of official objects are not always removed.
- Fix: [#24366] Zero G Rolls have some incorrect vehicle yaw rotations.
- Fix: [#24371] Fix divide by zero in the scenery window when there is no scenery.
- Fix: [#24378] Prevent ride and stall statistics from overflowing.
- Fix: [#24388] Shortcut keys are not localised based on the user’s language settings.
- Fix: [#24403] Park fences draw underneath and through opaque water.
- Fix: [#24406] The network status window uses an undefined string for its title.
- Fix: [#24444] In the object load error window, the guide text overlaps when the title bar is enlarged.
- Fix: [#24446] [Plugin] Fix regression breaking the track iterator on specific track pieces.
- Fix: [#24447] Shortcut list is not refreshed when changing language.
- Fix: [#24448] Shortcuts involving the Caps Lock key are wrongly localised to NumPad Dot.
- Fix: [#24464] Window and viewport visibility is not calculated correctly causing minor performance issues.
- Fix: [#24488] Objects are not always redrawn immediately when they are reloaded from the Object Selection window.
- Fix: [#24544] RCT1 Maze designs with wooden walls are not imported correctly.
- Fix: [#24567] Long flat-to-steep wooden mine support sprites don't connect to flat supports exactly.
2025-06-07 05:46:48 -03:00
Tulio Leao
78fd458cfc Update backtrace token for upcoming release 2025-06-07 04:27:15 -03:00
mix
c97191a3d7 Add required sprites to unbanked and banked large gently sloped turns 2025-06-03 23:52:49 +02:00
mix
2d364ec070 Fix guest window viewport on pick up and thoughts not invalidating (#24535) 2025-06-03 07:04:10 -03:00
Michael Steenbeek
a3494d5358 Fix #24544: RCT1 Maze designs with wooden walls not imported correctly 2025-06-02 21:26:48 +00:00
Aaron van Geffen
ac21ff24c5 Remove const_cast in GetWidgetByIndex (#24554) 2025-06-02 19:48:57 +02:00
mix
5e2923b1ea Add constants to vehicle paint functions that use corkscrew sprites 2025-05-31 15:48:55 +01:00
mix
e225998452 Add bounding box index constants to vehicle paint functions 2025-05-31 15:48:55 +01:00
mix
be563676df Add const to z parameter of vehicle paint functions 2025-05-31 15:48:55 +01:00
mix
bda27e57ab Rename spriteNum to spriteIndex in vehicle paint and add const 2025-05-31 15:48:55 +01:00
mix
b78906a8b6 Use original intended bounding box for fallback vehicle sprites 2025-05-31 15:48:55 +01:00
matheusvb3
8dd7b7976f Prevent ride and stall statistics from overflowing (#24378)
* Prevent ride and stall statistic from overflowing

Clamps guestsFavourite, totalCustomers, lastInspection, totalProfit, numPrimaryItemsSold and numSecondaryItemsSold

* Change line of comment in Ride.h

This caused the tooltip with the comment to appear when hovering over notFixedTimeout instead of breakdownSoundModifier in Visual Studio

* Remove redundant overflow prevention

* Invalidate maintenance tab

Missed this before. Also fix an issue I inadvertently caused with PR #23719 when updating the count of vandals stopped

* Deduce lastInspection type in compile time

* Add changelog entry
2025-05-31 03:10:36 +03:00
Michael Steenbeek
dea020fe7a Move TD46 stuff to own file 2025-05-30 00:04:52 +02:00
Michael Steenbeek
5088d60085 Merge pull request #24484 from Gymnasiast/refactor/split-g2-further
Split tracks.dat from g2.dat
2025-05-29 22:16:42 +02:00
Gymnasiast
c2b4158573 Split tracks.dat from g2.dat 2025-05-29 21:25:33 +02:00
Matt
fb834e64aa Merge pull request #24474 from Harry-Hopkinson/more-efficiently-search-viewports
Fix #24426: More efficiently search viewports.
2025-05-29 21:24:14 +03:00
Aaron van Geffen
f64d5bb4a6 Implement OnLanguageChange event for ScenarioSelect window (#24519) 2025-05-28 00:31:43 +02:00
Matt
d2e3430df2 Add the ability to temporarily load objects without registering them (#24521) 2025-05-27 22:13:42 +00:00
Aaron van Geffen
a7b12594c8 Perform an additional name check for competition scenarios (#24518) 2025-05-27 22:14:54 +02:00
Harry-Hopkinson
2b19320db3 Remove unused function (WindowGetPreviousViewport) 2025-05-27 18:26:08 +00:00
mix
594ecf54ac Fix new ride window not always updating when searching (#24515) 2025-05-27 20:23:02 +02:00
Aaron van Geffen
4ef74c0f3a Fix object selection tabs (#24512)
Regression from c383a7778c (#24481)
2025-05-27 11:34:57 +02:00
Matt
34bf07915f Merge pull request #24504 from mixiate/fix-23289
Fix #23289: Dodgems and Flying Saucers can spawn on top of each other when opened
2025-05-26 16:43:08 +03:00
73
6bbb0e8348 Fix typo on VIEWPORT_FLAG_INDEPENDENT_ROTATION
This fixes a typo on a variable.
2025-05-26 12:05:13 +02:00
Harry Hopkinson
994cc858e8 More efficiently search viewports for playing Audio 2025-05-26 08:37:44 +01:00
Harry Hopkinson
371dcc28f5 More efficiently search viewports 2025-05-26 08:37:15 +01:00
mix
7ee49d8f2b Fix #23289: Dodgems and Flying Saucers can spawn on top of each other 2025-05-25 21:37:58 +01:00
Bas
288513635c Fix include formatting in ScVehicle.cpp 2025-05-25 16:07:08 +02:00
Bas
cc45570379 Apply code formatting to ScVehicle.cpp 2025-05-25 16:07:07 +02:00
Bas
711d162063 Fix moveToTrack() by applying segment 0 offset 2025-05-25 16:05:21 +02:00
Bas
cdc8218073 Revert '75de5b8: Fix track origin being miscalculated for plugins on downward slopes' 2025-05-25 16:05:21 +02:00
Gymnasiast
d2615beb6e Change News enums to use lowerCamelCase 2025-05-24 23:47:18 +02:00
Gymnasiast
47bb449e34 Make news item fields lowerCamelCase 2025-05-24 23:47:18 +02:00
Gymnasiast
323a3c9119 Pass std::span to convertNewsQueue 2025-05-24 23:47:18 +02:00
Michael Steenbeek
2656f3acc2 Eliminate direct ride type check 2025-05-24 14:52:54 +02:00
mix
25fc322825 Invalidate screen on reload from object selection window 2025-05-24 02:47:12 +01:00
ζeh Matt
e40d56ed76 Avoid expensive copies calling ViewportSurfaceSmoothenEdge 2025-05-23 19:17:19 +03:00
ζeh Matt
d7b65d48ac Fix potential bug with missing 0 terminator 2025-05-23 19:16:25 +03:00
ζeh Matt
c383a7778c Avoid some more unintentional copies 2025-05-23 18:33:44 +03:00
ζeh Matt
068880635c Add fallthrough 2025-05-23 18:31:27 +03:00
ζeh Matt
de0ad4f0f4 Add missing break statements 2025-05-23 18:31:18 +03:00
ζeh Matt
5702100fd9 Mark things constexpr that are actually constexpr 2025-05-23 18:28:23 +03:00
ζeh Matt
5749466e00 Don't copy the widget, use reference 2025-05-23 18:25:06 +03:00
ζeh Matt
374f17bac9 Default initialize members in ProgressWindow 2025-05-23 18:21:23 +03:00
ζeh Matt
5351d50f5a Fix dangling pointer for Discord rich presence 2025-05-23 18:12:51 +03:00
ζeh Matt
0cfeeb8aba Annotate fall-through 2025-05-23 18:12:34 +03:00
ζeh Matt
027f7c4096 Don't have garbage in padding for save header 2025-05-23 18:08:25 +03:00
Tulio Leao
b04348c56b Make error message on console set command more descriptive
Previously when using `set variable something` you would always get the non-helpful message: "set variable command failed, likely due to permissions."

Since all of these are going through game actions, we can use the GameActionResult to return something more meaningful. For example, trying to do `set game_speed 5`:
Before:
![image](https://github.com/user-attachments/assets/7e52143b-ca5d-461c-8475-408ba6346350)

After:
![image](https://github.com/user-attachments/assets/44160ceb-954b-41f6-80e3-fe581403b404)
2025-05-23 15:44:16 +02:00
Harry Hopkinson
cd63cd34d1 Close #24400: Sort rides with preservation order alphabetically 2025-05-23 12:48:06 +00:00
mix
01f2651d2e Fix #20158: animated scenery dats draw random sprite at end of anim 2025-05-23 14:38:45 +02:00