1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 14:54:30 +01:00
Commit Graph

19738 Commits

Author SHA1 Message Date
Gymnasiast
9d03fad8b8 Rename TrackSlope to TrackPitch 2024-01-17 23:34:37 +01:00
Gymnasiast
95c1adc813 Rename TrackBank to TrackRoll 2024-01-17 23:34:36 +01:00
Gymnasiast
cffc55e165 Rename fields of TrackDefinition 2024-01-17 23:33:19 +01:00
Gymnasiast
44d547a4bc Make TrackPitch into an enum class 2024-01-17 23:33:19 +01:00
Gymnasiast
b832eb5f72 Make TrackBank into an enum class 2024-01-17 23:33:19 +01:00
Gymnasiast
d2f5e739aa Make TrackCurve into an enum class 2024-01-17 23:33:19 +01:00
Basssiiie
cc7c528885 Fix widgets not redrawing correctly when updating disabled/visible state 2024-01-16 14:05:21 +00:00
Basssiiie
5221e8ee9f Extract plugin widget validation logic to separate function 2024-01-16 14:04:14 +00:00
Severin Paul Höfer
15e0402c63 Fix #20255: Images not freed in Track Designs Manager (#21205)
* Add missing deallocation in track manager

* Update changelog.txt
2024-01-15 21:38:46 -03:00
Matt
04e8a25c44 Merge pull request #21165 from bencsikandrei/refactor/simplify-linux-get-install-path
Refactor GetInstallPath for linux
2024-01-15 22:51:20 +02:00
Max
7a9e8a5e44 Fix: setting brake/booster speeds via plug-in does not work 2024-01-15 08:28:21 +01:00
Severin Paul Höfer
62d0fd76e0 Fix #20616: Confirmation button in track designer's quit prompt has the wrong text
Wrapped the logic for determining the text to be displayed on title
and buttons of the save prompt in an if condition, so it's not run for
the pure quit prompt.
2024-01-15 08:26:58 +01:00
ζeh Matt
7d3c273594 Fix #21171: Crash creating entities with no slots available 2024-01-12 17:56:23 +02:00
ζeh Matt
3dc2a25121 Fix overflow calculating maximum free slots for misc entities 2024-01-12 17:48:39 +02:00
MichaelJBerk
15fcaffc91 Activate OpenRCT2 window after using native file dialog on macOS (#20951) 2024-01-12 12:01:57 +01:00
Michael Steenbeek
0e5c82e2d4 Close #18632: Display land ownership on the water (#21150)
Co-authored-by: pfroud <pfroud@users.noreply.github.com>
2024-01-12 07:14:11 +00:00
Michael Steenbeek
3023784bbf Merge pull request #21164 from Gymnasiast/refactor/td-entrance-elements
Import maze entrances in the same way as regular ones
2024-01-12 08:10:00 +01:00
Matt
cde2a43d32 Merge pull request #21181 from ZehMatt/paint-surface-copy
Remove obsolete copy of TileDescriptor, refactor code slightly
2024-01-12 02:52:57 +02:00
Gymnasiast
5593eca03d Import maze entrances in the same way as regular ones 2024-01-11 22:49:40 +01:00
Gymnasiast
a6c0c7dd79 Move TD6 track flags to RCT12.h 2024-01-11 22:26:06 +01:00
ζeh Matt
e12eaa48d4 Remove obsolete copy of TileDescriptor, refactor code slightly 2024-01-11 20:51:58 +02:00
Matt
ce0cc9fc84 Merge pull request #21162 from ZehMatt/fix-intervals
Fix #21145, #21158: Keep handles for intervals stable and resolve crash
2024-01-11 20:30:30 +02:00
ζeh Matt
6eea65fac7 Make the compiler happy 2024-01-11 19:45:07 +02:00
ζeh Matt
88a0e4b8d4 Apply review suggestions, remove redundant comment 2024-01-11 17:34:32 +02:00
Michael Steenbeek
f4956f5cdb Merge pull request #21109 from Gymnasiast/feature/wider-construction-window
Allow for building roller coasters with all 4 curve types
2024-01-11 11:14:46 +01:00
Andrei BENCSIK
03ddac9c7f Refactor GetInstallPath for linux
simplify the Platform::GetInstallPath (linux) by removing unnecessary
vector, removing unused #ifdef path and using string_views where
appropriate. no vector was actually needed as the prefixes are fixed
(same as the SearchLocations) - using a plain array avoids an
unnecessary allocation (actually a couple as the old code was using
push_back without reserve).

how it was tested?
run the game, check it finds path OK - PASS
run in the debugger, actually loop through OK - PASS
2024-01-07 00:20:05 +02:00
Michael Steenbeek
adadaafdb0 Check station flags instead of hardcoded legacy IDs
PR #20483 introduced a check for covered stations, but incorrectly checked the RCT2 IDs.
This commit replaces this check with a proper flag check, which will work for any station style, including custom ones.
2024-01-06 14:46:17 +01:00
Michael Steenbeek
ba585f4474 Merge pull request #21085 from Gymnasiast/refactor/td-entrance-elements-2
TrackDesign: Refactor entrances and constants
2024-01-06 11:43:26 +01:00
ζeh Matt
8bcd409fb0 Fix #21145, #21158: Keep handles for intervals stable and resolve crash 2024-01-06 10:42:17 +02:00
Michał Janiszewski
296e8cdb16 Merge pull request #21140 from ConiKost/musl
* src/openrct2/core/FileStream.cpp: drop ftello64, fseeko64

The static usage definition of ftello64 and friends is not correct.
While this currently works on glibc, this breaks on musl, as musl
already is LFS aware. The solution is to drop this and add instead
'-D_FILE_OFFSET_BITS=64' to the build system.

Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

* CMakeLists.txt: add D_FILE_OFFSET_BITS=64

Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Signed-off-by: Conrad Kostecki <conrad@kostecki.com>
2024-01-04 22:03:44 +01:00
Conrad Kostecki
7c638c7865 CMakeLists.txt: add D_FILE_OFFSET_BITS=64
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Signed-off-by: Conrad Kostecki <conrad@kostecki.com>
2024-01-04 21:45:25 +01:00
Gymnasiast
7df3b22e14 Move conversion of station object to TD4/6 import/export 2024-01-03 21:14:04 +01:00
Gymnasiast
cfff3c53f9 Do not use RCT1/2 limits in TrackDesign.h
Some unrelated files seemingly relied on TrackDesign.h to import RCT2.h for them.
2024-01-03 21:12:53 +01:00
Gymnasiast
3df551ffbf Move RCT2::GetRCTStringBufferLen to RCT12
It’s used in both
2024-01-03 21:12:53 +01:00
Gymnasiast
01fc353cc8 Refactor in-memory track design entrance 2024-01-03 21:12:53 +01:00
mrmbernardi
f0a82e9ecd Remove double load of Title Sequence in TitleScreen.cpp 2024-01-03 21:11:06 +01:00
Conrad Kostecki
010c19ba61 src/openrct2/core/FileStream.cpp: drop ftello64, fseeko64
The static usage definition of ftello64 and friends is not correct.
While this currently works on glibc, this breaks on musl, as musl
already is LFS aware. The solution is to drop this and add instead
'-D_FILE_OFFSET_BITS=64' to the build system.

Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
2024-01-01 20:47:06 +01:00
James103
1d8dc111f1 Replace 2023 with 2024 in copyright headers (#21139)
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
Michał Janiszewski
0e8d46ea7c Release v0.4.7
- Feature: [#12078] Add shortcut key for toggling wall slope.
- Feature: [#19919] Add diagonal brakes and diagonal block brakes to most coaster types.
- Feature: [#20141] Add additional track pieces to the Giga Coaster.
- Feature: [#20825] Made setting the game speed a game action.
- Feature: [#20830] Display author field on scenery window.
- Feature: [#20853] [Plugin] Add “BaseTileElement.owner” which is saved in the park file.
- Feature: [objects#257] Re-introduce the RCT1 road, which does not have handrails.
- Feature: [OpenMusic#46] Added Mystic ride music style.
- Feature: [OpenMusic#50] Added Rock style 4 ride music.
- Improved: [objects#261] Add composer credits on all RCT2 music objects.
- Change: [#20790] Default ride price set to free if park charges for entry.
- Change: [#20880] Restore removed default coaster colours.
- Change: [#21102] The money effect will now update even when the game is paused.
- Change: [objects#244] Update sort priorities for expansion scenery groups.
- Change: [objects#256] Use recoloured RCT2 artwork on the Fruity Ices Stall, rather than the (slightly different) RCT1 artwork.
- Fix: [#5677] Balloons pass through the ground and objects.
- Fix: [#12299] Placing ride entrances/exits ignores the Disable Clearance Checks cheat.
- Fix: [#13473] Guests complain that the default Circus price is too high.
- Fix: [#15293] TTF fonts don’t format correctly with OpenGL.
- Fix: [#16453] Tile inspector invisibility shortcut does not use a game action.
- Fix: [#16926] When multiple vehicles are grouped in research, only one of them is unlocked.
- Fix: [#17774] Misplaced/missing land and construction rights tiles in RCT1 & RCT2 scenarios.
- Fix: [#18199] Dots in the game save’s name no longer get truncated.
- Fix: [#19722] “Forbid tree removal” restriction doesn’t forbid removal of large scenery tree items.
- Fix: [#20253] Crash when displaying a Lay-Down RC’s half loop.
- Fix: [#20356] Cannot set tertiary colour on small scenery.
- Fix: [#20624] Scrolling text glitches after language is changed.
- Fix: [#20679] Android: game crashes at launch.
- Fix: [#20737] Spent money in player window underflows when getting refunds.
- Fix: [#20747] Staff speed cheat not applying to newly hired staff, UI not showing the current applied speed.
- Fix: [#20778] [Plugin] Incorrect target api when executing custom actions.
- Fix: [#20807] Tertiary colour not copied with small scenery.
- Fix: [#20964] Crash when player connects to server with a group assigned that no longer exists.
- Fix: [#20995] TTF fonts don’t support hinting, outlines, or insets with OpenGL.
- Fix: [#21042] Peeps don’t render properly in S4 parks.
- Fix: [objects#246, objects#248] Some objects are incorrectly marked as originating from RCT1.
- Fix: [objects#260] Submarine Ride has its capacity listed incorrectly.
2023-12-31 15:09:59 +01:00
Michał Janiszewski
bb449ef3cb Update Crash.cpp
Update backtrace token for upcoming release
2023-12-31 14:55:40 +01:00
Michael Steenbeek
bf1bb2d87c Revert "Remove double load of Title Sequence in TitleScreen.cpp" (#21133)
This reverts commit d233d0fc3d.
Fixes #21127.
2023-12-31 14:52:35 +01:00
blackhand1001
7b0b432cb8 Fix #16926: Grouped rides unlock only the first entry
This fixes rides without RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY from only unlocking the first entry on stock RCT2 saves/scenarios.

This makes the wooden coaster properly unlock its trains on stock RCT2 scenarios and saves. This restores the correct stock behaviour while maintaining the missing items research fix which is what broke this behaviour.
2023-12-30 20:05:44 +00:00
mrmbernardi
970504f2ad Fix #21042: SpriteData intialised incorrectly (#21125) 2023-12-29 23:21:15 +01:00
mrmbernardi
d233d0fc3d Remove double load of Title Sequence in TitleScreen.cpp 2023-12-29 20:49:25 +01:00
Michael Steenbeek
a4d11d82e8 Merge pull request #21113 from spacek531/track/replace-track-paint-scheme-enum
Refactor track and supports colours in PaintSessionCore
2023-12-26 14:13:48 +01:00
mrmbernardi
98a52efb7e Fix #5677: Balloons pass through the ground and objects (#20483) 2023-12-26 08:28:19 -03:00
Spacek531
b6bcb8e106 Add secondary colour to supports scheme
The wooden roller coaster and air powered vertical coaster both
construct a paint scheme that incorporates the tertiary colour in the
primary slot and the secondary colour in the secondary slot.
Constructing the scheme requires at least one condition that can be
removed by constructing the scheme when populating the PaintSessionCore.
2023-12-23 17:13:27 -08:00
Spacek531
a890844115 replace TrackColours array with two ImageId values 2023-12-23 17:01:56 -08:00
Michael Steenbeek
3ab12eb659 Update objects to v1.3.12 2023-12-23 23:38:33 +01:00
spacek531
1306dc048b Remove SCHEME_MISC, SCHEME_3 from PaintSessionCore 2023-12-23 16:42:00 +01:00