1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00
Commit Graph

21486 Commits

Author SHA1 Message Date
mix
0886df6244 Fix #22617: Sloped wooden supports glitch above diagonal track 2025-02-06 15:40:23 +01:00
Matt
eefba52735 Fix #23781: Changing weather does not update state for next weather (#23782)
* Fix #23781: Changing weather does not update state for next weather

* Bump up network version
2025-02-05 15:36:26 +01:00
Andrew
ca40a412bc Make building new track inherit alternate colour scheme from previous piece 2025-02-03 21:48:42 +00:00
Gymnasiast
455f22bbca Release v0.4.19.1
- Fix: [#23771] Weather transitions are horribly broken.
2025-02-03 20:47:21 +01:00
Gymnasiast
75469832cc Update backtrace token for upcoming v0.4.19.1 release 2025-02-03 20:43:17 +01:00
AaronVanGeffen
dcc5e5bd81 Fix weather transitions 2025-02-03 20:41:54 +01:00
Matt
dcc926c4f0 Merge pull request #23776 from gibmat/guard-nullptr-dereference
Guard against possible null pointer dereferences
2025-02-03 00:31:47 +02:00
Mathias Gibbens
3508b62c3a Guard against possible null pointer dereferences
Signed-off-by: Mathias Gibbens <gibmat@debian.org>
2025-02-02 21:04:36 +00:00
matheusvb3
850cc397c3 Prevent staff statistics from overflowing (#23719)
* Use AddClamp when incrementing staff stats

* Remove decltype from AddClamp

* Use lowercase u in increment
2025-02-02 17:44:12 -03:00
Gymnasiast
088081dae6 Release v0.4.19
- Feature: [#23328] Introducing peep animation objects, enabling custom entertainer costumes.
- Feature: [#23569] Add large diagonal flat to steep and dive loop track pieces.
- Improved: [#20683] Allow Giga Coaster cable lift to start after block brake section.
- Improved: [#23328] The costume list in the staff window is now ordered alphabetically.
- Improved: [#23540] The file browser now optionally shows a file size column.
- Improved: [#23640] Building sprite repository with command line can use images array of JSON parkobj.
- Improved: [#23660] The ‘special elements’ dropdown has been reorganised, now using multiple columns and separators.
- Improved: [#23730] Added optional button to toolbar to rotate view anti-clockwise.
- Change: [#23328] All RCT2 entertainer costumes are now available in legacy parks.
- Fix: [#1479] Incorrect values provided by the in game console “get location” command.
- Fix: [#21794] Lay-down coaster cars reverse on first frames of downwards corkscrew.
- Fix: [#23221] Track designs are saved with an incorrect ‘air’ time statistic.
- Fix: [#23368] Incorrect refund amount when deleting track pieces at or above 96m.
- Fix: [#23508] Simultaneous virtual floors shown for ride and footpath.
- Fix: [#23512] Holding brakes are skipped if they’re too close together.
- Fix: [#23581] [Plugin] Food/drink items given to guests have no consumption duration set.
- Fix: [#23591] “Install new track” button in Track Designs Manager is misaligned.
- Fix: [#23618] Can no longer build diagonal brakes & block brakes on Steeplechase, Inverted Lay-down, & Inverted Multi-Dim roller coasters.
2025-02-01 21:27:48 +01:00
Gymnasiast
284c6d396c Update backtrace token for upcoming v0.4.19 release 2025-02-01 21:22:46 +01:00
Aaron van Geffen
0049345f33 Cleanup the Climate file (#23755)
* Rename kClimateTransitions, kClimateWeatherData, kClimateWeatherGloom

* Rename WeatherTransition::DistributionSize to RandomBias

* Rename WeatherTransition type to WeatherPattern

* Rename WeatherState type to WeatherTrait and take internally

* Rename ThunderStatus type, kMaxThunderInstances constant
2025-01-31 23:27:37 +01:00
Michael Steenbeek
3c03fa308d Improve warning if language files cannot be loaded on Android 2025-01-31 23:24:50 +01:00
Michael Steenbeek
cfb28cd511 Turn Rotate View dropdown into two buttons
Co-authored-by: Gymnasiast <gymnasiast@users.noreply.github.com>
Co-authored-by: MasterTomNL <tomvanderlek@gmail.com>
2025-01-30 23:02:36 +01:00
Lura Skye
859a7f8c72 Fix crash placing rides without special elements. (#23739) 2025-01-29 14:47:13 +00:00
Aaron van Geffen
17e1fab0f2 Fix hats/balloons/umbrellas not showing in guest notifications (#23728) 2025-01-28 16:31:33 +01:00
Michael Steenbeek
eeee934a47 Fix #23724: Maze Construction window buttons are not working (#23731) 2025-01-27 23:51:19 +01:00
Aaron van Geffen
24f4aa20d8 Reorganise special elements in construction window (#23660)
* Move kSpecialElementsDropdownOrder out of header file

* Move track pieces per Spacek's suggestions

* Show elements in multiple columns when appropriate

* Add separators between sections

* Split columns around a separator when possible

Co-authored-by: spacek531 <spacek531@comcast.net>
2025-01-27 22:38:43 +01:00
Aaron van Geffen
9a8abf2b74 Dropdown: allow specifying number of rows per column (#23713)
* Dropdown: allow specifying number of rows per column

* Dropdown: fix indentation for kColoursDropdownOrder

* Dropdown: minor header cleanup
2025-01-27 21:49:24 +01:00
J. Neuschäfer
4bc13f2678 Platform.h: Reject big-endian systems (#23684)
Several tests fail on big-endian, indicating that the code isn't prepared
for such systems, but it wouldn't be obvious from just compiling OpenRCT2.
Make it obvious by checking it on Platform.h. Example output:

/home/user/src/OpenRCT2/src/openrct2-ui/../openrct2/platform/Platform.h:34:35: error: static assertion failed: OpenRCT2 is known to be broken on big endian. Proceed with caution!
   34 | static_assert(std::endian::native == std::endian::little,
      |               ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
ninja: job failed
2025-01-27 19:37:42 +01:00
Aaron van Geffen
aeca38d131 Prevent drawing peep accessories whilst drowning (#23729) 2025-01-27 19:24:33 +01:00
spacek531
f1148e310e Build image repository from object images (#23640) 2025-01-27 08:25:22 +00:00
Michael Steenbeek
5b5d91abb0 Fix #23221: Track designs are saved with an incorrect ‘air’ time statistic
Co-authored-by: UnknownShadow200 <UnknownShadow200@users.noreply.github.com>
2025-01-25 23:11:18 +01:00
Michael Steenbeek
a8beae2ef3 Merge pull request #23704 from Gymnasiast/refactor/mini-golf-gotos
Remove the last gotos
2025-01-25 22:05:03 +01:00
ζeh Matt
a80702c61f Fix #23707: Crash when plugins use a custom tool 2025-01-25 21:42:53 +02:00
Matt
fa0e7342ec Fix #23701: Potential crash when using mouse wheel on some widgets 2025-01-25 15:33:14 +01:00
Gymnasiast
5769e9237f Move Loc6DCA9A to own function 2025-01-25 15:05:33 +01:00
Gymnasiast
4b13f45eec Move Loc6DC462 to own function 2025-01-25 14:40:23 +01:00
Gymnasiast
3ad19f71ee Make Loc6DCA9A a loop 2025-01-25 14:21:24 +01:00
Gymnasiast
774240d081 Make Loc6DC462 a loop 2025-01-25 13:59:37 +01:00
Aaron van Geffen
cf448753c1 Move WindowInvalidate and WidgetInvalidate families into WindowManager (#23692)
* Move WindowInvalidate and WidgetInvalidate families into WindowManager

* Use InvalidateWidget shorthand in more places

* Cut back on UiContext includes

* Cut back on Window.h includes

* Remove outdated parameter comments
2025-01-25 13:46:08 +01:00
Aaron van Geffen
da0a772e4d Offset dropdown text labels and separators (#23700)
* Centre dropdown separators optically and add margins

* Offset dropdown item text slightly to add a slight margin
2025-01-25 13:43:01 +01:00
Michael Steenbeek
a3d5b4e0c3 Change FIXED_XDP from macros to constexprs 2025-01-25 13:42:22 +01:00
Aaron van Geffen
c8da126c95 Move Viewport struct to Viewport.h 2025-01-24 22:44:21 +01:00
ζeh Matt
fe950f75d1 Add some assertions 2025-01-23 11:05:20 +02:00
ζeh Matt
e17799fb68 Fix #23686: Shortcut window crashing and missing widgets 2025-01-23 11:01:43 +02:00
ζeh Matt
9138fba9cf Prevent out of bounds access, prevents assert on debug builds 2025-01-23 11:00:30 +02:00
Michael Steenbeek
f70d202cf0 Create buttons for vertical drops in construction window (#23665) 2025-01-22 19:22:03 +01:00
Michael Steenbeek
b0c99fcb6c Refactor more constants to kConstant notation 2025-01-22 16:16:55 +00:00
ζeh Matt
87be9f0f6e Use correct widgets instance for Banner window 2025-01-22 11:48:06 +02:00
ζeh Matt
a288d0b912 Fix marketing campaign accessing the widget declaration not instance 2025-01-22 11:41:24 +02:00
Michał Janiszewski
a002834f39 Merge pull request #23515 from ethanaobrien/develop
Fix emscripten (webassembly) support
2025-01-21 17:14:03 +01:00
spacek531
4b3a342e81 Remove screaming snake case constant TRACK_BLOCK_2 (#23657) 2025-01-21 11:54:11 +01:00
ζeh Matt
e454f27518 Fix #23655: Crash with invalid widget index 2025-01-21 12:00:24 +02:00
Ethan O'Brien
a34e5f840d Use kStringIdNone on emscripten buttons 2025-01-20 08:31:12 -06:00
Ethan O'Brien
0310084c04 Merge branch 'develop' into develop 2025-01-20 08:28:57 -06:00
spacek531
5bec62c540 Beautify TrackData.cpp 2025-01-20 15:26:31 +01:00
Aaron van Geffen
a8773dd805 Move WindowClose family into WindowManager (#23646)
* Replace WindowClose() calls with Close method calls where possible

* Move WindowClose family into WindowManager

* Remove UpdateSceneryGroupIndexes hack
2025-01-19 18:49:18 +01:00
Michael Steenbeek
be9f27e4f9 Mass rename constants (#23656) 2025-01-19 15:59:45 +00:00
spacek531
bf413b2ab7 Booster code cleanups/unified booster speed preparation 2025-01-19 16:43:26 +01:00