1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00
Commit Graph

11681 Commits

Author SHA1 Message Date
mix
6103d00dce Fix #18711: Underground park entrance sides can cause glitching 2025-02-18 21:21:53 +00:00
mix
b7b31bc4b0 Fix #16657: Mine Ride right S-bend uses Mini Roller Coaster sprite 2025-02-18 20:38:20 +00:00
mix
d946ab3374 Fix land edges glitch when vehicles go through gentle to flat tunnels 2025-02-18 21:34:43 +01:00
73
c7c703515e Rename audio.h to Audio.h (#23842) 2025-02-17 13:24:03 +01:00
mix
25f14cb023 Fix #18436: Scenery on same tile draws over steep to vertical track (#23822) 2025-02-16 12:32:23 +00:00
Aaron van Geffen
893d0858cc Bump scenario index version (#23826) 2025-02-15 18:33:25 +00:00
mix
5fc55a0009 Fix #1972, #11679: Vehicles passing by toilets can cause them to glitch 2025-02-15 18:02:56 +01:00
mix
c4c230b43b Fix spinning tunnels drawing over sloped terrain in front of them (#23818) 2025-02-15 15:41:18 +01:00
mix
d4b35ae1b4 Fix #22620: RCT1 Mine Coaster trains glitch on large banked turns (#23817) 2025-02-15 15:21:16 +01:00
mix
a6c9c06f9a Fix #16357: Chairlift station covers draw incorrectly (#23808) 2025-02-15 14:18:41 +00:00
Briar
376cb7980c Fix #9999-#10003: translations have truncated strings
This issue, along with several related language-specific
trunctions, was traced back to the fact that ScenarioIndexEntry
uses a fixed-length array of utf8 characters to store the name,
internal name, and scenario details. In some cases, this does
not provide enough characters to contain the full description
and so the safe copy methods truncate them to fit in the
available buffer.

Since the use of fixed-size arrays is a holdover from earlier
C code, this commit addresses the issue by changing ScenarioIndexEntry
to use proper utf8 strings and string views, which do not require
truncation.
2025-02-15 00:18:24 +01:00
mix
503d55d051 Fix train glitching on Bobsleigh Coaster small helixes (#23809) 2025-02-14 17:51:20 +01:00
Aaron van Geffen
bb94ee8bc0 Rename ObjectType enum to follow recent code style (#23810) 2025-02-13 23:07:55 +01:00
73
b9b2c96c97 Rename sprites.h to SpriteIds.h (#23804) 2025-02-13 15:51:46 +00:00
Aaron van Geffen
6933af25ae Rename 'Climate' properties to Weather (#23786)
* Rename ClimateState to WeatherState

* Rename ClimateCurrent to WeatherCurrent

* Rename ClimateNext to WeatherNext

* Rename ClimateUpdateTimer to WeatherUpdateTimer

* Use named initialisers for weather state import in S4/S6 importers

* Rename S4::ClimateTimer to WeatherUpdateTimer as well

* Rename WeatherState struct properties to lowerCamelCase
2025-02-13 07:38:45 -03:00
orbifant
7672da17c7 Fix segfault on linux when running in verbose mode
Comparing LOG_VERBOSE with other places in code, it expects const char* as parameter.
2025-02-12 20:37:51 +01:00
matheusvb3
6c1be793fb Update constexpr with k prefix 2025-02-11 20:26:22 -03:00
matheusvb3
54404e4c8d Simplify garden clock paint algorithm 2025-02-11 04:16:11 -03:00
matheusvb3
7a21f5694d Include stdexcept in LocalisationService.cpp (#23798) 2025-02-10 20:20:06 +00:00
mix
5a3ebb65de Fix #23522: Steeplechase diagonal sloped support base glitched sprites 2025-02-09 14:57:22 +00:00
mix
1e5f587c40 Fix looping roller coaster vertical loop supports drawing incorrectly (#23795) 2025-02-09 14:01:20 +01:00
Frédéric Fauberteau
e74ed439df Support NetBSD 2025-02-08 11:08:21 +01:00
Frédéric Fauberteau
98e7d3ea32 All BSD-like platforms have alloca in stdlib.h 2025-02-08 10:58:15 +01:00
Aaron van Geffen
2302f0d2e3 Rework Localisation includes (#23789)
* Clean up internal localisation header includes

* Remove some external localisation includes

* Remove dependency on FormatCodes.h from InteractiveConsole.h

* Reduce Formatter.h, Localisation.Date.h includes
2025-02-07 22:36:42 +01:00
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
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
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
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
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
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
Michał Janiszewski
a002834f39 Merge pull request #23515 from ethanaobrien/develop
Fix emscripten (webassembly) support
2025-01-21 17:14:03 +01:00