Commit Graph
137 Commits
Author SHA1 Message Date
Spacek531 fa124330fa Convert flags field to FlagHolder 2025-12-12 18:35:40 +01:00
Spacek531 2820bdc8e2 Rename sequence flags 2025-12-12 18:33:18 +01:00
mix 9fa6f646a4 Add blocked segments to track sequence descriptors 2025-10-29 14:48:23 +01:00
mix 8f6d8c2cdb Use extraSupportRotation in wooden DrawSupportForSequence functions
This uses the `extraSupportRotation` in the track element data in the wooden `DrawSupportForSequenceA/B` functions.

It removes the down transition types as they are no longer necessary as they are rotated by this instead. They were only used in the track element data, which is only used by these functions.

It fills in some of the track element data necessary to draw all the ones currently used by these functions.

This should do nothing as is. I have diffed pictures of all track pieces of all affected track types and found no difference.

This is so that you will be able to use rotated transition types, other than the two up and down rotations previously available, on track pieces that require them like sloped turns. It's not strictly necessary but it would be nice to be able to use this function for supports on the quarter helices.

This also adds a const for the count of transition types, and renames a data array to the current style.
2025-10-10 07:35:14 +02:00
mix 6ed3783e06 Prevent diagonal slopes from being built if vehicles lack sprites (#23351) 2025-08-15 10:26:50 -03:00
Gymnasiast 76ad3715bb Rename enum members of WoodenSupportTransitionType to lowerCamelCase 2025-06-21 14:46:32 +02:00
Gymnasiast f267d6025b Rename enum members of WoodenSupportSubType to lowerCamelCase 2025-06-21 14:37:55 +02:00
Gymnasiast 16ce220210 Rename enum members of MetalSupportPlace to lowerCamelCase 2025-06-21 14:12:49 +02:00
Andrew abaf8d2aef Add diagonal downward-inclined brakes to hybrid and single rail coasters 2025-02-19 18:53:43 +01:00
Michael Steenbeek b0c99fcb6c Refactor more constants to kConstant notation 2025-01-22 16:16:55 +00:00
spacek531 5bec62c540 Beautify TrackData.cpp 2025-01-20 15:26:31 +01:00
Michael Steenbeek be9f27e4f9 Mass rename constants (#23656) 2025-01-19 15:59:45 +00:00
X123M3-256 864d9b2d73 Add large diagonal flat to steep and dive loop track pieces 2025-01-15 13:25:29 +01:00
Aaron van Geffen fa06a49302 Update copyright year to 2025 (#23514) 2024-12-31 20:30:04 +01:00
Aaron van Geffen 6ee798337a Introduce EnumUtils header (#23407) 2024-12-15 17:39:52 +01:00
AuraSpecs 76a40bb52a Add diagonal booster to LSM Launched Coaster 2024-11-24 21:12:51 +01:00
Aaron van Geffen d2e01dde4e Remove a bunch of Util.h includes 2024-10-29 13:12:52 +01:00
Aaron van Geffen 80b63a5ae7 Add line breaks after template declarations (#23086)
* Add line breaks after template declarations

* Additional clang-format patches
2024-10-29 16:54:01 +01:00
Michael Steenbeek 52b70703af Turn TrackElemType into a strong enum 2024-10-11 13:30:27 +00:00
AndrewandX123M3-256 5f1f925116 Add downward-inclined brakes to hybrid coaster and single rail coaster
Co-authored-by: X123M3-256 <X123M3-256@users.noreply.github.com>
2024-10-03 12:42:36 +02:00
Michael Steenbeek ffad32ee8c Refactor enabling of covered pieces 2024-10-01 14:04:44 +02:00
Gymnasiast 299fad3bb7 Fix RightBankedQuarterTurn3Tiles supports 2024-09-19 21:11:57 +02:00
Gymnasiast 5f92d1920b Group all sequence-bound properties 2024-09-18 22:43:55 +02:00
Gymnasiast 30244594ac Add downward wooden support transition enum members, table fixes 2024-09-18 22:41:34 +02:00
Gymnasiast ac1f7eab4e Convert side-friction RC to use support table 2024-09-09 21:36:06 +02:00
Michael Steenbeek 8ebacc1821 Close #19003: Change _currentTrackCurve to a struct 2024-08-11 21:35:29 +02:00
Gymnasiast 9ed2e87f49 Replace tabs with spaces in TrackData.cpp 2024-08-11 14:10:48 +02:00
Michael Steenbeek 07f54c22bd Create named enum for track group (#22523) 2024-08-11 09:26:19 +02:00
GymnasiastandAaronVanGeffen 0a33719a96 Add wooden support data to TED
Co-authored-by: AaronVanGeffen <AaronVanGeffen@users.noreply.github.com>
2024-08-09 19:17:59 +02:00
Gymnasiast a73310e2bd Fix formatting of TrackData.cpp 2024-08-03 12:51:29 +02:00
Gymnasiast a984532ff1 Rename MaxSequencesPerPiece to kMaxSequencesPerPiece 2024-08-03 12:51:29 +02:00
Gymnasiast 9294a58e98 Change TrackDescriptor field names to lowerCamelCase 2024-08-03 12:51:25 +02:00
Gymnasiast 6949c62529 Turn SpinFunction into strong enum 2024-08-02 23:55:23 +02:00
Gymnasiast 4572331409 Move TrackData.{cpp,h} into OpenRCT2::TrackMetaData namespace 2024-08-02 23:55:23 +02:00
Aaron van Geffen 05e56517ab Adopt existing namespaces into OpenRCT2 namespace (#22368)
* Put all of TitleSequenceManager into the same namespace

* Move RideConstructionState into the OpenRCT2 namespace

* Adopt existing namespaces into OpenRCT2 namespace

This adds `using namespace OpenRCT2` to compilation units where appropriate,
as a means to get the codebase to compile until these units have been placed
in a namespace of their own.
2024-07-26 09:59:58 +02:00
Claudio TiecherandMichael Steenbeek 13e9ff84c2 Part of #21421: Replace define with constexpr (#21626)
* Part of #21421: Refactor RIDE_INITIAL_RELIABILITY in Ride.h

* Part of #21421: Refactor STATION_DEPART_FLAG and STATION_DEPART_MASK

* Part of #21421: Refactor MAX_STATION_PLATFORM_LENGTH

* Part of #21421: Refactor RIDE_RATING_UNDEFINED

* Part of #21421: Refactor TRACK_BLOCK_END

* Part of #21421: Refactor TRACK_PREVIEW_IMAGE_SIZE

* Part of #21421: Refactor based on feedback

* Part of #21421: Fix signed/unsigned mismatch on Win

* Improved consistency kTrackPreviewImageSize

Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>

* Part of #21421: kMaxStationPlatformLength to int8

---------

Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
2024-03-24 21:49:50 +00:00
Severin Paul Höfer e1631afe48 Make small Flyer half loops symmetrical 2024-02-21 17:23:45 +01:00
Severin Paul Höfer 99dfbc2661 Make ClearanceZ on small half loops symmetrical
Values now consistent to those in the small full loops.
2024-02-21 17:23:45 +01:00
Severin Paul Höfer 0ff998a071 Make ClearanceZ on Flying half loops symmetrical 2024-02-21 17:23:45 +01:00
Severin Paul Höfer 133c8a1068 Fix ClearanceZ for large half loops down 2024-02-21 17:23:45 +01:00
Severin Paul Höfer 1ce1d1b04e Add comments to PreviewTrack definitions 2024-02-21 17:23:45 +01:00
Gymnasiast c2f2058fa0 Allow building heartline rolls partly underground 2024-02-20 19:14:02 +01:00
Gymnasiast 731275613a Create flag to allow building track segment partly underground 2024-02-20 19:14:01 +01:00
Gymnasiast 95c1adc813 Rename TrackBank to TrackRoll 2024-01-17 23:34:36 +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
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
spacek531 79730e50fd Diagonal Brakes and Block Brakes 2023-10-01 18:58:03 -07:00
X123M3-256 6119b343e6 Fix missing track data (#20687)
* Fix missing track data

* Increase network version
2023-08-06 10:28:08 +01:00