1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-30 10:15:36 +01:00

Add RtdSpecialType to replace checks for maze and other naughty types

This commit is contained in:
Gymnasiast
2024-11-22 23:57:09 +01:00
parent 6de1ac1ec7
commit d9d5df509e
30 changed files with 185 additions and 153 deletions

View File

@@ -239,9 +239,9 @@ namespace OpenRCT2::Ui::Windows
}
const auto& rtd = GetRideTypeDescriptor(td.trackAndVehicle.rtdIndex);
if (!rtd.HasFlag(RtdFlag::isMaze))
if (rtd.specialType != RtdSpecialType::maze)
{
if (td.trackAndVehicle.rtdIndex == RIDE_TYPE_MINI_GOLF)
if (rtd.specialType == RtdSpecialType::miniGolf)
{
// Holes
auto ft = Formatter();