1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00
Commit Graph

11902 Commits

Author SHA1 Message Date
ζeh Matt
68f6ea8d15 Use sfl::small_vector for Chunks, only observed a maximum of 16 so far 2025-04-21 03:16:45 +03:00
ζeh Matt
2adbaffbca Use pair instead of tuple in FileIndex.hpp, reduces compilation time 2025-04-21 03:12:49 +03:00
ζeh Matt
8fe14c5b5c More code style adjustments 2025-04-21 03:08:01 +03:00
ζeh Matt
8fdbf7ac0e Avoid constructing std::string_view from const char* 2025-04-21 03:05:33 +03:00
ζeh Matt
5eabdf8ec9 Use std::span for peepAnimObjects, rename to new style 2025-04-21 03:05:33 +03:00
ζeh Matt
b30e1b406b Use unordered_map and constify things in Legacy.cpp 2025-04-21 03:05:33 +03:00
ζeh Matt
0b581281c5 Use string_view in ParseSourceGame lookup helper 2025-04-21 03:05:33 +03:00
ζeh Matt
a22c041379 Enable the use of std::string_view for find in ObjectRepository 2025-04-21 03:05:32 +03:00
Michael Steenbeek
63e247454b Merge pull request #22766 from Gymnasiast/fix/19782
Fix #19782: Game stops counting inversions after 31
2025-04-20 13:52:20 +02:00
Max
923a38c990 Close #24146: Expand plugin functionality for balloons and money effects 2025-04-19 23:23:02 +02:00
Gymnasiast
731f2d4c34 Count holes separately from inversions; limit bonus to 31 2025-04-19 19:53:37 +02:00
Gymnasiast
c43497c16d Maximise num holes, inversions, drops, circuits and lift hills when writing to TD6 2025-04-19 19:00:44 +02:00
Gymnasiast
cc2546b681 Close #19782: Game stops counting inversions after 31 2025-04-19 19:00:22 +02:00
Gymnasiast
734c0959ef Widen WindowFlags to 32 bits 2025-04-19 14:07:02 +02:00
mix
e2dbe1ccbf Clarify go kart collision threshold 2025-04-18 21:05:31 +01:00
X123M3-256
d11bfa3f5c Prevent go karts from getting stuck when changing lanes 2025-04-18 21:05:31 +01:00
mix
1a1b5869c0 Fix slight glitching in nested tiny and small go kart turns 2025-04-18 21:05:31 +01:00
mix
5c8bb8f84c Add gentle sloped turns to the go karts 2025-04-18 21:05:31 +01:00
mix
cc5ecf594a Add diagonal flat and sloped track to the go karts 2025-04-18 21:05:31 +01:00
mix
0df3f64703 Add steep track to the go karts 2025-04-18 21:05:31 +01:00
mix
c9175f5b1e Add larger turns and s bends to the go karts 2025-04-18 21:05:28 +01:00
mix
be4e740f26 Add new go kart lane subposition data 2025-04-18 18:50:47 +01:00
Michael Steenbeek
188245ad69 Fix #22634: Asset packs with sound effect overrides are not loaded correctly at startup 2025-04-18 00:05:35 +02:00
Aaron van Geffen
a8267412c2 Move title height helper functions to WindowBase and fix FlexUI plugins 2025-04-11 23:26:34 +02:00
Aaron van Geffen
883845bcf9 Use larger cross glyph for close button when title bar is enlarged 2025-04-11 20:39:26 +02:00
Aaron van Geffen
3f87e2b67a Centralise ResizeFrame in WindowBase and call when setting widgets or resizing 2025-04-11 20:37:54 +02:00
Aaron van Geffen
6d7b312e7a Make WF_NO_TITLE_BAR actually fit in the uint16_t that is WindowBase::flags 2025-03-14 14:08:14 +01:00
Michael Steenbeek
8d1bb273d8 WIP: Make title bar bigger in Enlarged UI mode 2025-02-24 18:18:12 +01:00
ZeroBreakpoint
76cc04d044 Fix crash in map.getAllEntities("car") when car has an invalid ride 2025-04-17 19:18:23 +02:00
spacek531
2249dffe91 Replace display options tab with custom sprites 2025-04-17 16:45:03 +02:00
Aaron van Geffen
b0b050d42f Add extra editor step for entering scenario details 2025-03-20 16:37:47 +01:00
Aaron van Geffen
807a2fa7c9 Merge objective options into scenario options 2025-03-13 13:57:03 +01:00
mix
cfaff31aff Fix narrow station base drawing with incorrect rotation 2025-04-16 11:30:34 +00:00
Duncan
add17b14ae Use aliases in cmake to prevent mistakes. Fix g2 dependency mistake (#24213)
Move libopenrct2 cmake to libopenrct2

Revert using aliases for install
2025-04-14 09:45:37 +01:00
Aaron van Geffen
3404405f7e Load scripts in the scenario editor and track designer (#24090)
* Load scripts in the scenario editor and track designer

* Explicitly unload plugins upon saving scenario
2025-04-13 13:41:22 +02:00
Duncan
d5de6c2b49 Start Simplifying CMake code (#24177)
* Use generator expressions

* Update cmake minimum

* Move options and remove project name

* Use further generator expressions

* Try upgrading to CMake 3.25 on Ubuntu 22.04 CI

Install software-properties-common

* Standardise with DISABLE_TTF for disable defines

* Set X64 var differently due to unknown reasons

---------

Co-authored-by: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com>
2025-04-11 16:09:52 +01:00
Michael Steenbeek
87765d662d Close #21767: Cannot select macOS version of RCTC as source 2025-04-11 17:00:57 +02:00
Garrett Leach
3578216d4d Remove unused includes (#24186)
Processing GameAction.h takes the most amount of time (in the Windows build) when rebuiding libopenrct2. Reducing the includes should speed the build up by a tiny bit. Window.h used the most processing time for libopenrct2-ui.
2025-04-10 18:05:41 +02:00
Basssiiie
0ae984842b Fix track origin being miscalculated for plugins on downward slopes 2025-04-09 17:29:44 +00:00
Michael Steenbeek
cfb4b008b2 Create weak enum for PaletteIndex 2025-04-09 16:47:22 +02:00
Aaron van Geffen
d9ba40b266 Purge leftover references to SetClimate game command (#24104)
* Purge leftover references to SetClimate game command

* Bump network version
2025-04-08 08:51:13 +02:00
Romain
fd0c20f31a Allow disabling the version checker 2025-04-07 23:43:27 +02:00
Michael Steenbeek
ee7c7a3a9a Fix #21919: Non-recolourable cars still show colour picker 2025-04-07 20:50:40 +00:00
mix
70dc237014 Prevent station ends, flat rides and shops invalidating unnecessarily 2025-04-07 22:18:54 +02:00
mix
9bc65f473b Prevent unnecessary tweening invalidations 2025-04-07 22:15:28 +02:00
mix
3c6ff344bb Prevent animation invalidation when paused 2025-04-07 22:12:03 +02:00
Michael Steenbeek
5a9d0d0cd6 Fix #23108: Missing pieces on Hypercoaster and Hyper-Twister, even with cheat 2025-04-07 21:52:24 +02:00
matheusvb3
2adf16f726 Scale lightning and thunder inversely proportional to game speed (#23803)
* Disable lightning flashes at higher speeds

* Scale lightning/thunder inversely proportional to game speed

* Change gGameSpéed from uint32 to uint8

* Update changelog.txt

* Increment network version
2025-04-07 18:45:26 +02:00
Aaron van Geffen
99836faeff Rename Window_internal unit to WindowBase for consistency (#24163) 2025-04-06 17:43:36 +02:00
Gymnasiast
ea5f02a87a Release v0.4.21
- Feature: [#22646] New scenario files now contain a minimap image, shown in the scenario selection window.
- Feature: [#23774] Climates can now be customised using objects.
- Feature: [#23876] New park save files now contain a preview image, shown in the load/save window.
- Improved: [#24078] Handrails on Wooden Roller Coaster station sprites with no platforms have been removed.
- Improved: [objects#379] Add additional colour schemes to Mine Train.
- Change: [#23932] The land rights window now checks “Land Owned” by default.
- Change: [#23936] The ‘guests prefer less/more intense rides’ settings have been turned into a dropdown.
- Change: [#24059] The ‘select other ride’ button is now available in the track designs manager.
- Change: [#24067] [Plugin] Registered menu items are now listed alphabetically.
- Change: [#24070] Footpath selection menus now show object names on hover using a tooltip.
- Change: [#24101] Frozen peeps are no longer removed when using the 'remove all guests' cheat.
- Fix: [#4225] Ride Construction window offers non-existent banked sloped to level curve (original bug).
- Fix: [#5281] Missing supports on miniature railways built backwards.
- Fix: [#7222] Transparent pixels in sloped path tunnels (original bug).
- Fix: [#10379] Banners outside the park can be renamed and modified (original bug).
- Fix: [#10582] Low clearance tunnels below water are drawn incorrectly (original bug).
- Fix: [#17524, #23710] Station bases are drawn on many ride types when the “No entrance, no platform station” style is selected.
- Fix: [#18169] CJK, Arabic and Vietnamese display all text as ‘???’ on Android.
- Fix: [#18309] Flying and Multi Dimension trains glitch when changing between inverted and uninverted track when uncap fps is on.
- Fix: [#19506] Queue paths can be placed on level crossings by replacing an existing regular path.
- Fix: [#21803] The park fence is drawn differently in OpenGL compared to software rendering when zoomed out.
- Fix: [#21824] Some sprites are drawn incorrectly when zoomed out in OpenGL rendering.
- Fix: [#21908] Ride mode warnings when hovering track designs.
- Fix: [#22820] OpenGL does not draw masked sprites correctly.
- Fix: [#22961] Clicking on the construction preview places duplicate flat rides and stalls.
- Fix: [#23359] Scripting: Add car.moveToTrack, an easier API than setting car.trackLocation directly.
- Fix: [#23443] New GOG version of RCT2 is not extracted correctly.
- Fix: [#23484] Stray coloured pixels on castle-themed stations and Roman-themed entrances/exits (original bug).
- Fix: [#23486] Object selection minimum requirements can be bypassed with close window hotkey.
- Fix: [#23743] Parks with guest goals over 32767 do not appear in the scenario list.
- Fix: [#23844] Sound effects keep playing when loading another save.
- Fix: [#23881] Compiling on Raspbian/arm-linux-gnueabihf fails.
- Fix: [#23891] Inverted Hairpin Coaster track can draw over things above it (original bug).
- Fix: [#23892] Gentle banked Wooden Roller Coaster track glitches as trains pass (original bug).
- Fix: [#23897] Reverse Freefall Coaster slope up to vertical track piece does not draw a vertical tunnel.
- Fix: [#23910] Heartline Twister Coaster track can draw over things above it (original bug).
- Fix: [#23939] Incorrect assertion when trying to load heightmap.
- Fix: [#23941] Underflow in “Repay loan and achieve a certain park value” objective when using Japanese.
- Fix: [#23949] Walls draw over sloped rear water edges and those edge sprites are misaligned (original bug).
- Fix: [#23960] Corner path fences can draw over adjacent sloped land (original bug).
- Fix: [#23961] Lamps and queue line tvs draw incorrectly on paths with fences.
- Fix: [#23983] Ordering files by size does not work and occasionally crashes the game.
- Fix: [#24009] [Plugin] The object manager API does not identify recently introduced object types.
- Fix: [#24028] Giga and LSM Launched Coaster booster sprites have pixels that draw over transparent pixels.
- Fix: [#24077] Track Designer crashes when clicking the park fence.
2025-04-05 20:26:47 +02:00