From b52dc2d9333463e26d3aba822eb9453014e28252 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Mon, 17 Aug 2026 20:23:58 +0200 Subject: [PATCH 001/142] Rename INTENT_ACTION_UPDATE_NEWS_TICKER --- src/openrct2-ui/WindowManager.cpp | 2 +- src/openrct2/management/NewsItem.cpp | 8 ++++---- src/openrct2/windows/Intent.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/openrct2-ui/WindowManager.cpp b/src/openrct2-ui/WindowManager.cpp index 7a800e5d19..1583de6857 100644 --- a/src/openrct2-ui/WindowManager.cpp +++ b/src/openrct2-ui/WindowManager.cpp @@ -470,7 +470,7 @@ public: WindowSceneryResetSelectedSceneryItems(); break; - case INTENT_ACTION_INVALIDATE_TICKER_NEWS: + case INTENT_ACTION_UPDATE_NEWS_TICKER: WindowGameBottomToolbarInvalidateNewsItem(); break; diff --git a/src/openrct2/management/NewsItem.cpp b/src/openrct2/management/NewsItem.cpp index b4f3357e4b..507fb06cfb 100644 --- a/src/openrct2/management/NewsItem.cpp +++ b/src/openrct2/management/NewsItem.cpp @@ -116,7 +116,7 @@ void News::InitQueue(GameState_t& gameState) warningThrottle = 0; } - auto intent = Intent(INTENT_ACTION_INVALIDATE_TICKER_NEWS); + auto intent = Intent(INTENT_ACTION_UPDATE_NEWS_TICKER); ContextBroadcastIntent(&intent); } @@ -163,7 +163,7 @@ void News::UpdateCurrentItem() if (gameState.newsItems.isEmpty()) return; - auto intent = Intent(INTENT_ACTION_INVALIDATE_TICKER_NEWS); + auto intent = Intent(INTENT_ACTION_UPDATE_NEWS_TICKER); ContextBroadcastIntent(&intent); // Update the current news item @@ -199,7 +199,7 @@ void News::ItemQueues::archiveCurrent() _recent.pop_front(); // Invalidate current news item bar - auto intent = Intent(INTENT_ACTION_INVALIDATE_TICKER_NEWS); + auto intent = Intent(INTENT_ACTION_UPDATE_NEWS_TICKER); ContextBroadcastIntent(&intent); } @@ -447,7 +447,7 @@ void News::DisableNewsItems(ItemType type, uint32_t assoc) newsItem.setFlags(ItemFlags::hasButton); if (&newsItem == &gameState.newsItems.current()) { - auto intent = Intent(INTENT_ACTION_INVALIDATE_TICKER_NEWS); + auto intent = Intent(INTENT_ACTION_UPDATE_NEWS_TICKER); ContextBroadcastIntent(&intent); } } diff --git a/src/openrct2/windows/Intent.h b/src/openrct2/windows/Intent.h index ab61be5745..352b34a18f 100644 --- a/src/openrct2/windows/Intent.h +++ b/src/openrct2/windows/Intent.h @@ -33,7 +33,7 @@ namespace OpenRCT2 INTENT_ACTION_INIT_SCENERY, INTENT_ACTION_SET_DEFAULT_SCENERY_CONFIG, INTENT_ACTION_REFRESH_SCENERY, - INTENT_ACTION_INVALIDATE_TICKER_NEWS, + INTENT_ACTION_UPDATE_NEWS_TICKER, INTENT_ACTION_REFRESH_GUEST_LIST, INTENT_ACTION_CLEAR_TILE_INSPECTOR_CLIPBOARD, INTENT_ACTION_REFRESH_STAFF_LIST, From 212c99ae591925eb22763fc1ad022bb4204fd09b Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Mon, 17 Aug 2026 20:40:49 +0200 Subject: [PATCH 002/142] Move NewsTicker to its own window and rename GameStatusBar * Move NewsTicker to its own window * Toggle bottom toolbar window when changing theme settings * Rename GameBottomToolbar to GameStatusBar * Regroup strings by window in UiStringIds.h * Rename string ids based on current usage * Rename UITHEME_FLAG_USE_GAME_STATUS_BAR * Use dedicated string for status bar instead of reusing title sequence one --- data/language/en-GB.txt | 10 +- distribution/changelog.txt | 1 + src/openrct2-ui/UiStringIds.h | 50 +++-- src/openrct2-ui/WindowManager.cpp | 6 +- src/openrct2-ui/input/Shortcuts.cpp | 5 +- src/openrct2-ui/interface/Theme.cpp | 16 +- src/openrct2-ui/interface/Theme.h | 2 +- src/openrct2-ui/libopenrct2ui.vcxproj | 3 +- src/openrct2-ui/windows/Cheats.cpp | 2 +- src/openrct2-ui/windows/EditorStatusLine.cpp | 4 +- .../windows/EditorStepController.cpp | 4 +- src/openrct2-ui/windows/GameStatusBar.cpp | 171 +++++++++++++++ src/openrct2-ui/windows/MapTooltip.cpp | 4 +- src/openrct2-ui/windows/News.cpp | 2 +- .../{GameBottomToolbar.cpp => NewsTicker.cpp} | 204 ++++++------------ src/openrct2-ui/windows/Park.cpp | 2 +- src/openrct2-ui/windows/ParkInfoPanel.cpp | 14 +- src/openrct2-ui/windows/Ride.cpp | 4 +- src/openrct2-ui/windows/Themes.cpp | 23 +- src/openrct2-ui/windows/Windows.h | 9 +- src/openrct2/Game.cpp | 3 +- src/openrct2/interface/Window.cpp | 28 ++- src/openrct2/interface/WindowClasses.h | 7 +- 23 files changed, 350 insertions(+), 224 deletions(-) create mode 100644 src/openrct2-ui/windows/GameStatusBar.cpp rename src/openrct2-ui/windows/{GameBottomToolbar.cpp => NewsTicker.cpp} (61%) diff --git a/data/language/en-GB.txt b/data/language/en-GB.txt index 3162600f66..5eeabdc44d 100644 --- a/data/language/en-GB.txt +++ b/data/language/en-GB.txt @@ -2448,9 +2448,6 @@ STR_5242 :Theme name already exists STR_5243 :Invalid characters used STR_5244 :Themes STR_5245 :Top Toolbar -STR_5246 :Bottom Toolbar -STR_5247 :Track Editor Bottom Toolbar -STR_5248 :Scenario Editor Bottom Toolbar STR_5249 :Title Menu Buttons STR_5250 :Title Exit Button STR_5251 :Title Options Button @@ -3179,7 +3176,6 @@ STR_6137 :OpenRCT2, a free and open source recreation of and expansion to Rol STR_6138 :OpenRCT2 is the work of many authors, a full list can be found under the “Contributors” button. For more information, visit http://github.com/OpenRCT2/OpenRCT2 STR_6139 :All product and company names belong to their respective holders. Use of them does not imply any affiliation with or endorsement by them. STR_6140 :Changelog… -STR_6141 :RCT1 Bottom Toolbar STR_6142 :{WINDOW_COLOUR_2}Track name: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Ride type: {BLACK}{STRINGID} STR_6144 :Show dirty visuals @@ -3838,3 +3834,9 @@ STR_7040 :Footpath additions STR_7041 :Park info panel STR_7042 :Date info panel STR_7043 :Can’t change land height here… +STR_7044 :News ticker +STR_7045 :RCT1 style status bar +STR_7046 :Status bar (RCT1 style) +STR_7047 :Step control (Track Editor) +STR_7048 :Step control (Scenario Editor) +STR_7049 :OpenRCT2 diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 382d9b9e8f..e7987a802b 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,6 +1,7 @@ 0.5.6 (in development) ------------------------------------------------------------------------ - Improved: [#21400] The selector for setting staff patrol areas is now drawn on the water as well as on the surface under water. +- Improved: [#26947] Rain is now drawn next to the bottom info panels (in RCT2 style). - Fix: [#21320] RCT1 allows more cars per train on some rides than OpenRCT2. - Fix: [#24457] Yellow is always rendered as third remap in Ride window. - Fix: [#26754] Switching window tabs by touch could crash the game on some Linux builds. diff --git a/src/openrct2-ui/UiStringIds.h b/src/openrct2-ui/UiStringIds.h index ddc04d9a6c..55836af200 100644 --- a/src/openrct2-ui/UiStringIds.h +++ b/src/openrct2-ui/UiStringIds.h @@ -34,6 +34,8 @@ namespace OpenRCT2 STR_COPY_INPUT_TO_CLIPBOARD = 6363, STR_COST_AMOUNT = 986, STR_COST_LABEL = 1408, + STR_CURRENCY2DP = 1390, + STR_CURRENCY2DP_NEGATIVE = 1391, STR_ENTER_NEW_VALUE = 6000, STR_ENTER_PARK_NAME = 1719, STR_ENTER_SELECTION_SIZE = 5129, @@ -471,6 +473,10 @@ namespace OpenRCT2 STR_RATE_INPUT_TITLE = 5893, STR_SUFFIX = 5888, + // Window: DateInfoPanel + STR_CELSIUS_VALUE = 2216, + STR_FAHRENHEIT_VALUE = 2217, + // Window: DebugPaint STR_DEBUG_PAINT_SHOW_BLOCKED_TILES = 6260, STR_DEBUG_PAINT_SHOW_BOUND_BOXES = 5902, @@ -708,22 +714,8 @@ namespace OpenRCT2 STR_SLOPE_UP_TIP = 1188, STR_TYPE = 1182, - // Window: GameBottomToolbar - STR_BOTTOM_TOOLBAR_CASH = 1390, - STR_BOTTOM_TOOLBAR_CASH_NEGATIVE = 1391, - STR_BOTTOM_TOOLBAR_NEWS_TEXT = 5485, - STR_BOTTOM_TOOLBAR_NUM_GUESTS_DECREASE = 1847, - STR_BOTTOM_TOOLBAR_NUM_GUESTS_DECREASE_SINGULAR = 6194, - STR_BOTTOM_TOOLBAR_NUM_GUESTS_INCREASE = 1848, - STR_BOTTOM_TOOLBAR_NUM_GUESTS_INCREASE_SINGULAR = 6195, - STR_BOTTOM_TOOLBAR_NUM_GUESTS_STABLE = 1846, - STR_BOTTOM_TOOLBAR_NUM_GUESTS_STABLE_SINGULAR = 6193, - STR_CELSIUS_VALUE = 2216, - STR_FAHRENHEIT_VALUE = 2217, - STR_PARK_RATING_TIP = 2221, - STR_PROFIT_PER_WEEK_AND_PARK_VALUE_TIP = 2482, - STR_SHOW_SUBJECT_TIP = 1937, - STR_FOLLOW_SUBJECT_TIP = 6458, + // Window: GameStatusBar + STR_STATUS_BAR_OPENRCT2 = 7049, // Window: Guest STR_CARRYING = 1810, @@ -1070,6 +1062,11 @@ namespace OpenRCT2 STR_NOTIFICATION_SETTINGS = 5589, STR_RECENT_MESSAGES = 2234, + // Window: NewsTicker + STR_NEWS_ITEM_TEXT = 5485, + STR_SHOW_SUBJECT_TIP = 1937, + STR_FOLLOW_SUBJECT_TIP = 6458, + // Window: ObjectLoadError STR_COPY_ALL = 6130, STR_COPY_ALL_TIP = 6302, @@ -1326,6 +1323,16 @@ namespace OpenRCT2 STR_STAFF_LABEL = 2322, STR_TOTAL_ADMISSIONS = 2800, + // Window: ParkInfoPanel + STR_PARK_INFO_PANEL_NUM_GUESTS_DECREASE = 1847, + STR_PARK_INFO_PANEL_NUM_GUESTS_DECREASE_SINGULAR = 6194, + STR_PARK_INFO_PANEL_NUM_GUESTS_INCREASE = 1848, + STR_PARK_INFO_PANEL_NUM_GUESTS_INCREASE_SINGULAR = 6195, + STR_PARK_INFO_PANEL_NUM_GUESTS_STABLE = 1846, + STR_PARK_INFO_PANEL_NUM_GUESTS_STABLE_SINGULAR = 6193, + STR_PARK_RATING_TIP = 2221, + STR_PROFIT_PER_WEEK_AND_PARK_VALUE_TIP = 2482, + // Window: PatrolArea STR_ADJUST_LARGER_PATROL_AREA_TIP = 6470, STR_ADJUST_SMALLER_PATROL_AREA_TIP = 6469, @@ -1946,7 +1953,7 @@ namespace OpenRCT2 STR_THEMES_HEADER_PALETTE = 5237, STR_THEMES_HEADER_WINDOW = 5236, STR_THEMES_HEADER_TRANSPARENCY = 6673, - STR_THEMES_OPTION_RCT1_BOTTOM_TOOLBAR = 6141, + STR_THEMES_OPTION_RCT1_GAME_STATUS_BAR = 7045, STR_THEMES_OPTION_RCT1_PARK_CONTROLS = 5283, STR_THEMES_OPTION_RCT1_RIDE_CONTROLS = 5282, STR_THEMES_OPTION_RCT1_SCENARIO_SELECTION_FONT = 5284, @@ -1963,9 +1970,6 @@ namespace OpenRCT2 STR_THEMES_TAB_TOOLS_TIP = 5230, STR_THEMES_TITLE = 5244, STR_THEMES_WINDOW_BANNER = 5209, - STR_THEMES_WINDOW_BOTTOM_TOOLBAR = 5246, - STR_THEMES_WINDOW_BOTTOM_TOOLBAR_SCENARIO_EDITOR = 5248, - STR_THEMES_WINDOW_BOTTOM_TOOLBAR_TRACK_EDITOR = 5247, STR_THEMES_WINDOW_CHANGE_KEYBOARD_SHORTCUT = 5221, STR_THEMES_WINDOW_CLEAR_SCENERY = 5195, STR_THEMES_WINDOW_CONSTRUCT_RIDE = 5201, @@ -1973,12 +1977,15 @@ namespace OpenRCT2 STR_THEMES_WINDOW_DEMOLISH_RIDE_PROMPT = 5224, STR_THEMES_WINDOW_EDITOR_INVENTION_LIST = 5211, STR_THEMES_WINDOW_EDITOR_OBJECT_SELECTION = 5210, - STR_THEMES_WINDOW_EDITOR_SCENARIO_OPTIONS = 5212, STR_THEMES_WINDOW_EDITOR_OBJECTIVE_OPTIONS = 5213, + STR_THEMES_WINDOW_EDITOR_SCENARIO_OPTIONS = 5212, + STR_THEMES_WINDOW_EDITOR_STEP_CONTROL_SCENARIO = 7047, + STR_THEMES_WINDOW_EDITOR_STEP_CONTROL_TRACK = 7048, STR_THEMES_WINDOW_ERROR = 6652, STR_THEMES_WINDOW_FINANCES = 5187, STR_THEMES_WINDOW_FIRE_PROMPT = 5225, STR_THEMES_WINDOW_FOOTPATH = 5198, + STR_THEMES_WINDOW_GAME_STATUS_BAR = 7046, STR_THEMES_WINDOW_GUEST_LIST = 5206, STR_THEMES_WINDOW_INSTALL_TRACK = 5216, STR_THEMES_WINDOW_KEYBOARD_SHORTCUT_LIST = 5220, @@ -1991,6 +1998,7 @@ namespace OpenRCT2 STR_THEMES_WINDOW_MAPGEN = 5214, STR_THEMES_WINDOW_NETWORK_STATUS = 5735, STR_THEMES_WINDOW_NEW_CAMPAIGN = 5188, + STR_THEMES_WINDOW_NEWS_TICKER = 7044, STR_THEMES_WINDOW_OPTIONS = 5219, STR_THEMES_WINDOW_PARK_INFORMATION = 5253, STR_THEMES_WINDOW_PARK_INFO_PANEL = 7041, diff --git a/src/openrct2-ui/WindowManager.cpp b/src/openrct2-ui/WindowManager.cpp index 1583de6857..3094d68303 100644 --- a/src/openrct2-ui/WindowManager.cpp +++ b/src/openrct2-ui/WindowManager.cpp @@ -64,8 +64,8 @@ public: { case WindowClass::about: return AboutOpen(); - case WindowClass::bottomToolbar: - return GameBottomToolbarOpen(); + case WindowClass::gameStatusBar: + return gameStatusBarOpen(); case WindowClass::changelog: return openView(WindowView::changelog); case WindowClass::cheats: @@ -471,7 +471,7 @@ public: break; case INTENT_ACTION_UPDATE_NEWS_TICKER: - WindowGameBottomToolbarInvalidateNewsItem(); + newsTickerInvalidateNewsItem(); break; case INTENT_ACTION_REFRESH_GUEST_LIST: diff --git a/src/openrct2-ui/input/Shortcuts.cpp b/src/openrct2-ui/input/Shortcuts.cpp index 6f19eadb47..14f79e184a 100644 --- a/src/openrct2-ui/input/Shortcuts.cpp +++ b/src/openrct2-ui/input/Shortcuts.cpp @@ -170,14 +170,15 @@ static void ShortcutRemoveTopBottomToolbarToggle() { windowMgr->CloseByClass(WindowClass::dropdown); windowMgr->CloseByClass(WindowClass::topToolbar); - windowMgr->CloseByClass(WindowClass::bottomToolbar); + windowMgr->CloseByClass(WindowClass::gameStatusBar); + windowMgr->CloseByClass(WindowClass::newsTicker); windowMgr->CloseByClass(WindowClass::parkInfoPanel); windowMgr->CloseByClass(WindowClass::dateInfoPanel); } else if (gLegacyScene == LegacyScene::playing) { ContextOpenWindow(WindowClass::topToolbar); - ContextOpenWindow(WindowClass::bottomToolbar); + ContextOpenWindow(WindowClass::gameStatusBar); ContextOpenWindow(WindowClass::parkInfoPanel); ContextOpenWindow(WindowClass::dateInfoPanel); } diff --git a/src/openrct2-ui/interface/Theme.cpp b/src/openrct2-ui/interface/Theme.cpp index 230493331b..52a72ed882 100644 --- a/src/openrct2-ui/interface/Theme.cpp +++ b/src/openrct2-ui/interface/Theme.cpp @@ -157,7 +157,8 @@ namespace OpenRCT2::Ui { // WindowClass WindowClassSZ WindowName windowColours { WindowClass::topToolbar, "WC_TOP_TOOLBAR", STR_THEMES_WINDOW_TOP_TOOLBAR, { opaque(Drawing::Colour::lightBlue), opaque(Drawing::Colour::darkGreen), opaque(Drawing::Colour::darkBrown), opaque(Drawing::Colour::grey) } }, - { WindowClass::bottomToolbar, "WC_BOTTOM_TOOLBAR", STR_THEMES_WINDOW_BOTTOM_TOOLBAR, { translucent(Drawing::Colour::darkGreen), opaque(Drawing::Colour::black), opaque(Drawing::Colour::black) } }, + { WindowClass::gameStatusBar, "WC_GAME_STATUS_BAR", STR_THEMES_WINDOW_GAME_STATUS_BAR, { translucent(Drawing::Colour::darkGreen) } }, + { WindowClass::newsTicker, "WC_NEWS_TICKER", STR_THEMES_WINDOW_NEWS_TICKER, { opaque(Drawing::Colour::black), opaque(Drawing::Colour::black) } }, { WindowClass::parkInfoPanel, "WC_PARK_INFO_PANEL", STR_THEMES_WINDOW_PARK_INFO_PANEL, { translucent(Drawing::Colour::darkGreen), opaque(Drawing::Colour::brightGreen) } }, { WindowClass::dateInfoPanel, "WC_DATE_INFO_PANEL", STR_THEMES_WINDOW_DATE_INFO_PANEL, { translucent(Drawing::Colour::darkGreen) } }, { WindowClass::ride, "WC_RIDE", STR_THEMES_WINDOW_RIDE, { opaque(Drawing::Colour::grey), opaque(Drawing::Colour::bordeauxRed), opaque(Drawing::Colour::saturatedGreen) } }, @@ -209,8 +210,8 @@ namespace OpenRCT2::Ui { WindowClass::landRights, "WC_LAND_RIGHTS", STR_THEMES_WINDOW_LAND_RIGHTS, { opaque(Drawing::Colour::darkYellow), opaque(Drawing::Colour::darkYellow), opaque(Drawing::Colour::darkYellow) } }, { WindowClass::themes, "WC_THEMES", STR_THEMES_WINDOW_THEMES, { opaque(Drawing::Colour::grey), opaque(Drawing::Colour::darkGreen), opaque(Drawing::Colour::darkGreen) } }, { WindowClass::staff, "WC_STAFF", STR_THEMES_WINDOW_STAFF, { opaque(Drawing::Colour::grey), opaque(Drawing::Colour::lightPurple), opaque(Drawing::Colour::lightPurple) } }, - { WindowClass::editorTrackBottomToolbar, "WC_EDITOR_TRACK_BOTTOM_TOOLBAR", STR_THEMES_WINDOW_BOTTOM_TOOLBAR_TRACK_EDITOR, { translucent(Drawing::Colour::lightBlue), translucent(Drawing::Colour::lightBlue), translucent(Drawing::Colour::lightBlue) } }, - { WindowClass::editorScenarioBottomToolbar, "WC_EDITOR_SCENARIO_BOTTOM_TOOLBAR", STR_THEMES_WINDOW_BOTTOM_TOOLBAR_SCENARIO_EDITOR, { translucent(Drawing::Colour::lightBrown), translucent(Drawing::Colour::lightBrown), translucent(Drawing::Colour::mossGreen) } }, + { WindowClass::editorStepControlTrack, "WC_EDITOR_STEP_CONTROL_TRACK", STR_THEMES_WINDOW_EDITOR_STEP_CONTROL_TRACK, { translucent(Drawing::Colour::lightBlue), translucent(Drawing::Colour::lightBlue), translucent(Drawing::Colour::lightBlue) } }, + { WindowClass::editorStepControlScenario, "WC_EDITOR_STEP_CONTROL_SCENARIO", STR_THEMES_WINDOW_EDITOR_STEP_CONTROL_SCENARIO, { translucent(Drawing::Colour::lightBrown), translucent(Drawing::Colour::lightBrown), translucent(Drawing::Colour::mossGreen) } }, { WindowClass::tileInspector, "WC_TILE_INSPECTOR", STR_TILE_INSPECTOR_TITLE, { opaque(Drawing::Colour::lightBlue), opaque(Drawing::Colour::lightBlue) } }, { WindowClass::viewClipping, "WC_VIEW_CLIPPING", STR_VIEW_CLIPPING_TITLE, { opaque(Drawing::Colour::darkGreen) } }, { WindowClass::patrolArea, "WC_PATROL_AREA", STR_SET_PATROL_AREA, { opaque(Drawing::Colour::lightPurple), opaque(Drawing::Colour::lightPurple), opaque(Drawing::Colour::lightPurple) } }, @@ -233,7 +234,8 @@ namespace OpenRCT2::Ui static constexpr std::array kPredefinedThemeRCT1Entries = std::to_array({ { WindowClass::topToolbar, { opaque(Drawing::Colour::grey), opaque(Drawing::Colour::grey), opaque(Drawing::Colour::grey), opaque(Drawing::Colour::grey), opaque(Drawing::Colour::black), opaque(Drawing::Colour::black) } }, - { WindowClass::bottomToolbar, { translucent(Drawing::Colour::grey), opaque(Drawing::Colour::grey), opaque(Drawing::Colour::voidBackground) } }, + { WindowClass::gameStatusBar, { translucent(Drawing::Colour::grey) } }, + { WindowClass::newsTicker, { opaque(Drawing::Colour::voidBackground), opaque(Drawing::Colour::grey) } }, { WindowClass::parkInfoPanel, { translucent(Drawing::Colour::grey), opaque(Drawing::Colour::yellow) } }, { WindowClass::dateInfoPanel, { translucent(Drawing::Colour::grey) } }, { WindowClass::ride, { opaque(Drawing::Colour::bordeauxRed), opaque(Drawing::Colour::grey), opaque(Drawing::Colour::saturatedGreen), opaque(Drawing::Colour::black), opaque(Drawing::Colour::black), opaque(Drawing::Colour::black) } }, @@ -265,7 +267,7 @@ namespace OpenRCT2::Ui const UITheme kPredefinedThemeRCT1 = UITheme::CreatePredefined( "*RCT1", kPredefinedThemeRCT1Entries, UITHEME_FLAG_USE_LIGHTS_RIDE | UITHEME_FLAG_USE_LIGHTS_PARK | UITHEME_FLAG_USE_ALTERNATIVE_SCENARIO_SELECT_FONT - | UITHEME_FLAG_USE_FULL_BOTTOM_TOOLBAR | UITHEME_FLAG_USE_3D_IMAGE_BUTTONS); + | UITHEME_FLAG_USE_GAME_STATUS_BAR | UITHEME_FLAG_USE_3D_IMAGE_BUTTONS); const UITheme kPredefinedThemeRCT2 = UITheme::CreatePredefined("*RCT2", kPredefinedThemeRCT2Entries, 0); @@ -444,7 +446,7 @@ namespace OpenRCT2::Ui { "useLightsRide", (Flags & UITHEME_FLAG_USE_LIGHTS_RIDE) != 0 }, { "useLightsPark", (Flags & UITHEME_FLAG_USE_LIGHTS_PARK) != 0 }, { "useAltScenarioSelectFont", (Flags & UITHEME_FLAG_USE_ALTERNATIVE_SCENARIO_SELECT_FONT) != 0 }, - { "useFullBottomToolbar", (Flags & UITHEME_FLAG_USE_FULL_BOTTOM_TOOLBAR) != 0 }, + { "useFullBottomToolbar", (Flags & UITHEME_FLAG_USE_GAME_STATUS_BAR) != 0 }, { "use3dImageButtons", (Flags & UITHEME_FLAG_USE_3D_IMAGE_BUTTONS) != 0 }, }; @@ -493,7 +495,7 @@ namespace OpenRCT2::Ui { "useLightsRide", UITHEME_FLAG_USE_LIGHTS_RIDE }, { "useLightsPark", UITHEME_FLAG_USE_LIGHTS_PARK }, { "useAltScenarioSelectFont", UITHEME_FLAG_USE_ALTERNATIVE_SCENARIO_SELECT_FONT }, - { "useFullBottomToolbar", UITHEME_FLAG_USE_FULL_BOTTOM_TOOLBAR }, + { "useFullBottomToolbar", UITHEME_FLAG_USE_GAME_STATUS_BAR }, { "use3dImageButtons", UITHEME_FLAG_USE_3D_IMAGE_BUTTONS }, }); diff --git a/src/openrct2-ui/interface/Theme.h b/src/openrct2-ui/interface/Theme.h index e47c8dbade..0d544e41b6 100644 --- a/src/openrct2-ui/interface/Theme.h +++ b/src/openrct2-ui/interface/Theme.h @@ -28,7 +28,7 @@ namespace OpenRCT2::Ui UITHEME_FLAG_USE_LIGHTS_RIDE = 1 << 1, UITHEME_FLAG_USE_LIGHTS_PARK = 1 << 2, UITHEME_FLAG_USE_ALTERNATIVE_SCENARIO_SELECT_FONT = 1 << 3, - UITHEME_FLAG_USE_FULL_BOTTOM_TOOLBAR = 1 << 4, + UITHEME_FLAG_USE_GAME_STATUS_BAR = 1 << 4, UITHEME_FLAG_USE_3D_IMAGE_BUTTONS = 1 << 5, }; diff --git a/src/openrct2-ui/libopenrct2ui.vcxproj b/src/openrct2-ui/libopenrct2ui.vcxproj index e05231f095..9456b6d637 100644 --- a/src/openrct2-ui/libopenrct2ui.vcxproj +++ b/src/openrct2-ui/libopenrct2ui.vcxproj @@ -187,7 +187,7 @@ - + @@ -204,6 +204,7 @@ + diff --git a/src/openrct2-ui/windows/Cheats.cpp b/src/openrct2-ui/windows/Cheats.cpp index 233c805a7c..6a1dab7a2e 100644 --- a/src/openrct2-ui/windows/Cheats.cpp +++ b/src/openrct2-ui/windows/Cheats.cpp @@ -591,7 +591,7 @@ static StringId window_cheats_page_titles[] = { } auto& widget = widgets[WIDX_MONEY_SPINNER]; - drawText(rt, windowPos + ScreenCoordsXY{ _xLcol, widget.top + 2 }, STR_BOTTOM_TOOLBAR_CASH, ft, { colour }); + drawText(rt, windowPos + ScreenCoordsXY{ _xLcol, widget.top + 2 }, STR_CURRENCY2DP, ft, { colour }); } else if (page == WINDOW_CHEATS_PAGE_DATE) { diff --git a/src/openrct2-ui/windows/EditorStatusLine.cpp b/src/openrct2-ui/windows/EditorStatusLine.cpp index 946c7b2f6e..68a2e6794f 100644 --- a/src/openrct2-ui/windows/EditorStatusLine.cpp +++ b/src/openrct2-ui/windows/EditorStatusLine.cpp @@ -40,8 +40,8 @@ namespace OpenRCT2::Ui::Windows { ColourSchemeUpdateByClass( this, - gLegacyScene == LegacyScene::scenarioEditor ? WindowClass::editorScenarioBottomToolbar - : WindowClass::editorTrackBottomToolbar); + gLegacyScene == LegacyScene::scenarioEditor ? WindowClass::editorStepControlScenario + : WindowClass::editorStepControlTrack); } void onDraw(RenderTarget& rt) override diff --git a/src/openrct2-ui/windows/EditorStepController.cpp b/src/openrct2-ui/windows/EditorStepController.cpp index 269ebd4683..620b3dcd47 100644 --- a/src/openrct2-ui/windows/EditorStepController.cpp +++ b/src/openrct2-ui/windows/EditorStepController.cpp @@ -82,8 +82,8 @@ namespace OpenRCT2::Ui::Windows { ColourSchemeUpdateByClass( this, - gLegacyScene == LegacyScene::scenarioEditor ? WindowClass::editorScenarioBottomToolbar - : WindowClass::editorTrackBottomToolbar); + gLegacyScene == LegacyScene::scenarioEditor ? WindowClass::editorStepControlScenario + : WindowClass::editorStepControlTrack); auto& gameState = getGameState(); bool stepVisible = gLegacyScene != LegacyScene::trackDesignsManager diff --git a/src/openrct2-ui/windows/GameStatusBar.cpp b/src/openrct2-ui/windows/GameStatusBar.cpp new file mode 100644 index 0000000000..760f2d3b7a --- /dev/null +++ b/src/openrct2-ui/windows/GameStatusBar.cpp @@ -0,0 +1,171 @@ +/***************************************************************************** + * Copyright (c) 2014-2026 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace OpenRCT2::Drawing; + +namespace OpenRCT2::Ui::Windows +{ + enum GameStatusBarWidgetIdx : WidgetIndex + { + WIDX_PANEL_OUTSET, + WIDX_PANEL_INSET, + }; + + // clang-format off + static constexpr Widget kGameStatusBarWidgets[] = + { + makeWidget({ 0, 0}, {356, 34}, WidgetType::imgBtn, WindowColour::primary), // Middle outset panel + makeWidget({ 2, 2}, {352, 30}, WidgetType::hiddenButton, WindowColour::primary), // Middle inset panel + }; + // clang-format on + + class GameStatusBar final : public Window + { + void DrawMiddlePanel(RenderTarget& rt) + { + Widget* middleOutsetWidget = &widgets[WIDX_PANEL_OUTSET]; + + Rectangle::fillInset( + rt, + { windowPos + ScreenCoordsXY{ middleOutsetWidget->left + 1, middleOutsetWidget->top + 1 }, + windowPos + ScreenCoordsXY{ middleOutsetWidget->right - 1, middleOutsetWidget->bottom - 1 } }, + colours[0], Rectangle::BorderStyle::inset, Rectangle::FillBrightness::light, Rectangle::FillMode::none); + + // Figure out how much line height we have to work with. + uint32_t line_height = FontGetLineHeight(FontStyle::medium); + + ScreenCoordsXY middleWidgetCoords( + windowPos.x + middleOutsetWidget->midX(), windowPos.y + middleOutsetWidget->top + line_height + 1); + int32_t panelWidth = middleOutsetWidget->width() - 63; + + // Check if there is a map tooltip to draw + StringId stringId; + auto ft = GetMapTooltip(); + std::memcpy(&stringId, ft.Data(), sizeof(StringId)); + if (stringId == kStringIdNone) + { + drawTextWrapped( + rt, middleWidgetCoords, panelWidth, STR_STATUS_BAR_OPENRCT2, ft, { colours[0], TextAlignment::centre }); + } + else + { + // Show tooltip in bottom toolbar + drawTextWrapped(rt, middleWidgetCoords, panelWidth, STR_STRINGID, ft, { colours[0], TextAlignment::centre }); + } + } + + public: + GameStatusBar() + { + setWidgets(kGameStatusBarWidgets); + + // Reset the middle widget to not show by default. + // If it is required to be shown news_update will reshow it. + widgets[WIDX_PANEL_OUTSET].setHidden(); + } + + void onMouseUp(WidgetIndex widgetIndex) override + { + switch (widgetIndex) + { + case WIDX_PANEL_INSET: + ContextOpenWindow(WindowClass::recentNews); + break; + } + } + + void onPrepareDraw() override + { + // Figure out how much line height we have to work with. + uint32_t line_height = FontGetLineHeight(FontStyle::medium); + + // Reset dimensions as appropriate -- in case we're switching languages. + height = line_height * 2 + 12; + windowPos.y = ContextGetHeight() - height; + + // Change height of widgets in accordance with line height. + widgets[WIDX_PANEL_OUTSET].bottom = line_height * 3 + 3; + widgets[WIDX_PANEL_INSET].bottom = line_height * 3 + 1; + + // Anchor the middle and right panel to the right + widgets[WIDX_PANEL_OUTSET].right = width - 1; + widgets[WIDX_PANEL_INSET].right = width - 3; + + bool useFullToolbar = News::IsQueueEmpty() && (ThemeGetFlags() & UITHEME_FLAG_USE_GAME_STATUS_BAR) + && gLegacyScene == LegacyScene::playing; + + widgets[WIDX_PANEL_OUTSET].setVisible(useFullToolbar); + widgets[WIDX_PANEL_INSET].setVisible(useFullToolbar); + } + + void onDraw(RenderTarget& rt) override + { + const auto& middleWidget = widgets[WIDX_PANEL_OUTSET]; + if (middleWidget.isHidden()) + return; + + if (ThemeGetFlags() & UITHEME_FLAG_USE_GAME_STATUS_BAR) + { + // Draw grey background + auto leftTop = windowPos + ScreenCoordsXY{ middleWidget.left, middleWidget.top }; + auto rightBottom = windowPos + ScreenCoordsXY{ middleWidget.right, middleWidget.bottom }; + Rectangle::filter(rt, { leftTop, rightBottom }, FilterPaletteID::palette51); + } + + drawWidgets(rt); + + if (ThemeGetFlags() & UITHEME_FLAG_USE_GAME_STATUS_BAR) + { + DrawMiddlePanel(rt); + } + } + }; + + /** + * Creates the main game bottom toolbar window. + */ + WindowBase* gameStatusBarOpen() + { + // Don't create window when theme does not require it + // NB: bailing out here as Game.cpp calls this function without access to themes + if (!(ThemeGetFlags() & UITHEME_FLAG_USE_GAME_STATUS_BAR)) + return nullptr; + + // TODO: query ParkInfoPanel, DateInfoPanel + constexpr auto kPanelWidth = 142; + + // Toolbar width depends on whether we're showing panels besides + // TODO: read config when applicable + auto toolbarWidth = ContextGetWidth() - kPanelWidth * 2; + + // Figure out how much line height we have to work with. + uint32_t lineHeight = FontGetLineHeight(FontStyle::medium); + int32_t toolbarHeight = lineHeight * 2 + 12; + + auto* windowMgr = GetWindowManager(); + auto* window = windowMgr->Create( + WindowClass::gameStatusBar, ScreenCoordsXY(kPanelWidth, ContextGetHeight() - toolbarHeight), + { toolbarWidth, toolbarHeight }, + { WindowFlag::stickToFront, WindowFlag::transparent, WindowFlag::noBackground, WindowFlag::noTitleBar }); + + return window; + } +} // namespace OpenRCT2::Ui::Windows diff --git a/src/openrct2-ui/windows/MapTooltip.cpp b/src/openrct2-ui/windows/MapTooltip.cpp index e8dc402ac3..3088919299 100644 --- a/src/openrct2-ui/windows/MapTooltip.cpp +++ b/src/openrct2-ui/windows/MapTooltip.cpp @@ -73,11 +73,11 @@ namespace OpenRCT2::Ui::Windows void WindowMapTooltipUpdateVisibility() { - if (ThemeGetFlags() & UITHEME_FLAG_USE_FULL_BOTTOM_TOOLBAR) + if (ThemeGetFlags() & UITHEME_FLAG_USE_GAME_STATUS_BAR) { // The map tooltip is drawn by the bottom toolbar auto* windowMgr = GetWindowManager(); - windowMgr->InvalidateByClass(WindowClass::bottomToolbar); + windowMgr->InvalidateByClass(WindowClass::gameStatusBar); return; } diff --git a/src/openrct2-ui/windows/News.cpp b/src/openrct2-ui/windows/News.cpp index 4ca3691b30..c7b5761e9a 100644 --- a/src/openrct2-ui/windows/News.cpp +++ b/src/openrct2-ui/windows/News.cpp @@ -501,7 +501,7 @@ namespace OpenRCT2::Ui::Windows auto ft = Formatter(); ft.Add(newsItem.text.c_str()); drawTextWrapped( - rt, { 2, y + lineHeight }, 325, STR_BOTTOM_TOOLBAR_NEWS_TEXT, ft, + rt, { 2, y + lineHeight }, 325, STR_NEWS_ITEM_TEXT, ft, { Drawing::Colour::brightGreen, FontStyle::small }); } // Subject button diff --git a/src/openrct2-ui/windows/GameBottomToolbar.cpp b/src/openrct2-ui/windows/NewsTicker.cpp similarity index 61% rename from src/openrct2-ui/windows/GameBottomToolbar.cpp rename to src/openrct2-ui/windows/NewsTicker.cpp index fc97ad953d..d2b45655c9 100644 --- a/src/openrct2-ui/windows/GameBottomToolbar.cpp +++ b/src/openrct2-ui/windows/NewsTicker.cpp @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include @@ -22,18 +21,18 @@ #include #include #include -#include #include #include #include #include +#include #include using namespace OpenRCT2::Drawing; namespace OpenRCT2::Ui::Windows { - enum WindowGameBottomToolbarWidgetIdx : WidgetIndex + enum NewsTickerWidgetIdx : WidgetIndex { WIDX_PANEL_OUTSET, WIDX_PANEL_INSET, @@ -42,24 +41,26 @@ namespace OpenRCT2::Ui::Windows }; // clang-format off - static constexpr Widget kGameBottomToolbarWidgets[] = + static constexpr Widget kNewsTickerWidgets[] = { - makeWidget({ 0, 0}, {356, 34}, WidgetType::imgBtn, WindowColour::tertiary ), // Middle outset panel - makeWidget({ 2, 2}, {352, 30}, WidgetType::hiddenButton, WindowColour::tertiary ), // Middle inset panel + makeWidget({ 0, 0}, {356, 34}, WidgetType::imgBtn, WindowColour::primary ), // Middle outset panel + makeWidget({ 2, 2}, {352, 30}, WidgetType::hiddenButton, WindowColour::primary ), // Middle inset panel makeWidget({ 5, 5}, { 24, 24}, WidgetType::flatBtn, WindowColour::secondary, 0xFFFFFFFF, STR_SHOW_SUBJECT_TIP ), // Associated news item window makeWidget({327, 5}, { 24, 24}, WidgetType::flatBtn, WindowColour::secondary, ImageId(SPR_LOCATE), STR_LOCATE_SUBJECT_TIP) // Scroll to news item target }; // clang-format on - class GameBottomToolbar final : public Window + class NewsTicker final : public Window { private: - void DrawNewsItem(RenderTarget& rt) + void drawNewsItem(RenderTarget& rt) { - const auto& middleOutsetWidget = widgets[WIDX_PANEL_OUTSET]; - auto* newsItem = News::GetItem(0); + const auto* newsItem = News::GetItem(0); + if (newsItem == nullptr) + return; // Current news item + const auto& middleOutsetWidget = widgets[WIDX_PANEL_OUTSET]; Rectangle::fillInset( rt, @@ -71,8 +72,7 @@ namespace OpenRCT2::Ui::Windows auto screenCoords = windowPos + ScreenCoordsXY{ middleOutsetWidget.midX(), middleOutsetWidget.top + 11 }; int32_t itemWidth = middleOutsetWidget.width() - 63; drawNewsTicker( - rt, screenCoords, itemWidth, Drawing::Colour::brightGreen, STR_BOTTOM_TOOLBAR_NEWS_TEXT, newsItem->text, - newsItem->ticks); + rt, screenCoords, itemWidth, Drawing::Colour::brightGreen, STR_NEWS_ITEM_TEXT, newsItem->text, newsItem->ticks); const auto& newsSubjectWidget = widgets[WIDX_NEWS_SUBJECT]; screenCoords = windowPos + ScreenCoordsXY{ newsSubjectWidget.left, newsSubjectWidget.top }; @@ -170,90 +170,41 @@ namespace OpenRCT2::Ui::Windows } } - void DrawMiddlePanel(RenderTarget& rt) - { - Widget* middleOutsetWidget = &widgets[WIDX_PANEL_OUTSET]; - - Rectangle::fillInset( - rt, - { windowPos + ScreenCoordsXY{ middleOutsetWidget->left + 1, middleOutsetWidget->top + 1 }, - windowPos + ScreenCoordsXY{ middleOutsetWidget->right - 1, middleOutsetWidget->bottom - 1 } }, - colours[0], Rectangle::BorderStyle::inset, Rectangle::FillBrightness::light, Rectangle::FillMode::none); - - // Figure out how much line height we have to work with. - uint32_t line_height = FontGetLineHeight(FontStyle::medium); - - ScreenCoordsXY middleWidgetCoords( - windowPos.x + middleOutsetWidget->midX(), windowPos.y + middleOutsetWidget->top + line_height + 1); - int32_t panelWidth = middleOutsetWidget->width() - 63; - - // Check if there is a map tooltip to draw - StringId stringId; - auto ft = GetMapTooltip(); - std::memcpy(&stringId, ft.Data(), sizeof(StringId)); - if (stringId == kStringIdNone) - { - // TODO: this string probably shouldn't be reused for this - drawTextWrapped( - rt, middleWidgetCoords, panelWidth, STR_TITLE_SEQUENCE_OPENRCT2, ft, { colours[0], TextAlignment::centre }); - } - else - { - // Show tooltip in bottom toolbar - drawTextWrapped(rt, middleWidgetCoords, panelWidth, STR_STRINGID, ft, { colours[0], TextAlignment::centre }); - } - } - public: - GameBottomToolbar() + NewsTicker() { - setWidgets(kGameBottomToolbarWidgets); + setWidgets(kNewsTickerWidgets); currentFrame = 0; initScrollWidgets(); - - // Reset the middle widget to not show by default. - // If it is required to be shown news_update will reshow it. - widgets[WIDX_PANEL_OUTSET].setHidden(); } void onMouseUp(WidgetIndex widgetIndex) override { - News::Item* newsItem; + const auto* newsItem = News::GetItem(0); + if (newsItem == nullptr) + return; switch (widgetIndex) { case WIDX_PANEL_INSET: - if (News::IsQueueEmpty()) - { - ContextOpenWindow(WindowClass::recentNews); - } - else - { - News::CloseCurrentItem(); - } + News::CloseCurrentItem(); break; case WIDX_NEWS_SUBJECT: - newsItem = News::GetItem(0); News::OpenSubject(newsItem->type, newsItem->assoc); break; case WIDX_NEWS_LOCATE: - if (News::IsQueueEmpty()) + { + auto subjectLoc = News::GetSubjectLocation(newsItem->type, newsItem->assoc); + if (!subjectLoc.has_value()) break; - { - newsItem = News::GetItem(0); + WindowBase* mainWindow = WindowGetMain(); + if (mainWindow != nullptr) + WindowScrollToLocation(*mainWindow, subjectLoc.value()); - auto subjectLoc = News::GetSubjectLocation(newsItem->type, newsItem->assoc); - - if (!subjectLoc.has_value()) - break; - - WindowBase* mainWindow = WindowGetMain(); - if (mainWindow != nullptr) - WindowScrollToLocation(*mainWindow, subjectLoc.value()); - } break; + } } } @@ -276,74 +227,33 @@ namespace OpenRCT2::Ui::Windows widgets[WIDX_NEWS_LOCATE].right = width - 6; widgets[WIDX_NEWS_LOCATE].left = widgets[WIDX_NEWS_LOCATE].right - 24; - if (News::IsQueueEmpty()) + auto* newsItem = News::GetItem(0); + setWidgetDisabled(WIDX_NEWS_SUBJECT, false); + setWidgetDisabled(WIDX_NEWS_LOCATE, false); + + // Find out if the news item is no longer valid + auto subjectLoc = News::GetSubjectLocation(newsItem->type, newsItem->assoc); + + if (!subjectLoc.has_value()) + setWidgetDisabled(WIDX_NEWS_LOCATE, true); + + if (!(newsItem->typeHasSubject())) { - bool useFullToolbar = ThemeGetFlags() & UITHEME_FLAG_USE_FULL_BOTTOM_TOOLBAR; - widgets[WIDX_PANEL_OUTSET].setVisible(useFullToolbar); - widgets[WIDX_PANEL_INSET].setVisible(useFullToolbar); + setWidgetDisabled(WIDX_NEWS_SUBJECT, true); widgets[WIDX_NEWS_SUBJECT].setHidden(); - widgets[WIDX_NEWS_LOCATE].setHidden(); - - if (useFullToolbar) - { - widgets[WIDX_PANEL_OUTSET].colour = 0; - widgets[WIDX_PANEL_INSET].colour = 0; - } } - else + + if (newsItem->hasButton()) { - News::Item* newsItem = News::GetItem(0); - widgets[WIDX_PANEL_OUTSET].setVisible(); - widgets[WIDX_PANEL_INSET].setVisible(); - widgets[WIDX_NEWS_SUBJECT].setVisible(); - widgets[WIDX_NEWS_LOCATE].setVisible(); - widgets[WIDX_PANEL_OUTSET].colour = 2; - widgets[WIDX_PANEL_INSET].colour = 2; - setWidgetDisabled(WIDX_NEWS_SUBJECT, false); - setWidgetDisabled(WIDX_NEWS_LOCATE, false); - - // Find out if the news item is no longer valid - auto subjectLoc = News::GetSubjectLocation(newsItem->type, newsItem->assoc); - - if (!subjectLoc.has_value()) - setWidgetDisabled(WIDX_NEWS_LOCATE, true); - - if (!(newsItem->typeHasSubject())) - { - setWidgetDisabled(WIDX_NEWS_SUBJECT, true); - widgets[WIDX_NEWS_SUBJECT].setHidden(); - } - - if (newsItem->hasButton()) - { - setWidgetDisabled(WIDX_NEWS_SUBJECT, true); - setWidgetDisabled(WIDX_NEWS_LOCATE, true); - } + setWidgetDisabled(WIDX_NEWS_SUBJECT, true); + setWidgetDisabled(WIDX_NEWS_LOCATE, true); } } void onDraw(RenderTarget& rt) override { - const auto& middleWidget = widgets[WIDX_PANEL_OUTSET]; - - if (ThemeGetFlags() & UITHEME_FLAG_USE_FULL_BOTTOM_TOOLBAR) - { - // Draw grey background - auto leftTop = windowPos + ScreenCoordsXY{ middleWidget.left, middleWidget.top }; - auto rightBottom = windowPos + ScreenCoordsXY{ middleWidget.right, middleWidget.bottom }; - Rectangle::filter(rt, { leftTop, rightBottom }, FilterPaletteID::palette51); - } - drawWidgets(rt); - - if (!News::IsQueueEmpty()) - { - DrawNewsItem(rt); - } - else if (ThemeGetFlags() & UITHEME_FLAG_USE_FULL_BOTTOM_TOOLBAR) - { - DrawMiddlePanel(rt); - } + drawNewsItem(rt); } void onUpdate() override @@ -351,14 +261,19 @@ namespace OpenRCT2::Ui::Windows currentFrame++; if (currentFrame >= 24) currentFrame = 0; + + if (News::IsQueueEmpty()) + close(); } }; - /** - * Creates the main game bottom toolbar window. - */ - WindowBase* GameBottomToolbarOpen() + WindowBase* newsTickerOpen() { + // Only show news ticker in-game + auto* sceneMgr = GetContext()->GetSceneManager(); + if (sceneMgr->getActiveScene() != sceneMgr->getGameScene()) + return nullptr; + // TODO: query ParkInfoPanel, DateInfoPanel constexpr auto kPanelWidth = 142; @@ -371,20 +286,21 @@ namespace OpenRCT2::Ui::Windows int32_t toolbarHeight = lineHeight * 2 + 12; auto* windowMgr = GetWindowManager(); - auto* window = windowMgr->Create( - WindowClass::bottomToolbar, ScreenCoordsXY(kPanelWidth, ContextGetHeight() - toolbarHeight), + auto* window = windowMgr->Create( + WindowClass::newsTicker, ScreenCoordsXY(kPanelWidth, ContextGetHeight() - toolbarHeight), { toolbarWidth, toolbarHeight }, { WindowFlag::stickToFront, WindowFlag::transparent, WindowFlag::noBackground, WindowFlag::noTitleBar }); return window; } - void WindowGameBottomToolbarInvalidateNewsItem() + void newsTickerInvalidateNewsItem() { - if (gLegacyScene == LegacyScene::playing) - { - auto* windowMgr = GetWindowManager(); - windowMgr->InvalidateWidgetByClass(WindowClass::bottomToolbar, WIDX_PANEL_OUTSET); - } + auto* windowMgr = GetWindowManager(); + auto* window = windowMgr->FindByClass(WindowClass::newsTicker); + if (window != nullptr) + window->invalidate(); + else + newsTickerOpen(); } } // namespace OpenRCT2::Ui::Windows diff --git a/src/openrct2-ui/windows/Park.cpp b/src/openrct2-ui/windows/Park.cpp index d9d31fc4dc..2a04b9f6ee 100644 --- a/src/openrct2-ui/windows/Park.cpp +++ b/src/openrct2-ui/windows/Park.cpp @@ -881,7 +881,7 @@ namespace OpenRCT2::Ui::Windows ft = Formatter(); ft.Add(parkEntranceFee); - StringId stringId = STR_BOTTOM_TOOLBAR_CASH; + StringId stringId = STR_CURRENCY2DP; if (parkEntranceFee == 0) stringId = STR_FREE; diff --git a/src/openrct2-ui/windows/ParkInfoPanel.cpp b/src/openrct2-ui/windows/ParkInfoPanel.cpp index c4457ddd06..97e424a2a4 100644 --- a/src/openrct2-ui/windows/ParkInfoPanel.cpp +++ b/src/openrct2-ui/windows/ParkInfoPanel.cpp @@ -81,22 +81,22 @@ namespace OpenRCT2::Ui::Windows windowPos.y + widget.midY() - (line_height == 10 ? 5 : 6) }; auto colour = getHoverWidgetColour(WIDX_MONEY); - StringId stringId = gameState.park.cash < 0 ? STR_BOTTOM_TOOLBAR_CASH_NEGATIVE : STR_BOTTOM_TOOLBAR_CASH; + StringId stringId = gameState.park.cash < 0 ? STR_CURRENCY2DP_NEGATIVE : STR_CURRENCY2DP; auto ft = Formatter(); ft.Add(gameState.park.cash); drawText(rt, screenCoords, stringId, ft, { colour, TextAlignment::centre }); } static constexpr StringId kGuestCountFormats[] = { - STR_BOTTOM_TOOLBAR_NUM_GUESTS_STABLE, - STR_BOTTOM_TOOLBAR_NUM_GUESTS_DECREASE, - STR_BOTTOM_TOOLBAR_NUM_GUESTS_INCREASE, + STR_PARK_INFO_PANEL_NUM_GUESTS_STABLE, + STR_PARK_INFO_PANEL_NUM_GUESTS_DECREASE, + STR_PARK_INFO_PANEL_NUM_GUESTS_INCREASE, }; static constexpr StringId kGuestCountFormatsSingular[] = { - STR_BOTTOM_TOOLBAR_NUM_GUESTS_STABLE_SINGULAR, - STR_BOTTOM_TOOLBAR_NUM_GUESTS_DECREASE_SINGULAR, - STR_BOTTOM_TOOLBAR_NUM_GUESTS_INCREASE_SINGULAR, + STR_PARK_INFO_PANEL_NUM_GUESTS_STABLE_SINGULAR, + STR_PARK_INFO_PANEL_NUM_GUESTS_DECREASE_SINGULAR, + STR_PARK_INFO_PANEL_NUM_GUESTS_INCREASE_SINGULAR, }; // Draw guests diff --git a/src/openrct2-ui/windows/Ride.cpp b/src/openrct2-ui/windows/Ride.cpp index 7c6cde0004..c4d3642be9 100644 --- a/src/openrct2-ui/windows/Ride.cpp +++ b/src/openrct2-ui/windows/Ride.cpp @@ -6847,7 +6847,7 @@ namespace OpenRCT2::Ui::Windows } else { - _spinnerCaption0 = FormatStringID(STR_BOTTOM_TOOLBAR_CASH, ridePrimaryPrice); + _spinnerCaption0 = FormatStringID(STR_CURRENCY2DP, ridePrimaryPrice); widgets[WIDX_PRIMARY_PRICE].setString(_spinnerCaption0.c_str()); } @@ -6891,7 +6891,7 @@ namespace OpenRCT2::Ui::Windows } else { - _spinnerCaption1 = FormatStringID(STR_BOTTOM_TOOLBAR_CASH, ride->price[1]); + _spinnerCaption1 = FormatStringID(STR_CURRENCY2DP, ride->price[1]); widgets[WIDX_SECONDARY_PRICE].setString(_spinnerCaption1.c_str()); } } diff --git a/src/openrct2-ui/windows/Themes.cpp b/src/openrct2-ui/windows/Themes.cpp index 128fa747b3..66355ba928 100644 --- a/src/openrct2-ui/windows/Themes.cpp +++ b/src/openrct2-ui/windows/Themes.cpp @@ -110,7 +110,7 @@ namespace OpenRCT2::Ui::Windows makeWidget({ 10, 54}, {290, 12}, WidgetType::checkbox, WindowColour::secondary, STR_THEMES_OPTION_RCT1_RIDE_CONTROLS ), // rct1 ride lights makeWidget({ 10, 69}, {290, 12}, WidgetType::checkbox, WindowColour::secondary, STR_THEMES_OPTION_RCT1_PARK_CONTROLS ), // rct1 park lights makeWidget({ 10, 84}, {290, 12}, WidgetType::checkbox, WindowColour::secondary, STR_THEMES_OPTION_RCT1_SCENARIO_SELECTION_FONT ), // rct1 scenario font - makeWidget({ 10, 99}, {290, 12}, WidgetType::checkbox, WindowColour::secondary, STR_THEMES_OPTION_RCT1_BOTTOM_TOOLBAR ), // rct1 bottom toolbar + makeWidget({ 10, 99}, {290, 12}, WidgetType::checkbox, WindowColour::secondary, STR_THEMES_OPTION_RCT1_GAME_STATUS_BAR ), // rct1 bottom toolbar makeWidget({ 10,114}, {290, 12}, WidgetType::checkbox, WindowColour::secondary, STR_THEMES_OPTION_USE_3D_IMAGE_BUTTONS ) // use 3D image buttons ); // clang-format on @@ -119,11 +119,12 @@ namespace OpenRCT2::Ui::Windows static constexpr std::array kThemesTabMainClasses = std::to_array({ WindowClass::topToolbar, - WindowClass::bottomToolbar, + WindowClass::gameStatusBar, + WindowClass::newsTicker, WindowClass::parkInfoPanel, WindowClass::dateInfoPanel, - WindowClass::editorScenarioBottomToolbar, - WindowClass::editorTrackBottomToolbar, + WindowClass::editorStepControlScenario, + WindowClass::editorStepControlTrack, WindowClass::titleMenu, WindowClass::titleExit, WindowClass::titleOptions, @@ -340,7 +341,7 @@ namespace OpenRCT2::Ui::Windows setCheckboxValue(WIDX_THEMES_RCT1_PARK_LIGHTS, ThemeGetFlags() & UITHEME_FLAG_USE_LIGHTS_PARK); setCheckboxValue( WIDX_THEMES_RCT1_SCENARIO_FONT, ThemeGetFlags() & UITHEME_FLAG_USE_ALTERNATIVE_SCENARIO_SELECT_FONT); - setCheckboxValue(WIDX_THEMES_RCT1_BOTTOM_TOOLBAR, ThemeGetFlags() & UITHEME_FLAG_USE_FULL_BOTTOM_TOOLBAR); + setCheckboxValue(WIDX_THEMES_RCT1_BOTTOM_TOOLBAR, ThemeGetFlags() & UITHEME_FLAG_USE_GAME_STATUS_BAR); setCheckboxValue(WIDX_THEMES_USE_3D_IMAGE_BUTTONS, ThemeGetFlags() & UITHEME_FLAG_USE_3D_IMAGE_BUTTONS); } } @@ -459,9 +460,17 @@ namespace OpenRCT2::Ui::Windows } else { - ThemeSetFlags(ThemeGetFlags() ^ static_cast(UITHEME_FLAG_USE_FULL_BOTTOM_TOOLBAR)); + ThemeSetFlags(ThemeGetFlags() ^ static_cast(UITHEME_FLAG_USE_GAME_STATUS_BAR)); ThemeSave(); - windowMgr->InvalidateAll(); + + if (ThemeGetFlags() & UITHEME_FLAG_USE_GAME_STATUS_BAR) + { + windowMgr->OpenWindow(WindowClass::gameStatusBar); + } + else + { + windowMgr->CloseByClass(WindowClass::gameStatusBar); + } } break; case WIDX_THEMES_USE_3D_IMAGE_BUTTONS: diff --git a/src/openrct2-ui/windows/Windows.h b/src/openrct2-ui/windows/Windows.h index e42d57cb3f..0c33f3fed0 100644 --- a/src/openrct2-ui/windows/Windows.h +++ b/src/openrct2-ui/windows/Windows.h @@ -131,9 +131,8 @@ namespace OpenRCT2::Ui::Windows void WindowFootpathKeyboardShortcutDemolishCurrent(); bool WindowFootpathSelectDefault(); - // GameBottomToolbar - WindowBase* GameBottomToolbarOpen(); - void WindowGameBottomToolbarInvalidateNewsItem(); + // GameStatusBar + WindowBase* gameStatusBarOpen(); // Guest WindowBase* GuestOpen(Peep* peep); @@ -195,6 +194,10 @@ namespace OpenRCT2::Ui::Windows // News WindowBase* NewsOpen(); + // NewsTicker + WindowBase* newsTickerOpen(); + void newsTickerInvalidateNewsItem(); + // NetworkStatus WindowBase* NetworkStatusOpen(const std::string& text, CloseCallback onClose); WindowBase* NetworkStatusOpenPassword(); diff --git a/src/openrct2/Game.cpp b/src/openrct2/Game.cpp index 1840aa27f5..77dabe57d1 100644 --- a/src/openrct2/Game.cpp +++ b/src/openrct2/Game.cpp @@ -119,7 +119,7 @@ void GameCreateWindows() { ContextOpenWindow(WindowClass::mainWindow); ContextOpenWindow(WindowClass::topToolbar); - ContextOpenWindow(WindowClass::bottomToolbar); + ContextOpenWindow(WindowClass::gameStatusBar); ContextOpenWindow(WindowClass::parkInfoPanel); ContextOpenWindow(WindowClass::dateInfoPanel); WindowResizeGui(ContextGetWidth(), ContextGetHeight()); @@ -349,6 +349,7 @@ void GameLoadInit() // being displayed due to pointer value reuse in the cache matching logic Drawing::ScrollingText::invalidate(); + // TODO: move relevant UI calls to UI subproject if (!gLoadKeepWindowsOpen) { ContextResetSubsystems(); diff --git a/src/openrct2/interface/Window.cpp b/src/openrct2/interface/Window.cpp index 7572892c1c..e411c86366 100644 --- a/src/openrct2/interface/Window.cpp +++ b/src/openrct2/interface/Window.cpp @@ -763,18 +763,28 @@ static constexpr float kWindowScrollLocations[][2] = { dateInfoPanel->windowPos.y = height - 32; } - WindowBase* bottomWind = windowMgr->FindByClass(WindowClass::bottomToolbar); - if (bottomWind != nullptr && parkInfoPanel != nullptr && dateInfoPanel != nullptr) + auto bottomWidth = std::max(640, width); + auto bottomOffset = 0; + if (parkInfoPanel != nullptr && dateInfoPanel != nullptr) { - bottomWind->width = std::max(640, width) - parkInfoPanel->width - dateInfoPanel->width; - bottomWind->windowPos.x = parkInfoPanel->width; - bottomWind->windowPos.y = height - 32; + bottomWidth -= parkInfoPanel->width + dateInfoPanel->width; + bottomOffset = parkInfoPanel->width; } - else if (bottomWind != nullptr) + + WindowBase* statusBar = windowMgr->FindByClass(WindowClass::gameStatusBar); + if (statusBar != nullptr) { - bottomWind->width = std::max(640, width); - bottomWind->windowPos.x = 0; - bottomWind->windowPos.y = height - 32; + statusBar->width = bottomWidth; + statusBar->windowPos.x = bottomOffset; + statusBar->windowPos.y = height - 32; + } + + WindowBase* newsTicker = windowMgr->FindByClass(WindowClass::newsTicker); + if (newsTicker != nullptr) + { + newsTicker->width = bottomWidth; + newsTicker->windowPos.x = bottomOffset; + newsTicker->windowPos.y = height - 32; } } diff --git a/src/openrct2/interface/WindowClasses.h b/src/openrct2/interface/WindowClasses.h index eb9a57f539..a71064e87e 100644 --- a/src/openrct2/interface/WindowClasses.h +++ b/src/openrct2/interface/WindowClasses.h @@ -17,11 +17,12 @@ namespace OpenRCT2 { mainWindow = 0, topToolbar = 1, - bottomToolbar = 2, + gameStatusBar = 2, parkInfoPanel = 3, dateInfoPanel = 4, tooltip = 5, dropdown = 6, + newsTicker = 7, about = 8, // publisherCredits = 9, // musicCredits = 10, @@ -99,8 +100,8 @@ namespace OpenRCT2 // Only used for colour schemes staff = 220, - editorTrackBottomToolbar = 221, - editorScenarioBottomToolbar = 222, + editorStepControlTrack = 221, + editorStepControlScenario = 222, chat = 223, console = 224, custom = 225, From 9f9b14d0b882296b4250e2ee9b09f4118aec27a4 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Fri, 4 Sep 2026 22:06:42 +0200 Subject: [PATCH 003/142] Allow using arrays for ride ids in scenario patches --- src/openrct2/rct12/ScenarioPatcher.cpp | 58 ++++++++++++++++---------- 1 file changed, 36 insertions(+), 22 deletions(-) diff --git a/src/openrct2/rct12/ScenarioPatcher.cpp b/src/openrct2/rct12/ScenarioPatcher.cpp index df9de2b0d6..b2c74c0a10 100644 --- a/src/openrct2/rct12/ScenarioPatcher.cpp +++ b/src/openrct2/rct12/ScenarioPatcher.cpp @@ -620,7 +620,18 @@ static void ApplyRideFixes(const json_t& scenarioPatch) return; } - RideId rideId = RideId::FromUnderlying(Json::GetNumber(rideFixes[i][_rideIdKey])); + std::vector rideIds{}; + if (rideFixes[i][_rideIdKey].is_array()) + { + for (size_t j = 0; j < rideFixes[i][_rideIdKey].size(); j++) + { + rideIds.push_back(RideId::FromUnderlying(Json::GetNumber(rideFixes[i][_rideIdKey][j]))); + } + } + else + { + rideIds.push_back(RideId::FromUnderlying(Json::GetNumber(rideFixes[i][_rideIdKey]))); + } auto operation = Json::GetString(rideFixes[i][_operationKey]); if (_dryRun) @@ -628,29 +639,32 @@ static void ApplyRideFixes(const json_t& scenarioPatch) continue; } - if (operation == "swap_entrance_exit") + for (auto rideId : rideIds) { - SwapRideEntranceAndExit(rideId); - } - else if (operation == "open_ride") - { - OpenRide(rideId); - } - else if (operation == "set_name") - { - auto newName = Json::GetString(rideFixes[i][_nameKey]); - if (newName.empty()) - Guard::Assert(false, "Need to specify a new name for ride id %d", rideId); + if (operation == "swap_entrance_exit") + { + SwapRideEntranceAndExit(rideId); + } + else if (operation == "open_ride") + { + OpenRide(rideId); + } + else if (operation == "set_name") + { + auto newName = Json::GetString(rideFixes[i][_nameKey]); + if (newName.empty()) + Guard::Assert(false, "Need to specify a new name for ride id %d", rideId); + else + renameRide(rideId, newName); + } + else if (operation == "clear_name") + { + clearRideName(rideId); + } else - renameRide(rideId, newName); - } - else if (operation == "clear_name") - { - clearRideName(rideId); - } - else - { - Guard::Assert(false, "Unsupported ride fix operation"); + { + Guard::Assert(false, "Unsupported ride fix operation"); + } } } } From 6d06f9a15ea2ba9525473483d3e2e6325590a39f Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 30 Aug 2026 00:35:04 +0200 Subject: [PATCH 004/142] Fix unlocalised names in RCT2 base --- data/scenario_patches/1552df5.parkpatch | 10 ++++++++++ data/scenario_patches/26c34bf.parkpatch | 10 ++++++++++ data/scenario_patches/4c1d07a.parkpatch | 10 ++++++++++ data/scenario_patches/725a16e.parkpatch | 10 ++++++++++ data/scenario_patches/84aeb88.parkpatch | 10 ++++++++++ data/scenario_patches/b362976.parkpatch | 10 ++++++++++ data/scenario_patches/c215313.parkpatch | 8 +++++++- data/scenario_patches/scenario_to_hash | 12 ++++++++++++ 8 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 data/scenario_patches/1552df5.parkpatch create mode 100644 data/scenario_patches/26c34bf.parkpatch create mode 100644 data/scenario_patches/4c1d07a.parkpatch create mode 100644 data/scenario_patches/725a16e.parkpatch create mode 100644 data/scenario_patches/84aeb88.parkpatch create mode 100644 data/scenario_patches/b362976.parkpatch diff --git a/data/scenario_patches/1552df5.parkpatch b/data/scenario_patches/1552df5.parkpatch new file mode 100644 index 0000000000..b774410635 --- /dev/null +++ b/data/scenario_patches/1552df5.parkpatch @@ -0,0 +1,10 @@ +{ + "scenario_name": "Fungus Woods", + "sha256": "1552df559cf9fa8cf6959dba5142642eb4c6881c87ee8c6dba888a0839c59090", + "rides": [ + { + "id": 0, + "operation": "clear_name" + } + ] +} diff --git a/data/scenario_patches/26c34bf.parkpatch b/data/scenario_patches/26c34bf.parkpatch new file mode 100644 index 0000000000..598c2eaf83 --- /dev/null +++ b/data/scenario_patches/26c34bf.parkpatch @@ -0,0 +1,10 @@ +{ + "scenario_name": "Dusty Greens", + "sha256": "26c34bf61dc95b68d8fbe24fa6c7b66ea94ce27af8f2a1e4f858145703ea08dc", + "rides": [ + { + "id": [ 0, 1 ], + "operation": "clear_name" + } + ] +} diff --git a/data/scenario_patches/4c1d07a.parkpatch b/data/scenario_patches/4c1d07a.parkpatch new file mode 100644 index 0000000000..88c2372709 --- /dev/null +++ b/data/scenario_patches/4c1d07a.parkpatch @@ -0,0 +1,10 @@ +{ + "scenario_name": "Electric Fields", + "sha256": "4c1d07a146b058c9bb49a6b7046ea6abfbe2e887498c6a40f5e14f7d7a39eb68", + "rides": [ + { + "id": [ 0, 1 ], + "operation": "clear_name" + } + ] +} diff --git a/data/scenario_patches/725a16e.parkpatch b/data/scenario_patches/725a16e.parkpatch new file mode 100644 index 0000000000..38bfde70a4 --- /dev/null +++ b/data/scenario_patches/725a16e.parkpatch @@ -0,0 +1,10 @@ +{ + "scenario_name": "Rainbow Summit", + "sha256": "725a16e9dcd6d001a933db804968e48a29538a2a03994c658423f687f86e66f0", + "rides": [ + { + "id": [ 2, 3 ], + "operation": "clear_name" + } + ] +} diff --git a/data/scenario_patches/84aeb88.parkpatch b/data/scenario_patches/84aeb88.parkpatch new file mode 100644 index 0000000000..3b972e2159 --- /dev/null +++ b/data/scenario_patches/84aeb88.parkpatch @@ -0,0 +1,10 @@ +{ + "scenario_name": "Bumbly Bazaar", + "sha256": "84aeb880c2d5e2610d6a760eb13c087b3eefcd0683fc71aabe1b4e51cc585f44", + "rides": [ + { + "id": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], + "operation": "clear_name" + } + ] +} diff --git a/data/scenario_patches/b362976.parkpatch b/data/scenario_patches/b362976.parkpatch new file mode 100644 index 0000000000..ddb5f6cddd --- /dev/null +++ b/data/scenario_patches/b362976.parkpatch @@ -0,0 +1,10 @@ +{ + "scenario_name": "Lucky Lake", + "sha256": "b3629768297db3cd56eb52d3bafc73536ac245a20d31c26fba9f5103de5e786e", + "rides": [ + { + "id": [ 0, 1, 2, 3, 4, 5, 6 ], + "operation": "clear_name" + } + ] +} diff --git a/data/scenario_patches/c215313.parkpatch b/data/scenario_patches/c215313.parkpatch index 2ab49f8d7c..9cebf73d0e 100644 --- a/data/scenario_patches/c215313.parkpatch +++ b/data/scenario_patches/c215313.parkpatch @@ -7,5 +7,11 @@ [ 105, 147 ], [ 106, 147 ], [ 107, 147 ] ] } - } + }, + "rides": [ + { + "id": [ 1, 2 ], + "operation": "clear_name" + } + ] } diff --git a/data/scenario_patches/scenario_to_hash b/data/scenario_patches/scenario_to_hash index 965cb2f2bc..5817f66258 100644 --- a/data/scenario_patches/scenario_to_hash +++ b/data/scenario_patches/scenario_to_hash @@ -17,6 +17,8 @@ '7ffdb448eccc8e24026e820f5e1d5649459b5ee5d469afdaa73e87d31475f2b0'], 'Build your own Six Flags over Texas': ['2594e15', '2594e158922211bbf27b720dea5ccd4b98c37018193b873b36902b342f473e4b'], + 'Bumbly Bazaar': ['84aeb88', + '84aeb880c2d5e2610d6a760eb13c087b3eefcd0683fc71aabe1b4e51cc585f44'], 'Canyon Calamities': ['6ce84b8', '6ce84b809471ba539d94d4198832b848b47d81316f5c8cc1297d8328299b4c52'], 'Cliffside Castle': ['9c8b7cf', @@ -25,12 +27,18 @@ '4ec6b381faf6b576f38c59a16ee441b9ed680e4bb38a9320e58e65dfd3f12c94'], 'Crazy Castle': ['3a2ca59', '3a2ca59166d8a0286feb8404ead68e0d83b47026b7e4015852b770e3fd4bf125'], + 'Dusty Greens': ['26c34bf', + '26c34bf61dc95b68d8fbe24fa6c7b66ea94ce27af8f2a1e4f858145703ea08dc'], + 'Electric Fields': ['4c1d07a', + '4c1d07a146b058c9bb49a6b7046ea6abfbe2e887498c6a40f5e14f7d7a39eb68'], 'European Extravaganza': ['1c3ea45', '1c3ea4505f2341a76c55ca51e51034b649467def4002b7ee1825324355c51406'], 'Extreme Heights': ['c215313', 'c2153130813a127e67355662e385025936a427b8628bbc129cc7fc20b9ac49af'], 'From The Ashes': ['c4fa992', 'c4fa992e3d54c89d3932614e903daad0f955fc3f848021de437d5ff03ab11941'], + 'Fungus Woods': ['1552df5', + '1552df559cf9fa8cf6959dba5142642eb4c6881c87ee8c6dba888a0839c59090'], 'Ghost Town': ['db352d3', 'db352d3dcf74b8a1931963c4e07e8c23802227bb1d31d8c57b97c3239a382f5e'], 'Great Wall of China': ['e72d720', @@ -41,6 +49,8 @@ 'fcc15f9c9b42bdd4aa8761c3a6df17c1293aa616780bc4aadd348d191e275112'], 'Lost City Founder': ['13e81f2', '13e81f23ab1a7051b5465e4a7bb214b4188f2264d499f8f7e106372c3a984331'], + 'Lucky Lake': ['b362976', + 'b3629768297db3cd56eb52d3bafc73536ac245a20d31c26fba9f5103de5e786e'] 'Mines of Africa': ['2980c28', '2980c287d81e4e96a46db30d1a80e6bfa0caace6a14488dddc6f20ac71676cff'], 'Mirage Madness': ['2696a05', @@ -53,6 +63,8 @@ 'b2eed35919d3992139041b68eb3fbbfa5e3fd06e2cb9058e8f50c5d9f15974bf'], 'Park Maharaja': ['f4b1675', 'f4b1675c8ccb31d422c1b7b8bd5336b2bfefa94d702aeae1859ea95ecda2c29d'], + 'Rainbow Summit': ['725a16e', + '725a16e9dcd6d001a933db804968e48a29538a2a03994c658423f687f86e66f0'], 'Rocky Rambles': ['33bac63', '33bac63d13aa7513ac8536d865cbc6fa4a2189c79e3943869e6380072e71bce7'], 'Rock ‘n’ Roll Revival': ['d48bbfe', From 99cdd3892a32b4628b65f8dd4b383582a9da3dc5 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 30 Aug 2026 01:25:24 +0200 Subject: [PATCH 005/142] Fix unlocalised names in Wacky Worlds --- data/scenario_patches/0b8cc95.parkpatch | 6 ++++++ data/scenario_patches/1340eef.parkpatch | 18 +++++++++++++++++- data/scenario_patches/14b1d20.parkpatch | 8 +++++++- data/scenario_patches/1c3ea45.parkpatch | 9 ++++++++- data/scenario_patches/2696a05.parkpatch | 6 ++++++ data/scenario_patches/2980c28.parkpatch | 6 ++++++ data/scenario_patches/6ce84b8.parkpatch | 8 +++++++- data/scenario_patches/8108298.parkpatch | 2 +- data/scenario_patches/82aeaf6.parkpatch | 8 +++++++- data/scenario_patches/879ab35.parkpatch | 10 ++++++++++ data/scenario_patches/8cd8484.parkpatch | 8 +++++++- data/scenario_patches/b2eed35.parkpatch | 2 +- data/scenario_patches/c4fa992.parkpatch | 8 +++++++- data/scenario_patches/e58a7e6.parkpatch | 10 ++++++++++ data/scenario_patches/scenario_to_hash | 4 ++++ 15 files changed, 104 insertions(+), 9 deletions(-) create mode 100644 data/scenario_patches/879ab35.parkpatch create mode 100644 data/scenario_patches/e58a7e6.parkpatch diff --git a/data/scenario_patches/0b8cc95.parkpatch b/data/scenario_patches/0b8cc95.parkpatch index bfbf52c33e..e91c63d1ff 100644 --- a/data/scenario_patches/0b8cc95.parkpatch +++ b/data/scenario_patches/0b8cc95.parkpatch @@ -27,5 +27,11 @@ "coordinates": [ [ 23, 79, 12 ] ], "slope_direction": 2 } + ], + "rides": [ + { + "id": [ 2, 3, 4, 5, 6, 7, 8, 9, 10 ], + "operation": "clear_name" + } ] } diff --git a/data/scenario_patches/1340eef.parkpatch b/data/scenario_patches/1340eef.parkpatch index 097e54999a..0bc33e367a 100644 --- a/data/scenario_patches/1340eef.parkpatch +++ b/data/scenario_patches/1340eef.parkpatch @@ -14,5 +14,21 @@ [ 64, 97 ] ] } - } + }, + "rides": [ + { + "id": 0, + "operation": "set_name", + "name": "7 Hole Golf" + }, + { + "id": 2, + "operation": "set_name", + "name": "Rings of Fun" + }, + { + "id": [ 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 22, 23, 24, 25, 26, 27, 28, 29, 30 ], + "operation": "clear_name" + } + ] } diff --git a/data/scenario_patches/14b1d20.parkpatch b/data/scenario_patches/14b1d20.parkpatch index 7185564e00..8d846a0a46 100644 --- a/data/scenario_patches/14b1d20.parkpatch +++ b/data/scenario_patches/14b1d20.parkpatch @@ -50,5 +50,11 @@ [ 122, 116 ], [ 122, 117 ], [ 122, 118 ] ] } - } + }, + "rides": [ + { + "id": [ 0, 1, 2, 3, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27 ], + "operation": "clear_name" + } + ] } diff --git a/data/scenario_patches/1c3ea45.parkpatch b/data/scenario_patches/1c3ea45.parkpatch index df64a21004..9bb184dd2b 100644 --- a/data/scenario_patches/1c3ea45.parkpatch +++ b/data/scenario_patches/1c3ea45.parkpatch @@ -10,5 +10,12 @@ [ 32, 79 ], [ 32, 80 ], [ 32, 81 ] ] } - } + }, + "rides": [ + { + "id": [ 0, 2, 3, 4, 5, 6, 7, 11, 12, 15, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27 ], + "operation": "clear_name" + } + ] + } diff --git a/data/scenario_patches/2696a05.parkpatch b/data/scenario_patches/2696a05.parkpatch index 54c597985b..7e1b0b3a5c 100644 --- a/data/scenario_patches/2696a05.parkpatch +++ b/data/scenario_patches/2696a05.parkpatch @@ -33,5 +33,11 @@ "surface": "rct2.footpath_surface.dirt", "coordinates": [ [ 86, 74, 12 ], [ 86, 75, 12 ], [ 86, 76, 12 ], [ 86, 77, 12 ], [ 86, 78, 12 ] ] } + ], + "rides": [ + { + "id": [ 1, 3, 5, 6, 7 ], + "operation": "clear_name" + } ] } diff --git a/data/scenario_patches/2980c28.parkpatch b/data/scenario_patches/2980c28.parkpatch index e16ab06d8f..95d997370e 100644 --- a/data/scenario_patches/2980c28.parkpatch +++ b/data/scenario_patches/2980c28.parkpatch @@ -17,5 +17,11 @@ "slope_direction": 3, "queue": true } + ], + "rides": [ + { + "id": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 13, 14 ], + "operation": "clear_name" + } ] } diff --git a/data/scenario_patches/6ce84b8.parkpatch b/data/scenario_patches/6ce84b8.parkpatch index 16745c27ba..6df863f0f6 100644 --- a/data/scenario_patches/6ce84b8.parkpatch +++ b/data/scenario_patches/6ce84b8.parkpatch @@ -26,5 +26,11 @@ [ 96, 84 ] ] } - } + }, + "rides": [ + { + "id": [ 0, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], + "operation": "clear_name" + } + ] } diff --git a/data/scenario_patches/8108298.parkpatch b/data/scenario_patches/8108298.parkpatch index 5c94736326..9ba533d633 100644 --- a/data/scenario_patches/8108298.parkpatch +++ b/data/scenario_patches/8108298.parkpatch @@ -53,7 +53,7 @@ }, "rides": [ { - "id": 18, + "id": [ 0, 1, 2, 3, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27 ], "operation": "clear_name" } ] diff --git a/data/scenario_patches/82aeaf6.parkpatch b/data/scenario_patches/82aeaf6.parkpatch index 9e97487f7f..a47eff71fe 100644 --- a/data/scenario_patches/82aeaf6.parkpatch +++ b/data/scenario_patches/82aeaf6.parkpatch @@ -18,5 +18,11 @@ [ 141, 74 ], [ 142, 74 ], [ 143, 74 ], [ 144, 74 ], [ 145, 74 ], [ 146, 74 ], [ 147, 74 ] ] } - } + }, + "rides": [ + { + "id": [ 1, 3, 5, 6, 7 ], + "operation": "clear_name" + } + ] } diff --git a/data/scenario_patches/879ab35.parkpatch b/data/scenario_patches/879ab35.parkpatch new file mode 100644 index 0000000000..01ed214b5d --- /dev/null +++ b/data/scenario_patches/879ab35.parkpatch @@ -0,0 +1,10 @@ +{ + "scenario_name": "Sugarloaf Shores", + "sha256": "879ab352a9d3d84bd12d0bde185131804f2fffd39c8ad3792608866040e58987", + "rides": [ + { + "id": [ 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 28 ], + "operation": "clear_name" + } + ] +} diff --git a/data/scenario_patches/8cd8484.parkpatch b/data/scenario_patches/8cd8484.parkpatch index a773af71b9..3d9e1339a1 100644 --- a/data/scenario_patches/8cd8484.parkpatch +++ b/data/scenario_patches/8cd8484.parkpatch @@ -21,5 +21,11 @@ ] } ] - } + }, + "rides": [ + { + "id": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 15, 16, 17 ], + "operation": "clear_name" + } + ] } diff --git a/data/scenario_patches/b2eed35.parkpatch b/data/scenario_patches/b2eed35.parkpatch index e897733aa1..b312db202c 100644 --- a/data/scenario_patches/b2eed35.parkpatch +++ b/data/scenario_patches/b2eed35.parkpatch @@ -53,7 +53,7 @@ }, "rides": [ { - "id": 18, + "id": [ 0, 1, 2, 3, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27 ], "operation": "clear_name" } ] diff --git a/data/scenario_patches/c4fa992.parkpatch b/data/scenario_patches/c4fa992.parkpatch index 3fc7e92159..40167a6387 100644 --- a/data/scenario_patches/c4fa992.parkpatch +++ b/data/scenario_patches/c4fa992.parkpatch @@ -7,5 +7,11 @@ [ 12, 21 ] ] } - } + }, + "rides": [ + { + "id": [ 0, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27 ], + "operation": "clear_name" + } + ] } diff --git a/data/scenario_patches/e58a7e6.parkpatch b/data/scenario_patches/e58a7e6.parkpatch new file mode 100644 index 0000000000..683da12616 --- /dev/null +++ b/data/scenario_patches/e58a7e6.parkpatch @@ -0,0 +1,10 @@ +{ + "scenario_name": "Mirage Madness (CD)", + "sha256": "e58a7e6e9d1704da824acfaf748399d006adcbb1b156d1aa8a3b3c58a10e17af", + "rides": [ + { + "id": [ 1, 3, 5, 6, 7 ], + "operation": "clear_name" + } + ] +} diff --git a/data/scenario_patches/scenario_to_hash b/data/scenario_patches/scenario_to_hash index 5817f66258..e2d7aa1ffe 100644 --- a/data/scenario_patches/scenario_to_hash +++ b/data/scenario_patches/scenario_to_hash @@ -55,6 +55,8 @@ '2980c287d81e4e96a46db30d1a80e6bfa0caace6a14488dddc6f20ac71676cff'], 'Mirage Madness': ['2696a05', '2696a059c2c1b23c60cbfcc293fd29cfec45d7e3da7f3b38bc2b52aff834fd34'], + 'Mirage Madness (CD)': ['e58a7e6', + 'e58a7e6e9d1704da824acfaf748399d006adcbb1b156d1aa8a3b3c58a10e17af'], 'Mythological Madness': ['ef0c020', 'ef0c0202510d84cf4f1ad198ae43b6bc00d5af2d664c60cdb38de632ea25db51'], 'Okinawa Coast': ['8108298', @@ -83,6 +85,8 @@ 'c82272a1e966e54863b3b90ba4c90e37ed8ef8b99253d284bb7cc56f9590d97a'], 'Six Flags over Texas': ['229cf57', '229cf5777d1b90034f3b711eed45c4d6ab9a368a466fd4db758a1eac21632a35'], + 'Sugarloaf Shores': ['879ab35', + '879ab352a9d3d84bd12d0bde185131804f2fffd39c8ad3792608866040e58987'], 'Wacky Waikiki': ['aaad3e7', 'aaad3e787741a253bd8dcb866c67ea50d78489bec0a5f9b01778362b9905b715'], From ee15855bf32cce8f986fb675371876f9e957ac02 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 6 Sep 2026 12:37:56 +0200 Subject: [PATCH 006/142] Start v0.5.6 --- distribution/changelog.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index dd4984e8f1..3640a21f65 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,3 +1,6 @@ +0.5.6 (in development) +------------------------------------------------------------------------ + 0.5.5 (2026-09-06) ------------------------------------------------------------------------ - Feature: [#26423] [Plugin] Add `PathNavigator` and `PathConnection` for exploring the footpath network as a graph. From 369341a01916a11579a5815caa2f1169b2c94465 Mon Sep 17 00:00:00 2001 From: Kirill Gusev <115743784+myaumura@users.noreply.github.com> Date: Sun, 6 Sep 2026 13:39:03 +0300 Subject: [PATCH 007/142] Rename DataSerialiser method (#27058) --- src/openrct2/Cheats.cpp | 4 ++-- src/openrct2/GameStateSnapshots.cpp | 2 +- src/openrct2/ReplayManager.cpp | 10 +++++----- src/openrct2/actions/GameAction.cpp | 2 +- src/openrct2/core/DataSerialiser.h | 8 ++++---- src/openrct2/core/DataSerialiserTag.h | 8 ++++---- src/openrct2/core/DataSerialiserTraits.h | 8 ++++---- src/openrct2/entity/Peep.cpp | 2 +- src/openrct2/network/NetworkBase.cpp | 4 ++-- src/openrct2/network/NetworkPacket.h | 2 +- src/openrct2/ride/TrackDesign.cpp | 2 +- src/openrct2/scenario/ScenarioRepository.cpp | 2 +- 12 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/openrct2/Cheats.cpp b/src/openrct2/Cheats.cpp index b5cc95bf63..59a114becb 100644 --- a/src/openrct2/Cheats.cpp +++ b/src/openrct2/Cheats.cpp @@ -71,9 +71,9 @@ void CheatsSerialise(DataSerialiser& ds) uint16_t count = 0; auto& gameState = getGameState(); - if (ds.IsSaving()) + if (ds.isSaving()) { - IStream& stream = ds.GetStream(); + IStream& stream = ds.getStream(); // Temporarily write 0, will be updated after every cheat is written. uint64_t countOffset = stream.GetPosition(); diff --git a/src/openrct2/GameStateSnapshots.cpp b/src/openrct2/GameStateSnapshots.cpp index 0f09c3bd35..049f3074a8 100644 --- a/src/openrct2/GameStateSnapshots.cpp +++ b/src/openrct2/GameStateSnapshots.cpp @@ -61,7 +61,7 @@ struct GameStateSnapshot_t { uint32_t size = sizeof(T); ds << size; - if (ds.IsLoading()) + if (ds.isLoading()) { return size == sizeof(T); } diff --git a/src/openrct2/ReplayManager.cpp b/src/openrct2/ReplayManager.cpp index 49898a651b..6974530adc 100644 --- a/src/openrct2/ReplayManager.cpp +++ b/src/openrct2/ReplayManager.cpp @@ -317,7 +317,7 @@ namespace OpenRCT2 // Serialise Body. DataSerialiser recSerialiser(true); Serialise(recSerialiser, *_currentRecording); - auto& stream = recSerialiser.GetStream(); + auto& stream = recSerialiser.getStream(); MemoryStream compressed; stream.SetPosition(0); @@ -685,7 +685,7 @@ namespace OpenRCT2 serialiser << command.commandIndex; uint32_t actionType = 0; - if (serialiser.IsSaving()) + if (serialiser.isSaving()) { if (!command.action) { @@ -695,7 +695,7 @@ namespace OpenRCT2 } serialiser << actionType; - if (serialiser.IsLoading()) + if (serialiser.isLoading()) { command.action = Create(static_cast(actionType)); } @@ -748,7 +748,7 @@ namespace OpenRCT2 uint32_t countCommands = static_cast(data.commands.size()); serialiser << countCommands; - if (serialiser.IsSaving()) + if (serialiser.isSaving()) { for (auto& command : data.commands) { @@ -769,7 +769,7 @@ namespace OpenRCT2 uint32_t countChecksums = static_cast(data.checksums.size()); serialiser << countChecksums; - if (serialiser.IsLoading()) + if (serialiser.isLoading()) { data.checksums.resize(countChecksums); } diff --git a/src/openrct2/actions/GameAction.cpp b/src/openrct2/actions/GameAction.cpp index 1969c6f657..9c5bbe7282 100644 --- a/src/openrct2/actions/GameAction.cpp +++ b/src/openrct2/actions/GameAction.cpp @@ -81,7 +81,7 @@ namespace OpenRCT2::GameActions action->Serialise(dsOut); // Serialise into new action. - IStream& stream = dsOut.GetStream(); + IStream& stream = dsOut.getStream(); stream.SetPosition(0); DataSerialiser dsIn(false, stream); diff --git a/src/openrct2/core/DataSerialiser.h b/src/openrct2/core/DataSerialiser.h index 9e3a4a1473..0a3d172b75 100644 --- a/src/openrct2/core/DataSerialiser.h +++ b/src/openrct2/core/DataSerialiser.h @@ -39,22 +39,22 @@ namespace OpenRCT2 { } - bool IsSaving() const + bool isSaving() const { return _isSaving; } - bool IsLoading() const + bool isLoading() const { return !_isSaving; } - bool IsLogging() const + bool isLogging() const { return _isLogging; } - IStream& GetStream() + IStream& getStream() { return _activeStream; } diff --git a/src/openrct2/core/DataSerialiserTag.h b/src/openrct2/core/DataSerialiserTag.h index 87f2f6d0c9..066812dc15 100644 --- a/src/openrct2/core/DataSerialiserTag.h +++ b/src/openrct2/core/DataSerialiserTag.h @@ -21,12 +21,12 @@ namespace OpenRCT2 { } - const char* Name() const + const char* name() const { return _name; } - T& Data() const + T& data() const { return _data; } @@ -37,11 +37,11 @@ namespace OpenRCT2 }; template - inline DataSerialiserTag CreateDataSerialiserTag(const char* name, T& data) + inline DataSerialiserTag createDataSerialiserTag(const char* name, T& data) { DataSerialiserTag r(name, data); return r; } -#define DS_TAG(var) CreateDataSerialiserTag(#var, var) +#define DS_TAG(var) createDataSerialiserTag(#var, var) } // namespace OpenRCT2 diff --git a/src/openrct2/core/DataSerialiserTraits.h b/src/openrct2/core/DataSerialiserTraits.h index bda047bf76..45f73a14a6 100644 --- a/src/openrct2/core/DataSerialiserTraits.h +++ b/src/openrct2/core/DataSerialiserTraits.h @@ -223,21 +223,21 @@ namespace OpenRCT2 static void encode(IStream* stream, const DataSerialiserTag& tag) { DataSerializerTraits s; - s.encode(stream, tag.Data()); + s.encode(stream, tag.data()); } static void decode(IStream* stream, DataSerialiserTag& tag) { DataSerializerTraits s; - s.decode(stream, tag.Data()); + s.decode(stream, tag.data()); } static void log(IStream* stream, const DataSerialiserTag& tag) { - const char* name = tag.Name(); + const char* name = tag.name(); stream->Write(name, strlen(name)); stream->Write(" = ", 3); DataSerializerTraits s; - s.log(stream, tag.Data()); + s.log(stream, tag.data()); stream->Write("; ", 2); } diff --git a/src/openrct2/entity/Peep.cpp b/src/openrct2/entity/Peep.cpp index 041b20c015..6128be2f74 100644 --- a/src/openrct2/entity/Peep.cpp +++ b/src/openrct2/entity/Peep.cpp @@ -2686,7 +2686,7 @@ namespace OpenRCT2 void Peep::serialise(DataSerialiser& stream) { EntityBase::serialise(stream); - if (stream.IsLoading()) + if (stream.isLoading()) { name = nullptr; } diff --git a/src/openrct2/network/NetworkBase.cpp b/src/openrct2/network/NetworkBase.cpp index d549ac480e..eb7cd93792 100644 --- a/src/openrct2/network/NetworkBase.cpp +++ b/src/openrct2/network/NetworkBase.cpp @@ -3087,8 +3087,8 @@ namespace OpenRCT2::Network DataSerialiser stream(false); const size_t size = packet.header.size - packet.bytesRead; - stream.GetStream().WriteArray(packet.read(size), size); - stream.GetStream().SetPosition(0); + stream.getStream().WriteArray(packet.read(size), size); + stream.getStream().SetPosition(0); ga->Serialise(stream); // Set player to sender, should be 0 if sent from client. diff --git a/src/openrct2/network/NetworkPacket.h b/src/openrct2/network/NetworkPacket.h index 0561a2ae06..d1c9ee9e7d 100644 --- a/src/openrct2/network/NetworkPacket.h +++ b/src/openrct2/network/NetworkPacket.h @@ -82,7 +82,7 @@ namespace OpenRCT2::Network Packet& operator<<(DataSerialiser& serialiser) { - write(static_cast(serialiser.GetStream().GetData()), serialiser.GetStream().GetLength()); + write(static_cast(serialiser.getStream().GetData()), serialiser.getStream().GetLength()); return *this; } diff --git a/src/openrct2/ride/TrackDesign.cpp b/src/openrct2/ride/TrackDesign.cpp index cd124d11f3..d87c48a45b 100644 --- a/src/openrct2/ride/TrackDesign.cpp +++ b/src/openrct2/ride/TrackDesign.cpp @@ -544,7 +544,7 @@ ResultWithMessage TrackDesign::CreateTrackDesignScenery(TrackDesignState& tds) void TrackDesign::Serialise(DataSerialiser& stream) { - if (stream.IsLogging()) + if (stream.isLogging()) { stream << DS_TAG(gameStateData.name); // There is too much information logged. diff --git a/src/openrct2/scenario/ScenarioRepository.cpp b/src/openrct2/scenario/ScenarioRepository.cpp index 9d33257e45..b74faea927 100644 --- a/src/openrct2/scenario/ScenarioRepository.cpp +++ b/src/openrct2/scenario/ScenarioRepository.cpp @@ -152,7 +152,7 @@ protected: void Serialise(DataSerialiser& ds, const ScenarioIndexEntry& item) const override { ds << item.Path; - if (ds.IsLoading()) + if (ds.isLoading()) { // Field used to be fixed size length, remove the 0 padding. const auto pos = item.Path.find('\0'); From 453ddb49b8c611c0135051bccdad5294db6b530c Mon Sep 17 00:00:00 2001 From: Kirill Gusev <115743784+myaumura@users.noreply.github.com> Date: Sun, 6 Sep 2026 13:39:33 +0300 Subject: [PATCH 008/142] Rename FileScanner fields and methods (#27055) --- src/openrct2-ui/interface/Theme.cpp | 10 +- src/openrct2-ui/windows/LoadSave.cpp | 8 +- src/openrct2/Context.cpp | 8 +- src/openrct2/Game.cpp | 10 +- src/openrct2/core/FileIndex.hpp | 14 +- src/openrct2/core/FileScanner.cpp | 160 +++++++++--------- src/openrct2/core/FileScanner.h | 30 ++-- src/openrct2/object/ImageTable.cpp | 8 +- src/openrct2/scenes/title/TitleSequence.cpp | 6 +- .../scenes/title/TitleSequenceManager.cpp | 6 +- src/openrct2/scripting/ScriptEngine.cpp | 6 +- test/tests/ReplayTests.cpp | 8 +- 12 files changed, 137 insertions(+), 137 deletions(-) diff --git a/src/openrct2-ui/interface/Theme.cpp b/src/openrct2-ui/interface/Theme.cpp index 29041700fe..f0b06ddbde 100644 --- a/src/openrct2-ui/interface/Theme.cpp +++ b/src/openrct2-ui/interface/Theme.cpp @@ -585,18 +585,18 @@ namespace OpenRCT2::Ui } auto themesPattern = Path::Combine(GetThemePath(), u8"*.json"); - auto scanner = Path::ScanDirectory(themesPattern, true); - while (scanner->Next()) + auto scanner = Path::scanDirectory(themesPattern, true); + while (scanner->next()) { - const auto& fileInfo = scanner->GetFileInfo(); - auto name = Path::GetFileNameWithoutExtension(fileInfo.Name); + const auto& fileInfo = scanner->getFileInfo(); + auto name = Path::GetFileNameWithoutExtension(fileInfo.name); AvailableTheme theme{}; theme.Name = name; theme.Path = GetThemeFileName(name); outThemes->push_back(std::move(theme)); - if (Path::Equals(CurrentThemePath, scanner->GetPath())) + if (Path::Equals(CurrentThemePath, scanner->getPath())) { ActiveAvailableThemeIndex = outThemes->size() - 1; } diff --git a/src/openrct2-ui/windows/LoadSave.cpp b/src/openrct2-ui/windows/LoadSave.cpp index b3ad219fce..ab6782be97 100644 --- a/src/openrct2-ui/windows/LoadSave.cpp +++ b/src/openrct2-ui/windows/LoadSave.cpp @@ -223,7 +223,7 @@ namespace OpenRCT2::Ui::Windows setWidgetDisabled(WIDX_NEW_FOLDER, false); // List all directories - auto subDirectories = Path::GetDirectories(absoluteDirectory); + auto subDirectories = Path::getDirectories(absoluteDirectory); for (const auto& sdName : subDirectories) { auto subDir = sdName + PATH_SEPARATOR; @@ -242,11 +242,11 @@ namespace OpenRCT2::Ui::Windows for (const u8string_view extToken : String::split(extensionPattern, ";")) { const u8string filter = Path::Combine(directory, extToken); - auto scanner = Path::ScanDirectory(filter, false); - while (scanner->Next()) + auto scanner = Path::scanDirectory(filter, false); + while (scanner->next()) { LoadSaveListItem newListItem; - newListItem.path = scanner->GetPath(); + newListItem.path = scanner->getPath(); newListItem.type = FileType::file; newListItem.dateModified = Platform::FileGetModifiedTime(newListItem.path.c_str()); diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index e3765f8da5..6709afca4e 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -1470,11 +1470,11 @@ namespace OpenRCT2 LOG_VERBOSE("CopyOriginalUserFilesOver('%s', '%s', '%s')", srcRoot.c_str(), dstRoot.c_str(), pattern.c_str()); auto scanPattern = Path::Combine(srcRoot, pattern); - auto scanner = Path::ScanDirectory(scanPattern, true); - while (scanner->Next()) + auto scanner = Path::scanDirectory(scanPattern, true); + while (scanner->next()) { - auto src = std::string(scanner->GetPath()); - auto dst = Path::Combine(dstRoot, scanner->GetPathRelative()); + auto src = std::string(scanner->getPath()); + auto dst = Path::Combine(dstRoot, scanner->getPathRelative()); auto dstDirectory = Path::GetDirectory(dst); // Create the directory if necessary diff --git a/src/openrct2/Game.cpp b/src/openrct2/Game.cpp index d224b5e07b..416a9a2f16 100644 --- a/src/openrct2/Game.cpp +++ b/src/openrct2/Game.cpp @@ -548,8 +548,8 @@ static void LimitAutosaveCount(const size_t numberOfFilesToKeep, bool processLan // At first, count how many autosaves there are { - auto scanner = Path::ScanDirectory(filter, false); - while (scanner->Next()) + auto scanner = Path::scanDirectory(filter, false); + while (scanner->next()) { autosavesCount++; } @@ -563,12 +563,12 @@ static void LimitAutosaveCount(const size_t numberOfFilesToKeep, bool processLan std::vector autosaveFiles; { - auto scanner = Path::ScanDirectory(filter, false); + auto scanner = Path::scanDirectory(filter, false); for (size_t i = 0; i < autosavesCount; i++) { - if (scanner->Next()) + if (scanner->next()) { - autosaveFiles.emplace_back(Path::Combine(folderDirectory, "autosave", scanner->GetPathRelative())); + autosaveFiles.emplace_back(Path::Combine(folderDirectory, "autosave", scanner->getPathRelative())); } } } diff --git a/src/openrct2/core/FileIndex.hpp b/src/openrct2/core/FileIndex.hpp index 90abd5f899..1d567a9131 100644 --- a/src/openrct2/core/FileIndex.hpp +++ b/src/openrct2/core/FileIndex.hpp @@ -151,16 +151,16 @@ private: LOG_VERBOSE("FileIndex:Scanning for %s in '%s'", _pattern.c_str(), absoluteDirectory.c_str()); auto pattern = OpenRCT2::Path::Combine(absoluteDirectory, _pattern); - auto scanner = OpenRCT2::Path::ScanDirectory(pattern, true); - while (scanner->Next()) + auto scanner = OpenRCT2::Path::scanDirectory(pattern, true); + while (scanner->next()) { - const auto& fileInfo = scanner->GetFileInfo(); - auto path = scanner->GetPath(); + const auto& fileInfo = scanner->getFileInfo(); + auto path = scanner->getPath(); stats.TotalFiles++; - stats.TotalFileSize += fileInfo.Size; - stats.FileDateModifiedChecksum ^= static_cast(fileInfo.LastModified >> 32) - ^ static_cast(fileInfo.LastModified & 0xFFFFFFFF); + stats.TotalFileSize += fileInfo.size; + stats.FileDateModifiedChecksum ^= static_cast(fileInfo.lastModified >> 32) + ^ static_cast(fileInfo.lastModified & 0xFFFFFFFF); stats.FileDateModifiedChecksum = OpenRCT2::Numerics::ror32(stats.FileDateModifiedChecksum, 5); stats.PathChecksum += GetPathChecksum(path); diff --git a/src/openrct2/core/FileScanner.cpp b/src/openrct2/core/FileScanner.cpp index acb5446290..4532dc9748 100644 --- a/src/openrct2/core/FileScanner.cpp +++ b/src/openrct2/core/FileScanner.cpp @@ -39,25 +39,25 @@ enum class DirectoryChildType struct DirectoryChild { - DirectoryChildType Type; - std::string Name; + DirectoryChildType type; + std::string name; // Files only - uint64_t Size = 0; - uint64_t LastModified = 0; + uint64_t size = 0; + uint64_t lastModified = 0; }; -static uint32_t GetPathChecksum(u8string_view path); -static bool MatchWildcard(const utf8* fileName, const utf8* pattern); +static uint32_t getPathChecksum(u8string_view path); +static bool matchWildcard(const utf8* fileName, const utf8* pattern); class FileScannerBase : public IFileScanner { private: struct DirectoryState { - u8string Path; - std::vector Listing; - int32_t Index = 0; + u8string path; + std::vector listing; + int32_t index = 0; }; // Options @@ -76,69 +76,69 @@ private: public: FileScannerBase(u8string_view pattern, bool recurse) : _rootPath(Path::GetDirectory(pattern)) - , _patterns(GetPatterns(Path::GetFileName(pattern))) + , _patterns(getPatterns(Path::GetFileName(pattern))) , _recurse(recurse) { } ~FileScannerBase() override = default; - const FileScanner::FileInfo& GetFileInfo() const override + const FileScanner::FileInfo& getFileInfo() const override { return _currentFileInfo; } - const u8string& GetPath() const override + const u8string& getPath() const override { return _currentPath; } - u8string GetPathRelative() const override + u8string getPathRelative() const override { return Path::GetRelative(_currentPath, _rootPath); } - void Reset() override + void reset() override { _started = false; _directoryStack = {}; _currentPath.clear(); } - bool Next() override + bool next() override { if (!_started) { _started = true; - PushState(_rootPath); + pushState(_rootPath); } while (!_directoryStack.empty()) { DirectoryState* state = &_directoryStack.top(); - state->Index++; - if (state->Index >= static_cast(state->Listing.size())) + state->index++; + if (state->index >= static_cast(state->listing.size())) { _directoryStack.pop(); } else { - const DirectoryChild* child = &state->Listing[state->Index]; - if (child->Type == DirectoryChildType::directory) + const DirectoryChild* child = &state->listing[state->index]; + if (child->type == DirectoryChildType::directory) { if (_recurse) { - auto childPath = Path::Combine(state->Path, child->Name); - PushState(childPath); + auto childPath = Path::Combine(state->path, child->name); + pushState(childPath); } } - else if (PatternMatch(child->Name)) + else if (patternMatch(child->name)) { - _currentPath = Path::Combine(state->Path, child->Name); + _currentPath = Path::Combine(state->path, child->name); - _currentFileInfo.Name = child->Name; - _currentFileInfo.Size = child->Size; - _currentFileInfo.LastModified = child->LastModified; + _currentFileInfo.name = child->name; + _currentFileInfo.size = child->size; + _currentFileInfo.lastModified = child->lastModified; return true; } } @@ -146,23 +146,23 @@ public: return false; } - virtual void GetDirectoryChildren(std::vector& children, const std::string& path) = 0; + virtual void getDirectoryChildren(std::vector& children, const std::string& path) = 0; private: - void PushState(const std::string& directory) + void pushState(const std::string& directory) { DirectoryState newState; - newState.Path = directory; - newState.Index = -1; - GetDirectoryChildren(newState.Listing, directory); + newState.path = directory; + newState.index = -1; + getDirectoryChildren(newState.listing, directory); _directoryStack.push(newState); } - bool PatternMatch(const std::string& fileName) + bool patternMatch(const std::string& fileName) { for (const auto& pattern : _patterns) { - if (MatchWildcard(fileName.c_str(), pattern.c_str())) + if (matchWildcard(fileName.c_str(), pattern.c_str())) { return true; } @@ -170,7 +170,7 @@ private: return false; } - static std::vector GetPatterns(const std::string& delimitedPatterns) + static std::vector getPatterns(const std::string& delimitedPatterns) { std::vector patterns; @@ -207,7 +207,7 @@ public: { } - void GetDirectoryChildren(std::vector& children, const std::string& path) override + void getDirectoryChildren(std::vector& children, const std::string& path) override { auto pattern = path + "\\*"; auto wPattern = String::toWideChar(pattern.c_str()); @@ -220,7 +220,7 @@ public: { if (lstrcmpW(findData.cFileName, L".") != 0 && lstrcmpW(findData.cFileName, L"..") != 0) { - children.push_back(CreateChild(&findData)); + children.push_back(createChild(&findData)); } } while (FindNextFileW(hFile, &findData)); FindClose(hFile); @@ -228,20 +228,20 @@ public: } private: - static DirectoryChild CreateChild(const WIN32_FIND_DATAW* child) + static DirectoryChild createChild(const WIN32_FIND_DATAW* child) { DirectoryChild result; - result.Name = String::toUtf8(child->cFileName); + result.name = String::toUtf8(child->cFileName); if (child->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { - result.Type = DirectoryChildType::directory; + result.type = DirectoryChildType::directory; } else { - result.Type = DirectoryChildType::file; - result.Size = (static_cast(child->nFileSizeHigh) << 32uLL) | static_cast(child->nFileSizeLow); - result.LastModified = (static_cast(child->ftLastWriteTime.dwHighDateTime) << 32uLL) + result.type = DirectoryChildType::file; + result.size = (static_cast(child->nFileSizeHigh) << 32uLL) | static_cast(child->nFileSizeLow); + result.lastModified = (static_cast(child->ftLastWriteTime.dwHighDateTime) << 32uLL) | static_cast(child->ftLastWriteTime.dwLowDateTime); } return result; @@ -260,7 +260,7 @@ public: { } - void GetDirectoryChildren(std::vector& children, const std::string& path) override + void getDirectoryChildren(std::vector& children, const std::string& path) override { const auto& assetList = Platform::GetAssetList(); std::string prefix = path.substr(Platform::kAndroidAssetPathPrefix.length()); @@ -283,8 +283,8 @@ public: if (seen.insert(dirName).second) { DirectoryChild child; - child.Name = dirName; - child.Type = DirectoryChildType::directory; + child.name = dirName; + child.type = DirectoryChildType::directory; children.push_back(child); } } @@ -294,9 +294,9 @@ public: if (seen.insert(fileName).second) { DirectoryChild child; - child.Name = fileName; - child.Type = DirectoryChildType::file; - child.Size = entry.size; + child.name = fileName; + child.type = DirectoryChildType::file; + child.size = entry.size; children.push_back(child); } @@ -317,10 +317,10 @@ public: { } - void GetDirectoryChildren(std::vector& children, const std::string& path) override + void getDirectoryChildren(std::vector& children, const std::string& path) override { struct dirent** namelist; - int32_t count = scandir(path.c_str(), &namelist, FilterFunc, alphasort); + int32_t count = scandir(path.c_str(), &namelist, filterFunc, alphasort); if (count > 0) { for (int32_t i = 0; i < count; i++) @@ -328,7 +328,7 @@ public: const struct dirent* node = namelist[i]; if (!String::equals(node->d_name, ".") && !String::equals(node->d_name, "..")) { - children.push_back(CreateChild(path.c_str(), node)); + children.push_back(createChild(path.c_str(), node)); } free(namelist[i]); } @@ -337,15 +337,15 @@ public: } private: - static int32_t FilterFunc(const struct dirent* d) + static int32_t filterFunc(const struct dirent* d) { return 1; } - static DirectoryChild CreateChild(const utf8* directory, const struct dirent* node) + static DirectoryChild createChild(const utf8* directory, const struct dirent* node) { DirectoryChild result; - result.Name = std::string(node->d_name); + result.name = std::string(node->d_name); #ifdef __HAIKU__ struct stat stbuf; stat(node->d_name, &stbuf); @@ -354,11 +354,11 @@ private: if (node->d_type == DT_DIR) #endif { - result.Type = DirectoryChildType::directory; + result.type = DirectoryChildType::directory; } else { - result.Type = DirectoryChildType::file; + result.type = DirectoryChildType::file; // Get the full path of the file auto path = Path::Combine(directory, node->d_name); @@ -367,12 +367,12 @@ private: int32_t statRes = stat(path.c_str(), &statInfo); if (statRes != -1) { - result.Size = statInfo.st_size; - result.LastModified = statInfo.st_mtime; + result.size = statInfo.st_size; + result.lastModified = statInfo.st_mtime; if (S_ISDIR(statInfo.st_mode)) { - result.Type = DirectoryChildType::directory; + result.type = DirectoryChildType::directory; } } } @@ -382,7 +382,7 @@ private: #endif // defined(__unix__) || defined(__HAIKU__) || (defined(__APPLE__) && defined(__MACH__)) -std::unique_ptr Path::ScanDirectory(const std::string& pattern, bool recurse) +std::unique_ptr Path::scanDirectory(const std::string& pattern, bool recurse) { #ifdef __ANDROID__ if (String::startsWith(pattern, Platform::kAndroidAssetPathPrefix)) @@ -397,43 +397,43 @@ std::unique_ptr Path::ScanDirectory(const std::string& pattern, bo #endif } -void Path::QueryDirectory(QueryDirectoryResult* result, const std::string& pattern) +void Path::queryDirectory(QueryDirectoryResult* result, const std::string& pattern) { - auto scanner = ScanDirectory(pattern, true); - while (scanner->Next()) + auto scanner = scanDirectory(pattern, true); + while (scanner->next()) { - const FileScanner::FileInfo& fileInfo = scanner->GetFileInfo(); - const u8string& path = scanner->GetPath(); + const FileScanner::FileInfo& fileInfo = scanner->getFileInfo(); + const u8string& path = scanner->getPath(); - result->TotalFiles++; - result->TotalFileSize += fileInfo.Size; - result->FileDateModifiedChecksum ^= static_cast(fileInfo.LastModified >> 32) - ^ static_cast(fileInfo.LastModified & 0xFFFFFFFF); - result->FileDateModifiedChecksum = Numerics::ror32(result->FileDateModifiedChecksum, 5); - result->PathChecksum += GetPathChecksum(path); + result->totalFiles++; + result->totalFileSize += fileInfo.size; + result->fileDateModifiedChecksum ^= static_cast(fileInfo.lastModified >> 32) + ^ static_cast(fileInfo.lastModified & 0xFFFFFFFF); + result->fileDateModifiedChecksum = Numerics::ror32(result->fileDateModifiedChecksum, 5); + result->pathChecksum += getPathChecksum(path); } } -std::vector Path::GetDirectories(const std::string& path) +std::vector Path::getDirectories(const std::string& path) { - auto scanner = ScanDirectory(path, false); + auto scanner = scanDirectory(path, false); auto baseScanner = static_cast(scanner.get()); std::vector children; - baseScanner->GetDirectoryChildren(children, path); + baseScanner->getDirectoryChildren(children, path); std::vector subDirectories; for (const auto& c : children) { - if (c.Type == DirectoryChildType::directory) + if (c.type == DirectoryChildType::directory) { - subDirectories.push_back(c.Name); + subDirectories.push_back(c.name); } } return subDirectories; } -static uint32_t GetPathChecksum(u8string_view path) +static uint32_t getPathChecksum(u8string_view path) { uint32_t hash = 0xD8430DED; for (const utf8 ch : path) @@ -453,7 +453,7 @@ static uint32_t GetPathChecksum(u8string_view path) * specified. This will verify if a filename does indeed match the pattern we asked for. * @remarks Based on algorithm (http://xoomer.virgilio.it/acantato/dev/wildcard/wildmatch.html) */ -static bool MatchWildcard(const utf8* fileName, const utf8* pattern) +static bool matchWildcard(const utf8* fileName, const utf8* pattern) { while (*fileName != '\0') { @@ -476,7 +476,7 @@ static bool MatchWildcard(const utf8* fileName, const utf8* pattern) } while (*fileName != '\0') { - if (MatchWildcard(fileName++, pattern)) + if (matchWildcard(fileName++, pattern)) { return true; } diff --git a/src/openrct2/core/FileScanner.h b/src/openrct2/core/FileScanner.h index 783bdc5f09..f8f92543bb 100644 --- a/src/openrct2/core/FileScanner.h +++ b/src/openrct2/core/FileScanner.h @@ -19,9 +19,9 @@ namespace OpenRCT2::FileScanner { struct FileInfo { - u8string Name; - uint64_t Size; - uint64_t LastModified; + u8string name; + uint64_t size; + uint64_t lastModified; }; } // namespace OpenRCT2::FileScanner @@ -29,20 +29,20 @@ struct IFileScanner { virtual ~IFileScanner() = default; - virtual const OpenRCT2::FileScanner::FileInfo& GetFileInfo() const = 0; - virtual const u8string& GetPath() const = 0; - virtual u8string GetPathRelative() const = 0; + virtual const OpenRCT2::FileScanner::FileInfo& getFileInfo() const = 0; + virtual const u8string& getPath() const = 0; + virtual u8string getPathRelative() const = 0; - virtual void Reset() = 0; - virtual bool Next() = 0; + virtual void reset() = 0; + virtual bool next() = 0; }; struct QueryDirectoryResult { - uint32_t TotalFiles; - uint64_t TotalFileSize; - uint32_t FileDateModifiedChecksum; - uint32_t PathChecksum; + uint32_t totalFiles; + uint64_t totalFileSize; + uint32_t fileDateModifiedChecksum; + uint32_t pathChecksum; }; namespace OpenRCT2::Path @@ -54,14 +54,14 @@ namespace OpenRCT2::Path * @param recurse Whether to scan sub directories or not. * @returns A new FileScanner, this must be deleted when no longer needed. */ - [[nodiscard]] std::unique_ptr ScanDirectory(const std::string& pattern, bool recurse); + [[nodiscard]] std::unique_ptr scanDirectory(const std::string& pattern, bool recurse); /** * Scans a directory and all sub directories * @param result The query result to modify. * @param pattern The path followed by a semi-colon delimited list of wildcard patterns. */ - void QueryDirectory(QueryDirectoryResult* result, const std::string& pattern); + void queryDirectory(QueryDirectoryResult* result, const std::string& pattern); - [[nodiscard]] std::vector GetDirectories(const std::string& path); + [[nodiscard]] std::vector getDirectories(const std::string& path); } // namespace OpenRCT2::Path diff --git a/src/openrct2/object/ImageTable.cpp b/src/openrct2/object/ImageTable.cpp index 26d453d94f..7742d19dad 100644 --- a/src/openrct2/object/ImageTable.cpp +++ b/src/openrct2/object/ImageTable.cpp @@ -405,13 +405,13 @@ namespace OpenRCT2 { // Search recursively for any file with the target name (case insensitive) auto filter = Path::Combine(objectsPath, u8"*.dat;*.pob"); - auto scanner = Path::ScanDirectory(filter, true); - while (scanner->Next()) + auto scanner = Path::scanDirectory(filter, true); + while (scanner->next()) { - auto currentName = Path::GetFileName(scanner->GetPathRelative()); + auto currentName = Path::GetFileName(scanner->getPathRelative()); if (String::iequals(currentName, name) || String::iequals(currentName, altName)) { - objectPath = scanner->GetPath(); + objectPath = scanner->getPath(); break; } } diff --git a/src/openrct2/scenes/title/TitleSequence.cpp b/src/openrct2/scenes/title/TitleSequence.cpp index ef2a87874e..dccfb65a9d 100644 --- a/src/openrct2/scenes/title/TitleSequence.cpp +++ b/src/openrct2/scenes/title/TitleSequence.cpp @@ -299,10 +299,10 @@ namespace OpenRCT2::Title std::vector saves; auto pattern = Path::Combine(path, u8"*.sc6;*.sv6;*.park;*.sv4;*.sc4"); - auto scanner = Path::ScanDirectory(pattern, true); - while (scanner->Next()) + auto scanner = Path::scanDirectory(pattern, true); + while (scanner->next()) { - saves.push_back(scanner->GetPathRelative()); + saves.push_back(scanner->getPathRelative()); } return saves; } diff --git a/src/openrct2/scenes/title/TitleSequenceManager.cpp b/src/openrct2/scenes/title/TitleSequenceManager.cpp index 27cc49992c..34b5e06e51 100644 --- a/src/openrct2/scenes/title/TitleSequenceManager.cpp +++ b/src/openrct2/scenes/title/TitleSequenceManager.cpp @@ -202,10 +202,10 @@ namespace OpenRCT2::TitleSequenceManager static void Scan(const std::string& directory) { auto pattern = Path::Combine(directory, u8"script.txt;*.parkseq"); - auto fileScanner = Path::ScanDirectory(pattern, true); - while (fileScanner->Next()) + auto fileScanner = Path::scanDirectory(pattern, true); + while (fileScanner->next()) { - AddSequence(fileScanner->GetPath()); + AddSequence(fileScanner->getPath()); } } diff --git a/src/openrct2/scripting/ScriptEngine.cpp b/src/openrct2/scripting/ScriptEngine.cpp index 632fa1783b..943591cf01 100644 --- a/src/openrct2/scripting/ScriptEngine.cpp +++ b/src/openrct2/scripting/ScriptEngine.cpp @@ -842,10 +842,10 @@ std::vector ScriptEngine::GetPluginFiles() const if (Path::DirectoryExists(base)) { auto pattern = Path::Combine(base, u8"*.js"); - auto scanner = Path::ScanDirectory(pattern, true); - while (scanner->Next()) + auto scanner = Path::scanDirectory(pattern, true); + while (scanner->next()) { - auto path = std::string(scanner->GetPath()); + auto path = std::string(scanner->getPath()); if (ShouldLoadScript(path)) { pluginFiles.push_back(path); diff --git a/test/tests/ReplayTests.cpp b/test/tests/ReplayTests.cpp index 7e66d3f222..925bdb5e01 100644 --- a/test/tests/ReplayTests.cpp +++ b/test/tests/ReplayTests.cpp @@ -51,12 +51,12 @@ static std::vector GetReplayFiles() std::string replayPathPattern = Path::Combine(replayPath, u8"*.parkrep"); std::vector files; - auto scanner = Path::ScanDirectory(replayPathPattern, true); - while (scanner->Next()) + auto scanner = Path::scanDirectory(replayPathPattern, true); + while (scanner->next()) { ReplayTestData test; - test.name = sanitizeTestName(scanner->GetFileInfo().Name); - test.filePath = Path::GetAbsolute(scanner->GetPath()); + test.name = sanitizeTestName(scanner->getFileInfo().name); + test.filePath = Path::GetAbsolute(scanner->getPath()); res.push_back(std::move(test)); } return res; From 48242d86d65a5e8638c8cff7b5194d179a797784 Mon Sep 17 00:00:00 2001 From: Harry Hopkinson <63599884+Harry-Hopkinson@users.noreply.github.com> Date: Sun, 6 Sep 2026 12:40:01 +0200 Subject: [PATCH 009/142] Refactor PatrolArea.h members and constexpr code style (#27050) --- src/openrct2/entity/PatrolArea.cpp | 80 +++++++++---------- src/openrct2/entity/PatrolArea.h | 40 +++++----- src/openrct2/entity/Staff.cpp | 6 +- src/openrct2/park/ParkFile.cpp | 6 +- .../scripting/bindings/entity/ScStaff.cpp | 2 +- src/openrct2/world/Map.cpp | 6 +- 6 files changed, 70 insertions(+), 70 deletions(-) diff --git a/src/openrct2/entity/PatrolArea.cpp b/src/openrct2/entity/PatrolArea.cpp index 238ce1a096..d716898026 100644 --- a/src/openrct2/entity/PatrolArea.cpp +++ b/src/openrct2/entity/PatrolArea.cpp @@ -29,102 +29,102 @@ namespace OpenRCT2 return lhs.y < rhs.y; } - const PatrolArea::Cell* PatrolArea::GetCell(const TileCoordsXY& pos) const + const PatrolArea::Cell* PatrolArea::getCell(const TileCoordsXY& pos) const { - return const_cast(this)->GetCell(pos); + return const_cast(this)->getCell(pos); } - PatrolArea::Cell* PatrolArea::GetCell(const TileCoordsXY& pos) + PatrolArea::Cell* PatrolArea::getCell(const TileCoordsXY& pos) { - auto areaPos = TileCoordsXY(pos.x / Cell::Width, pos.y / Cell::Height); - if (areaPos.x < 0 || areaPos.x >= CellColumns || areaPos.y < 0 || areaPos.y >= CellRows) + auto areaPos = TileCoordsXY(pos.x / Cell::kWidth, pos.y / Cell::kHeight); + if (areaPos.x < 0 || areaPos.x >= kCellColumns || areaPos.y < 0 || areaPos.y >= kCellRows) return nullptr; - auto& area = Areas[(areaPos.y * CellColumns) + areaPos.x]; + auto& area = areas[(areaPos.y * kCellColumns) + areaPos.x]; return &area; } - bool PatrolArea::IsEmpty() const + bool PatrolArea::isEmpty() const { - return TileCount == 0; + return tileCount == 0; } - void PatrolArea::Clear() + void PatrolArea::clear() { - for (auto& area : Areas) + for (auto& area : areas) { - area.SortedTiles.clear(); + area.sortedTiles.clear(); } } - bool PatrolArea::Get(const TileCoordsXY& pos) const + bool PatrolArea::get(const TileCoordsXY& pos) const { - auto* area = GetCell(pos); + auto* area = getCell(pos); if (area == nullptr) return false; - auto it = Algorithm::binaryFind(area->SortedTiles.begin(), area->SortedTiles.end(), pos, CompareTileCoordsXY); - auto found = it != area->SortedTiles.end(); + auto it = Algorithm::binaryFind(area->sortedTiles.begin(), area->sortedTiles.end(), pos, CompareTileCoordsXY); + auto found = it != area->sortedTiles.end(); return found; } - bool PatrolArea::Get(const CoordsXY& pos) const + bool PatrolArea::get(const CoordsXY& pos) const { - return Get(TileCoordsXY(pos)); + return get(TileCoordsXY(pos)); } - void PatrolArea::Set(const TileCoordsXY& pos, bool value) + void PatrolArea::set(const TileCoordsXY& pos, bool value) { - auto* area = GetCell(pos); + auto* area = getCell(pos); if (area == nullptr) return; - auto it = std::lower_bound(area->SortedTiles.begin(), area->SortedTiles.end(), pos, CompareTileCoordsXY); - auto found = it != area->SortedTiles.end() && *it == pos; + auto it = std::lower_bound(area->sortedTiles.begin(), area->sortedTiles.end(), pos, CompareTileCoordsXY); + auto found = it != area->sortedTiles.end() && *it == pos; if (!found && value) { - area->SortedTiles.insert(it, pos); - TileCount++; + area->sortedTiles.insert(it, pos); + tileCount++; } else if (found && !value) { - area->SortedTiles.erase(it); - assert(TileCount != 0); - TileCount--; + area->sortedTiles.erase(it); + assert(tileCount != 0); + tileCount--; } } - void PatrolArea::Set(const CoordsXY& pos, bool value) + void PatrolArea::set(const CoordsXY& pos, bool value) { - Set(TileCoordsXY(pos), value); + set(TileCoordsXY(pos), value); } - void PatrolArea::Union(const PatrolArea& other) + void PatrolArea::unify(const PatrolArea& other) { - for (size_t i = 0; i < Areas.size(); i++) + for (size_t i = 0; i < areas.size(); i++) { - for (const auto& pos : other.Areas[i].SortedTiles) + for (const auto& pos : other.areas[i].sortedTiles) { - Set(pos, true); + set(pos, true); } } } - void PatrolArea::Union(const std::vector& other) + void PatrolArea::unify(const std::vector& other) { for (const auto& pos : other) { - Set(pos, true); + set(pos, true); } } - std::vector PatrolArea::ToVector() const + std::vector PatrolArea::toVector() const { std::vector result; - for (const auto& area : Areas) + for (const auto& area : areas) { - for (const auto& pos : area.SortedTiles) + for (const auto& pos : area.sortedTiles) { result.push_back(pos); } @@ -143,7 +143,7 @@ namespace OpenRCT2 { // Reset all of the merged data for the type. auto& mergedArea = _consolidatedPatrolArea[staffType]; - mergedArea.Clear(); + mergedArea.clear(); for (auto staff : EntityList()) { @@ -153,14 +153,14 @@ namespace OpenRCT2 if (staff->patrolInfo == nullptr) continue; - mergedArea.Union(*staff->patrolInfo); + mergedArea.unify(*staff->patrolInfo); } } } bool IsPatrolAreaSetForStaffType(StaffType type, const CoordsXY& coords) { - return _consolidatedPatrolArea[EnumValue(type)].Get(coords); + return _consolidatedPatrolArea[EnumValue(type)].get(coords); } std::variant GetPatrolAreaToRender() diff --git a/src/openrct2/entity/PatrolArea.h b/src/openrct2/entity/PatrolArea.h index efbd8c760a..d8404a9843 100644 --- a/src/openrct2/entity/PatrolArea.h +++ b/src/openrct2/entity/PatrolArea.h @@ -28,33 +28,33 @@ namespace OpenRCT2 private: struct Cell { - static constexpr auto Width = 64; - static constexpr auto Height = 64; - static constexpr auto NumTiles = Width * Height; + static constexpr auto kWidth = 64; + static constexpr auto kHeight = 64; + static constexpr auto kNumTiles = kWidth * kHeight; - std::vector SortedTiles; + std::vector sortedTiles; }; - static constexpr auto CellColumns = (kMaximumMapSizeTechnical + (Cell::Width - 1)) / Cell::Width; - static constexpr auto CellRows = (kMaximumMapSizeTechnical + (Cell::Height - 1)) / Cell::Height; - static constexpr auto NumCells = CellColumns * CellRows; + static constexpr auto kCellColumns = (kMaximumMapSizeTechnical + (Cell::kWidth - 1)) / Cell::kWidth; + static constexpr auto kCellRows = (kMaximumMapSizeTechnical + (Cell::kHeight - 1)) / Cell::kHeight; + static constexpr auto kNumCells = kCellColumns * kCellRows; - std::array Areas; - size_t TileCount{}; + std::array areas; + size_t tileCount{}; - const Cell* GetCell(const TileCoordsXY& pos) const; - Cell* GetCell(const TileCoordsXY& pos); + const Cell* getCell(const TileCoordsXY& pos) const; + Cell* getCell(const TileCoordsXY& pos); public: - bool IsEmpty() const; - void Clear(); - bool Get(const TileCoordsXY& pos) const; - bool Get(const CoordsXY& pos) const; - void Set(const TileCoordsXY& pos, bool value); - void Set(const CoordsXY& pos, bool value); - void Union(const PatrolArea& other); - void Union(const std::vector& other); - std::vector ToVector() const; + bool isEmpty() const; + void clear(); + bool get(const TileCoordsXY& pos) const; + bool get(const CoordsXY& pos) const; + void set(const TileCoordsXY& pos, bool value); + void set(const CoordsXY& pos, bool value); + void unify(const PatrolArea& other); + void unify(const std::vector& other); + std::vector toVector() const; }; void UpdateConsolidatedPatrolAreas(); diff --git a/src/openrct2/entity/Staff.cpp b/src/openrct2/entity/Staff.cpp index 65411d1931..94674d69a7 100644 --- a/src/openrct2/entity/Staff.cpp +++ b/src/openrct2/entity/Staff.cpp @@ -257,7 +257,7 @@ namespace OpenRCT2 { if (patrolInfo != nullptr) { - return patrolInfo->Get(coords); + return patrolInfo->get(coords); } return false; } @@ -276,7 +276,7 @@ namespace OpenRCT2 } } - patrolInfo->Set(coords, value); + patrolInfo->set(coords, value); } void Staff::setPatrolArea(const MapRange& range, bool value) @@ -298,7 +298,7 @@ namespace OpenRCT2 bool Staff::hasPatrolArea() const { - return patrolInfo == nullptr ? false : !patrolInfo->IsEmpty(); + return patrolInfo == nullptr ? false : !patrolInfo->isEmpty(); } /** diff --git a/src/openrct2/park/ParkFile.cpp b/src/openrct2/park/ParkFile.cpp index 8aed43f7cd..26b482211f 100644 --- a/src/openrct2/park/ParkFile.cpp +++ b/src/openrct2/park/ParkFile.cpp @@ -2482,7 +2482,7 @@ namespace OpenRCT2 std::vector patrolArea; if (cs.getMode() == OrcaStream::Mode::writing && entity.patrolInfo != nullptr) { - patrolArea = entity.patrolInfo->ToVector(); + patrolArea = entity.patrolInfo->toVector(); } cs.readWriteVector(patrolArea, [&cs](TileCoordsXY& value) { cs.readWrite(value); }); if (cs.getMode() == OrcaStream::Mode::reading) @@ -2496,8 +2496,8 @@ namespace OpenRCT2 if (entity.patrolInfo == nullptr) entity.patrolInfo = new PatrolArea(); else - entity.patrolInfo->Clear(); - entity.patrolInfo->Union(patrolArea); + entity.patrolInfo->clear(); + entity.patrolInfo->unify(patrolArea); } } diff --git a/src/openrct2/scripting/bindings/entity/ScStaff.cpp b/src/openrct2/scripting/bindings/entity/ScStaff.cpp index dad7587357..6ea476533d 100644 --- a/src/openrct2/scripting/bindings/entity/ScStaff.cpp +++ b/src/openrct2/scripting/bindings/entity/ScStaff.cpp @@ -647,7 +647,7 @@ namespace OpenRCT2::Scripting auto staff = GetStaff(thisVal); if (staff != nullptr && staff->patrolInfo != nullptr) { - auto tiles = staff->patrolInfo->ToVector(); + auto tiles = staff->patrolInfo->toVector(); auto index = 0; for (const auto& tile : tiles) diff --git a/src/openrct2/world/Map.cpp b/src/openrct2/world/Map.cpp index 91118df710..7ce6919d6c 100644 --- a/src/openrct2/world/Map.cpp +++ b/src/openrct2/world/Map.cpp @@ -2265,11 +2265,11 @@ namespace OpenRCT2 auto patrol = staff->patrolInfo; if (patrol != nullptr) { - auto positions = patrol->ToVector(); + auto positions = patrol->toVector(); for (auto& p : positions) shiftIfNotNull(p, amount); - patrol->Clear(); - patrol->Union(positions); + patrol->clear(); + patrol->unify(positions); } } } From e70f51a68ead08d4722b4827a2b7ebfe133cc8d9 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 6 Sep 2026 14:03:24 +0200 Subject: [PATCH 010/142] Add changelog entry for #27052 [ci skip] --- distribution/changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 3640a21f65..a799b278cf 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,5 +1,6 @@ 0.5.6 (in development) ------------------------------------------------------------------------ +- Fix: [#27052] Unnamed rides in RCT2 base and Wacky Worlds scenarios have hardcoded English names. 0.5.5 (2026-09-06) ------------------------------------------------------------------------ From 1cee3171888071cf4283a5579007b644b606ae1b Mon Sep 17 00:00:00 2001 From: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com> Date: Sun, 6 Sep 2026 17:13:08 +0200 Subject: [PATCH 011/142] Fix #24457: Yellow is always rendered as third remap in Ride window (#27063) --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/Ride.cpp | 41 +++++++++++++++++++------------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index a799b278cf..0de2cc3969 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,5 +1,6 @@ 0.5.6 (in development) ------------------------------------------------------------------------ +- Fix: [#24457] Yellow is always rendered as third remap in Ride window. - Fix: [#27052] Unnamed rides in RCT2 base and Wacky Worlds scenarios have hardcoded English names. 0.5.5 (2026-09-06) diff --git a/src/openrct2-ui/windows/Ride.cpp b/src/openrct2-ui/windows/Ride.cpp index a4799381c8..d45405214e 100644 --- a/src/openrct2-ui/windows/Ride.cpp +++ b/src/openrct2-ui/windows/Ride.cpp @@ -1289,6 +1289,24 @@ namespace OpenRCT2::Ui::Windows } } + static ImageId applyPreviewVehicleColour( + ImageIndex imageIndex, const CarEntry& carEntry, const VehicleColour& vehicleColour) + { + imageIndex &= carEntry.tabRotationMask; + imageIndex *= carEntry.baseNumFrames; + imageIndex += carEntry.baseImageId; + + auto imageId = ImageId(imageIndex); + if (carEntry.flags.has(CarEntryFlag::enableBodyColour)) + imageId = imageId.WithPrimary(vehicleColour.Body); + if (carEntry.flags.has(CarEntryFlag::enableTrimColour)) + imageId = imageId.WithSecondary(vehicleColour.Trim); + if (carEntry.flags.has(CarEntryFlag::enableTertiaryColour)) + imageId = imageId.WithTertiary(vehicleColour.Tertiary); + + return imageId; + } + void DrawTabVehicle(RenderTarget& rt) { WidgetIndex widgetIndex = WIDX_TAB_1 + static_cast(WINDOW_RIDE_PAGE_VEHICLE); @@ -1344,10 +1362,8 @@ namespace OpenRCT2::Ui::Windows if (page == WINDOW_RIDE_PAGE_VEHICLE) imageIndex += currentFrame; imageIndex = carEntry.spriteByYaw(imageIndex / 2, SpriteGroupType::slopeFlat); - imageIndex &= carEntry.tabRotationMask; - imageIndex *= carEntry.baseNumFrames; - imageIndex += carEntry.baseImageId; - auto imageId = ImageId(imageIndex, vehicleColour.Body, vehicleColour.Trim, vehicleColour.Tertiary); + + auto imageId = applyPreviewVehicleColour(imageIndex, carEntry, vehicleColour); GfxDrawSprite(clipRT, imageId, spriteCoords); } } @@ -2916,8 +2932,7 @@ namespace OpenRCT2::Ui::Windows } static ImageId getVehiclePreviewImageId( - const Ride& ride, const RideObjectEntry& rideEntry, const CarEntry& carEntry, int32_t trainIndex, int32_t carIndex, - bool isReversed) + const Ride& ride, const CarEntry& carEntry, int32_t trainIndex, int32_t carIndex, bool isReversed) { int32_t vehicleColourIndex = 0; @@ -2947,11 +2962,7 @@ namespace OpenRCT2::Ui::Windows (imageIndex + (baseRotation / 2)) & (baseRotation - 1), SpriteGroupType::slopeFlat); } - imageIndex &= carEntry.tabRotationMask; - imageIndex *= carEntry.baseNumFrames; - imageIndex += carEntry.baseImageId; - - return ImageId(imageIndex, vehicleColour.Body, vehicleColour.Trim, vehicleColour.Tertiary); + return applyPreviewVehicleColour(imageIndex, carEntry, vehicleColour); } struct VehicleDrawInfo @@ -2980,7 +2991,7 @@ namespace OpenRCT2::Ui::Windows x += dx; y -= dy; - auto imageId = getVehiclePreviewImageId(ride, rideEntry, carEntry, trainIndex, carIndex, isReversed); + auto imageId = getVehiclePreviewImageId(ride, carEntry, trainIndex, carIndex, isReversed); out[count++] = VehicleDrawInfo{ .x = static_cast(x), .y = static_cast(y), @@ -5271,10 +5282,8 @@ namespace OpenRCT2::Ui::Windows // Draw the coloured spinning vehicle // currentFrame represents a SpritePrecision of 64 ImageIndex imageIndex = carEntry.spriteByYaw(currentFrame / 2, SpriteGroupType::slopeFlat); - imageIndex &= carEntry.tabRotationMask; - imageIndex *= carEntry.baseNumFrames; - imageIndex += carEntry.baseImageId; - auto imageId = ImageId(imageIndex, vehicleColour.Body, vehicleColour.Trim, vehicleColour.Tertiary); + + auto imageId = applyPreviewVehicleColour(imageIndex, carEntry, vehicleColour); GfxDrawSprite(rt, imageId, screenCoords); } From 97b91941eba665b67185c7b8f5f4dff2ab03410d Mon Sep 17 00:00:00 2001 From: Harry Hopkinson <63599884+Harry-Hopkinson@users.noreply.github.com> Date: Sun, 6 Sep 2026 17:43:24 +0200 Subject: [PATCH 012/142] Rename RideStation struct members in Ride.h (#27072) --- .../interface/ViewportInteraction.cpp | 2 +- src/openrct2-ui/ride/Construction.cpp | 4 +- src/openrct2-ui/windows/Ride.cpp | 18 +-- .../actions/cheats/CheatSetAction.cpp | 4 +- .../actions/ride/MazePlaceTrackAction.cpp | 4 +- .../actions/ride/MazeSetTrackAction.cpp | 4 +- .../actions/ride/RideCreateAction.cpp | 6 +- .../ride/RideEntranceExitPlaceAction.cpp | 16 +-- .../ride/RideEntranceExitRemoveAction.cpp | 4 +- src/openrct2/entity/Guest.cpp | 80 +++++------ src/openrct2/entity/Peep.cpp | 12 +- src/openrct2/entity/Staff.cpp | 32 ++--- src/openrct2/park/ParkFile.cpp | 24 ++-- src/openrct2/peep/GuestPathfinding.cpp | 10 +- src/openrct2/rct1/S4Importer.cpp | 40 +++--- src/openrct2/rct12/ScenarioPatcher.cpp | 8 +- src/openrct2/rct2/S6Importer.cpp | 40 +++--- src/openrct2/ride/Ride.cpp | 124 +++++++++--------- src/openrct2/ride/Ride.h | 30 ++--- src/openrct2/ride/RideConstruction.cpp | 38 +++--- src/openrct2/ride/RideRatings.cpp | 16 +-- src/openrct2/ride/Station.cpp | 68 +++++----- src/openrct2/ride/Track.cpp | 30 ++--- src/openrct2/ride/TrackDesign.cpp | 10 +- src/openrct2/ride/TrackPaint.cpp | 2 +- src/openrct2/ride/Vehicle.BoatHire.cpp | 4 +- src/openrct2/ride/Vehicle.MiniGolf.cpp | 4 +- src/openrct2/ride/Vehicle.Station.cpp | 36 ++--- src/openrct2/ride/Vehicle.cpp | 34 ++--- .../scripting/bindings/ride/ScRideStation.cpp | 20 +-- src/openrct2/world/Footpath.cpp | 6 +- src/openrct2/world/Map.cpp | 6 +- src/openrct2/world/Park.cpp | 2 +- src/openrct2/world/TileInspector.cpp | 20 +-- test/tests/Pathfinding.cpp | 4 +- 35 files changed, 381 insertions(+), 381 deletions(-) diff --git a/src/openrct2-ui/interface/ViewportInteraction.cpp b/src/openrct2-ui/interface/ViewportInteraction.cpp index 5860acd3b2..ab613a846f 100644 --- a/src/openrct2-ui/interface/ViewportInteraction.cpp +++ b/src/openrct2-ui/interface/ViewportInteraction.cpp @@ -395,7 +395,7 @@ namespace OpenRCT2::Ui stationIndex = tileElement->asTrack()->getStationIndex().ToUnderlying(); for (int32_t i = stationIndex; i >= 0; i--) - if (ride->getStations()[i].Start.IsNull()) + if (ride->getStations()[i].start.IsNull()) stationIndex--; stationIndex++; ft.Add(stationIndex); diff --git a/src/openrct2-ui/ride/Construction.cpp b/src/openrct2-ui/ride/Construction.cpp index e21c500f27..4a9557a3ac 100644 --- a/src/openrct2-ui/ride/Construction.cpp +++ b/src/openrct2-ui/ride/Construction.cpp @@ -405,7 +405,7 @@ namespace OpenRCT2 return entranceExitCoords; } - auto stationBaseZ = ride->getStation(gRideEntranceExitPlaceStationIndex).GetBaseZ(); + auto stationBaseZ = ride->getStation(gRideEntranceExitPlaceStationIndex).getBaseZ(); auto coordsAtHeight = ScreenGetMapXYWithZ(screenCoords, stationBaseZ); if (!coordsAtHeight.has_value()) @@ -422,7 +422,7 @@ namespace OpenRCT2 return entranceExitCoords; } - auto stationStart = ride->getStation(gRideEntranceExitPlaceStationIndex).Start; + auto stationStart = ride->getStation(gRideEntranceExitPlaceStationIndex).start; if (stationStart.IsNull()) { entranceExitCoords.SetNull(); diff --git a/src/openrct2-ui/windows/Ride.cpp b/src/openrct2-ui/windows/Ride.cpp index d45405214e..98001fd4f1 100644 --- a/src/openrct2-ui/windows/Ride.cpp +++ b/src/openrct2-ui/windows/Ride.cpp @@ -1527,7 +1527,7 @@ namespace OpenRCT2::Ui::Windows for (const auto& station : ride->getStations()) { - if (!station.Start.IsNull() && viewSelectionIndex-- == 0) + if (!station.start.IsNull() && viewSelectionIndex-- == 0) { const auto stationIndex = ride->getStationIndex(&station); return std::make_optional(stationIndex); @@ -1575,7 +1575,7 @@ namespace OpenRCT2::Ui::Windows auto stationIndex = GetStationIndexFromViewSelection(); if (stationIndex) { - const auto location = ride->getStation(*stationIndex).GetStart(); + const auto location = ride->getStation(*stationIndex).getStart(); newFocus = Focus(location); } } @@ -2562,21 +2562,21 @@ namespace OpenRCT2::Ui::Windows // Entrance / exit if (ride->status == RideStatus::closed) { - if (station.Entrance.IsNull()) + if (station.entrance.IsNull()) stringId = STR_NO_ENTRANCE; - else if (station.Exit.IsNull()) + else if (station.exit.IsNull()) stringId = STR_NO_EXIT; } else { - if (station.Entrance.IsNull()) + if (station.entrance.IsNull()) stringId = STR_EXIT_ONLY; } // Queue length if (stringId == kStringIdEmpty) { stringId = STR_QUEUE_EMPTY; - uint16_t queueLength = ride->getStation(*stationIndex).QueueLength; + uint16_t queueLength = ride->getStation(*stationIndex).queueLength; if (queueLength == 1) stringId = STR_QUEUE_ONE_PERSON; else if (queueLength > 1) @@ -6015,7 +6015,7 @@ namespace OpenRCT2::Ui::Windows for (int32_t i = 0; i < std::min(ride->numStations, 4); i++) { StationIndex stationIndex = StationIndex::FromUnderlying(numTimes); - auto time = ride->getStation(stationIndex).SegmentTime; + auto time = ride->getStation(stationIndex).segmentTime; if (time != 0) { ft.Add(STR_RIDE_TIME_ENTRY_WITH_SEPARATOR); @@ -6054,7 +6054,7 @@ namespace OpenRCT2::Ui::Windows for (int32_t i = 0; i < std::min(ride->numStations, 4); i++) { StationIndex stationIndex = StationIndex::FromUnderlying(i); - auto length = ride->getStation(stationIndex).SegmentLength; + auto length = ride->getStation(stationIndex).segmentLength; if (length != 0) { length >>= 16; @@ -7287,7 +7287,7 @@ namespace OpenRCT2::Ui::Windows // View for (int32_t i = stationIndex.ToUnderlying(); i >= 0; i--) { - if (ride.getStations()[i].Start.IsNull()) + if (ride.getStations()[i].start.IsNull()) { stationIndex = StationIndex::FromUnderlying(stationIndex.ToUnderlying() - 1); } diff --git a/src/openrct2/actions/cheats/CheatSetAction.cpp b/src/openrct2/actions/cheats/CheatSetAction.cpp index 471939086e..61a766e1c0 100644 --- a/src/openrct2/actions/cheats/CheatSetAction.cpp +++ b/src/openrct2/actions/cheats/CheatSetAction.cpp @@ -717,8 +717,8 @@ namespace OpenRCT2::GameActions for (auto& station : ride.getStations()) { - station.QueueLength = 0; - station.LastPeepInQueue = EntityId::GetNull(); + station.queueLength = 0; + station.lastPeepInQueue = EntityId::GetNull(); } for (auto trainIndex : ride.vehicles) diff --git a/src/openrct2/actions/ride/MazePlaceTrackAction.cpp b/src/openrct2/actions/ride/MazePlaceTrackAction.cpp index 2bbeae61b6..a423272d39 100644 --- a/src/openrct2/actions/ride/MazePlaceTrackAction.cpp +++ b/src/openrct2/actions/ride/MazePlaceTrackAction.cpp @@ -198,8 +198,8 @@ namespace OpenRCT2::GameActions MapInvalidateTileFull(startLoc); ride->mazeTiles++; - ride->getStation().SetBaseZ(trackElement->getBaseZ()); - ride->getStation().Start = { 0, 0 }; + ride->getStation().setBaseZ(trackElement->getBaseZ()); + ride->getStation().start = { 0, 0 }; if (ride->mazeTiles == 1) { diff --git a/src/openrct2/actions/ride/MazeSetTrackAction.cpp b/src/openrct2/actions/ride/MazeSetTrackAction.cpp index 19349e88f1..d672ef1327 100644 --- a/src/openrct2/actions/ride/MazeSetTrackAction.cpp +++ b/src/openrct2/actions/ride/MazeSetTrackAction.cpp @@ -247,8 +247,8 @@ namespace OpenRCT2::GameActions MapInvalidateTileFull(startLoc); ride->mazeTiles++; - ride->getStation().SetBaseZ(tileElement->getBaseZ()); - ride->getStation().Start = { 0, 0 }; + ride->getStation().setBaseZ(tileElement->getBaseZ()); + ride->getStation().start = { 0, 0 }; if (_initialPlacement && !flags.has(CommandFlag::ghost)) { diff --git a/src/openrct2/actions/ride/RideCreateAction.cpp b/src/openrct2/actions/ride/RideCreateAction.cpp index 3c397d2413..fbbc0f0d58 100644 --- a/src/openrct2/actions/ride/RideCreateAction.cpp +++ b/src/openrct2/actions/ride/RideCreateAction.cpp @@ -150,9 +150,9 @@ namespace OpenRCT2::GameActions // Default initialize all stations. RideStation station{}; - station.Start.SetNull(); - station.Entrance.SetNull(); - station.Exit.SetNull(); + station.start.SetNull(); + station.entrance.SetNull(); + station.exit.SetNull(); std::ranges::fill(ride->getStations(), station); ride->status = RideStatus::closed; diff --git a/src/openrct2/actions/ride/RideEntranceExitPlaceAction.cpp b/src/openrct2/actions/ride/RideEntranceExitPlaceAction.cpp index 8f3cbd3ea2..b5cb08b84e 100644 --- a/src/openrct2/actions/ride/RideEntranceExitPlaceAction.cpp +++ b/src/openrct2/actions/ride/RideEntranceExitPlaceAction.cpp @@ -88,7 +88,7 @@ namespace OpenRCT2::GameActions } const auto& station = ride->getStation(_stationNum); - const auto location = _isExit ? station.Exit : station.Entrance; + const auto location = _isExit ? station.exit : station.entrance; if (!location.IsNull()) { @@ -103,7 +103,7 @@ namespace OpenRCT2::GameActions } } - auto z = ride->getStation(_stationNum).GetBaseZ(); + auto z = ride->getStation(_stationNum).getBaseZ(); if (!LocationValid(_loc)) { return Result(Status::invalidParameters, errorTitle, STR_OFF_EDGE_OF_MAP); @@ -164,7 +164,7 @@ namespace OpenRCT2::GameActions } auto& station = ride->getStation(_stationNum); - const auto location = _isExit ? station.Exit : station.Entrance; + const auto location = _isExit ? station.exit : station.entrance; if (!location.IsNull()) { auto rideEntranceExitRemove = RideEntranceExitRemoveAction(location.ToCoordsXY(), _rideIndex, _stationNum, _isExit); @@ -178,7 +178,7 @@ namespace OpenRCT2::GameActions } } - auto z = station.GetBaseZ(); + auto z = station.getBaseZ(); if (!GetFlags().has(CommandFlag::allowDuringPaused) && !GetFlags().has(CommandFlag::ghost) && !gameState.cheats.disableClearanceChecks) { @@ -212,13 +212,13 @@ namespace OpenRCT2::GameActions if (_isExit) { - station.Exit = TileCoordsXYZD(CoordsXYZD{ _loc, z, entranceElement->getDirection() }); + station.exit = TileCoordsXYZD(CoordsXYZD{ _loc, z, entranceElement->getDirection() }); } else { - station.Entrance = TileCoordsXYZD(CoordsXYZD{ _loc, z, entranceElement->getDirection() }); - station.LastPeepInQueue = EntityId::GetNull(); - station.QueueLength = 0; + station.entrance = TileCoordsXYZD(CoordsXYZD{ _loc, z, entranceElement->getDirection() }); + station.lastPeepInQueue = EntityId::GetNull(); + station.queueLength = 0; MapAnimations::MarkTileForInvalidation(TileCoordsXY(_loc)); } diff --git a/src/openrct2/actions/ride/RideEntranceExitRemoveAction.cpp b/src/openrct2/actions/ride/RideEntranceExitRemoveAction.cpp index 175eea46ab..1ac38850b7 100644 --- a/src/openrct2/actions/ride/RideEntranceExitRemoveAction.cpp +++ b/src/openrct2/actions/ride/RideEntranceExitRemoveAction.cpp @@ -156,11 +156,11 @@ namespace OpenRCT2::GameActions auto& station = ride->getStation(_stationNum); if (_isExit) { - station.Exit.SetNull(); + station.exit.SetNull(); } else { - station.Entrance.SetNull(); + station.entrance.SetNull(); } FootpathUpdateQueueChains(); diff --git a/src/openrct2/entity/Guest.cpp b/src/openrct2/entity/Guest.cpp index 1653bfea02..320078c64f 100644 --- a/src/openrct2/entity/Guest.cpp +++ b/src/openrct2/entity/Guest.cpp @@ -1912,7 +1912,7 @@ namespace OpenRCT2 // Rides without queues can only have one peep waiting at a time. if (!atQueue) { - if (!station.LastPeepInQueue.IsNull()) + if (!station.lastPeepInQueue.IsNull()) { GuestTriedToEnterFullQueue(*this, ride); return false; @@ -1921,7 +1921,7 @@ namespace OpenRCT2 else { // Check if there's room in the queue for the peep to enter. - Guest* lastPeepInQueue = getGameState().entities.getEntity(station.LastPeepInQueue); + Guest* lastPeepInQueue = getGameState().entities.getEntity(station.lastPeepInQueue); if (lastPeepInQueue != nullptr && (abs(lastPeepInQueue->z - z) <= 6)) { int32_t dx = abs(lastPeepInQueue->x - x); @@ -2452,13 +2452,13 @@ namespace OpenRCT2 void Guest::goToRideEntrance(const Ride& ride) { const auto& station = ride.getStation(currentRideStation); - if (station.Entrance.IsNull()) + if (station.entrance.IsNull()) { removeFromQueue(); return; } - auto location = station.Entrance.ToCoordsXYZD().ToTileCentre(); + auto location = station.entrance.ToCoordsXYZD().ToTileCentre(); int16_t x_shift = DirectionOffsets[location.direction].x; int16_t y_shift = DirectionOffsets[location.direction].y; @@ -2516,7 +2516,7 @@ namespace OpenRCT2 } else { - chosen_train = ride.getStation(guest.currentRideStation).TrainAtStation; + chosen_train = ride.getStation(guest.currentRideStation).trainAtStation; } if (chosen_train >= Limits::kMaxTrainsPerRide) { @@ -3173,7 +3173,7 @@ namespace OpenRCT2 auto ride = GetRide(potentialRides[i]); if (ride != nullptr) { - auto rideLocation = ride->getStation().Start; + auto rideLocation = ride->getStation().start; int32_t distance = abs(rideLocation.x - guest.x) + abs(rideLocation.y - guest.y); if (distance < closestRideDistance) { @@ -3429,7 +3429,7 @@ namespace OpenRCT2 if (xy_distance < 16) { const auto& station = ride->getStation(currentRideStation); - auto entrance = station.Entrance.ToCoordsXYZ(); + auto entrance = station.entrance.ToCoordsXYZ(); actionZ = entrance.z + 2; } moveTo({ loc.value(), actionZ }); @@ -3518,7 +3518,7 @@ namespace OpenRCT2 void PeepUpdateRideLeaveEntranceSpiralSlide(Guest& guest, Ride& ride, CoordsXYZD& entrance_loc) { - entrance_loc = { ride.getStation(guest.currentRideStation).GetStart(), entrance_loc.direction }; + entrance_loc = { ride.getStation(guest.currentRideStation).getStart(), entrance_loc.direction }; TileElement* tile_element = RideGetStationStartTrackElement(ride, guest.currentRideStation); @@ -3585,11 +3585,11 @@ namespace OpenRCT2 void Guest::updateRideLeaveEntranceWaypoints(const Ride& ride) { const auto& station = ride.getStation(currentRideStation); - if (station.Entrance.IsNull()) + if (station.entrance.IsNull()) { return; } - uint8_t direction_entrance = station.Entrance.direction; + uint8_t direction_entrance = station.entrance.direction; TileElement* tile_element = RideGetStationStartTrackElement(ride, currentRideStation); @@ -3653,7 +3653,7 @@ namespace OpenRCT2 rideSubState = PeepRideSubState::freeVehicleCheck; } - actionZ = ride->getStation(currentRideStation).GetBaseZ(); + actionZ = ride->getStation(currentRideStation).getBaseZ(); distanceThreshold += 4; if (xy_distance < distanceThreshold) @@ -3674,7 +3674,7 @@ namespace OpenRCT2 if (ride->getRideTypeDescriptor().flags.has(RtdFlag::noVehicles)) { const auto& station = ride->getStation(currentRideStation); - auto entranceLocation = station.Entrance.ToCoordsXYZD(); + auto entranceLocation = station.entrance.ToCoordsXYZD(); if (entranceLocation.IsNull()) { return; @@ -3764,7 +3764,7 @@ namespace OpenRCT2 guest.moveTo({ x, y, z }); Guard::Assert(guest.currentRideStation.ToUnderlying() < Limits::kMaxStationsPerRide); - auto exit = ride.getStation(guest.currentRideStation).Exit; + auto exit = ride.getStation(guest.currentRideStation).exit; x = exit.x; y = exit.y; x *= 32; @@ -3836,9 +3836,9 @@ namespace OpenRCT2 queueTime /= 2; auto& station = ride.getStation(currentRideStation); - if (queueTime != station.QueueTime) + if (queueTime != station.queueTime) { - station.QueueTime = queueTime; + station.queueTime = queueTime; auto* windowMgr = Ui::GetWindowManager(); windowMgr->InvalidateByNumber(WindowClass::ride, currentRide.ToUnderlying()); } @@ -3876,7 +3876,7 @@ namespace OpenRCT2 */ static void PeepUpdateRideNoFreeVehicleRejoinQueue(Guest& guest, Ride& ride) { - TileCoordsXYZD entranceLocation = ride.getStation(guest.currentRideStation).Entrance; + TileCoordsXYZD entranceLocation = ride.getStation(guest.currentRideStation).entrance; int32_t x = entranceLocation.x * 32; int32_t y = entranceLocation.y * 32; @@ -4139,9 +4139,9 @@ namespace OpenRCT2 if (!carEntry->flags.has(CarEntryFlag::loadingWaypoints)) { - TileCoordsXYZD exitLocation = station.Exit; + TileCoordsXYZD exitLocation = station.exit; CoordsXYZD platformLocation; - platformLocation.z = station.GetBaseZ(); + platformLocation.z = station.getBaseZ(); platformLocation.direction = DirectionReverse(exitLocation.direction); @@ -4249,14 +4249,14 @@ namespace OpenRCT2 carEntry->guestLoadingPositions.size()); } - platformLocation.z = station.GetBaseZ(); + platformLocation.z = station.getBaseZ(); PeepGoToRideExit( *this, *ride, platformLocation.x, platformLocation.y, platformLocation.z, platformLocation.direction); return; } - auto exitLocation = station.Exit.ToCoordsXYZD(); + auto exitLocation = station.exit.ToCoordsXYZD(); if (exitLocation.IsNull()) { return; @@ -4317,7 +4317,7 @@ namespace OpenRCT2 if (ride == nullptr || currentRideStation.ToUnderlying() >= std::size(ride->getStations())) return; - auto exit = ride->getStation(currentRideStation).Exit; + auto exit = ride->getStation(currentRideStation).exit; auto newDestination = exit.ToCoordsXY().ToTileCentre(); auto [xShift, yShift] = [exit]() { @@ -4384,7 +4384,7 @@ namespace OpenRCT2 { if (xy_distance >= 16) { - int16_t actionZ = ride->getStation(currentRideStation).GetBaseZ(); + int16_t actionZ = ride->getStation(currentRideStation).getBaseZ(); actionZ += ride->getRideTypeDescriptor().Heights.PlatformHeight; moveTo({ loc.value(), actionZ }); @@ -4409,7 +4409,7 @@ namespace OpenRCT2 CoordsXY GetGuestWaypointLocationDefault(const Vehicle& vehicle, const Ride& ride, const StationIndex& CurrentRideStation) { - return ride.getStation(CurrentRideStation).Start.ToTileCentre(); + return ride.getStation(CurrentRideStation).start.ToTileCentre(); } CoordsXY GetGuestWaypointLocationEnterprise( @@ -4478,7 +4478,7 @@ namespace OpenRCT2 { auto ride = GetRide(guest.currentRide); // Motion simulators have steps. This moves the peeps up the steps. - int16_t actionZ = ride->getStation(guest.currentRideStation).GetBaseZ() + 2; + int16_t actionZ = ride->getStation(guest.currentRideStation).getBaseZ() + 2; uint8_t waypoint = guest.var37 & 3; if (waypoint == 2) @@ -4518,7 +4518,7 @@ namespace OpenRCT2 if (ride->getRideTypeDescriptor().specialType == RtdSpecialType::motionSimulator) { - actionZ = ride->getStation(currentRideStation).GetBaseZ() + 2; + actionZ = ride->getStation(currentRideStation).getBaseZ() + 2; if ((var37 & 3) == 1) { @@ -4577,7 +4577,7 @@ namespace OpenRCT2 var37 |= 3; - auto targetLoc = ride->getStation(currentRideStation).Exit.ToCoordsXYZD().ToTileCentre(); + auto targetLoc = ride->getStation(currentRideStation).exit.ToCoordsXYZD().ToTileCentre(); uint8_t exit_direction = DirectionReverse(targetLoc.direction); int16_t x_shift = DirectionOffsets[exit_direction].x; @@ -4653,7 +4653,7 @@ namespace OpenRCT2 if (lastRide) { - auto exit = ride->getStation(currentRideStation).Exit; + auto exit = ride->getStation(currentRideStation).exit; waypoint = 1; auto directionTemp = exit.direction; if (exit.direction == kInvalidDirection) @@ -4661,7 +4661,7 @@ namespace OpenRCT2 directionTemp = 0; } var37 = (directionTemp * 4) | (var37 & 0x30) | waypoint; - CoordsXY targetLoc = ride->getStation(currentRideStation).Start; + CoordsXY targetLoc = ride->getStation(currentRideStation).start; assert(rtd.specialType == RtdSpecialType::spiralSlide); targetLoc += kSpiralSlideWalkingPath[var37]; @@ -4676,7 +4676,7 @@ namespace OpenRCT2 // Actually increment the real peep waypoint var37++; - CoordsXY targetLoc = ride->getStation(currentRideStation).Start; + CoordsXY targetLoc = ride->getStation(currentRideStation).start; assert(rtd.specialType == RtdSpecialType::spiralSlide); targetLoc += kSpiralSlideWalkingPath[var37]; @@ -4738,7 +4738,7 @@ namespace OpenRCT2 return; case PeepSpiralSlideSubState::finishedSliding: { - auto newLocation = ride->getStation(currentRideStation).Start; + auto newLocation = ride->getStation(currentRideStation).start; uint8_t dir = (var37 / 4) & 3; // Set the location that the guest walks to go on slide again @@ -4771,7 +4771,7 @@ namespace OpenRCT2 uint8_t waypoint = 2; var37 = (var37 * 4 & 0x30) + waypoint; - CoordsXY targetLoc = ride->getStation(currentRideStation).Start; + CoordsXY targetLoc = ride->getStation(currentRideStation).start; targetLoc += kSpiralSlideWalkingPath[var37]; @@ -4810,7 +4810,7 @@ namespace OpenRCT2 waypoint--; // Actually decrement the peep waypoint var37--; - CoordsXY targetLoc = ride->getStation(currentRideStation).Start; + CoordsXY targetLoc = ride->getStation(currentRideStation).start; [[maybe_unused]] const auto& rtd = ride->getRideTypeDescriptor(); assert(rtd.specialType == RtdSpecialType::spiralSlide); @@ -4823,7 +4823,7 @@ namespace OpenRCT2 // Actually force the final waypoint var37 |= 3; - auto targetLoc = ride->getStation(currentRideStation).Exit.ToCoordsXYZD().ToTileCentre(); + auto targetLoc = ride->getStation(currentRideStation).exit.ToCoordsXYZD().ToTileCentre(); int16_t xShift = DirectionOffsets[DirectionReverse(targetLoc.direction)].x; int16_t yShift = DirectionOffsets[DirectionReverse(targetLoc.direction)].y; @@ -4891,7 +4891,7 @@ namespace OpenRCT2 auto targetLoc = getDestination().ToTileStart(); - auto stationBaseZ = ride->getStation().GetBaseZ(); + auto stationBaseZ = ride->getStation().getBaseZ(); // Find the station track element auto trackElement = MapGetTrackElementAt({ targetLoc, stationBaseZ }); @@ -4999,7 +4999,7 @@ namespace OpenRCT2 { if (ride != nullptr) { - moveTo({ loc.value(), ride->getStation(currentRideStation).GetBaseZ() }); + moveTo({ loc.value(), ride->getStation(currentRideStation).getBaseZ() }); } return; } @@ -7517,19 +7517,19 @@ namespace OpenRCT2 auto& station = ride->getStation(currentRideStation); // Make sure we don't underflow, building while paused might reset it to 0 where peeps have // not yet left the queue. - if (station.QueueLength > 0) + if (station.queueLength > 0) { - station.QueueLength--; + station.queueLength--; } - if (id == station.LastPeepInQueue) + if (id == station.lastPeepInQueue) { - station.LastPeepInQueue = guestNextInQueue; + station.lastPeepInQueue = guestNextInQueue; return; } auto& gameState = getGameState(); - auto* otherGuest = gameState.entities.getEntity(station.LastPeepInQueue); + auto* otherGuest = gameState.entities.getEntity(station.lastPeepInQueue); if (otherGuest == nullptr) { LOG_ERROR("Invalid Guest Queue list!"); diff --git a/src/openrct2/entity/Peep.cpp b/src/openrct2/entity/Peep.cpp index 6128be2f74..3aa64de276 100644 --- a/src/openrct2/entity/Peep.cpp +++ b/src/openrct2/entity/Peep.cpp @@ -1712,10 +1712,10 @@ namespace OpenRCT2 guest->interactionRideIndex = rideIndex; auto& station = ride->getStation(stationNum); - auto previous_last = station.LastPeepInQueue; - station.LastPeepInQueue = guest->id; + auto previous_last = station.lastPeepInQueue; + station.lastPeepInQueue = guest->id; guest->guestNextInQueue = previous_last; - station.QueueLength++; + station.queueLength++; guest->currentRide = rideIndex; guest->currentRideStation = stationNum; @@ -2160,10 +2160,10 @@ namespace OpenRCT2 // Add the peep to the ride queue. auto& station = ride->getStation(stationNum); - auto old_last_peep = station.LastPeepInQueue; - station.LastPeepInQueue = guest->id; + auto old_last_peep = station.lastPeepInQueue; + station.lastPeepInQueue = guest->id; guest->guestNextInQueue = old_last_peep; - station.QueueLength++; + station.queueLength++; PeepDecrementNumRiders(guest); guest->currentRide = rideIndex; diff --git a/src/openrct2/entity/Staff.cpp b/src/openrct2/entity/Staff.cpp index 94674d69a7..6f106fe5b3 100644 --- a/src/openrct2/entity/Staff.cpp +++ b/src/openrct2/entity/Staff.cpp @@ -634,10 +634,10 @@ namespace OpenRCT2 if (ride != nullptr && (state == PeepState::answering || state == PeepState::headingToInspection) && (ScenarioRand() & 1)) { - auto location = ride->getStation(currentRideStation).Exit; + auto location = ride->getStation(currentRideStation).exit; if (location.IsNull()) { - location = ride->getStation(currentRideStation).Entrance; + location = ride->getStation(currentRideStation).entrance; } direction = DirectionFromTo(CoordsXY(x, y), location.ToCoordsXY()); @@ -715,10 +715,10 @@ namespace OpenRCT2 { /* Find location of the exit for the target ride station * or if the ride has no exit, the entrance. */ - TileCoordsXYZD location = ride->getStation(currentRideStation).Exit; + TileCoordsXYZD location = ride->getStation(currentRideStation).exit; if (location.IsNull()) { - location = ride->getStation(currentRideStation).Entrance; + location = ride->getStation(currentRideStation).entrance; // If no entrance is present either. This is an incorrect state. if (location.IsNull()) @@ -1269,7 +1269,7 @@ namespace OpenRCT2 return; } - if (ride->getStation(currentRideStation).Exit.IsNull()) + if (ride->getStation(currentRideStation).exit.IsNull()) { ride->flags.unset(RideFlag::dueInspection); setState(PeepState::falling); @@ -1323,7 +1323,7 @@ namespace OpenRCT2 if (pathingResult & PATHING_RIDE_ENTRANCE) { - if (!ride->getStation(exitIndex).Exit.IsNull()) + if (!ride->getStation(exitIndex).exit.IsNull()) { return; } @@ -1343,7 +1343,7 @@ namespace OpenRCT2 int16_t delta_y = abs(getLocation().y - getDestination().y); if (auto loc = updateAction(); loc.has_value()) { - auto newZ = ride->getStation(currentRideStation).GetBaseZ(); + auto newZ = ride->getStation(currentRideStation).getBaseZ(); if (delta_y < 20) { newZ += ride->getRideTypeDescriptor().Heights.PlatformHeight; @@ -1428,7 +1428,7 @@ namespace OpenRCT2 if (pathingResult & PATHING_RIDE_ENTRANCE) { - if (!ride->getStation(exitIndex).Exit.IsNull()) + if (!ride->getStation(exitIndex).exit.IsNull()) { return; } @@ -1450,7 +1450,7 @@ namespace OpenRCT2 int16_t delta_y = abs(y - getDestination().y); if (auto loc = updateAction(); loc.has_value()) { - auto newZ = ride->getStation(currentRideStation).GetBaseZ(); + auto newZ = ride->getStation(currentRideStation).getBaseZ(); if (delta_y < 20) { newZ += ride->getRideTypeDescriptor().Heights.PlatformHeight; @@ -2276,7 +2276,7 @@ namespace OpenRCT2 return true; } - auto stationPos = ride.getStation(currentRideStation).GetStart(); + auto stationPos = ride.getStation(currentRideStation).getStart(); if (stationPos.IsNull()) { return true; @@ -2363,7 +2363,7 @@ namespace OpenRCT2 return true; } - auto stationPosition = ride.getStation(currentRideStation).GetStart(); + auto stationPosition = ride.getStation(currentRideStation).getStart(); if (stationPosition.IsNull()) { return true; @@ -2509,10 +2509,10 @@ namespace OpenRCT2 { if (!firstRun) { - auto stationPosition = ride.getStation(currentRideStation).Exit.ToCoordsXY(); + auto stationPosition = ride.getStation(currentRideStation).exit.ToCoordsXY(); if (stationPosition.IsNull()) { - stationPosition = ride.getStation(currentRideStation).Entrance.ToCoordsXY(); + stationPosition = ride.getStation(currentRideStation).entrance.ToCoordsXY(); if (stationPosition.IsNull()) { @@ -2589,10 +2589,10 @@ namespace OpenRCT2 { if (!firstRun) { - auto exitPosition = ride.getStation(currentRideStation).Exit.ToCoordsXY(); + auto exitPosition = ride.getStation(currentRideStation).exit.ToCoordsXY(); if (exitPosition.IsNull()) { - exitPosition = ride.getStation(currentRideStation).Entrance.ToCoordsXY(); + exitPosition = ride.getStation(currentRideStation).entrance.ToCoordsXY(); if (exitPosition.IsNull()) { @@ -2613,7 +2613,7 @@ namespace OpenRCT2 int16_t xy_distance; if (auto loc = updateAction(xy_distance); loc.has_value()) { - auto stationHeight = ride.getStation(currentRideStation).GetBaseZ(); + auto stationHeight = ride.getStation(currentRideStation).getBaseZ(); if (xy_distance >= 16) { stationHeight += ride.getRideTypeDescriptor().Heights.PlatformHeight; diff --git a/src/openrct2/park/ParkFile.cpp b/src/openrct2/park/ParkFile.cpp index 26b482211f..85f32e7829 100644 --- a/src/openrct2/park/ParkFile.cpp +++ b/src/openrct2/park/ParkFile.cpp @@ -1456,18 +1456,18 @@ namespace OpenRCT2 // Stations cs.readWrite(ride.numStations); cs.readWriteArray(ride.getStations(), [&cs](RideStation& station) { - cs.readWrite(station.Start); - cs.readWrite(station.Height); - cs.readWrite(station.Length); - cs.readWrite(station.Depart); - cs.readWrite(station.TrainAtStation); - cs.readWrite(station.Entrance); - cs.readWrite(station.Exit); - cs.readWrite(station.SegmentLength); - cs.readWrite(station.SegmentTime); - cs.readWrite(station.QueueTime); - cs.readWrite(station.QueueLength); - cs.readWrite(station.LastPeepInQueue); + cs.readWrite(station.start); + cs.readWrite(station.height); + cs.readWrite(station.length); + cs.readWrite(station.depart); + cs.readWrite(station.trainAtStation); + cs.readWrite(station.entrance); + cs.readWrite(station.exit); + cs.readWrite(station.segmentLength); + cs.readWrite(station.segmentTime); + cs.readWrite(station.queueTime); + cs.readWrite(station.queueLength); + cs.readWrite(station.lastPeepInQueue); return true; }); diff --git a/src/openrct2/peep/GuestPathfinding.cpp b/src/openrct2/peep/GuestPathfinding.cpp index c3d125c61c..799daf81c4 100644 --- a/src/openrct2/peep/GuestPathfinding.cpp +++ b/src/openrct2/peep/GuestPathfinding.cpp @@ -2051,7 +2051,7 @@ namespace OpenRCT2::PathFinding for (const auto& station : ride->getStations()) { // Skip if stationNum has no entrance (so presumably an exit only station) - if (station.Entrance.IsNull()) + if (station.entrance.IsNull()) continue; const auto stationIndex = ride->getStationIndex(&station); @@ -2059,7 +2059,7 @@ namespace OpenRCT2::PathFinding numEntranceStations++; entranceStations[stationIndex.ToUnderlying()] = true; - TileCoordsXYZD entranceLocation = station.Entrance; + TileCoordsXYZD entranceLocation = station.entrance; auto score = CalculateHeuristicPathingScore(entranceLocation, TileCoordsXYZ{ peep.nextLoc }); if (score < bestScore) { @@ -2081,14 +2081,14 @@ namespace OpenRCT2::PathFinding { // closestStationNum is always 0 here. const auto& closestStation = ride->getStation(closestStationNum); - auto entranceXY = TileCoordsXY(closestStation.Start); + auto entranceXY = TileCoordsXY(closestStation.start); loc.x = entranceXY.x; loc.y = entranceXY.y; - loc.z = closestStation.Height; + loc.z = closestStation.height; } else { - TileCoordsXYZD entranceXYZD = ride->getStation(closestStationNum).Entrance; + TileCoordsXYZD entranceXYZD = ride->getStation(closestStationNum).entrance; loc.x = entranceXYZD.x; loc.y = entranceXYZD.y; loc.z = entranceXYZD.z; diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index dde34e1c9c..c7e5759de4 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -880,46 +880,46 @@ namespace OpenRCT2::RCT1 auto& dstStation = dst->getStation(StationIndex::FromUnderlying(i)); if (src->stationStarts[i].IsNull()) { - dstStation.Start.SetNull(); + dstStation.start.SetNull(); } else { auto tileStartLoc = TileCoordsXY{ src->stationStarts[i].x, src->stationStarts[i].y }; - dstStation.Start = tileStartLoc.ToCoordsXY(); + dstStation.start = tileStartLoc.ToCoordsXY(); } - dstStation.SetBaseZ(src->stationHeights[i] * Limits::kCoordsZStep); - dstStation.Length = src->stationLengths[i]; - dstStation.Depart = src->stationLights[i]; + dstStation.setBaseZ(src->stationHeights[i] * Limits::kCoordsZStep); + dstStation.length = src->stationLengths[i]; + dstStation.depart = src->stationLights[i]; - dstStation.TrainAtStation = src->stationDeparts[i]; + dstStation.trainAtStation = src->stationDeparts[i]; // Direction is fixed later. if (src->entrances[i].IsNull()) - dstStation.Entrance.SetNull(); + dstStation.entrance.SetNull(); else - dstStation.Entrance = { src->entrances[i].x, src->entrances[i].y, src->stationHeights[i] / 2, 0 }; + dstStation.entrance = { src->entrances[i].x, src->entrances[i].y, src->stationHeights[i] / 2, 0 }; if (src->exits[i].IsNull()) - dstStation.Exit.SetNull(); + dstStation.exit.SetNull(); else - dstStation.Exit = { src->exits[i].x, src->exits[i].y, src->stationHeights[i] / 2, 0 }; + dstStation.exit = { src->exits[i].x, src->exits[i].y, src->stationHeights[i] / 2, 0 }; - dstStation.QueueTime = src->queueTime[i]; - dstStation.LastPeepInQueue = EntityId::FromUnderlying(src->lastPeepInQueue[i]); - dstStation.QueueLength = src->numPeepsInQueue[i]; + dstStation.queueTime = src->queueTime[i]; + dstStation.lastPeepInQueue = EntityId::FromUnderlying(src->lastPeepInQueue[i]); + dstStation.queueLength = src->numPeepsInQueue[i]; - dstStation.SegmentTime = src->time[i]; - dstStation.SegmentLength = src->length[i]; + dstStation.segmentTime = src->time[i]; + dstStation.segmentLength = src->length[i]; } // All other values take 0 as their default. Since they're already memset to that, no need to do it again. for (int32_t i = Limits::kMaxStationsPerRide; i < OpenRCT2::Limits::kMaxStationsPerRide; i++) { auto& dstStation = dst->getStation(StationIndex::FromUnderlying(i)); - dstStation.Start.SetNull(); - dstStation.TrainAtStation = RideStation::kNoTrain; - dstStation.Entrance.SetNull(); - dstStation.Exit.SetNull(); - dstStation.LastPeepInQueue = EntityId::GetNull(); + dstStation.start.SetNull(); + dstStation.trainAtStation = RideStation::kNoTrain; + dstStation.entrance.SetNull(); + dstStation.exit.SetNull(); + dstStation.lastPeepInQueue = EntityId::GetNull(); } dst->numStations = src->numStations; diff --git a/src/openrct2/rct12/ScenarioPatcher.cpp b/src/openrct2/rct12/ScenarioPatcher.cpp index b2c74c0a10..03278091f1 100644 --- a/src/openrct2/rct12/ScenarioPatcher.cpp +++ b/src/openrct2/rct12/ScenarioPatcher.cpp @@ -525,10 +525,10 @@ static void SwapRideEntranceAndExit(RideId rideId) if (ride != nullptr) { auto& station = ride->getStation(); - auto entranceCoords = station.Exit; - auto exitCoords = station.Entrance; - station.Entrance = entranceCoords; - station.Exit = exitCoords; + auto entranceCoords = station.exit; + auto exitCoords = station.entrance; + station.entrance = entranceCoords; + station.exit = exitCoords; auto entranceElement = MapGetRideExitElementAt(entranceCoords.ToCoordsXYZD(), false); entranceElement->setEntranceType(EntranceType::rideEntrance); diff --git a/src/openrct2/rct2/S6Importer.cpp b/src/openrct2/rct2/S6Importer.cpp index e40b240b48..5ba779c4f3 100644 --- a/src/openrct2/rct2/S6Importer.cpp +++ b/src/openrct2/rct2/S6Importer.cpp @@ -764,37 +764,37 @@ namespace OpenRCT2::RCT2 if (src->stationStarts[i].IsNull()) { - destStation.Start.SetNull(); + destStation.start.SetNull(); } else { auto tileStartLoc = TileCoordsXY(src->stationStarts[i].x, src->stationStarts[i].y); - destStation.Start = tileStartLoc.ToCoordsXY(); + destStation.start = tileStartLoc.ToCoordsXY(); } - destStation.Height = src->stationHeights[i]; - destStation.Length = src->stationLength[i]; - destStation.Depart = src->stationDepart[i]; - destStation.TrainAtStation = src->trainAtStation[i]; + destStation.height = src->stationHeights[i]; + destStation.length = src->stationLength[i]; + destStation.depart = src->stationDepart[i]; + destStation.trainAtStation = src->trainAtStation[i]; // Direction is fixed later. if (src->entrances[i].IsNull()) - destStation.Entrance.SetNull(); + destStation.entrance.SetNull(); else - destStation.Entrance = { src->entrances[i].x, src->entrances[i].y, src->stationHeights[i], 0 }; + destStation.entrance = { src->entrances[i].x, src->entrances[i].y, src->stationHeights[i], 0 }; if (src->exits[i].IsNull()) - destStation.Exit.SetNull(); + destStation.exit.SetNull(); else - destStation.Exit = { src->exits[i].x, src->exits[i].y, src->stationHeights[i], 0 }; + destStation.exit = { src->exits[i].x, src->exits[i].y, src->stationHeights[i], 0 }; - destStation.LastPeepInQueue = EntityId::FromUnderlying(src->lastPeepInQueue[i]); + destStation.lastPeepInQueue = EntityId::FromUnderlying(src->lastPeepInQueue[i]); - destStation.SegmentLength = src->length[i]; - destStation.SegmentTime = src->time[i]; + destStation.segmentLength = src->length[i]; + destStation.segmentTime = src->time[i]; - destStation.QueueTime = src->queueTime[i]; + destStation.queueTime = src->queueTime[i]; - destStation.QueueLength = src->queueLength[i]; + destStation.queueLength = src->queueLength[i]; } // All other values take 0 as their default. Since they're already memset to that, no need to do it again. for (int32_t i = Limits::kMaxStationsPerRide; i < OpenRCT2::Limits::kMaxStationsPerRide; i++) @@ -802,11 +802,11 @@ namespace OpenRCT2::RCT2 StationIndex stationIndex = StationIndex::FromUnderlying(i); auto& destStation = dst->getStation(stationIndex); - destStation.Start.SetNull(); - destStation.TrainAtStation = RideStation::kNoTrain; - destStation.Entrance.SetNull(); - destStation.Exit.SetNull(); - destStation.LastPeepInQueue = EntityId::GetNull(); + destStation.start.SetNull(); + destStation.trainAtStation = RideStation::kNoTrain; + destStation.entrance.SetNull(); + destStation.exit.SetNull(); + destStation.lastPeepInQueue = EntityId::GetNull(); } for (int32_t i = 0; i < Limits::kMaxTrainsPerRide; i++) diff --git a/src/openrct2/ride/Ride.cpp b/src/openrct2/ride/Ride.cpp index 377e654fba..ad518f1663 100644 --- a/src/openrct2/ride/Ride.cpp +++ b/src/openrct2/ride/Ride.cpp @@ -337,8 +337,8 @@ namespace OpenRCT2 { int32_t queueLength = 0; for (const auto& station : stations) - if (!station.Entrance.IsNull()) - queueLength += station.QueueLength; + if (!station.entrance.IsNull()) + queueLength += station.queueLength; return queueLength; } @@ -346,8 +346,8 @@ namespace OpenRCT2 { uint8_t queueTime = 0; for (const auto& station : stations) - if (!station.Entrance.IsNull()) - queueTime = std::max(queueTime, station.QueueTime); + if (!station.entrance.IsNull()) + queueTime = std::max(queueTime, station.queueTime); return static_cast(queueTime); } @@ -355,7 +355,7 @@ namespace OpenRCT2 { Guest* peep; Guest* result = nullptr; - auto spriteIndex = getStation(stationIndex).LastPeepInQueue; + auto spriteIndex = getStation(stationIndex).lastPeepInQueue; while ((peep = getGameState().entities.tryGetEntity(spriteIndex)) != nullptr) { spriteIndex = peep->guestNextInQueue; @@ -369,13 +369,13 @@ namespace OpenRCT2 uint16_t count = 0; Guest* peep; auto& station = getStation(stationIndex); - auto spriteIndex = station.LastPeepInQueue; + auto spriteIndex = station.lastPeepInQueue; while ((peep = getGameState().entities.tryGetEntity(spriteIndex)) != nullptr) { spriteIndex = peep->guestNextInQueue; count++; } - station.QueueLength = count; + station.queueLength = count; } void Ride::queueInsertGuestAtFront(StationIndex stationIndex, Guest* peep) @@ -387,7 +387,7 @@ namespace OpenRCT2 auto* queueHeadGuest = getQueueHeadGuest(peep->currentRideStation); if (queueHeadGuest == nullptr) { - getStation(peep->currentRideStation).LastPeepInQueue = peep->id; + getStation(peep->currentRideStation).lastPeepInQueue = peep->id; } else { @@ -592,7 +592,7 @@ namespace OpenRCT2 { int32_t totalLength = 0; for (int32_t i = 0; i < numStations; i++) - totalLength += stations[i].SegmentLength; + totalLength += stations[i].segmentLength; return totalLength; } @@ -600,7 +600,7 @@ namespace OpenRCT2 { int32_t totalTime = 0; for (int32_t i = 0; i < numStations; i++) - totalTime += stations[i].SegmentTime; + totalTime += stations[i].segmentTime; return totalTime; } @@ -766,7 +766,7 @@ namespace OpenRCT2 StationIndex::UnderlyingType nullStationsSeen{ 0 }; for (size_t i = 0; i < in.ToUnderlying(); i++) { - if (stations[i].Start.IsNull()) + if (stations[i].start.IsNull()) { nullStationsSeen++; } @@ -987,10 +987,10 @@ namespace OpenRCT2 // Invalidate something related to station start for (int32_t i = 0; i < Limits::kMaxStationsPerRide; i++) { - if (ride.stations[i].Start.IsNull()) + if (ride.stations[i].start.IsNull()) continue; - auto startLoc = ride.stations[i].Start; + auto startLoc = ride.stations[i].start; TileElement* tileElement = RideGetStationStartTrackElement(ride, StationIndex::FromUnderlying(i)); if (tileElement == nullptr) @@ -1493,11 +1493,11 @@ namespace OpenRCT2 // Get either exit position or entrance position if there is no exit const auto& station = ride.getStation(stationIndex); - TileCoordsXYZD location = station.Exit; + TileCoordsXYZD location = station.exit; if (location.IsNull()) { - location = station.Entrance; - if (station.Entrance.IsNull()) + location = station.entrance; + if (station.entrance.IsNull()) return nullptr; } @@ -1668,7 +1668,7 @@ namespace OpenRCT2 return; } - CoordsXYZ rideCoords = ride.getStation().GetStart().ToTileCentre(); + CoordsXYZ rideCoords = ride.getStation().getStart().ToTileCentre(); const auto sampleRate = RideMusicSampleRate(ride); @@ -1706,7 +1706,7 @@ namespace OpenRCT2 return; } - CoordsXYZ rideCoords = ride.getStation().GetStart().ToTileCentre(); + CoordsXYZ rideCoords = ride.getStation().getStart().ToTileCentre(); int32_t sampleRate = RideMusicSampleRate(ride); @@ -2048,9 +2048,9 @@ namespace OpenRCT2 { for (auto& station : ride.getStations()) { - auto station_start = station.Start; - auto entrance = station.Entrance; - auto exit = station.Exit; + auto station_start = station.start; + auto entrance = station.entrance; + auto exit = station.exit; if (station_start.IsNull()) continue; @@ -2083,7 +2083,7 @@ namespace OpenRCT2 static void RideShopConnected(const Ride& ride) { - auto shopLoc = TileCoordsXY(ride.getStation().Start); + auto shopLoc = TileCoordsXY(ride.getStation().start); if (shopLoc.IsNull()) return; @@ -2217,9 +2217,9 @@ namespace OpenRCT2 // Get the queue length int32_t queueLength = 0; const auto stationIndex = entranceElement.getStationIndex(); - if (!ride->getStation(stationIndex).Entrance.IsNull()) + if (!ride->getStation(stationIndex).entrance.IsNull()) { - queueLength = ride->getStation(stationIndex).QueueLength; + queueLength = ride->getStation(stationIndex).queueLength; } auto ft = Formatter(); @@ -2304,7 +2304,7 @@ namespace OpenRCT2 uint16_t numStations = 0; for (const auto& station : ride.getStations()) { - if (!station.Start.IsNull()) + if (!station.start.IsNull()) { numStations++; } @@ -2377,22 +2377,22 @@ namespace OpenRCT2 uint8_t exit = 0; for (const auto& station : ride->getStations()) { - if (station.Start.IsNull()) + if (station.start.IsNull()) continue; - if (!station.Entrance.IsNull()) + if (!station.entrance.IsNull()) { entrance = 1; } - if (!station.Exit.IsNull()) + if (!station.exit.IsNull()) { exit = 1; } // If station start and no entrance/exit // Sets same error message as no entrance - if (station.Exit.IsNull() && station.Entrance.IsNull()) + if (station.exit.IsNull() && station.entrance.IsNull()) { entrance = 0; break; @@ -2420,14 +2420,14 @@ namespace OpenRCT2 { for (const auto& station : stations) { - if (station.Entrance.IsNull()) + if (station.entrance.IsNull()) continue; - auto mapLocation = station.Entrance.ToCoordsXYZ(); + auto mapLocation = station.entrance.ToCoordsXYZ(); // This will fire for every entrance on this x, y and z, regardless whether that actually belongs to // the ride or not. - TileElement* tileElement = MapGetFirstElementAt(station.Entrance); + TileElement* tileElement = MapGetFirstElementAt(station.entrance); if (tileElement != nullptr) { do @@ -2764,13 +2764,13 @@ namespace OpenRCT2 TileCoordsXYZD* position = positions; for (const auto& station : ride.getStations()) { - if (!station.Entrance.IsNull()) + if (!station.entrance.IsNull()) { - *position++ = station.Entrance; + *position++ = station.entrance; } - if (!station.Exit.IsNull()) + if (!station.exit.IsNull()) { - *position++ = station.Exit; + *position++ = station.exit; } } position->SetNull(); @@ -3386,7 +3386,7 @@ namespace OpenRCT2 flags.set(RideFlag::onTrack); for (int32_t i = 0; i < Limits::kMaxStationsPerRide; i++) { - stations[i].Depart = (stations[i].Depart & kStationDepartFlag) | 1; + stations[i].depart = (stations[i].depart & kStationDepartFlag) | 1; } const auto& rtd = getRideTypeDescriptor(); @@ -3523,7 +3523,7 @@ namespace OpenRCT2 { for (const auto& station : ride.getStations()) { - CoordsXYZ trackStart = station.GetStart(); + CoordsXYZ trackStart = station.getStart(); if (trackStart.IsNull()) continue; @@ -3695,17 +3695,17 @@ namespace OpenRCT2 const RideStation* incompleteStation = nullptr; for (const auto& station : stations) { - if (station.Start.IsNull()) + if (station.start.IsNull()) continue; - if (station.Entrance.IsNull()) + if (station.entrance.IsNull()) { entranceOrExit = WC_RIDE_CONSTRUCTION__WIDX_ENTRANCE; incompleteStation = &station; break; } - if (station.Exit.IsNull()) + if (station.exit.IsNull()) { entranceOrExit = WC_RIDE_CONSTRUCTION__WIDX_EXIT; incompleteStation = &station; @@ -3721,7 +3721,7 @@ namespace OpenRCT2 const auto& rtd = getRideTypeDescriptor(); if (rtd.specialType != RtdSpecialType::maze) { - auto location = incompleteStation->GetStart(); + auto location = incompleteStation->getStart(); WindowScrollToLocation(*w, location); CoordsXYE trackElement; @@ -3763,7 +3763,7 @@ namespace OpenRCT2 */ TrackElement* Ride::getOriginElement(StationIndex stationIndex) const { - auto stationLoc = getStation(stationIndex).Start; + auto stationLoc = getStation(stationIndex).start; TileElement* tileElement = MapGetFirstElementAt(stationLoc); if (tileElement == nullptr) return nullptr; @@ -4723,11 +4723,11 @@ namespace OpenRCT2 std::optional result; for (const auto& station : ride.getStations()) { - if (!station.Start.IsNull()) + if (!station.start.IsNull()) { - if (!result.has_value() || station.Length < result.value()) + if (!result.has_value() || station.length < result.value()) { - result = station.Length; + result = station.length; } } } @@ -4747,7 +4747,7 @@ namespace OpenRCT2 for (const auto& station : ride.getStations()) { - trackStart = station.GetStart(); + trackStart = station.getStart(); if (trackStart.IsNull()) continue; @@ -5186,7 +5186,7 @@ namespace OpenRCT2 * adjacent station on either side. */ for (const auto& station : ride.getStations()) { - auto stationStart = station.GetStart(); + auto stationStart = station.getStart(); if (!stationStart.IsNull()) { /* Get the map element for the station start. */ @@ -5330,8 +5330,8 @@ namespace OpenRCT2 for (auto& station : ride.getStations()) { auto stationIndex = ride.getStationIndex(&station); - TileCoordsXYZD entranceLoc = station.Entrance; - TileCoordsXYZD exitLoc = station.Exit; + TileCoordsXYZD entranceLoc = station.entrance; + TileCoordsXYZD exitLoc = station.exit; bool fixEntrance = false; bool fixExit = false; @@ -5347,7 +5347,7 @@ namespace OpenRCT2 } else { - station.Entrance.direction = entranceElement->getDirection(); + station.entrance.direction = entranceElement->getDirection(); } } @@ -5362,7 +5362,7 @@ namespace OpenRCT2 } else { - station.Exit.direction = entranceElement->getDirection(); + station.exit.direction = entranceElement->getDirection(); } } @@ -5400,20 +5400,20 @@ namespace OpenRCT2 } // The expected height is where entrances and exit reside in non-hacked parks. - const uint8_t expectedHeight = station.Height; + const uint8_t expectedHeight = station.height; if (fixEntrance && entranceElement->getEntranceType() == EntranceType::rideEntrance) { if (alreadyFoundEntrance) { - if (station.Entrance.z == expectedHeight) + if (station.entrance.z == expectedHeight) continue; - if (station.Entrance.z > entranceElement->baseHeight) + if (station.entrance.z > entranceElement->baseHeight) continue; } // Found our entrance - station.Entrance = { x, y, entranceElement->baseHeight, entranceElement->getDirection() }; + station.entrance = { x, y, entranceElement->baseHeight, entranceElement->getDirection() }; alreadyFoundEntrance = true; LOG_VERBOSE( @@ -5424,14 +5424,14 @@ namespace OpenRCT2 { if (alreadyFoundExit) { - if (station.Exit.z == expectedHeight) + if (station.exit.z == expectedHeight) continue; - if (station.Exit.z > entranceElement->baseHeight) + if (station.exit.z > entranceElement->baseHeight) continue; } // Found our exit - station.Exit = { x, y, entranceElement->baseHeight, entranceElement->getDirection() }; + station.exit = { x, y, entranceElement->baseHeight, entranceElement->getDirection() }; alreadyFoundExit = true; LOG_VERBOSE( @@ -5445,12 +5445,12 @@ namespace OpenRCT2 if (fixEntrance && !alreadyFoundEntrance) { - station.Entrance.SetNull(); + station.entrance.SetNull(); LOG_VERBOSE("Cleared disconnected entrance of ride %d, station %d.", ride.id, stationIndex); } if (fixExit && !alreadyFoundExit) { - station.Exit.SetNull(); + station.exit.SetNull(); LOG_VERBOSE("Cleared disconnected exit of ride %d, station %d.", ride.id, stationIndex); } } @@ -5634,7 +5634,7 @@ namespace OpenRCT2 ResultWithMessage Ride::changeStatusGetStartElement(StationIndex stationIndex, CoordsXYE& trackElement) { - auto startLoc = getStation(stationIndex).Start; + auto startLoc = getStation(stationIndex).start; trackElement.x = startLoc.x; trackElement.y = startLoc.y; trackElement.element = reinterpret_cast(getOriginElement(stationIndex)); diff --git a/src/openrct2/ride/Ride.h b/src/openrct2/ride/Ride.h index 6271facda1..c3322dd8ab 100644 --- a/src/openrct2/ride/Ride.h +++ b/src/openrct2/ride/Ride.h @@ -168,22 +168,22 @@ namespace OpenRCT2 { static constexpr uint8_t kNoTrain = std::numeric_limits::max(); - CoordsXY Start; - uint8_t Height{}; - uint8_t Length{}; - uint8_t Depart{}; - uint8_t TrainAtStation{ kNoTrain }; - TileCoordsXYZD Entrance; - TileCoordsXYZD Exit; - int32_t SegmentLength{}; // Length of track between this station and the next. - uint16_t SegmentTime{}; // Time for train to reach the next station from this station. - uint8_t QueueTime{}; - uint16_t QueueLength{}; - EntityId LastPeepInQueue{ EntityId::GetNull() }; + CoordsXY start; + uint8_t height{}; + uint8_t length{}; + uint8_t depart{}; + uint8_t trainAtStation{ kNoTrain }; + TileCoordsXYZD entrance; + TileCoordsXYZD exit; + int32_t segmentLength{}; // Length of track between this station and the next. + uint16_t segmentTime{}; // Time for train to reach the next station from this station. + uint8_t queueTime{}; + uint16_t queueLength{}; + EntityId lastPeepInQueue{ EntityId::GetNull() }; - int32_t GetBaseZ() const; - void SetBaseZ(int32_t newZ); - CoordsXYZ GetStart() const; + int32_t getBaseZ() const; + void setBaseZ(int32_t newZ); + CoordsXYZ getStart() const; }; struct RideMeasurement diff --git a/src/openrct2/ride/RideConstruction.cpp b/src/openrct2/ride/RideConstruction.cpp index 53ab9b225a..8cae78a8c0 100644 --- a/src/openrct2/ride/RideConstruction.cpp +++ b/src/openrct2/ride/RideConstruction.cpp @@ -403,7 +403,7 @@ namespace OpenRCT2 } for (size_t i = 0; i < Limits::kMaxStationsPerRide; i++) - stations[i].TrainAtStation = RideStation::kNoTrain; + stations[i].trainAtStation = RideStation::kNoTrain; // Also clean up orphaned vehicles for good measure. for (auto* vehicle : TrainManager::View()) @@ -465,7 +465,7 @@ namespace OpenRCT2 auto exitPosition = CoordsXYZD{ 0, 0, 0, kInvalidDirection }; if (!stationIndex.IsNull()) { - auto location = getStation(stationIndex).Exit.ToCoordsXYZD(); + auto location = getStation(stationIndex).exit.ToCoordsXYZD(); if (!location.IsNull()) { auto direction = DirectionReverse(location.direction); @@ -1394,10 +1394,10 @@ namespace OpenRCT2 // find the stations of the ride to begin stepping over track elements from for (const auto& station : stations) { - if (station.Start.IsNull()) + if (station.start.IsNull()) continue; - CoordsXYZ location = station.GetStart(); + CoordsXYZ location = station.getStart(); uint8_t direction = kInvalidDirection; bool specialTrack = false; @@ -1500,16 +1500,16 @@ namespace OpenRCT2 sfl::static_vector locations; for (auto& station : stations) { - if (!station.Entrance.IsNull()) + if (!station.entrance.IsNull()) { - locations.push_back(station.Entrance); - station.Entrance.SetNull(); + locations.push_back(station.entrance); + station.entrance.SetNull(); } - if (!station.Exit.IsNull()) + if (!station.exit.IsNull()) { - locations.push_back(station.Exit); - station.Exit.SetNull(); + locations.push_back(station.exit); + station.exit.SetNull(); } } @@ -1600,20 +1600,20 @@ namespace OpenRCT2 if (tileElement->asEntrance()->getEntranceType() == EntranceType::rideExit) { // if the location is already set for this station, big problem! - if (!station.Exit.IsNull()) + if (!station.exit.IsNull()) break; // set the station's exit location to this one - CoordsXYZD loc = { location, station.GetBaseZ(), tileElement->getDirection() }; - station.Exit = TileCoordsXYZD{ loc }; + CoordsXYZD loc = { location, station.getBaseZ(), tileElement->getDirection() }; + station.exit = TileCoordsXYZD{ loc }; } else { // if the location is already set for this station, big problem! - if (!station.Entrance.IsNull()) + if (!station.entrance.IsNull()) break; // set the station's entrance location to this one - CoordsXYZD loc = { location, station.GetBaseZ(), tileElement->getDirection() }; - station.Entrance = TileCoordsXYZD{ loc }; + CoordsXYZD loc = { location, station.getBaseZ(), tileElement->getDirection() }; + station.entrance = TileCoordsXYZD{ loc }; } // set the entrance's StationIndex as this station tileElement->asEntrance()->setStationIndex(stationId); @@ -1693,15 +1693,15 @@ namespace OpenRCT2 for (auto& station : ride.getStations()) { - if (station.Start.IsNull()) + if (station.start.IsNull()) { continue; } - if (station.Entrance.IsNull()) + if (station.entrance.IsNull()) { return { false, STR_ENTRANCE_NOT_YET_BUILT }; } - if (station.Exit.IsNull()) + if (station.exit.IsNull()) { return { false, STR_EXIT_NOT_YET_BUILT }; } diff --git a/src/openrct2/ride/RideRatings.cpp b/src/openrct2/ride/RideRatings.cpp index 3e0b940636..09d415d544 100644 --- a/src/openrct2/ride/RideRatings.cpp +++ b/src/openrct2/ride/RideRatings.cpp @@ -395,7 +395,7 @@ namespace OpenRCT2 { auto entranceIndex = tileElement->asTrack()->getStationIndex(); state.StationFlags &= ~RIDE_RATING_STATION_FLAG_NO_ENTRANCE; - if (ride->getStation(entranceIndex).Entrance.IsNull()) + if (ride->getStation(entranceIndex).entrance.IsNull()) { state.StationFlags |= RIDE_RATING_STATION_FLAG_NO_ENTRANCE; } @@ -543,15 +543,15 @@ namespace OpenRCT2 for (auto& station : ride->getStations()) { - if (!station.Start.IsNull()) + if (!station.start.IsNull()) { state.StationFlags &= ~RIDE_RATING_STATION_FLAG_NO_ENTRANCE; - if (station.Entrance.IsNull()) + if (station.entrance.IsNull()) { state.StationFlags |= RIDE_RATING_STATION_FLAG_NO_ENTRANCE; } - auto location = station.GetStart(); + auto location = station.getStart(); state.Proximity = location; state.ProximityTrackType = TrackElemType::none; state.ProximityStart = location; @@ -1763,17 +1763,17 @@ namespace OpenRCT2 const auto& rtd = ride.getRideTypeDescriptor(); if (rtd.specialType == RtdSpecialType::maze) { - location = ride.getStation().Entrance.ToCoordsXY(); + location = ride.getStation().entrance.ToCoordsXY(); } else { - location = ride.getStation(stationIndex).Start; + location = ride.getStation(stationIndex).start; } int32_t z = TileElementHeight(location); // Check if station is underground, returns a fixed mediocre score since you can't have scenery underground - if (z > ride.getStation(stationIndex).GetBaseZ()) + if (z > ride.getStation(stationIndex).getBaseZ()) { return 40; } @@ -2100,7 +2100,7 @@ namespace OpenRCT2 static void RideRatingsApplyRequirementLength(RideRating::Tuple& ratings, const Ride& ride, RatingsModifier modifier) { - if (ride.getStation().SegmentLength < modifier.threshold) + if (ride.getStation().segmentLength < modifier.threshold) { ratings.excitement /= modifier.excitement; ratings.intensity /= modifier.intensity; diff --git a/src/openrct2/ride/Station.cpp b/src/openrct2/ride/Station.cpp index 3bcef2e5f3..fb4b1d4d3b 100644 --- a/src/openrct2/ride/Station.cpp +++ b/src/openrct2/ride/Station.cpp @@ -34,7 +34,7 @@ namespace OpenRCT2 */ void RideUpdateStation(Ride& ride, StationIndex stationIndex) { - if (ride.getStation(stationIndex).Start.IsNull()) + if (ride.getStation(stationIndex).start.IsNull()) return; switch (ride.mode) @@ -67,16 +67,16 @@ namespace OpenRCT2 if ((ride.status == RideStatus::closed && ride.numRiders == 0) || (tileElement != nullptr && tileElement->asTrack()->isBrakeClosed())) { - station.Depart &= ~kStationDepartFlag; + station.depart &= ~kStationDepartFlag; - if ((station.Depart & kStationDepartFlag) || (tileElement != nullptr && tileElement->asTrack()->hasGreenLight())) + if ((station.depart & kStationDepartFlag) || (tileElement != nullptr && tileElement->asTrack()->hasGreenLight())) RideInvalidateStationStart(ride, stationIndex, false); } else { - if (!(station.Depart & kStationDepartFlag)) + if (!(station.depart & kStationDepartFlag)) { - station.Depart |= kStationDepartFlag; + station.depart |= kStationDepartFlag; RideInvalidateStationStart(ride, stationIndex, true); } else if (tileElement != nullptr && tileElement->asTrack()->hasGreenLight()) @@ -98,7 +98,7 @@ namespace OpenRCT2 // but since dodgems do not have station lights there is no point. if (ride.status == RideStatus::closed || ride.flags.hasAny(RideFlag::brokenDown, RideFlag::crashed)) { - station.Depart &= ~kStationDepartFlag; + station.depart &= ~kStationDepartFlag; return; } @@ -117,12 +117,12 @@ namespace OpenRCT2 // End match ride.flags.unset(RideFlag::passStationNoStopping); - station.Depart &= ~kStationDepartFlag; + station.depart &= ~kStationDepartFlag; return; } // Continue match - station.Depart |= kStationDepartFlag; + station.depart |= kStationDepartFlag; } else { @@ -135,14 +135,14 @@ namespace OpenRCT2 if (vehicle->status != Vehicle::Status::waitingToDepart) { - station.Depart &= ~kStationDepartFlag; + station.depart &= ~kStationDepartFlag; return; } } // Begin the match ride.flags.set(RideFlag::passStationNoStopping); - station.Depart |= kStationDepartFlag; + station.depart |= kStationDepartFlag; ride.windowInvalidateFlags.set(RideInvalidateFlag::main, RideInvalidateFlag::list); } } @@ -154,7 +154,7 @@ namespace OpenRCT2 static void RideUpdateStationNormal(Ride& ride, StationIndex stationIndex) { auto& station = ride.getStation(stationIndex); - int32_t time = station.Depart & kStationDepartMask; + int32_t time = station.depart & kStationDepartMask; const auto currentTicks = getGameState().currentTicks; if (ride.flags.hasAny(RideFlag::brokenDown, RideFlag::crashed) || (ride.status == RideStatus::closed && ride.numRiders == 0)) @@ -162,14 +162,14 @@ namespace OpenRCT2 if (time != 0 && time != 127 && !(currentTicks & 7)) time--; - station.Depart = time; + station.depart = time; RideInvalidateStationStart(ride, stationIndex, false); } else { if (time == 0) { - station.Depart |= kStationDepartFlag; + station.depart |= kStationDepartFlag; RideInvalidateStationStart(ride, stationIndex, true); } else @@ -177,7 +177,7 @@ namespace OpenRCT2 if (time != 127 && !(currentTicks & 31)) time--; - station.Depart = time; + station.depart = time; RideInvalidateStationStart(ride, stationIndex, false); } } @@ -192,9 +192,9 @@ namespace OpenRCT2 auto& station = ride.getStation(stationIndex); if (ride.status == RideStatus::closed || ride.flags.hasAny(RideFlag::brokenDown, RideFlag::crashed)) { - if (station.Depart & kStationDepartFlag) + if (station.depart & kStationDepartFlag) { - station.Depart &= ~kStationDepartFlag; + station.depart &= ~kStationDepartFlag; RideInvalidateStationStart(ride, stationIndex, false); } return; @@ -225,9 +225,9 @@ namespace OpenRCT2 // Race is over ride.flags.unset(RideFlag::passStationNoStopping); - if (station.Depart & kStationDepartFlag) + if (station.depart & kStationDepartFlag) { - station.Depart &= ~kStationDepartFlag; + station.depart &= ~kStationDepartFlag; RideInvalidateStationStart(ride, stationIndex, false); } return; @@ -235,7 +235,7 @@ namespace OpenRCT2 } // Continue racing - station.Depart |= kStationDepartFlag; + station.depart |= kStationDepartFlag; } else { @@ -248,9 +248,9 @@ namespace OpenRCT2 if (vehicle->status != Vehicle::Status::waitingToDepart && vehicle->status != Vehicle::Status::departing) { - if (station.Depart & kStationDepartFlag) + if (station.depart & kStationDepartFlag) { - station.Depart &= ~kStationDepartFlag; + station.depart &= ~kStationDepartFlag; RideInvalidateStationStart(ride, stationIndex, false); } return; @@ -260,9 +260,9 @@ namespace OpenRCT2 // Begin the race RideRaceInitVehicleSpeeds(ride); ride.flags.set(RideFlag::passStationNoStopping); - if (!(station.Depart & kStationDepartFlag)) + if (!(station.depart & kStationDepartFlag)) { - station.Depart |= kStationDepartFlag; + station.depart |= kStationDepartFlag; RideInvalidateStationStart(ride, stationIndex, true); } ride.windowInvalidateFlags.set(RideInvalidateFlag::main, RideInvalidateFlag::list); @@ -327,7 +327,7 @@ namespace OpenRCT2 */ static void RideInvalidateStationStart(Ride& ride, StationIndex stationIndex, bool greenLight) { - auto startPos = ride.getStation(stationIndex).Start; + auto startPos = ride.getStation(stationIndex).start; TileElement* tileElement = RideGetStationStartTrackElement(ride, stationIndex); // If no station track found return @@ -344,7 +344,7 @@ namespace OpenRCT2 TileElement* RideGetStationStartTrackElement(const Ride& ride, StationIndex stationIndex) { - auto stationStart = ride.getStation(stationIndex).GetStart(); + auto stationStart = ride.getStation(stationIndex).getStart(); // Find the station track element TileElement* tileElement = MapGetFirstElementAt(stationStart); @@ -381,7 +381,7 @@ namespace OpenRCT2 { for (const auto& station : ride.getStations()) { - if (!station.Exit.IsNull()) + if (!station.exit.IsNull()) { return ride.getStationIndex(&station); } @@ -393,7 +393,7 @@ namespace OpenRCT2 { for (const auto& station : ride.getStations()) { - if (!station.Start.IsNull()) + if (!station.start.IsNull()) { return ride.getStationIndex(&station); } @@ -405,7 +405,7 @@ namespace OpenRCT2 { for (const auto& station : ride.getStations()) { - if (station.Start.IsNull()) + if (station.start.IsNull()) { return ride.getStationIndex(&station); } @@ -413,18 +413,18 @@ namespace OpenRCT2 return StationIndex::GetNull(); } - int32_t RideStation::GetBaseZ() const + int32_t RideStation::getBaseZ() const { - return Height * kCoordsZStep; + return height * kCoordsZStep; } - void RideStation::SetBaseZ(int32_t newZ) + void RideStation::setBaseZ(int32_t newZ) { - Height = newZ / kCoordsZStep; + height = newZ / kCoordsZStep; } - CoordsXYZ RideStation::GetStart() const + CoordsXYZ RideStation::getStart() const { - return { Start, GetBaseZ() }; + return { start, getBaseZ() }; } } // namespace OpenRCT2 diff --git a/src/openrct2/ride/Track.cpp b/src/openrct2/ride/Track.cpp index 804b5a687b..ab3de88400 100644 --- a/src/openrct2/ride/Track.cpp +++ b/src/openrct2/ride/Track.cpp @@ -75,10 +75,10 @@ static void ride_remove_station(Ride& ride, const CoordsXYZ& location) { for (auto& station : ride.getStations()) { - auto stationStart = station.GetStart(); + auto stationStart = station.getStart(); if (stationStart == location) { - station.Start.SetNull(); + station.start.SetNull(); ride.numStations--; break; } @@ -111,11 +111,11 @@ ResultWithMessage TrackAddStationElement(CoordsXYZD loc, RideId rideIndex, Comma assert(!stationIndex.IsNull()); auto& station = ride->getStation(stationIndex); - station.Start.x = loc.x; - station.Start.y = loc.y; - station.Height = loc.z / kCoordsZStep; - station.Depart = 1; - station.Length = 0; + station.start.x = loc.x; + station.start.y = loc.y; + station.height = loc.z / kCoordsZStep; + station.depart = 1; + station.length = 0; ride->numStations++; } return { true }; @@ -203,10 +203,10 @@ ResultWithMessage TrackAddStationElement(CoordsXYZD loc, RideId rideIndex, Comma else { auto& station = ride->getStation(stationIndex); - station.Start = loc; - station.Height = loc.z / kCoordsZStep; - station.Depart = 1; - station.Length = stationLength; + station.start = loc; + station.height = loc.z / kCoordsZStep; + station.depart = 1; + station.length = stationLength; ride->numStations++; } @@ -337,10 +337,10 @@ ResultWithMessage TrackRemoveStationElement(const CoordsXYZD& loc, RideId rideIn else { auto& station = ride->getStation(stationIndex); - station.Start = currentLoc; - station.Height = currentLoc.z / kCoordsZStep; - station.Depart = 1; - station.Length = stationLength != 0 ? stationLength : ByteF441D1; + station.start = currentLoc; + station.height = currentLoc.z / kCoordsZStep; + station.depart = 1; + station.length = stationLength != 0 ? stationLength : ByteF441D1; ride->numStations++; } diff --git a/src/openrct2/ride/TrackDesign.cpp b/src/openrct2/ride/TrackDesign.cpp index d87c48a45b..13c8a28cf9 100644 --- a/src/openrct2/ride/TrackDesign.cpp +++ b/src/openrct2/ride/TrackDesign.cpp @@ -270,16 +270,16 @@ ResultWithMessage TrackDesign::CreateTrackDesignTrack(TrackDesignState& tds, con { for (const auto& station : ride.getStations()) { - z = station.GetBaseZ(); + z = station.getBaseZ(); TileCoordsXYZD location; if (i == 0) { - location = station.Entrance; + location = station.entrance; } else { - location = station.Exit; + location = station.exit; } if (location.IsNull()) @@ -390,7 +390,7 @@ ResultWithMessage TrackDesign::CreateTrackDesignMaze(TrackDesignState& tds, cons x = 0; } - auto location = ride.getStation().Entrance; + auto location = ride.getStation().entrance; if (location.IsNull()) { return { false, STR_TRACK_TOO_LARGE_OR_TOO_MUCH_SCENERY }; @@ -417,7 +417,7 @@ ResultWithMessage TrackDesign::CreateTrackDesignMaze(TrackDesignState& tds, cons mazeEntrance.isExit = false; entranceElements.push_back(mazeEntrance); - location = ride.getStation().Exit; + location = ride.getStation().exit; if (location.IsNull()) { return { false, STR_TRACK_TOO_LARGE_OR_TOO_MUCH_SCENERY }; diff --git a/src/openrct2/ride/TrackPaint.cpp b/src/openrct2/ride/TrackPaint.cpp index e51d5bc05c..a3980b5e4a 100644 --- a/src/openrct2/ride/TrackPaint.cpp +++ b/src/openrct2/ride/TrackPaint.cpp @@ -110,7 +110,7 @@ bool TrackPaintUtilHasFence( auto entranceId = trackElement.getStationIndex(); const auto& station = ride.getStation(entranceId); - return (entranceLoc != station.Entrance && entranceLoc != station.Exit); + return (entranceLoc != station.entrance && entranceLoc != station.exit); } void TrackPaintUtilPaintFloor( diff --git a/src/openrct2/ride/Vehicle.BoatHire.cpp b/src/openrct2/ride/Vehicle.BoatHire.cpp index ca5b54c263..020572909e 100644 --- a/src/openrct2/ride/Vehicle.BoatHire.cpp +++ b/src/openrct2/ride/Vehicle.BoatHire.cpp @@ -55,10 +55,10 @@ void Vehicle::UpdateDepartingBoatHire() return; auto& station = curRide->getStation(current_station); - station.Depart &= kStationDepartFlag; + station.depart &= kStationDepartFlag; uint8_t waitingTime = std::max(curRide->minWaitingTime, static_cast(3)); waitingTime = std::min(waitingTime, static_cast(127)); - station.Depart |= waitingTime; + station.depart |= waitingTime; UpdateTravellingBoatHireSetup(); } diff --git a/src/openrct2/ride/Vehicle.MiniGolf.cpp b/src/openrct2/ride/Vehicle.MiniGolf.cpp index 472cf77543..6f107c2a06 100644 --- a/src/openrct2/ride/Vehicle.MiniGolf.cpp +++ b/src/openrct2/ride/Vehicle.MiniGolf.cpp @@ -625,11 +625,11 @@ void Vehicle::Loc6DCE02(const Ride& curRide) for (const auto& station : curRide.getStations()) { - if (TrackLocation != station.Start) + if (TrackLocation != station.start) { continue; } - if (TrackLocation.z != station.GetBaseZ()) + if (TrackLocation.z != station.getBaseZ()) { continue; } diff --git a/src/openrct2/ride/Vehicle.Station.cpp b/src/openrct2/ride/Vehicle.Station.cpp index eff5f03dea..deea2eee00 100644 --- a/src/openrct2/ride/Vehicle.Station.cpp +++ b/src/openrct2/ride/Vehicle.Station.cpp @@ -94,7 +94,7 @@ static bool try_add_synchronised_station(const CoordsXYZ& coords) /* Station is not ready to depart, so just return; * vehicle_id for this station is SPRITE_INDEX_NULL. */ - if (!(ride->getStation(stationIndex).Depart & kStationDepartFlag)) + if (!(ride->getStation(stationIndex).depart & kStationDepartFlag)) { return true; } @@ -149,7 +149,7 @@ static bool try_add_synchronised_station(const CoordsXYZ& coords) static bool ride_station_can_depart_synchronised(const Ride& ride, StationIndex stationIndex) { const auto& station = ride.getStation(stationIndex); - auto location = station.GetStart(); + auto location = station.getStart(); auto tileElement = MapGetTrackElementAt(location); if (tileElement == nullptr) @@ -184,7 +184,7 @@ static bool ride_station_can_depart_synchronised(const Ride& ride, StationIndex } // Other search direction. - location = station.GetStart(); + location = station.getStart(); direction = DirectionReverse(direction) & 3; spaceBetween = maxCheckDistance; while (_lastSynchronisedVehicle < &_synchronisedVehicles[kSynchronisedVehicleCount - 1]) @@ -217,7 +217,7 @@ static bool ride_station_can_depart_synchronised(const Ride& ride, StationIndex { if (sv_ride->isBlockSectioned()) { - if (!(sv_ride->getStation(sv->stationIndex).Depart & kStationDepartFlag)) + if (!(sv_ride->getStation(sv->stationIndex).depart & kStationDepartFlag)) { sv = _synchronisedVehicles; RideId rideId = RideId::GetNull(); @@ -477,7 +477,7 @@ void Vehicle::TrainReadyToDepart(uint8_t num_peeps_on_train, uint8_t num_used_se // Boat Hire with passengers on it. if (curRide->status != RideStatus::closed || (curRide->numRiders != 0 && rtd.specialType != RtdSpecialType::boatHire)) { - curRide->getStation(current_station).TrainAtStation = RideStation::kNoTrain; + curRide->getStation(current_station).trainAtStation = RideStation::kNoTrain; sub_state = 2; return; } @@ -488,7 +488,7 @@ void Vehicle::TrainReadyToDepart(uint8_t num_peeps_on_train, uint8_t num_used_se uint8_t seat = ((-flatRideAnimationFrame) / 8) & 0xF; if (!peep[seat].IsNull()) { - curRide->getStation(current_station).TrainAtStation = RideStation::kNoTrain; + curRide->getStation(current_station).trainAtStation = RideStation::kNoTrain; SetState(Status::unloadingPassengers); return; } @@ -496,7 +496,7 @@ void Vehicle::TrainReadyToDepart(uint8_t num_peeps_on_train, uint8_t num_used_se if (num_peeps == 0) return; - curRide->getStation(current_station).TrainAtStation = RideStation::kNoTrain; + curRide->getStation(current_station).trainAtStation = RideStation::kNoTrain; sub_state = 2; return; } @@ -504,7 +504,7 @@ void Vehicle::TrainReadyToDepart(uint8_t num_peeps_on_train, uint8_t num_used_se if (num_peeps_on_train == 0) return; - curRide->getStation(current_station).TrainAtStation = RideStation::kNoTrain; + curRide->getStation(current_station).trainAtStation = RideStation::kNoTrain; SetState(Status::waitingForPassengers); } @@ -526,9 +526,9 @@ void Vehicle::UpdateWaitingForPassengers() return; auto& station = curRide->getStation(current_station); - if (station.Entrance.IsNull()) + if (station.entrance.IsNull()) { - station.TrainAtStation = RideStation::kNoTrain; + station.trainAtStation = RideStation::kNoTrain; sub_state = 2; return; } @@ -539,10 +539,10 @@ void Vehicle::UpdateWaitingForPassengers() return; } - if (station.TrainAtStation != RideStation::kNoTrain) + if (station.trainAtStation != RideStation::kNoTrain) return; - station.TrainAtStation = trainIndex.value(); + station.trainAtStation = trainIndex.value(); sub_state = 1; time_waiting = 0; @@ -720,7 +720,7 @@ void Vehicle::UpdateWaitingToDepart() } else { - if (!currentStation.Exit.IsNull()) + if (!currentStation.exit.IsNull()) { SetState(Status::unloadingPassengers); return; @@ -734,7 +734,7 @@ void Vehicle::UpdateWaitingToDepart() { if (trainCar->num_peeps != 0) { - if (!currentStation.Exit.IsNull()) + if (!currentStation.exit.IsNull()) { SetState(Status::unloadingPassengers); return; @@ -747,7 +747,7 @@ void Vehicle::UpdateWaitingToDepart() if (!skipCheck) { - if (!(currentStation.Depart & kStationDepartFlag)) + if (!(currentStation.depart & kStationDepartFlag)) return; } @@ -950,7 +950,7 @@ void Vehicle::UpdateUnloadingPassengers() } else { - if (currentStation.Exit.IsNull()) + if (currentStation.exit.IsNull()) { if (sub_state != 1) return; @@ -1268,7 +1268,7 @@ void Vehicle::FinishDeparting() if (curRide->mode != RideMode::race && !curRide->isBlockSectioned()) { auto& currentStation = curRide->getStation(current_station); - currentStation.Depart &= kStationDepartFlag; + currentStation.depart &= kStationDepartFlag; uint8_t waitingTime = 3; if (curRide->departFlags & RIDE_DEPART_WAIT_FOR_MINIMUM_LENGTH) { @@ -1276,7 +1276,7 @@ void Vehicle::FinishDeparting() waitingTime = std::min(waitingTime, static_cast(127)); } - currentStation.Depart |= waitingTime; + currentStation.depart |= waitingTime; } lost_time_out = 0; SetState(Status::travelling, 1); diff --git a/src/openrct2/ride/Vehicle.cpp b/src/openrct2/ride/Vehicle.cpp index 95a9dcf2df..743cc37034 100644 --- a/src/openrct2/ride/Vehicle.cpp +++ b/src/openrct2/ride/Vehicle.cpp @@ -457,7 +457,7 @@ namespace OpenRCT2 return; const auto& currentStation = curRide->getStation(curRide->currentTestStation); - if (!currentStation.Entrance.IsNull()) + if (!currentStation.entrance.IsNull()) { uint8_t test_segment = curRide->currentTestSegment; StationIndex stationIndex = StationIndex::FromUnderlying(test_segment); @@ -476,13 +476,13 @@ namespace OpenRCT2 if (curRide->averageSpeedTestTimeout == 0 && absVelocity > 0) { curRide->averageSpeed = AddClamp(curRide->averageSpeed, absVelocity); - stationForTestSegment.SegmentTime++; + stationForTestSegment.segmentTime++; } int32_t distance = abs(((velocity + acceleration) >> 10) * 42); if (NumLaps == 0) { - stationForTestSegment.SegmentLength = AddClamp(stationForTestSegment.SegmentLength, distance); + stationForTestSegment.segmentLength = AddClamp(stationForTestSegment.segmentLength, distance); } if (curRide->getRideTypeDescriptor().flags.has(RtdFlag::hasGForces)) @@ -517,7 +517,7 @@ namespace OpenRCT2 { curRide->curTestTrackLocation = curTrackLoc; - if (currentStation.Entrance.IsNull()) + if (currentStation.entrance.IsNull()) return; auto trackElemType = GetTrackType(); @@ -705,7 +705,7 @@ namespace OpenRCT2 } } - if (currentStation.Entrance.IsNull()) + if (currentStation.entrance.IsNull()) return; if (x == kLocationNull) @@ -919,22 +919,22 @@ namespace OpenRCT2 auto rideStations = ride.getStations(); for (int32_t i = ride.numStations - 1; i >= 1; i--) { - if (rideStations[i - 1].SegmentTime != 0) + if (rideStations[i - 1].segmentTime != 0) continue; - uint16_t oldTime = rideStations[i - 1].SegmentTime; - rideStations[i - 1].SegmentTime = rideStations[i].SegmentTime; - rideStations[i].SegmentTime = oldTime; + uint16_t oldTime = rideStations[i - 1].segmentTime; + rideStations[i - 1].segmentTime = rideStations[i].segmentTime; + rideStations[i].segmentTime = oldTime; - int32_t oldLength = rideStations[i - 1].SegmentLength; - rideStations[i - 1].SegmentLength = rideStations[i].SegmentLength; - rideStations[i].SegmentLength = oldLength; + int32_t oldLength = rideStations[i - 1].segmentLength; + rideStations[i - 1].segmentLength = rideStations[i].segmentLength; + rideStations[i].segmentLength = oldLength; } uint32_t totalTime = 0; for (uint8_t i = 0; i < ride.numStations; ++i) { - totalTime += rideStations[i].SegmentTime; + totalTime += rideStations[i].segmentTime; } totalTime = std::max(totalTime, 1u); @@ -988,8 +988,8 @@ namespace OpenRCT2 ride.specialTrackElements.clearAll(); for (auto& station : ride.getStations()) { - station.SegmentLength = 0; - station.SegmentTime = 0; + station.segmentLength = 0; + station.segmentTime = 0; } ride.totalAirTime = 0; ride.currentTestStation = curStation; @@ -1137,7 +1137,7 @@ namespace OpenRCT2 // This is slightly different to the vanilla function auto& currentStation = curRide->getStation(current_station); - currentStation.Depart &= kStationDepartFlag; + currentStation.depart &= kStationDepartFlag; uint8_t waitingTime = 3; if (curRide->departFlags & RIDE_DEPART_WAIT_FOR_MINIMUM_LENGTH) { @@ -1145,7 +1145,7 @@ namespace OpenRCT2 waitingTime = std::min(waitingTime, static_cast(127)); } - currentStation.Depart |= waitingTime; + currentStation.depart |= waitingTime; } /** diff --git a/src/openrct2/scripting/bindings/ride/ScRideStation.cpp b/src/openrct2/scripting/bindings/ride/ScRideStation.cpp index a38bfdff22..9c88f40ee8 100644 --- a/src/openrct2/scripting/bindings/ride/ScRideStation.cpp +++ b/src/openrct2/scripting/bindings/ride/ScRideStation.cpp @@ -63,7 +63,7 @@ namespace OpenRCT2::Scripting auto station = GetRideStation(thisVal); if (station != nullptr) { - auto start = CoordsXYZ(station->Start, station->GetBaseZ()); + auto start = CoordsXYZ(station->start, station->getBaseZ()); return ToJSValue(ctx, start); } return JS_NULL; @@ -77,8 +77,8 @@ namespace OpenRCT2::Scripting if (station != nullptr) { auto start = JSToCoordsXYZ(ctx, value); - station->Start = { start.x, start.y }; - station->SetBaseZ(start.z); + station->start = { start.x, start.y }; + station->setBaseZ(start.z); } return JS_UNDEFINED; } @@ -86,7 +86,7 @@ namespace OpenRCT2::Scripting JSValue ScRideStation::length_get(JSContext* ctx, JSValue thisVal) { auto station = GetRideStation(thisVal); - return JS_NewInt32(ctx, station != nullptr ? station->Length : 0); + return JS_NewInt32(ctx, station != nullptr ? station->length : 0); } JSValue ScRideStation::length_set(JSContext* ctx, JSValue thisVal, JSValue value) @@ -97,7 +97,7 @@ namespace OpenRCT2::Scripting auto station = GetRideStation(thisVal); if (station != nullptr) { - station->Length = valueInt; + station->length = valueInt; } return JS_UNDEFINED; } @@ -107,7 +107,7 @@ namespace OpenRCT2::Scripting auto station = GetRideStation(thisVal); if (station != nullptr) { - return ToJSValue(ctx, station->Entrance.ToCoordsXYZD()); + return ToJSValue(ctx, station->entrance.ToCoordsXYZD()); } return JS_NULL; } @@ -119,7 +119,7 @@ namespace OpenRCT2::Scripting auto station = GetRideStation(thisVal); if (station != nullptr) { - station->Entrance = JSToCoordsXYZD(ctx, value); + station->entrance = JSToCoordsXYZD(ctx, value); } return JS_UNDEFINED; } @@ -129,7 +129,7 @@ namespace OpenRCT2::Scripting auto station = GetRideStation(thisVal); if (station != nullptr) { - return ToJSValue(ctx, station->Exit.ToCoordsXYZD()); + return ToJSValue(ctx, station->exit.ToCoordsXYZD()); } return JS_NULL; } @@ -141,7 +141,7 @@ namespace OpenRCT2::Scripting auto station = GetRideStation(thisVal); if (station != nullptr) { - station->Exit = JSToCoordsXYZD(ctx, value); + station->exit = JSToCoordsXYZD(ctx, value); } return JS_UNDEFINED; } @@ -149,7 +149,7 @@ namespace OpenRCT2::Scripting JSValue ScRideStation::queueTime_get(JSContext* ctx, JSValue thisVal) { auto station = GetRideStation(thisVal); - return JS_NewUint32(ctx, station != nullptr ? station->QueueTime : 0); + return JS_NewUint32(ctx, station != nullptr ? station->queueTime : 0); } } // namespace OpenRCT2::Scripting diff --git a/src/openrct2/world/Footpath.cpp b/src/openrct2/world/Footpath.cpp index a4630de408..9351e2d862 100644 --- a/src/openrct2/world/Footpath.cpp +++ b/src/openrct2/world/Footpath.cpp @@ -947,10 +947,10 @@ namespace OpenRCT2 for (const auto& station : ride->getStations()) { - if (station.Entrance.IsNull()) + if (station.entrance.IsNull()) continue; - TileElement* tileElement = MapGetFirstElementAt(station.Entrance); + TileElement* tileElement = MapGetFirstElementAt(station.entrance); if (tileElement != nullptr) { do @@ -964,7 +964,7 @@ namespace OpenRCT2 Direction direction = DirectionReverse(tileElement->getDirection()); FootpathChainRideQueue( - rideIndex, ride->getStationIndex(&station), station.Entrance.ToCoordsXY(), tileElement, direction); + rideIndex, ride->getStationIndex(&station), station.entrance.ToCoordsXY(), tileElement, direction); } while (!(tileElement++)->isLastForTile()); } } diff --git a/src/openrct2/world/Map.cpp b/src/openrct2/world/Map.cpp index 7ce6919d6c..d96892bf05 100644 --- a/src/openrct2/world/Map.cpp +++ b/src/openrct2/world/Map.cpp @@ -2283,9 +2283,9 @@ namespace OpenRCT2 auto stations = ride.getStations(); for (auto& station : stations) { - shiftIfNotNull(station.Start, amountToMove); - shiftIfNotNull(station.Entrance, amount); - shiftIfNotNull(station.Exit, amount); + shiftIfNotNull(station.start, amountToMove); + shiftIfNotNull(station.entrance, amount); + shiftIfNotNull(station.exit, amount); } shiftIfNotNull(ride.overallView, amountToMove); diff --git a/src/openrct2/world/Park.cpp b/src/openrct2/world/Park.cpp index d3f9ea8770..e62cffe1fe 100644 --- a/src/openrct2/world/Park.cpp +++ b/src/openrct2/world/Park.cpp @@ -124,7 +124,7 @@ namespace OpenRCT2::Park continue; if (!ride.getRideTypeDescriptor().flags.has(RtdFlag::hasDataLogging)) continue; - if (ride.getStation().SegmentLength < (600 << 16)) + if (ride.getStation().segmentLength < (600 << 16)) continue; if (ride.ratings.excitement < RideRating::make(6, 00)) continue; diff --git a/src/openrct2/world/TileInspector.cpp b/src/openrct2/world/TileInspector.cpp index f2f2cda597..9dc210adf7 100644 --- a/src/openrct2/world/TileInspector.cpp +++ b/src/openrct2/world/TileInspector.cpp @@ -239,8 +239,8 @@ namespace OpenRCT2::TileInspector { auto stationIndex = tileElement->asEntrance()->getStationIndex(); auto& station = ride->getStation(stationIndex); - auto entrance = station.Entrance; - auto exit = station.Exit; + auto entrance = station.entrance; + auto exit = station.exit; auto entranceType = tileElement->asEntrance()->getEntranceType(); uint8_t z = tileElement->baseHeight; @@ -248,13 +248,13 @@ namespace OpenRCT2::TileInspector if (entranceType == EntranceType::rideEntrance && entrance.x == loc.x / kCoordsXYStep && entrance.y == loc.y / kCoordsXYStep && entrance.z == z) { - station.Entrance = { entrance, newRotation }; + station.entrance = { entrance, newRotation }; } else if ( entranceType == EntranceType::rideExit && exit.x == loc.x / kCoordsXYStep && exit.y == loc.y / kCoordsXYStep && exit.z == z) { - station.Exit = { exit, newRotation }; + station.exit = { exit, newRotation }; } } break; @@ -469,15 +469,15 @@ namespace OpenRCT2::TileInspector { auto entranceIndex = tileElement->asEntrance()->getStationIndex(); auto& station = ride->getStation(entranceIndex); - const auto& entranceLoc = station.Entrance; - const auto& exitLoc = station.Exit; + const auto& entranceLoc = station.entrance; + const auto& exitLoc = station.exit; uint8_t z = tileElement->baseHeight; // Make sure this is the correct entrance or exit if (entranceType == EntranceType::rideEntrance && entranceLoc == TileCoordsXYZ{ loc, z }) - station.Entrance = { entranceLoc, z + heightOffset, entranceLoc.direction }; + station.entrance = { entranceLoc, z + heightOffset, entranceLoc.direction }; else if (entranceType == EntranceType::rideExit && exitLoc == TileCoordsXYZ{ loc, z }) - station.Exit = { exitLoc, z + heightOffset, exitLoc.direction }; + station.exit = { exitLoc, z + heightOffset, exitLoc.direction }; } } } @@ -656,10 +656,10 @@ namespace OpenRCT2::TileInspector switch (entranceElement->asEntrance()->getEntranceType()) { case EntranceType::rideEntrance: - station.Entrance = { loc, entranceElement->baseHeight, entranceElement->getDirection() }; + station.entrance = { loc, entranceElement->baseHeight, entranceElement->getDirection() }; break; case EntranceType::rideExit: - station.Exit = { loc, entranceElement->baseHeight, entranceElement->getDirection() }; + station.exit = { loc, entranceElement->baseHeight, entranceElement->getDirection() }; break; default: break; diff --git a/test/tests/Pathfinding.cpp b/test/tests/Pathfinding.cpp index bdb4eb6516..d3d094598d 100644 --- a/test/tests/Pathfinding.cpp +++ b/test/tests/Pathfinding.cpp @@ -198,7 +198,7 @@ TEST_P(SimplePathfindingTest, CanFindPathFromStartToGoal) auto ride = FindRideByName(scenario.name); ASSERT_NE(ride, nullptr); - auto entrancePos = ride->getStation().Entrance; + auto entrancePos = ride->getStation().entrance; TileCoordsXYZ goal = TileCoordsXYZ( entrancePos.x - TileDirectionDelta[entrancePos.direction].x, entrancePos.y - TileDirectionDelta[entrancePos.direction].y, entrancePos.z); @@ -236,7 +236,7 @@ TEST_P(ImpossiblePathfindingTest, CannotFindPathFromStartToGoal) auto ride = FindRideByName(scenario.name); ASSERT_NE(ride, nullptr); - auto entrancePos = ride->getStation().Entrance; + auto entrancePos = ride->getStation().entrance; TileCoordsXYZ goal = TileCoordsXYZ( entrancePos.x + TileDirectionDelta[entrancePos.direction].x, entrancePos.y + TileDirectionDelta[entrancePos.direction].y, entrancePos.z); From b0b81afcfaef418c9fa4825992f9f13319d59b1a Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 6 Sep 2026 16:08:30 +0200 Subject: [PATCH 013/142] Create function to get active water type --- src/openrct2/drawing/Drawing.cpp | 42 +++++++----------------------- src/openrct2/libopenrct2.vcxproj | 1 + src/openrct2/object/WaterEntry.cpp | 33 +++++++++++++++++++++++ src/openrct2/object/WaterEntry.h | 2 ++ src/openrct2/scenario/Scenario.cpp | 5 ++-- 5 files changed, 47 insertions(+), 36 deletions(-) create mode 100644 src/openrct2/object/WaterEntry.cpp diff --git a/src/openrct2/drawing/Drawing.cpp b/src/openrct2/drawing/Drawing.cpp index fe8541728a..7d1ad5f2b3 100644 --- a/src/openrct2/drawing/Drawing.cpp +++ b/src/openrct2/drawing/Drawing.cpp @@ -471,14 +471,9 @@ void LoadPalette() return; } - uint32_t palette = SPR_GAME_DEFAULT_PALETTE; - - auto water_type = OpenRCT2::ObjectEntryManager::GetObjectEntry(0); - if (water_type != nullptr) - { - Guard::Assert(water_type->mainPalette != kImageIndexUndefined, "Failed to load water palette"); - palette = water_type->mainPalette; - } + const auto& waterEntry = getActiveWaterEntry(); + Guard::Assert(waterEntry.mainPalette != kImageIndexUndefined, "Failed to load water palette"); + auto palette = waterEntry.mainPalette; const auto* g1 = GfxGetG1Palette(palette); if (g1 != nullptr) @@ -643,17 +638,12 @@ void UpdatePalette(std::span palette, PaletteIndex startIndex, */ void UpdatePaletteEffects() { - auto water_type = OpenRCT2::ObjectEntryManager::GetObjectEntry(0); + const auto& waterEntry = getActiveWaterEntry(); if (Weather::gLightningFlash == 1) { // Change palette to lighter colour during lightning - int32_t palette = SPR_GAME_DEFAULT_PALETTE; - - if (water_type != nullptr) - { - palette = water_type->mainPalette; - } + auto palette = waterEntry.mainPalette; const auto* g1 = GfxGetG1Palette(palette); if (g1 != nullptr) { @@ -677,13 +667,7 @@ void UpdatePaletteEffects() if (Weather::gLightningFlash == 2) { // Change palette back to normal after lightning - int32_t palette = SPR_GAME_DEFAULT_PALETTE; - - if (water_type != nullptr) - { - palette = water_type->mainPalette; - } - + auto palette = waterEntry.mainPalette; const auto* g1 = GfxGetG1Palette(palette); if (g1 != nullptr) { @@ -716,11 +700,8 @@ void UpdatePaletteEffects() } uint32_t j = gPaletteEffectFrame; j = ((static_cast((~j / 2) * 128) * 15) >> 16); - uint32_t waterId = SPR_GAME_PALETTE_WATER; - if (water_type != nullptr) - { - waterId = water_type->waterWavesPalette; - } + + auto waterId = waterEntry.waterWavesPalette; const auto* g1 = GfxGetG1Palette(shade + waterId); if (g1 != nullptr) { @@ -740,12 +721,7 @@ void UpdatePaletteEffects() } } - waterId = SPR_GAME_PALETTE_3; - if (water_type != nullptr) - { - waterId = water_type->waterSparklesPalette; - } - + waterId = waterEntry.waterSparklesPalette; g1 = GfxGetG1Palette(shade + waterId); if (g1 != nullptr) { diff --git a/src/openrct2/libopenrct2.vcxproj b/src/openrct2/libopenrct2.vcxproj index af51333166..d5002f7f49 100644 --- a/src/openrct2/libopenrct2.vcxproj +++ b/src/openrct2/libopenrct2.vcxproj @@ -1012,6 +1012,7 @@ + diff --git a/src/openrct2/object/WaterEntry.cpp b/src/openrct2/object/WaterEntry.cpp new file mode 100644 index 0000000000..79873fe1c5 --- /dev/null +++ b/src/openrct2/object/WaterEntry.cpp @@ -0,0 +1,33 @@ +/***************************************************************************** + * Copyright (c) 2014-2026 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#include "WaterEntry.h" + +#include "../SpriteIds.h" +#include "ObjectEntryManager.h" + +namespace OpenRCT2 +{ + static constexpr WaterObjectEntry kFallbackWaterEntry = { + .stringId = kStringIdNone, + .mainPalette = SPR_GAME_DEFAULT_PALETTE, + .waterWavesPalette = SPR_GAME_PALETTE_WATER, + .waterSparklesPalette = SPR_GAME_PALETTE_3, + .flags = 0, + }; + + const WaterObjectEntry& getActiveWaterEntry() + { + const auto* waterEntry = ObjectEntryManager::GetObjectEntry(0); + if (waterEntry != nullptr) + return *waterEntry; + + return kFallbackWaterEntry; + } +} // namespace OpenRCT2 diff --git a/src/openrct2/object/WaterEntry.h b/src/openrct2/object/WaterEntry.h index 7130856397..cc7ea845c4 100644 --- a/src/openrct2/object/WaterEntry.h +++ b/src/openrct2/object/WaterEntry.h @@ -30,4 +30,6 @@ namespace OpenRCT2 ImageIndex waterSparklesPalette; uint16_t flags; }; + + const WaterObjectEntry& getActiveWaterEntry(); } // namespace OpenRCT2 diff --git a/src/openrct2/scenario/Scenario.cpp b/src/openrct2/scenario/Scenario.cpp index 517dd9b1c5..8b473697e6 100644 --- a/src/openrct2/scenario/Scenario.cpp +++ b/src/openrct2/scenario/Scenario.cpp @@ -305,9 +305,8 @@ static void ScenarioWeekUpdate() RideCheckAllReachable(); RideUpdateFavouritedStat(); - auto water_type = OpenRCT2::ObjectEntryManager::GetObjectEntry(0); - - if (month <= MONTH_APRIL && water_type != nullptr && water_type->flags & WATER_FLAGS_ALLOW_DUCKS) + const auto& waterEntry = getActiveWaterEntry(); + if (month <= MONTH_APRIL && waterEntry.flags & WATER_FLAGS_ALLOW_DUCKS) { // 100 attempts at finding some water to create a few ducks at for (int32_t i = 0; i < 100; i++) From 49eeb352616444fa3baec7b4184a7d116127b846 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 6 Sep 2026 16:10:56 +0200 Subject: [PATCH 014/142] Rename ColourPalette.h to PaletteType.h --- src/openrct2/core/Imaging.h | 2 +- src/openrct2/drawing/BlendColourMap.cpp | 2 +- src/openrct2/drawing/BlendColourMap.h | 2 +- src/openrct2/drawing/Drawing.h | 2 +- src/openrct2/drawing/IDrawingEngine.h | 2 +- src/openrct2/drawing/LightFX.h | 2 +- src/openrct2/drawing/NewDrawing.h | 2 +- src/openrct2/drawing/{ColourPalette.h => PaletteType.h} | 0 src/openrct2/libopenrct2.vcxproj | 2 +- 9 files changed, 8 insertions(+), 8 deletions(-) rename src/openrct2/drawing/{ColourPalette.h => PaletteType.h} (100%) diff --git a/src/openrct2/core/Imaging.h b/src/openrct2/core/Imaging.h index fd0ec17dec..984860b043 100644 --- a/src/openrct2/core/Imaging.h +++ b/src/openrct2/core/Imaging.h @@ -9,7 +9,7 @@ #pragma once -#include "../drawing/ColourPalette.h" +#include "../drawing/PaletteType.h" #include #include diff --git a/src/openrct2/drawing/BlendColourMap.cpp b/src/openrct2/drawing/BlendColourMap.cpp index 9c70f920a8..fd400ea0c1 100644 --- a/src/openrct2/drawing/BlendColourMap.cpp +++ b/src/openrct2/drawing/BlendColourMap.cpp @@ -14,8 +14,8 @@ #ifndef DISABLE_TTF #include "../core/EnumUtils.hpp" - #include "ColourPalette.h" #include "Drawing.h" + #include "PaletteType.h" #include diff --git a/src/openrct2/drawing/BlendColourMap.h b/src/openrct2/drawing/BlendColourMap.h index 1c44b744ba..14eb984e61 100644 --- a/src/openrct2/drawing/BlendColourMap.h +++ b/src/openrct2/drawing/BlendColourMap.h @@ -9,7 +9,7 @@ #pragma once -#include "ColourPalette.h" +#include "PaletteType.h" #include diff --git a/src/openrct2/drawing/Drawing.h b/src/openrct2/drawing/Drawing.h index fa96906d89..e71d4f90de 100644 --- a/src/openrct2/drawing/Drawing.h +++ b/src/openrct2/drawing/Drawing.h @@ -11,9 +11,9 @@ #include "../core/CallingConventions.h" #include "Colour.h" -#include "ColourPalette.h" #include "ImageId.hpp" #include "PaletteMap.h" +#include "PaletteType.h" #include #include diff --git a/src/openrct2/drawing/IDrawingEngine.h b/src/openrct2/drawing/IDrawingEngine.h index 2bdf6aeb65..2932d67128 100644 --- a/src/openrct2/drawing/IDrawingEngine.h +++ b/src/openrct2/drawing/IDrawingEngine.h @@ -10,7 +10,7 @@ #pragma once #include "../core/FlagHolder.hpp" -#include "ColourPalette.h" +#include "PaletteType.h" #include "WeatherDrawer.h" #include diff --git a/src/openrct2/drawing/LightFX.h b/src/openrct2/drawing/LightFX.h index 0d1fe841f6..38854a4dd1 100644 --- a/src/openrct2/drawing/LightFX.h +++ b/src/openrct2/drawing/LightFX.h @@ -9,7 +9,7 @@ #pragma once -#include "ColourPalette.h" +#include "PaletteType.h" #include diff --git a/src/openrct2/drawing/NewDrawing.h b/src/openrct2/drawing/NewDrawing.h index 60f04bbcc6..5f6d1547c3 100644 --- a/src/openrct2/drawing/NewDrawing.h +++ b/src/openrct2/drawing/NewDrawing.h @@ -9,7 +9,7 @@ #pragma once -#include "ColourPalette.h" +#include "PaletteType.h" namespace OpenRCT2::Drawing { diff --git a/src/openrct2/drawing/ColourPalette.h b/src/openrct2/drawing/PaletteType.h similarity index 100% rename from src/openrct2/drawing/ColourPalette.h rename to src/openrct2/drawing/PaletteType.h diff --git a/src/openrct2/libopenrct2.vcxproj b/src/openrct2/libopenrct2.vcxproj index d5002f7f49..bc103bd1d5 100644 --- a/src/openrct2/libopenrct2.vcxproj +++ b/src/openrct2/libopenrct2.vcxproj @@ -252,7 +252,6 @@ - @@ -268,6 +267,7 @@ + From 5491820d0291e171245d997983057c386daa928e Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 6 Sep 2026 16:41:19 +0200 Subject: [PATCH 015/142] Move game palette-related stuff into Palette.{cpp.h} --- src/openrct2-ui/title/TitleSequencePlayer.cpp | 3 +- .../windows/EditorObjectSelection.cpp | 3 +- src/openrct2/Context.cpp | 3 +- src/openrct2/Game.cpp | 4 +- src/openrct2/GameState.cpp | 4 +- src/openrct2/drawing/BlendColourMap.cpp | 1 + src/openrct2/drawing/Drawing.cpp | 269 +---------------- src/openrct2/drawing/Drawing.h | 13 - src/openrct2/drawing/Palette.cpp | 285 ++++++++++++++++++ src/openrct2/drawing/Palette.h | 30 ++ src/openrct2/interface/Screenshot.cpp | 1 + src/openrct2/libopenrct2.vcxproj | 2 + src/openrct2/object/WaterObject.cpp | 4 +- src/openrct2/paint/Painter.cpp | 1 + src/openrct2/scenario/Scenario.cpp | 4 +- .../scenes/editor/EditorController.cpp | 3 +- src/openrct2/scenes/editor/EditorScene.cpp | 6 +- .../scenes/editor/TrackDesignerScene.cpp | 4 +- .../scenes/editor/TrackManagerScene.cpp | 4 +- src/openrct2/scenes/intro/IntroScene.cpp | 1 + src/openrct2/scenes/title/TitleScene.cpp | 3 +- test/tests/PlayTests.cpp | 3 +- test/tests/S6ImportExportTests.cpp | 3 +- 23 files changed, 352 insertions(+), 302 deletions(-) create mode 100644 src/openrct2/drawing/Palette.cpp create mode 100644 src/openrct2/drawing/Palette.h diff --git a/src/openrct2-ui/title/TitleSequencePlayer.cpp b/src/openrct2-ui/title/TitleSequencePlayer.cpp index 91b944a216..58d4f1cf16 100644 --- a/src/openrct2-ui/title/TitleSequencePlayer.cpp +++ b/src/openrct2-ui/title/TitleSequencePlayer.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -441,7 +442,7 @@ namespace OpenRCT2::Title ContextBroadcastIntent(&intent); Ui::Windows::WindowScenerySetDefaultPlacementConfiguration(); News::InitQueue(gameState); - LoadPalette(); + Drawing::LoadPalette(); gScreenAge = 0; gGamePaused = false; gGameSpeed = 1; diff --git a/src/openrct2-ui/windows/EditorObjectSelection.cpp b/src/openrct2-ui/windows/EditorObjectSelection.cpp index d360eb955c..f9a0bde650 100644 --- a/src/openrct2-ui/windows/EditorObjectSelection.cpp +++ b/src/openrct2-ui/windows/EditorObjectSelection.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -1721,7 +1722,7 @@ namespace OpenRCT2::Ui::Windows if (Editor::_numSelectedObjectsForType[EnumValue(ObjectType::water)] == 0) { // Reloads the default cyan water palette if no palette was selected. - LoadPalette(); + Drawing::LoadPalette(); } if (showFallbackWarning) ContextShowError(STR_OBJECT_SELECTION_FALLBACK_IMAGES_WARNING, kStringIdEmpty, {}); diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 6709afca4e..748e4b5d1a 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -47,6 +47,7 @@ #include "drawing/IDrawingEngine.h" #include "drawing/Image.h" #include "drawing/LightFX.h" +#include "drawing/Palette.h" #include "drawing/PickupPeep.h" #include "entity/EntityTweener.h" #include "entity/PatrolArea.h" @@ -1390,7 +1391,7 @@ namespace OpenRCT2 if (GameIsNotPaused()) { - gPaletteEffectFrame += gCurrentDeltaTime; + Drawing::gPaletteEffectFrame += gCurrentDeltaTime; } DateUpdateRealTimeOfDay(); diff --git a/src/openrct2/Game.cpp b/src/openrct2/Game.cpp index 416a9a2f16..830607f900 100644 --- a/src/openrct2/Game.cpp +++ b/src/openrct2/Game.cpp @@ -28,7 +28,7 @@ #include "core/FileSystem.hpp" #include "core/Path.hpp" #include "core/String.hpp" -#include "drawing/Drawing.h" +#include "drawing/Palette.h" #include "drawing/ScrollingText.h" #include "entity/EntityList.h" #include "entity/EntityRegistry.h" @@ -374,7 +374,7 @@ void GameLoadInit() gWindowUpdateTicks = 0; gCurrentRealTimeTicks = 0; - LoadPalette(); + Drawing::LoadPalette(); if (!gOpenRCT2Headless) { diff --git a/src/openrct2/GameState.cpp b/src/openrct2/GameState.cpp index 33bdb376cb..37aca8d4d2 100644 --- a/src/openrct2/GameState.cpp +++ b/src/openrct2/GameState.cpp @@ -16,7 +16,7 @@ #include "ReplayManager.h" #include "actions/GameActionRunner.h" #include "config/Config.h" -#include "drawing/Drawing.h" +#include "drawing/Palette.h" #include "entity/EntityTweener.h" #include "entity/PatrolArea.h" #include "interface/Screenshot.h" @@ -84,7 +84,7 @@ namespace OpenRCT2 auto clipboardIntent = Intent(INTENT_ACTION_CLEAR_TILE_INSPECTOR_CLIPBOARD); ContextBroadcastIntent(&clipboardIntent); - LoadPalette(); + Drawing::LoadPalette(); CheatsReset(); ClearRestrictedScenery(); diff --git a/src/openrct2/drawing/BlendColourMap.cpp b/src/openrct2/drawing/BlendColourMap.cpp index fd400ea0c1..fa1283cb9d 100644 --- a/src/openrct2/drawing/BlendColourMap.cpp +++ b/src/openrct2/drawing/BlendColourMap.cpp @@ -15,6 +15,7 @@ #include "../core/EnumUtils.hpp" #include "Drawing.h" + #include "Palette.h" #include "PaletteType.h" #include diff --git a/src/openrct2/drawing/Drawing.cpp b/src/openrct2/drawing/Drawing.cpp index 7d1ad5f2b3..32a97531d3 100644 --- a/src/openrct2/drawing/Drawing.cpp +++ b/src/openrct2/drawing/Drawing.cpp @@ -10,23 +10,16 @@ #include "Drawing.h" #include "../Context.h" -#include "../Diagnostic.h" #include "../Game.h" #include "../GameState.h" -#include "../OpenRCT2.h" #include "../SpriteIds.h" #include "../config/Config.h" -#include "../core/Guard.hpp" #include "../interface/ScreenCoords.hpp" -#include "../object/ObjectEntryManager.h" -#include "../object/WaterEntry.h" -#include "../util/Util.h" -#include "../world/Weather.h" #include "Drawing.Sprite.h" #include "FilterPaletteIds.h" #include "Font.h" -#include "LightFX.h" #include "NewDrawing.h" +#include "Palette.h" #include "Rectangle.h" #include "RenderTarget.h" #include "Text.h" @@ -38,19 +31,6 @@ using namespace OpenRCT2; using namespace OpenRCT2::Drawing; -static constexpr auto kPaletteOffsetDynamic = PaletteIndex::pi10; -static constexpr uint8_t kPaletteLengthDynamic = 236; - -static constexpr uint8_t kPaletteLengthWaterWaves = 5; -static constexpr uint8_t kPaletteLengthWaterSparkles = 5; - -static constexpr auto kPaletteOffsetAnimated = PaletteIndex::waterWaves0; -static constexpr uint8_t kPaletteLengthAnimated = 16; - -GamePalette gPalette; -GamePalette gGamePalette; -uint32_t gPaletteEffectFrame; - bool gPaintForceRedraw{ false }; static constexpr FilterPaletteID kGlassPaletteIds[kColourNumTotal] = { @@ -430,70 +410,6 @@ void GfxFilterPixel(RenderTarget& rt, const ScreenCoordsXY& coords, FilterPalett Rectangle::filter(rt, { coords, coords }, palette); } -/** - * - * rct2: 0x00683854 - * a1 (ebx) - * product (cl) - */ -void GfxTransposePalette(ImageIndex pal, uint8_t product) -{ - const auto* g1 = GfxGetG1Palette(pal); - if (g1 == nullptr) - return; - - auto index = g1->startIndex; - auto* src = g1->palette; - - for (auto numColours = g1->numColours; numColours > 0; numColours--) - { - auto& dst = gGamePalette[index]; - // Make sure the image never gets darker than the void colour (not-quite-black), to avoid the background colour - // jumping between void and 100% black. - dst.blue = std::max(35, ((src->blue * product) >> 8)); - dst.green = std::max(35, ((src->green * product) >> 8)); - dst.red = std::max(23, ((src->red * product) >> 8)); - src++; - - index++; - } - UpdatePalette(gGamePalette, PaletteIndex::pi10, 236); -} - -/** - * - * rct2: 0x006837E3 - */ -void LoadPalette() -{ - if (gOpenRCT2NoGraphics) - { - return; - } - - const auto& waterEntry = getActiveWaterEntry(); - Guard::Assert(waterEntry.mainPalette != kImageIndexUndefined, "Failed to load water palette"); - auto palette = waterEntry.mainPalette; - - const auto* g1 = GfxGetG1Palette(palette); - if (g1 != nullptr) - { - auto index = g1->startIndex; - auto* src = g1->palette; - for (auto numColours = g1->numColours; numColours > 0; numColours--) - { - auto& dst = gGamePalette[index]; - dst.blue = src->blue; - dst.green = src->green; - dst.red = src->red; - src++; - index++; - } - } - UpdatePalette(gGamePalette, PaletteIndex::pi10, 236); - GfxInvalidateScreen(); -} - /** * * rct2: 0x006ED7E5 @@ -590,191 +506,10 @@ FilterPaletteID GetGlassPaletteId(Colour c) return kGlassPaletteIds[EnumValue(c)]; } -void UpdatePalette(std::span palette, PaletteIndex startIndex, int32_t numColours) -{ - for (int32_t i = EnumValue(startIndex); i < numColours + EnumValue(startIndex); i++) - { - const auto& colour = palette[i]; - uint8_t b = colour.blue; - uint8_t g = colour.green; - uint8_t r = colour.red; - - if (LightFx::IsAvailable()) - { - LightFx::ApplyPaletteFilter(i, &r, &g, &b); - } - else - { - float night = gDayNightCycle; - if (night >= 0 && Weather::gLightningFlash == 0) - { - r = Lerp(r, SoftLight(r, 8), night); - g = Lerp(g, SoftLight(g, 8), night); - b = Lerp(b, SoftLight(b, 128), night); - } - } - - gPalette[i].blue = b; - gPalette[i].green = g; - gPalette[i].red = r; - gPalette[i].alpha = 0; - } - - // Fix #1749 and #6535: rainbow path, donut shop and pause button contain black spots that should be white. - gPalette[255].blue = 255; - gPalette[255].green = 255; - gPalette[255].red = 255; - gPalette[255].alpha = 0; - - if (!gOpenRCT2Headless) - { - DrawingEngineSetPalette(gPalette); - } -} - -/** - * - * rct2: 0x006838BD - */ -void UpdatePaletteEffects() -{ - const auto& waterEntry = getActiveWaterEntry(); - - if (Weather::gLightningFlash == 1) - { - // Change palette to lighter colour during lightning - auto palette = waterEntry.mainPalette; - const auto* g1 = GfxGetG1Palette(palette); - if (g1 != nullptr) - { - auto startIndex = g1->startIndex; - - for (int32_t i = 0; i < g1->numColours; i++) - { - auto& paletteOffset = gGamePalette[startIndex + i]; - const auto& g1PaletteEntry = g1->palette[i]; - paletteOffset.blue = -((0xFF - g1PaletteEntry.blue) / 2) - 1; - paletteOffset.green = -((0xFF - g1PaletteEntry.green) / 2) - 1; - paletteOffset.red = -((0xFF - g1PaletteEntry.red) / 2) - 1; - } - - UpdatePalette(gGamePalette, kPaletteOffsetDynamic, kPaletteLengthDynamic); - } - Weather::gLightningFlash++; - } - else - { - if (Weather::gLightningFlash == 2) - { - // Change palette back to normal after lightning - auto palette = waterEntry.mainPalette; - const auto* g1 = GfxGetG1Palette(palette); - if (g1 != nullptr) - { - auto startIndex = g1->startIndex; - - for (int32_t i = 0; i < g1->numColours; i++) - { - auto& paletteOffset = gGamePalette[startIndex + i]; - const auto& g1PaletteEntry = g1->palette[i]; - paletteOffset.blue = g1PaletteEntry.blue; - paletteOffset.green = g1PaletteEntry.green; - paletteOffset.red = g1PaletteEntry.red; - } - } - } - - // Animate the water/lava/chain movement palette - uint32_t shade = 0; - if (Config::Get().general.renderWeatherGloom) - { - auto paletteId = Weather::getWeatherGloomPaletteId(getGameState().weatherCurrent); - if (paletteId != FilterPaletteID::paletteNull) - { - shade = 1; - if (paletteId != FilterPaletteID::paletteDarken1) - { - shade = 2; - } - } - } - uint32_t j = gPaletteEffectFrame; - j = ((static_cast((~j / 2) * 128) * 15) >> 16); - - auto waterId = waterEntry.waterWavesPalette; - const auto* g1 = GfxGetG1Palette(shade + waterId); - if (g1 != nullptr) - { - const auto* g1PaletteEntry = &g1->palette[j]; - int32_t n = kPaletteLengthWaterWaves; - for (int32_t i = 0; i < n; i++) - { - auto& vd = gGamePalette[EnumValue(PaletteIndex::waterWaves0) + i]; - vd.blue = g1PaletteEntry->blue; - vd.green = g1PaletteEntry->green; - vd.red = g1PaletteEntry->red; - g1PaletteEntry += 3; - if (g1PaletteEntry >= &g1->palette[3 * n]) - { - g1PaletteEntry -= 3 * n; - } - } - } - - waterId = waterEntry.waterSparklesPalette; - g1 = GfxGetG1Palette(shade + waterId); - if (g1 != nullptr) - { - auto* src = &g1->palette[j]; - int32_t n = kPaletteLengthWaterSparkles; - for (int32_t i = 0; i < n; i++) - { - auto& vd = gGamePalette[EnumValue(PaletteIndex::waterSparkles0) + i]; - vd.blue = src->blue; - vd.green = src->green; - vd.red = src->red; - src += 3; - if (src >= &g1->palette[3 * n]) - { - src -= 3 * n; - } - } - } - - j = (static_cast(gPaletteEffectFrame * -960) * 3) >> 16; - waterId = SPR_GAME_PALETTE_4; - g1 = GfxGetG1Palette(shade + waterId); - if (g1 != nullptr) - { - auto* src = &g1->palette[j]; - const int32_t n = 3; - for (int32_t i = 0; i < n; i++) - { - auto& vd = gGamePalette[EnumValue(PaletteIndex::primaryRemap0) + i]; - vd.blue = src->blue; - vd.green = src->green; - vd.red = src->red; - src++; - if (src >= &g1->palette[3]) - { - src -= n; - } - } - } - - UpdatePalette(gGamePalette, kPaletteOffsetAnimated, kPaletteLengthAnimated); - if (Weather::gLightningFlash == 2) - { - UpdatePalette(gGamePalette, kPaletteOffsetDynamic, kPaletteLengthDynamic); - Weather::gLightningFlash = 0; - } - } -} - void RefreshVideo() { ContextRecreateWindow(); - DrawingEngineSetPalette(gPalette); + DrawingEngineSetPalette(Drawing::gPalette); GfxInvalidateScreen(); } diff --git a/src/openrct2/drawing/Drawing.h b/src/openrct2/drawing/Drawing.h index e71d4f90de..7f1a4ec557 100644 --- a/src/openrct2/drawing/Drawing.h +++ b/src/openrct2/drawing/Drawing.h @@ -13,10 +13,8 @@ #include "Colour.h" #include "ImageId.hpp" #include "PaletteMap.h" -#include "PaletteType.h" #include -#include struct ScreenCoordsXY; struct ScreenLine; @@ -43,10 +41,6 @@ namespace OpenRCT2::Drawing constexpr uint8_t kPaletteTotalOffsets = 192; -extern OpenRCT2::Drawing::GamePalette gPalette; -extern OpenRCT2::Drawing::GamePalette gGamePalette; -extern uint32_t gPaletteEffectFrame; - extern const OpenRCT2::Drawing::TranslucentWindowPalette kTranslucentWindowPalettes[OpenRCT2::Drawing::kColourNumTotal]; extern bool gPaintForceRedraw; @@ -57,10 +51,6 @@ bool ClipRenderTarget( void GfxSetDirtyBlocks(const ScreenRect& rect); void GfxInvalidateScreen(); -// palette -void GfxTransposePalette(ImageIndex pal, uint8_t product); -void LoadPalette(); - // other void GfxClear(OpenRCT2::Drawing::RenderTarget& rt, OpenRCT2::Drawing::PaletteIndex paletteIndex); void GfxFilterPixel( @@ -85,9 +75,6 @@ void FASTCALL GfxDrawSpriteRawMasked( std::optional GetPaletteG1Index(OpenRCT2::Drawing::FilterPaletteID paletteId); std::optional GetPaletteMapForColour(OpenRCT2::Drawing::FilterPaletteID paletteId); -void UpdatePalette( - std::span palette, OpenRCT2::Drawing::PaletteIndex startIndex, int32_t numColours); -void UpdatePaletteEffects(); void RefreshVideo(); void ToggleWindowedMode(); diff --git a/src/openrct2/drawing/Palette.cpp b/src/openrct2/drawing/Palette.cpp new file mode 100644 index 0000000000..9cd5ffdf36 --- /dev/null +++ b/src/openrct2/drawing/Palette.cpp @@ -0,0 +1,285 @@ +/***************************************************************************** + * Copyright (c) 2014-2026 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#include "Palette.h" + +#include "../Game.h" +#include "../GameState.h" +#include "../OpenRCT2.h" +#include "../SpriteIds.h" +#include "../config/Config.h" +#include "../object/WaterEntry.h" +#include "../util/Util.h" +#include "../world/Weather.h" +#include "Drawing.Sprite.h" +#include "Drawing.h" +#include "FilterPaletteIds.h" +#include "LightFX.h" +#include "NewDrawing.h" + +namespace OpenRCT2::Drawing +{ + static constexpr auto kPaletteOffsetDynamic = PaletteIndex::pi10; + static constexpr uint8_t kPaletteLengthDynamic = 236; + + static constexpr uint8_t kPaletteLengthWaterWaves = 5; + static constexpr uint8_t kPaletteLengthWaterSparkles = 5; + + static constexpr auto kPaletteOffsetAnimated = PaletteIndex::waterWaves0; + static constexpr uint8_t kPaletteLengthAnimated = 16; + + GamePalette gPalette; + GamePalette gGamePalette; + uint32_t gPaletteEffectFrame; + + void UpdatePalette(std::span palette, PaletteIndex startIndex, int32_t numColours) + { + for (int32_t i = EnumValue(startIndex); i < numColours + EnumValue(startIndex); i++) + { + const auto& colour = palette[i]; + uint8_t b = colour.blue; + uint8_t g = colour.green; + uint8_t r = colour.red; + + if (LightFx::IsAvailable()) + { + LightFx::ApplyPaletteFilter(i, &r, &g, &b); + } + else + { + float night = gDayNightCycle; + if (night >= 0 && Weather::gLightningFlash == 0) + { + r = Lerp(r, SoftLight(r, 8), night); + g = Lerp(g, SoftLight(g, 8), night); + b = Lerp(b, SoftLight(b, 128), night); + } + } + + gPalette[i].blue = b; + gPalette[i].green = g; + gPalette[i].red = r; + gPalette[i].alpha = 0; + } + + // Fix #1749 and #6535: rainbow path, donut shop and pause button contain black spots that should be white. + gPalette[255].blue = 255; + gPalette[255].green = 255; + gPalette[255].red = 255; + gPalette[255].alpha = 0; + + if (!gOpenRCT2Headless) + { + DrawingEngineSetPalette(gPalette); + } + } + + /** + * + * rct2: 0x006838BD + */ + void UpdatePaletteEffects() + { + const auto& waterEntry = getActiveWaterEntry(); + + if (Weather::gLightningFlash == 1) + { + // Change palette to lighter colour during lightning + auto palette = waterEntry.mainPalette; + const auto* g1 = GfxGetG1Palette(palette); + if (g1 != nullptr) + { + auto startIndex = g1->startIndex; + + for (int32_t i = 0; i < g1->numColours; i++) + { + auto& paletteOffset = gGamePalette[startIndex + i]; + const auto& g1PaletteEntry = g1->palette[i]; + paletteOffset.blue = -((0xFF - g1PaletteEntry.blue) / 2) - 1; + paletteOffset.green = -((0xFF - g1PaletteEntry.green) / 2) - 1; + paletteOffset.red = -((0xFF - g1PaletteEntry.red) / 2) - 1; + } + + UpdatePalette(gGamePalette, kPaletteOffsetDynamic, kPaletteLengthDynamic); + } + Weather::gLightningFlash++; + } + else + { + if (Weather::gLightningFlash == 2) + { + // Change palette back to normal after lightning + auto palette = waterEntry.mainPalette; + const auto* g1 = GfxGetG1Palette(palette); + if (g1 != nullptr) + { + auto startIndex = g1->startIndex; + + for (int32_t i = 0; i < g1->numColours; i++) + { + auto& paletteOffset = gGamePalette[startIndex + i]; + const auto& g1PaletteEntry = g1->palette[i]; + paletteOffset.blue = g1PaletteEntry.blue; + paletteOffset.green = g1PaletteEntry.green; + paletteOffset.red = g1PaletteEntry.red; + } + } + } + + // Animate the water/lava/chain movement palette + uint32_t shade = 0; + if (Config::Get().general.renderWeatherGloom) + { + auto paletteId = Weather::getWeatherGloomPaletteId(getGameState().weatherCurrent); + if (paletteId != FilterPaletteID::paletteNull) + { + shade = 1; + if (paletteId != FilterPaletteID::paletteDarken1) + { + shade = 2; + } + } + } + uint32_t j = gPaletteEffectFrame; + j = ((static_cast((~j / 2) * 128) * 15) >> 16); + + auto waterId = waterEntry.waterWavesPalette; + const auto* g1 = GfxGetG1Palette(shade + waterId); + if (g1 != nullptr) + { + const auto* g1PaletteEntry = &g1->palette[j]; + int32_t n = kPaletteLengthWaterWaves; + for (int32_t i = 0; i < n; i++) + { + auto& vd = gGamePalette[EnumValue(PaletteIndex::waterWaves0) + i]; + vd.blue = g1PaletteEntry->blue; + vd.green = g1PaletteEntry->green; + vd.red = g1PaletteEntry->red; + g1PaletteEntry += 3; + if (g1PaletteEntry >= &g1->palette[3 * n]) + { + g1PaletteEntry -= 3 * n; + } + } + } + + waterId = waterEntry.waterSparklesPalette; + g1 = GfxGetG1Palette(shade + waterId); + if (g1 != nullptr) + { + auto* src = &g1->palette[j]; + int32_t n = kPaletteLengthWaterSparkles; + for (int32_t i = 0; i < n; i++) + { + auto& vd = gGamePalette[EnumValue(PaletteIndex::waterSparkles0) + i]; + vd.blue = src->blue; + vd.green = src->green; + vd.red = src->red; + src += 3; + if (src >= &g1->palette[3 * n]) + { + src -= 3 * n; + } + } + } + + j = (static_cast(gPaletteEffectFrame * -960) * 3) >> 16; + waterId = SPR_GAME_PALETTE_4; + g1 = GfxGetG1Palette(shade + waterId); + if (g1 != nullptr) + { + auto* src = &g1->palette[j]; + const int32_t n = 3; + for (int32_t i = 0; i < n; i++) + { + auto& vd = gGamePalette[EnumValue(PaletteIndex::primaryRemap0) + i]; + vd.blue = src->blue; + vd.green = src->green; + vd.red = src->red; + src++; + if (src >= &g1->palette[3]) + { + src -= n; + } + } + } + + UpdatePalette(gGamePalette, kPaletteOffsetAnimated, kPaletteLengthAnimated); + if (Weather::gLightningFlash == 2) + { + UpdatePalette(gGamePalette, kPaletteOffsetDynamic, kPaletteLengthDynamic); + Weather::gLightningFlash = 0; + } + } + } + + /** + * + * rct2: 0x00683854 + * a1 (ebx) + * product (cl) + */ + void GfxTransposePalette(ImageIndex pal, uint8_t product) + { + const auto* g1 = GfxGetG1Palette(pal); + if (g1 == nullptr) + return; + + auto index = g1->startIndex; + auto* src = g1->palette; + + for (auto numColours = g1->numColours; numColours > 0; numColours--) + { + auto& dst = gGamePalette[index]; + // Make sure the image never gets darker than the void colour (not-quite-black), to avoid the background colour + // jumping between void and 100% black. + dst.blue = std::max(35, ((src->blue * product) >> 8)); + dst.green = std::max(35, ((src->green * product) >> 8)); + dst.red = std::max(23, ((src->red * product) >> 8)); + src++; + + index++; + } + UpdatePalette(gGamePalette, PaletteIndex::pi10, 236); + } + + /** + * + * rct2: 0x006837E3 + */ + void LoadPalette() + { + if (gOpenRCT2NoGraphics) + { + return; + } + + const auto& waterEntry = getActiveWaterEntry(); + Guard::Assert(waterEntry.mainPalette != kImageIndexUndefined, "Failed to load water palette"); + auto palette = waterEntry.mainPalette; + + const auto* g1 = GfxGetG1Palette(palette); + if (g1 != nullptr) + { + auto index = g1->startIndex; + auto* src = g1->palette; + for (auto numColours = g1->numColours; numColours > 0; numColours--) + { + auto& dst = gGamePalette[index]; + dst.blue = src->blue; + dst.green = src->green; + dst.red = src->red; + src++; + index++; + } + } + UpdatePalette(gGamePalette, PaletteIndex::pi10, 236); + GfxInvalidateScreen(); + } +} // namespace OpenRCT2::Drawing diff --git a/src/openrct2/drawing/Palette.h b/src/openrct2/drawing/Palette.h new file mode 100644 index 0000000000..166892f127 --- /dev/null +++ b/src/openrct2/drawing/Palette.h @@ -0,0 +1,30 @@ +/***************************************************************************** + * Copyright (c) 2014-2026 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#include "ImageIndexType.h" +#include "PaletteType.h" + +#include +#include + +namespace OpenRCT2::Drawing +{ + enum class PaletteIndex : uint8_t; + + extern GamePalette gPalette; + extern GamePalette gGamePalette; + extern uint32_t gPaletteEffectFrame; + + void UpdatePalette(std::span palette, PaletteIndex startIndex, int32_t numColours); + void UpdatePaletteEffects(); + void GfxTransposePalette(ImageIndex pal, uint8_t product); + void LoadPalette(); +} // namespace OpenRCT2::Drawing diff --git a/src/openrct2/interface/Screenshot.cpp b/src/openrct2/interface/Screenshot.cpp index aae0037dab..3151862caf 100644 --- a/src/openrct2/interface/Screenshot.cpp +++ b/src/openrct2/interface/Screenshot.cpp @@ -24,6 +24,7 @@ #include "../core/String.hpp" #include "../drawing/Drawing.h" #include "../drawing/NewDrawing.h" +#include "../drawing/Palette.h" #include "../drawing/X8DrawingEngine.h" #include "../localisation/Formatter.h" #include "../localisation/StringIds.h" diff --git a/src/openrct2/libopenrct2.vcxproj b/src/openrct2/libopenrct2.vcxproj index bc103bd1d5..b5bc6be0ce 100644 --- a/src/openrct2/libopenrct2.vcxproj +++ b/src/openrct2/libopenrct2.vcxproj @@ -266,6 +266,7 @@ + @@ -911,6 +912,7 @@ + diff --git a/src/openrct2/object/WaterObject.cpp b/src/openrct2/object/WaterObject.cpp index 7356ed49ad..be593e4c14 100644 --- a/src/openrct2/object/WaterObject.cpp +++ b/src/openrct2/object/WaterObject.cpp @@ -12,8 +12,8 @@ #include "../core/Guard.hpp" #include "../core/IStream.hpp" #include "../core/Json.hpp" -#include "../drawing/Drawing.h" #include "../drawing/ImageImporter.h" +#include "../drawing/Palette.h" #include "../drawing/Text.h" #include "../interface/ScreenCoords.hpp" #include "../localisation/Language.h" @@ -38,7 +38,7 @@ namespace OpenRCT2 _legacyType.waterWavesPalette = _legacyType.mainPalette + 1; _legacyType.waterSparklesPalette = _legacyType.mainPalette + 4; - LoadPalette(); + Drawing::LoadPalette(); } void WaterObject::Unload() diff --git a/src/openrct2/paint/Painter.cpp b/src/openrct2/paint/Painter.cpp index bca9c7b149..1c5a5832d1 100644 --- a/src/openrct2/paint/Painter.cpp +++ b/src/openrct2/paint/Painter.cpp @@ -16,6 +16,7 @@ #include "../drawing/Drawing.String.h" #include "../drawing/Drawing.h" #include "../drawing/IDrawingEngine.h" +#include "../drawing/Palette.h" #include "../drawing/PickupPeep.h" #include "../drawing/Text.h" #include "../interface/Viewport.h" diff --git a/src/openrct2/scenario/Scenario.cpp b/src/openrct2/scenario/Scenario.cpp index 8b473697e6..b18129216c 100644 --- a/src/openrct2/scenario/Scenario.cpp +++ b/src/openrct2/scenario/Scenario.cpp @@ -20,7 +20,7 @@ #include "../core/Guard.hpp" #include "../core/Path.hpp" #include "../core/Random.hpp" -#include "../drawing/Drawing.h" +#include "../drawing/Palette.h" #include "../drawing/PaletteIndex.h" #include "../entity/Duck.h" #include "../entity/Staff.h" @@ -363,7 +363,7 @@ static void ScenarioUpdateDayNightCycle() // Only update palette if day / night cycle has changed if (gDayNightCycle != currentDayNightCycle) { - UpdatePalette(gGamePalette, Drawing::PaletteIndex::pi10, 236); + Drawing::UpdatePalette(Drawing::gGamePalette, Drawing::PaletteIndex::pi10, 236); } } diff --git a/src/openrct2/scenes/editor/EditorController.cpp b/src/openrct2/scenes/editor/EditorController.cpp index c8fd2c45f5..4fd3e905d3 100644 --- a/src/openrct2/scenes/editor/EditorController.cpp +++ b/src/openrct2/scenes/editor/EditorController.cpp @@ -17,6 +17,7 @@ #include "../../audio/Audio.h" #include "../../core/EnumUtils.hpp" #include "../../drawing/Drawing.h" +#include "../../drawing/Palette.h" #include "../../entity/EntityList.h" #include "../../entity/Guest.h" #include "../../entity/Staff.h" @@ -673,7 +674,7 @@ namespace OpenRCT2::Editor auto newPaletteEntry = ObjectEntryDescriptor(*item); if (objectManager.GetLoadedObject(newPaletteEntry) != nullptr || objectManager.LoadObject(newPaletteEntry) != nullptr) { - LoadPalette(); + Drawing::LoadPalette(); } else { diff --git a/src/openrct2/scenes/editor/EditorScene.cpp b/src/openrct2/scenes/editor/EditorScene.cpp index 42ee763e0d..b4ad506552 100644 --- a/src/openrct2/scenes/editor/EditorScene.cpp +++ b/src/openrct2/scenes/editor/EditorScene.cpp @@ -20,7 +20,7 @@ #include "../../actions/park/LandSetRightsAction.h" #include "../../audio/Audio.h" #include "../../core/Path.hpp" -#include "../../drawing/Drawing.h" +#include "../../drawing/Palette.h" #include "../../entity/EntityList.h" #include "../../entity/Guest.h" #include "../../entity/PatrolArea.h" @@ -58,7 +58,7 @@ void EditorScene::Load() OpenEditorWindows(); resetMainViewport(); - LoadPalette(); + Drawing::LoadPalette(); gScreenAge = 0; gameState.scenarioOptions.name = LanguageGetString(STR_MY_NEW_SCENARIO); @@ -312,7 +312,7 @@ void EditorScene::FinaliseMainView() windowManager->BroadcastIntent(Intent(INTENT_ACTION_CLEAR_TILE_INSPECTOR_CLIPBOARD)); gWindowUpdateTicks = 0; - LoadPalette(); + Drawing::LoadPalette(); } void EditorScene::resetMainViewport() diff --git a/src/openrct2/scenes/editor/TrackDesignerScene.cpp b/src/openrct2/scenes/editor/TrackDesignerScene.cpp index 2315f7e582..c5e5e0d483 100644 --- a/src/openrct2/scenes/editor/TrackDesignerScene.cpp +++ b/src/openrct2/scenes/editor/TrackDesignerScene.cpp @@ -15,7 +15,7 @@ #include "../../GameState.h" #include "../../OpenRCT2.h" #include "../../audio/Audio.h" -#include "../../drawing/Drawing.h" +#include "../../drawing/Palette.h" #include "../../world/Map.h" #include "EditorController.h" @@ -39,7 +39,7 @@ void TrackDesignerScene::Load() OpenEditorWindows(); resetMainViewport(); - LoadPalette(); + Drawing::LoadPalette(); GameLoadScripts(); GameNotifyMapChanged(); diff --git a/src/openrct2/scenes/editor/TrackManagerScene.cpp b/src/openrct2/scenes/editor/TrackManagerScene.cpp index e0ee139cb8..4ff305777b 100644 --- a/src/openrct2/scenes/editor/TrackManagerScene.cpp +++ b/src/openrct2/scenes/editor/TrackManagerScene.cpp @@ -15,7 +15,7 @@ #include "../../GameState.h" #include "../../OpenRCT2.h" #include "../../audio/Audio.h" -#include "../../drawing/Drawing.h" +#include "../../drawing/Palette.h" #include "../../world/Map.h" #include "EditorController.h" @@ -39,7 +39,7 @@ void TrackManagerScene::Load() OpenEditorWindows(); resetMainViewport(); - LoadPalette(); + Drawing::LoadPalette(); GameLoadScripts(); GameNotifyMapChanged(); diff --git a/src/openrct2/scenes/intro/IntroScene.cpp b/src/openrct2/scenes/intro/IntroScene.cpp index bb6de0d5de..a1378468d0 100644 --- a/src/openrct2/scenes/intro/IntroScene.cpp +++ b/src/openrct2/scenes/intro/IntroScene.cpp @@ -17,6 +17,7 @@ #include "../../audio/AudioMixer.h" #include "../../drawing/Drawing.h" #include "../../drawing/NewDrawing.h" +#include "../../drawing/Palette.h" #include "../../drawing/PaletteIndex.h" #include "../../drawing/Rectangle.h" #include "../../scenes/SceneManager.h" diff --git a/src/openrct2/scenes/title/TitleScene.cpp b/src/openrct2/scenes/title/TitleScene.cpp index 62bf97290f..9ca14c5c69 100644 --- a/src/openrct2/scenes/title/TitleScene.cpp +++ b/src/openrct2/scenes/title/TitleScene.cpp @@ -19,6 +19,7 @@ #include "../../config/Config.h" #include "../../core/Console.hpp" #include "../../drawing/Drawing.h" +#include "../../drawing/Palette.h" #include "../../interface/Screenshot.h" #include "../../interface/Window.h" #include "../../network/NetworkBase.h" @@ -153,7 +154,7 @@ void TitleScene::Tick() { gameStateUpdateLogic(); } - UpdatePaletteEffects(); + Drawing::UpdatePaletteEffects(); // update_weather_animation(); } diff --git a/test/tests/PlayTests.cpp b/test/tests/PlayTests.cpp index bd40a6ac72..c367904f71 100644 --- a/test/tests/PlayTests.cpp +++ b/test/tests/PlayTests.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -60,7 +61,7 @@ static std::unique_ptr localStartGame(const std::string& parkPath) gameState.entities.resetEntitySpatialIndices(); ResetAllSpriteQuadrantPlacements(); - LoadPalette(); + Drawing::LoadPalette(); EntityTweener::get().reset(); MapAnimations::MarkAllTiles(); FixInvalidVehicleSpriteSizes(); diff --git a/test/tests/S6ImportExportTests.cpp b/test/tests/S6ImportExportTests.cpp index 064278dd4e..a6499a0767 100644 --- a/test/tests/S6ImportExportTests.cpp +++ b/test/tests/S6ImportExportTests.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -60,7 +61,7 @@ static void GameInit(bool retainSpatialIndices) gameState.entities.resetEntitySpatialIndices(); ResetAllSpriteQuadrantPlacements(); - LoadPalette(); + Drawing::LoadPalette(); EntityTweener::get().reset(); MapAnimations::MarkAllTiles(); FixInvalidVehicleSpriteSizes(); From 83cbac90ec522b3b4e28141e600c62080a065534 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 6 Sep 2026 19:40:56 +0200 Subject: [PATCH 016/142] Move stuff that affects the whole screen/viewport out of Drawing.{cpp,h} --- src/openrct2-ui/UiContext.cpp | 1 + src/openrct2-ui/WindowManager.cpp | 2 +- src/openrct2-ui/input/Shortcuts.cpp | 12 +++--- src/openrct2-ui/interface/FileBrowser.cpp | 10 ++--- src/openrct2-ui/interface/InGameConsole.cpp | 5 ++- src/openrct2-ui/interface/Theme.cpp | 3 +- src/openrct2-ui/windows/DebugPaint.cpp | 15 ++++--- .../windows/EditorObjectSelection.cpp | 3 +- .../windows/EditorStepController.cpp | 1 + src/openrct2-ui/windows/MapGen.cpp | 3 +- src/openrct2-ui/windows/Options.cpp | 1 + src/openrct2-ui/windows/PatrolArea.cpp | 7 +-- src/openrct2-ui/windows/Ride.cpp | 1 + src/openrct2-ui/windows/StaffList.cpp | 1 + src/openrct2-ui/windows/Themes.cpp | 1 + src/openrct2-ui/windows/ViewClipping.cpp | 7 +-- .../actions/cheats/CheatSetAction.cpp | 14 +++--- .../actions/general/MapChangeSizeAction.cpp | 4 +- .../actions/park/ParkSetNameAction.cpp | 4 +- .../actions/peep/GuestSetNameAction.cpp | 4 +- src/openrct2/actions/peep/StaffFireAction.cpp | 4 +- .../actions/peep/StaffSetColourAction.cpp | 4 +- .../actions/peep/StaffSetNameAction.cpp | 4 +- .../actions/peep/StaffSetPatrolAreaAction.cpp | 4 +- .../actions/ride/RideDemolishAction.cpp | 4 +- .../actions/ride/RideSetAppearanceAction.cpp | 10 ++--- .../actions/ride/RideSetNameAction.cpp | 4 +- .../actions/ride/RideSetSettingAction.cpp | 4 +- .../actions/ride/RideSetVehicleAction.cpp | 4 +- .../actions/scenery/BannerSetNameAction.cpp | 4 +- .../actions/scenery/BannerSetStyleAction.cpp | 4 +- .../actions/scenery/SignSetNameAction.cpp | 4 +- src/openrct2/drawing/Drawing.Screen.cpp | 43 +++++++++++++++++++ src/openrct2/drawing/Drawing.Screen.h | 17 ++++++++ src/openrct2/drawing/Drawing.cpp | 24 ----------- src/openrct2/drawing/Drawing.h | 5 --- src/openrct2/drawing/NewDrawing.h | 2 + src/openrct2/drawing/Palette.cpp | 2 +- src/openrct2/drawing/PickupPeep.cpp | 1 + src/openrct2/drawing/X8DrawingEngine.cpp | 1 + src/openrct2/entity/Peep.cpp | 4 +- src/openrct2/interface/Chat.cpp | 2 +- src/openrct2/interface/InteractiveConsole.cpp | 8 ++-- src/openrct2/interface/Viewport.cpp | 3 +- src/openrct2/interface/Window.cpp | 4 +- src/openrct2/interface/WindowBase.cpp | 2 +- src/openrct2/libopenrct2.vcxproj | 2 + src/openrct2/network/NetworkBase.cpp | 4 +- src/openrct2/paint/Painter.cpp | 1 + src/openrct2/park/ParkFile.cpp | 6 +-- src/openrct2/ride/Ride.cpp | 4 +- src/openrct2/ride/TrackDesignSave.cpp | 6 +-- .../scenes/editor/EditorController.cpp | 6 +-- src/openrct2/scenes/title/TitleScene.cpp | 4 +- .../scripting/bindings/world/ScPark.cpp | 6 +-- src/openrct2/world/Weather.cpp | 4 +- 56 files changed, 183 insertions(+), 131 deletions(-) create mode 100644 src/openrct2/drawing/Drawing.Screen.cpp create mode 100644 src/openrct2/drawing/Drawing.Screen.h diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 899fafdad6..db0318a741 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include diff --git a/src/openrct2-ui/WindowManager.cpp b/src/openrct2-ui/WindowManager.cpp index b64c47f785..7a800e5d19 100644 --- a/src/openrct2-ui/WindowManager.cpp +++ b/src/openrct2-ui/WindowManager.cpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/openrct2-ui/input/Shortcuts.cpp b/src/openrct2-ui/input/Shortcuts.cpp index b2cf64979e..b28dd77dbd 100644 --- a/src/openrct2-ui/input/Shortcuts.cpp +++ b/src/openrct2-ui/input/Shortcuts.cpp @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include #include #include @@ -189,7 +189,7 @@ static void ShortcutRemoveTopBottomToolbarToggle() ContextOpenWindow(WindowClass::editorStepController); // next step } } - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } static void ShortcutAdjustLand() @@ -459,7 +459,7 @@ static void ShortcutScaleUp() { Config::Get().general.windowScale += 0.25f; Config::Save(); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); ContextTriggerResize(); ContextUpdateCursorScale(); } @@ -469,7 +469,7 @@ static void ShortcutScaleDown() Config::Get().general.windowScale -= 0.25f; Config::Get().general.windowScale = std::max(0.5f, Config::Get().general.windowScale); Config::Save(); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); ContextTriggerResize(); ContextUpdateCursorScale(); } @@ -739,7 +739,7 @@ static void ShortcutToggleTransparentWater() Config::Get().general.transparentWater ^= 1; Config::Save(); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } #pragma endregion @@ -805,7 +805,7 @@ void ShortcutManager::registerDefaultShortcuts() ChatToggle(); } }); - registerShortcut(ShortcutId::kInterfaceScaleToggleWindowMode, STR_SHORTCUT_WINDOWED_MODE_TOGGLE, "ALT+RETURN", ToggleWindowedMode); + registerShortcut(ShortcutId::kInterfaceScaleToggleWindowMode, STR_SHORTCUT_WINDOWED_MODE_TOGGLE, "ALT+RETURN", Drawing::ToggleWindowedMode); registerShortcut(ShortcutId::kInterfaceScaleIncrease, STR_SHORTCUT_SCALE_UP, ShortcutScaleUp); registerShortcut(ShortcutId::kInterfaceScaleDecrease, STR_SHORTCUT_SCALE_DOWN, ShortcutScaleDown); registerShortcut(ShortcutId::kInterfaceOpenLand, STR_SHORTCUT_ADJUST_LAND, "F1", ShortcutAdjustLand); diff --git a/src/openrct2-ui/interface/FileBrowser.cpp b/src/openrct2-ui/interface/FileBrowser.cpp index 4c6e7b2ed0..4a08fbb937 100644 --- a/src/openrct2-ui/interface/FileBrowser.cpp +++ b/src/openrct2-ui/interface/FileBrowser.cpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include #include @@ -286,7 +286,7 @@ namespace OpenRCT2::Ui::FileBrowser { InvokeCallback(ModalResult::ok, pathBuffer); windowMgr->CloseByClass(WindowClass::loadsave); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } else { @@ -310,7 +310,7 @@ namespace OpenRCT2::Ui::FileBrowser if (editorScene->LoadLandscape(pathBuffer)) { gCurrentLoadedPath = pathBuffer; - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); InvokeCallback(ModalResult::ok, pathBuffer); } else @@ -381,7 +381,7 @@ namespace OpenRCT2::Ui::FileBrowser gFirstTimeSaving = false; windowMgr->CloseByClass(WindowClass::loadsave); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); InvokeCallback(ModalResult::ok, pathBuffer); } @@ -400,7 +400,7 @@ namespace OpenRCT2::Ui::FileBrowser { gCurrentLoadedPath = pathBuffer; windowMgr->CloseByClass(WindowClass::loadsave); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); InvokeCallback(ModalResult::ok, pathBuffer); } else diff --git a/src/openrct2-ui/interface/InGameConsole.cpp b/src/openrct2-ui/interface/InGameConsole.cpp index 57daa0e829..7664e56f50 100644 --- a/src/openrct2-ui/interface/InGameConsole.cpp +++ b/src/openrct2-ui/interface/InGameConsole.cpp @@ -20,9 +20,10 @@ #include #include #include +#include #include -#include #include +#include #include #include #include @@ -280,7 +281,7 @@ void InGameConsole::Update() { _lastMainViewport = mainViewport->viewPos; - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } } } diff --git a/src/openrct2-ui/interface/Theme.cpp b/src/openrct2-ui/interface/Theme.cpp index f0b06ddbde..230493331b 100644 --- a/src/openrct2-ui/interface/Theme.cpp +++ b/src/openrct2-ui/interface/Theme.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -621,7 +622,7 @@ namespace OpenRCT2::Ui CurrentTheme = theme; CurrentThemePath.clear(); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } static void LoadTheme(const std::string& path) diff --git a/src/openrct2-ui/windows/DebugPaint.cpp b/src/openrct2-ui/windows/DebugPaint.cpp index 438af7909f..34bdf88abe 100644 --- a/src/openrct2-ui/windows/DebugPaint.cpp +++ b/src/openrct2-ui/windows/DebugPaint.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -76,37 +77,37 @@ namespace OpenRCT2::Ui::Windows { case WIDX_TOGGLE_SHOW_WIDE_PATHS: gPaintWidePathsAsGhost = !gPaintWidePathsAsGhost; - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); break; case WIDX_TOGGLE_SHOW_BLOCKED_TILES: gPaintBlockedTiles = !gPaintBlockedTiles; - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); break; case WIDX_TOGGLE_SHOW_SEGMENT_HEIGHTS: gShowSupportSegmentHeights = !gShowSupportSegmentHeights; - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); break; case WIDX_TOGGLE_SHOW_BOUND_BOXES: gPaintBoundingBoxes = !gPaintBoundingBoxes; - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); break; case WIDX_TOGGLE_SHOW_DIRTY_VISUALS: gShowDirtyVisuals = !gShowDirtyVisuals; - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); break; case WIDX_TOGGLE_STABLE_PAINT_SORT: gPaintStableSort = !gPaintStableSort; - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); break; case WIDX_TOGGLE_FORCE_REDRAW: gPaintForceRedraw = !gPaintForceRedraw; - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); break; } } diff --git a/src/openrct2-ui/windows/EditorObjectSelection.cpp b/src/openrct2-ui/windows/EditorObjectSelection.cpp index f9a0bde650..dc56c8e051 100644 --- a/src/openrct2-ui/windows/EditorObjectSelection.cpp +++ b/src/openrct2-ui/windows/EditorObjectSelection.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -487,7 +488,7 @@ namespace OpenRCT2::Ui::Windows { objectManager.UnloadObjects({ descriptor }); objectManager.LoadObject(descriptor, entryIndex); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } } break; diff --git a/src/openrct2-ui/windows/EditorStepController.cpp b/src/openrct2-ui/windows/EditorStepController.cpp index e3257ec9be..269ebd4683 100644 --- a/src/openrct2-ui/windows/EditorStepController.cpp +++ b/src/openrct2-ui/windows/EditorStepController.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include diff --git a/src/openrct2-ui/windows/MapGen.cpp b/src/openrct2-ui/windows/MapGen.cpp index 3c1a242946..6217e8e28d 100644 --- a/src/openrct2-ui/windows/MapGen.cpp +++ b/src/openrct2-ui/windows/MapGen.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -330,7 +331,7 @@ namespace OpenRCT2::Ui::Windows } MapGenerator::generate(&mapgenSettings); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } #pragma region Base page diff --git a/src/openrct2-ui/windows/Options.cpp b/src/openrct2-ui/windows/Options.cpp index d7a3671a70..3f6a209b2a 100644 --- a/src/openrct2-ui/windows/Options.cpp +++ b/src/openrct2-ui/windows/Options.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include diff --git a/src/openrct2-ui/windows/PatrolArea.cpp b/src/openrct2-ui/windows/PatrolArea.cpp index 8e8c927871..8ee740c496 100644 --- a/src/openrct2-ui/windows/PatrolArea.cpp +++ b/src/openrct2-ui/windows/PatrolArea.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -191,7 +192,7 @@ namespace OpenRCT2::Ui::Windows { HideGridlines(); ClearPatrolAreaToRender(); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } void onToolDown(WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords) override @@ -241,7 +242,7 @@ namespace OpenRCT2::Ui::Windows if (PatrolAreaToolIsActive()) { SetPatrolAreaToRender(_staffId); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } else { @@ -249,7 +250,7 @@ namespace OpenRCT2::Ui::Windows { ShowGridlines(); SetPatrolAreaToRender(_staffId); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } } } diff --git a/src/openrct2-ui/windows/Ride.cpp b/src/openrct2-ui/windows/Ride.cpp index 98001fd4f1..fb0b632254 100644 --- a/src/openrct2-ui/windows/Ride.cpp +++ b/src/openrct2-ui/windows/Ride.cpp @@ -41,6 +41,7 @@ #include #include #include +#include #include #include #include diff --git a/src/openrct2-ui/windows/StaffList.cpp b/src/openrct2-ui/windows/StaffList.cpp index 0813a5fcf9..2a00a71342 100644 --- a/src/openrct2-ui/windows/StaffList.cpp +++ b/src/openrct2-ui/windows/StaffList.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include diff --git a/src/openrct2-ui/windows/Themes.cpp b/src/openrct2-ui/windows/Themes.cpp index c4a772e8f8..d14eafc007 100644 --- a/src/openrct2-ui/windows/Themes.cpp +++ b/src/openrct2-ui/windows/Themes.cpp @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include diff --git a/src/openrct2-ui/windows/ViewClipping.cpp b/src/openrct2-ui/windows/ViewClipping.cpp index 75ddf4b21e..07e3b9f31b 100644 --- a/src/openrct2-ui/windows/ViewClipping.cpp +++ b/src/openrct2-ui/windows/ViewClipping.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -128,7 +129,7 @@ namespace OpenRCT2::Ui::Windows _previousClipSelectionB = gClipSelectionB; gClipSelectionA = { 0, 0 }; gClipSelectionB = { kMaximumMapSizeBig - 1, kMaximumMapSizeBig - 1 }; - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); break; case WIDX_CLIP_CLEAR: if (IsActive()) @@ -138,7 +139,7 @@ namespace OpenRCT2::Ui::Windows } gClipSelectionA = { 0, 0 }; gClipSelectionB = { kMaximumMapSizeBig - 1, kMaximumMapSizeBig - 1 }; - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); break; case WIDX_CLIP_SEE_THROUGH_CHECKBOX_ENABLE: { @@ -263,7 +264,7 @@ namespace OpenRCT2::Ui::Windows gClipSelectionB = gMapSelectPositionB; _toolActive = false; ToolCancel(); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } void onPrepareDraw() override diff --git a/src/openrct2/actions/cheats/CheatSetAction.cpp b/src/openrct2/actions/cheats/CheatSetAction.cpp index 61a766e1c0..caf94687b3 100644 --- a/src/openrct2/actions/cheats/CheatSetAction.cpp +++ b/src/openrct2/actions/cheats/CheatSetAction.cpp @@ -17,7 +17,7 @@ #include "../../core/EnumUtils.hpp" #include "../../core/Guard.hpp" #include "../../drawing/Colour.h" -#include "../../drawing/Drawing.h" +#include "../../drawing/Drawing.Screen.h" #include "../../entity/Duck.h" #include "../../entity/EntityList.h" #include "../../entity/EntityRegistry.h" @@ -457,7 +457,7 @@ namespace OpenRCT2::GameActions } } - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } void CheatSetAction::WaterPlants() const @@ -473,7 +473,7 @@ namespace OpenRCT2::GameActions } } while (TileElementIteratorNext(&it)); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } void CheatSetAction::FixVandalism() const @@ -492,7 +492,7 @@ namespace OpenRCT2::GameActions it.element->asPath()->setIsBroken(false); } while (TileElementIteratorNext(&it)); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } void CheatSetAction::RemoveLitter(GameState_t& gameState) const @@ -519,7 +519,7 @@ namespace OpenRCT2::GameActions } while (TileElementIteratorNext(&it)); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } void CheatSetAction::FixBrokenRides(GameState_t& gameState) const @@ -766,7 +766,7 @@ namespace OpenRCT2::GameActions auto* windowMgr = Ui::GetWindowManager(); windowMgr->InvalidateByClass(WindowClass::ride); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } void CheatSetAction::SetStaffSpeed(uint8_t value) const @@ -855,6 +855,6 @@ namespace OpenRCT2::GameActions } } while (TileElementIteratorNext(&it)); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } } // namespace OpenRCT2::GameActions diff --git a/src/openrct2/actions/general/MapChangeSizeAction.cpp b/src/openrct2/actions/general/MapChangeSizeAction.cpp index 77f66e57bd..5e11e5986c 100644 --- a/src/openrct2/actions/general/MapChangeSizeAction.cpp +++ b/src/openrct2/actions/general/MapChangeSizeAction.cpp @@ -11,7 +11,7 @@ #include "../../Context.h" #include "../../GameState.h" -#include "../../drawing/Drawing.h" +#include "../../drawing/Drawing.Screen.h" #include "../../scripting/ScriptEngine.h" #include "../../ui/UiContext.h" #include "../../ui/WindowManager.h" @@ -88,7 +88,7 @@ namespace OpenRCT2::GameActions Park::UpdateSize(park); windowManager->BroadcastIntent(Intent(INTENT_ACTION_MAP)); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); auto& hookEngine = ctx->GetScriptEngine().GetHookEngine(); if (hookEngine.HasSubscriptions(OpenRCT2::Scripting::HookType::mapResize)) diff --git a/src/openrct2/actions/park/ParkSetNameAction.cpp b/src/openrct2/actions/park/ParkSetNameAction.cpp index 129411a400..aa8ebdc2a4 100644 --- a/src/openrct2/actions/park/ParkSetNameAction.cpp +++ b/src/openrct2/actions/park/ParkSetNameAction.cpp @@ -10,7 +10,7 @@ #include "ParkSetNameAction.h" #include "../../Diagnostic.h" -#include "../../drawing/Drawing.h" +#include "../../drawing/Drawing.Screen.h" #include "../../world/Park.h" #include "../../world/ParkData.h" @@ -54,7 +54,7 @@ namespace OpenRCT2::GameActions { park.name = _name; Drawing::ScrollingText::invalidate(); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } return Result(); } diff --git a/src/openrct2/actions/peep/GuestSetNameAction.cpp b/src/openrct2/actions/peep/GuestSetNameAction.cpp index 15068820f6..90b49f4aa1 100644 --- a/src/openrct2/actions/peep/GuestSetNameAction.cpp +++ b/src/openrct2/actions/peep/GuestSetNameAction.cpp @@ -12,7 +12,7 @@ #include "../../Context.h" #include "../../Diagnostic.h" #include "../../GameState.h" -#include "../../drawing/Drawing.h" +#include "../../drawing/Drawing.Screen.h" #include "../../entity/EntityRegistry.h" #include "../../localisation/StringIds.h" #include "../../windows/Intent.h" @@ -93,7 +93,7 @@ namespace OpenRCT2::GameActions // Easter egg functions are for guests only guest->handleEasterEggName(); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); auto intent = Intent(INTENT_ACTION_REFRESH_GUEST_LIST); ContextBroadcastIntent(&intent); diff --git a/src/openrct2/actions/peep/StaffFireAction.cpp b/src/openrct2/actions/peep/StaffFireAction.cpp index 08c2891c09..c6922a388e 100644 --- a/src/openrct2/actions/peep/StaffFireAction.cpp +++ b/src/openrct2/actions/peep/StaffFireAction.cpp @@ -11,7 +11,7 @@ #include "../../Diagnostic.h" #include "../../GameState.h" -#include "../../drawing/Drawing.h" +#include "../../drawing/Drawing.Screen.h" #include "../../entity/EntityRegistry.h" #include "../../entity/Staff.h" #include "../../ui/WindowManager.h" @@ -80,7 +80,7 @@ namespace OpenRCT2::GameActions PeepEntityRemove(staff); // Due to patrol areas best to invalidate the whole screen on removal of staff - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); return Result(); } diff --git a/src/openrct2/actions/peep/StaffSetColourAction.cpp b/src/openrct2/actions/peep/StaffSetColourAction.cpp index 5e58bb5336..dc0962ad0f 100644 --- a/src/openrct2/actions/peep/StaffSetColourAction.cpp +++ b/src/openrct2/actions/peep/StaffSetColourAction.cpp @@ -10,7 +10,7 @@ #include "StaffSetColourAction.h" #include "../../Diagnostic.h" -#include "../../drawing/Drawing.h" +#include "../../drawing/Drawing.Screen.h" #include "../../entity/EntityList.h" #include "../../entity/Staff.h" #include "../../localisation/StringIds.h" @@ -70,7 +70,7 @@ namespace OpenRCT2::GameActions } } - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); return Result(); } } // namespace OpenRCT2::GameActions diff --git a/src/openrct2/actions/peep/StaffSetNameAction.cpp b/src/openrct2/actions/peep/StaffSetNameAction.cpp index 48edc5e45c..adce8142d2 100644 --- a/src/openrct2/actions/peep/StaffSetNameAction.cpp +++ b/src/openrct2/actions/peep/StaffSetNameAction.cpp @@ -12,7 +12,7 @@ #include "../../Context.h" #include "../../Diagnostic.h" #include "../../GameState.h" -#include "../../drawing/Drawing.h" +#include "../../drawing/Drawing.Screen.h" #include "../../entity/EntityRegistry.h" #include "../../entity/Staff.h" #include "../../localisation/StringIds.h" @@ -82,7 +82,7 @@ namespace OpenRCT2::GameActions return Result(Status::unknown, STR_CANT_NAME_GUEST, kStringIdNone); } - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); auto intent = Intent(INTENT_ACTION_REFRESH_STAFF_LIST); ContextBroadcastIntent(&intent); diff --git a/src/openrct2/actions/peep/StaffSetPatrolAreaAction.cpp b/src/openrct2/actions/peep/StaffSetPatrolAreaAction.cpp index 37eb3c6167..690fc22f22 100644 --- a/src/openrct2/actions/peep/StaffSetPatrolAreaAction.cpp +++ b/src/openrct2/actions/peep/StaffSetPatrolAreaAction.cpp @@ -11,7 +11,7 @@ #include "../../Diagnostic.h" #include "../../GameState.h" -#include "../../drawing/Drawing.h" +#include "../../drawing/Drawing.Screen.h" #include "../../entity/EntityRegistry.h" #include "../../entity/PatrolArea.h" #include "../../entity/Staff.h" @@ -99,7 +99,7 @@ namespace OpenRCT2::GameActions break; case StaffSetPatrolAreaMode::clearAll: staff->clearPatrolArea(); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); break; } UpdateConsolidatedPatrolAreas(); diff --git a/src/openrct2/actions/ride/RideDemolishAction.cpp b/src/openrct2/actions/ride/RideDemolishAction.cpp index 4caada4462..5067a837c5 100644 --- a/src/openrct2/actions/ride/RideDemolishAction.cpp +++ b/src/openrct2/actions/ride/RideDemolishAction.cpp @@ -13,7 +13,7 @@ #include "../../Diagnostic.h" #include "../../Game.h" #include "../../GameState.h" -#include "../../drawing/Drawing.h" +#include "../../drawing/Drawing.Screen.h" #include "../../drawing/ScrollingText.h" #include "../../entity/EntityList.h" #include "../../management/NewsItem.h" @@ -170,7 +170,7 @@ namespace OpenRCT2::GameActions windowMgr->BroadcastIntent(Intent(INTENT_ACTION_REFRESH_GUEST_LIST)); Drawing::ScrollingText::invalidate(); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); return res; } diff --git a/src/openrct2/actions/ride/RideSetAppearanceAction.cpp b/src/openrct2/actions/ride/RideSetAppearanceAction.cpp index b68c7f53b5..47b9855070 100644 --- a/src/openrct2/actions/ride/RideSetAppearanceAction.cpp +++ b/src/openrct2/actions/ride/RideSetAppearanceAction.cpp @@ -10,7 +10,7 @@ #include "RideSetAppearanceAction.h" #include "../../Diagnostic.h" -#include "../../drawing/Drawing.h" +#include "../../drawing/Drawing.Screen.h" #include "../../localisation/StringIds.h" #include "../../ride/Ride.h" #include "../../ui/WindowManager.h" @@ -100,15 +100,15 @@ namespace OpenRCT2::GameActions { case RideSetAppearanceType::trackColourMain: ride->trackColours[_index].main = static_cast(_value); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); break; case RideSetAppearanceType::trackColourAdditional: ride->trackColours[_index].additional = static_cast(_value); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); break; case RideSetAppearanceType::trackColourSupports: ride->trackColours[_index].supports = static_cast(_value); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); break; case RideSetAppearanceType::vehicleColourBody: ride->vehicleColours[_index].Body = static_cast(_value); @@ -132,7 +132,7 @@ namespace OpenRCT2::GameActions break; case RideSetAppearanceType::entranceStyle: ride->entranceStyle = _value; - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); break; case RideSetAppearanceType::sellingItemColourIsRandom: ride->flags.set(RideFlag::randomShopColours, static_cast(_value)); diff --git a/src/openrct2/actions/ride/RideSetNameAction.cpp b/src/openrct2/actions/ride/RideSetNameAction.cpp index 802a0b6c90..e2f6556d07 100644 --- a/src/openrct2/actions/ride/RideSetNameAction.cpp +++ b/src/openrct2/actions/ride/RideSetNameAction.cpp @@ -10,7 +10,7 @@ #include "RideSetNameAction.h" #include "../../Diagnostic.h" -#include "../../drawing/Drawing.h" +#include "../../drawing/Drawing.Screen.h" #include "../../drawing/ScrollingText.h" #include "../../localisation/StringIds.h" #include "../../ride/Ride.h" @@ -79,7 +79,7 @@ namespace OpenRCT2::GameActions } Drawing::ScrollingText::invalidate(); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); // Refresh windows that display ride name auto windowManager = Ui::GetWindowManager(); diff --git a/src/openrct2/actions/ride/RideSetSettingAction.cpp b/src/openrct2/actions/ride/RideSetSettingAction.cpp index 7455c82fd0..2f5b34bb05 100644 --- a/src/openrct2/actions/ride/RideSetSettingAction.cpp +++ b/src/openrct2/actions/ride/RideSetSettingAction.cpp @@ -12,7 +12,7 @@ #include "../../Context.h" #include "../../Diagnostic.h" #include "../../GameState.h" -#include "../../drawing/Drawing.h" +#include "../../drawing/Drawing.Screen.h" #include "../../object/MusicObject.h" #include "../../object/ObjectManager.h" #include "../../ride/Ride.h" @@ -237,7 +237,7 @@ namespace OpenRCT2::GameActions case RideSetSetting::rideType: ride->type = _value; ride->updateRideTypeForAllPieces(); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); break; } diff --git a/src/openrct2/actions/ride/RideSetVehicleAction.cpp b/src/openrct2/actions/ride/RideSetVehicleAction.cpp index ecea6d7b1d..84d5128186 100644 --- a/src/openrct2/actions/ride/RideSetVehicleAction.cpp +++ b/src/openrct2/actions/ride/RideSetVehicleAction.cpp @@ -14,7 +14,7 @@ #include "../../Diagnostic.h" #include "../../GameState.h" #include "../../core/EnumUtils.hpp" -#include "../../drawing/Drawing.h" +#include "../../drawing/Drawing.Screen.h" #include "../../localisation/StringIds.h" #include "../../management/Research.h" #include "../../object/ObjectManager.h" @@ -222,7 +222,7 @@ namespace OpenRCT2::GameActions intent.PutExtra(INTENT_EXTRA_RIDE_ID, _rideIndex.ToUnderlying()); ContextBroadcastIntent(&intent); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); return res; } diff --git a/src/openrct2/actions/scenery/BannerSetNameAction.cpp b/src/openrct2/actions/scenery/BannerSetNameAction.cpp index 43027a2364..0f7fc2d697 100644 --- a/src/openrct2/actions/scenery/BannerSetNameAction.cpp +++ b/src/openrct2/actions/scenery/BannerSetNameAction.cpp @@ -11,7 +11,7 @@ #include "../../Context.h" #include "../../Diagnostic.h" -#include "../../drawing/Drawing.h" +#include "../../drawing/Drawing.Screen.h" #include "../../drawing/ScrollingText.h" #include "../../localisation/StringIds.h" #include "../../windows/Intent.h" @@ -93,7 +93,7 @@ namespace OpenRCT2::GameActions ContextBroadcastIntent(&intent); Drawing::ScrollingText::invalidate(); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); return Result(); } diff --git a/src/openrct2/actions/scenery/BannerSetStyleAction.cpp b/src/openrct2/actions/scenery/BannerSetStyleAction.cpp index 22723dd825..0744a70aa0 100644 --- a/src/openrct2/actions/scenery/BannerSetStyleAction.cpp +++ b/src/openrct2/actions/scenery/BannerSetStyleAction.cpp @@ -11,7 +11,7 @@ #include "../../Context.h" #include "../../Diagnostic.h" -#include "../../drawing/Drawing.h" +#include "../../drawing/Drawing.Screen.h" #include "../../drawing/ScrollingText.h" #include "../../localisation/StringIdType.h" #include "../../management/Finance.h" @@ -179,7 +179,7 @@ namespace OpenRCT2::GameActions ContextBroadcastIntent(&intent); Drawing::ScrollingText::invalidate(); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); return res; } diff --git a/src/openrct2/actions/scenery/SignSetNameAction.cpp b/src/openrct2/actions/scenery/SignSetNameAction.cpp index dfb3b3cc32..e3ba4ebbcf 100644 --- a/src/openrct2/actions/scenery/SignSetNameAction.cpp +++ b/src/openrct2/actions/scenery/SignSetNameAction.cpp @@ -10,7 +10,7 @@ #include "SignSetNameAction.h" #include "../../Diagnostic.h" -#include "../../drawing/Drawing.h" +#include "../../drawing/Drawing.Screen.h" #include "../../drawing/ScrollingText.h" #include "../../localisation/StringIds.h" #include "../../world/Banner.h" @@ -108,7 +108,7 @@ namespace OpenRCT2::GameActions } Drawing::ScrollingText::invalidate(); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); return Result(); } } // namespace OpenRCT2::GameActions diff --git a/src/openrct2/drawing/Drawing.Screen.cpp b/src/openrct2/drawing/Drawing.Screen.cpp new file mode 100644 index 0000000000..7101464189 --- /dev/null +++ b/src/openrct2/drawing/Drawing.Screen.cpp @@ -0,0 +1,43 @@ +/***************************************************************************** + * Copyright (c) 2014-2026 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#include "Drawing.Screen.h" + +#include "../Context.h" +#include "../config/Config.h" +#include "../interface/ScreenCoords.hpp" +#include "NewDrawing.h" +#include "Palette.h" + +namespace OpenRCT2::Drawing +{ + /** + * + * rct2: 0x006ED7E5 + */ + void GfxInvalidateScreen() + { + GfxSetDirtyBlocks({ { 0, 0 }, { ContextGetWidth(), ContextGetHeight() } }); + } + + void RefreshVideo() + { + ContextRecreateWindow(); + DrawingEngineSetPalette(gPalette); + GfxInvalidateScreen(); + } + + void ToggleWindowedMode() + { + int32_t rt = Config::Get().general.fullscreenMode == 0 ? 2 : 0; + ContextSetFullscreenMode(rt); + Config::Get().general.fullscreenMode = rt; + Config::Save(); + } +} // namespace OpenRCT2::Drawing diff --git a/src/openrct2/drawing/Drawing.Screen.h b/src/openrct2/drawing/Drawing.Screen.h new file mode 100644 index 0000000000..8c3290deb3 --- /dev/null +++ b/src/openrct2/drawing/Drawing.Screen.h @@ -0,0 +1,17 @@ +/***************************************************************************** + * Copyright (c) 2014-2026 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +namespace OpenRCT2::Drawing +{ + void GfxInvalidateScreen(); + void RefreshVideo(); + void ToggleWindowedMode(); +} // namespace OpenRCT2::Drawing diff --git a/src/openrct2/drawing/Drawing.cpp b/src/openrct2/drawing/Drawing.cpp index 32a97531d3..73b96dbe83 100644 --- a/src/openrct2/drawing/Drawing.cpp +++ b/src/openrct2/drawing/Drawing.cpp @@ -410,15 +410,6 @@ void GfxFilterPixel(RenderTarget& rt, const ScreenCoordsXY& coords, FilterPalett Rectangle::filter(rt, { coords, coords }, palette); } -/** - * - * rct2: 0x006ED7E5 - */ -void GfxInvalidateScreen() -{ - GfxSetDirtyBlocks({ { 0, 0 }, { ContextGetWidth(), ContextGetHeight() } }); -} - /* * * rct2: 0x006EE53B @@ -506,21 +497,6 @@ FilterPaletteID GetGlassPaletteId(Colour c) return kGlassPaletteIds[EnumValue(c)]; } -void RefreshVideo() -{ - ContextRecreateWindow(); - DrawingEngineSetPalette(Drawing::gPalette); - GfxInvalidateScreen(); -} - -void ToggleWindowedMode() -{ - int32_t rt = Config::Get().general.fullscreenMode == 0 ? 2 : 0; - ContextSetFullscreenMode(rt); - Config::Get().general.fullscreenMode = rt; - Config::Save(); -} - void DebugRT(RenderTarget& rt) { ScreenCoordsXY topLeft = { rt.x, rt.y }; diff --git a/src/openrct2/drawing/Drawing.h b/src/openrct2/drawing/Drawing.h index 7f1a4ec557..384ff74896 100644 --- a/src/openrct2/drawing/Drawing.h +++ b/src/openrct2/drawing/Drawing.h @@ -48,8 +48,6 @@ extern bool gPaintForceRedraw; bool ClipRenderTarget( OpenRCT2::Drawing::RenderTarget& dst, OpenRCT2::Drawing::RenderTarget& src, const ScreenCoordsXY& coords, int32_t width, int32_t height); -void GfxSetDirtyBlocks(const ScreenRect& rect); -void GfxInvalidateScreen(); // other void GfxClear(OpenRCT2::Drawing::RenderTarget& rt, OpenRCT2::Drawing::PaletteIndex paletteIndex); @@ -76,7 +74,4 @@ void FASTCALL GfxDrawSpriteRawMasked( std::optional GetPaletteG1Index(OpenRCT2::Drawing::FilterPaletteID paletteId); std::optional GetPaletteMapForColour(OpenRCT2::Drawing::FilterPaletteID paletteId); -void RefreshVideo(); -void ToggleWindowedMode(); - void DebugRT(OpenRCT2::Drawing::RenderTarget& rt); diff --git a/src/openrct2/drawing/NewDrawing.h b/src/openrct2/drawing/NewDrawing.h index 5f6d1547c3..598e49e1e9 100644 --- a/src/openrct2/drawing/NewDrawing.h +++ b/src/openrct2/drawing/NewDrawing.h @@ -17,6 +17,7 @@ namespace OpenRCT2::Drawing } enum class DrawingEngine : int32_t; +struct ScreenRect; DrawingEngine drawing_engine_get_type(); bool DrawingEngineRequiresNewWindow(DrawingEngine srcEngine, DrawingEngine dstEngine); @@ -30,3 +31,4 @@ OpenRCT2::Drawing::RenderTarget& DrawingEngineGetRT(); bool DrawingEngineHasDirtyOptimisations(); void DrawingEngineInvalidateImage(uint32_t image); void DrawingEngineSetVSync(bool vsync); +void GfxSetDirtyBlocks(const ScreenRect& rect); diff --git a/src/openrct2/drawing/Palette.cpp b/src/openrct2/drawing/Palette.cpp index 9cd5ffdf36..2204073cd4 100644 --- a/src/openrct2/drawing/Palette.cpp +++ b/src/openrct2/drawing/Palette.cpp @@ -17,8 +17,8 @@ #include "../object/WaterEntry.h" #include "../util/Util.h" #include "../world/Weather.h" +#include "Drawing.Screen.h" #include "Drawing.Sprite.h" -#include "Drawing.h" #include "FilterPaletteIds.h" #include "LightFX.h" #include "NewDrawing.h" diff --git a/src/openrct2/drawing/PickupPeep.cpp b/src/openrct2/drawing/PickupPeep.cpp index b4eaa402de..f20cf678b8 100644 --- a/src/openrct2/drawing/PickupPeep.cpp +++ b/src/openrct2/drawing/PickupPeep.cpp @@ -8,6 +8,7 @@ #include "Drawing.Sprite.h" #include "Drawing.h" #include "ImageId.hpp" +#include "NewDrawing.h" #include "RenderTarget.h" namespace OpenRCT2::Drawing diff --git a/src/openrct2/drawing/X8DrawingEngine.cpp b/src/openrct2/drawing/X8DrawingEngine.cpp index 657229ff2c..61b41671ee 100644 --- a/src/openrct2/drawing/X8DrawingEngine.cpp +++ b/src/openrct2/drawing/X8DrawingEngine.cpp @@ -17,6 +17,7 @@ #include "../interface/Window.h" #include "../scenes/intro/IntroScene.h" #include "BlendColourMap.h" +#include "Drawing.Screen.h" #include "Drawing.Sprite.h" #include "Drawing.String.h" #include "Drawing.h" diff --git a/src/openrct2/entity/Peep.cpp b/src/openrct2/entity/Peep.cpp index 3aa64de276..e9c3cfeb10 100644 --- a/src/openrct2/entity/Peep.cpp +++ b/src/openrct2/entity/Peep.cpp @@ -21,7 +21,7 @@ #include "../core/EnumUtils.hpp" #include "../core/Guard.hpp" #include "../core/String.hpp" -#include "../drawing/Drawing.h" +#include "../drawing/Drawing.Screen.h" #include "../drawing/PickupPeep.h" #include "../entity/Balloon.h" #include "../entity/EntityList.h" @@ -2581,7 +2581,7 @@ namespace OpenRCT2 auto intent = Intent(INTENT_ACTION_REFRESH_GUEST_LIST); ContextBroadcastIntent(&intent); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } void IncrementGuestsInPark() diff --git a/src/openrct2/interface/Chat.cpp b/src/openrct2/interface/Chat.cpp index ce043c994d..0f2c7f6497 100644 --- a/src/openrct2/interface/Chat.cpp +++ b/src/openrct2/interface/Chat.cpp @@ -15,8 +15,8 @@ #include "../audio/AudioMixer.h" #include "../core/UTF8.h" #include "../drawing/Drawing.String.h" -#include "../drawing/Drawing.h" #include "../drawing/FilterPaletteIds.h" +#include "../drawing/NewDrawing.h" #include "../drawing/Rectangle.h" #include "../drawing/Text.h" #include "../interface/ColourWithFlags.h" diff --git a/src/openrct2/interface/InteractiveConsole.cpp b/src/openrct2/interface/InteractiveConsole.cpp index d40d30b6da..480bc443ca 100644 --- a/src/openrct2/interface/InteractiveConsole.cpp +++ b/src/openrct2/interface/InteractiveConsole.cpp @@ -32,7 +32,7 @@ #include "../core/Guard.hpp" #include "../core/Path.hpp" #include "../core/String.hpp" -#include "../drawing/Drawing.h" +#include "../drawing/Drawing.Screen.h" #include "../drawing/Image.h" #include "../entity/Balloon.h" #include "../entity/EntityList.h" @@ -922,7 +922,7 @@ static void ConsoleCommandSet(InteractiveConsole& console, const arguments_t& ar float newScale = static_cast(0.001 * std::trunc(1000 * double_val[0])); Config::Get().general.windowScale = std::clamp(newScale, 0.5f, 5.0f); Config::Save(); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); ContextTriggerResize(); ContextUpdateCursorScale(); console.Execute("get window_scale"); @@ -1020,7 +1020,7 @@ static void ConsoleCommandSet(InteractiveConsole& console, const arguments_t& ar console.WriteLineError("Invalid variable."); } - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } else { @@ -1114,7 +1114,7 @@ static void ConsoleCommandLoadObject(InteractiveConsole& console, const argument ContextBroadcastIntent(&ridesIntent); gWindowUpdateTicks = 0; - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); console.WriteLine("Object file loaded."); } diff --git a/src/openrct2/interface/Viewport.cpp b/src/openrct2/interface/Viewport.cpp index 2e5d91bd32..02815e55da 100644 --- a/src/openrct2/interface/Viewport.cpp +++ b/src/openrct2/interface/Viewport.cpp @@ -17,6 +17,7 @@ #include "../core/Guard.hpp" #include "../core/JobPool.h" #include "../core/Numerics.hpp" +#include "../drawing/Drawing.Screen.h" #include "../drawing/Drawing.Sprite.h" #include "../drawing/Drawing.h" #include "../drawing/IDrawingEngine.h" @@ -472,7 +473,7 @@ namespace OpenRCT2 } else { - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } } diff --git a/src/openrct2/interface/Window.cpp b/src/openrct2/interface/Window.cpp index b7caea7092..7572892c1c 100644 --- a/src/openrct2/interface/Window.cpp +++ b/src/openrct2/interface/Window.cpp @@ -15,8 +15,8 @@ #include "../OpenRCT2.h" #include "../audio/Audio.h" #include "../config/Config.h" +#include "../drawing/Drawing.Screen.h" #include "../drawing/Drawing.String.h" -#include "../drawing/Drawing.h" #include "../drawing/RenderTarget.h" #include "../entity/EntityRegistry.h" #include "../ride/RideAudio.h" @@ -870,7 +870,7 @@ static constexpr float kWindowScrollLocations[][2] = { WindowResizeGuiCentredWindows(width, height); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } /** diff --git a/src/openrct2/interface/WindowBase.cpp b/src/openrct2/interface/WindowBase.cpp index a0229f7ef4..4be93cc135 100644 --- a/src/openrct2/interface/WindowBase.cpp +++ b/src/openrct2/interface/WindowBase.cpp @@ -1,7 +1,7 @@ #include "WindowBase.h" #include "../config/Config.h" -#include "../drawing/Drawing.h" +#include "../drawing/NewDrawing.h" #include "Cursors.h" #include "Viewport.h" diff --git a/src/openrct2/libopenrct2.vcxproj b/src/openrct2/libopenrct2.vcxproj index b5bc6be0ce..9eb3d42a09 100644 --- a/src/openrct2/libopenrct2.vcxproj +++ b/src/openrct2/libopenrct2.vcxproj @@ -253,6 +253,7 @@ + @@ -901,6 +902,7 @@ + diff --git a/src/openrct2/network/NetworkBase.cpp b/src/openrct2/network/NetworkBase.cpp index eb7cd93792..c851cd0ee6 100644 --- a/src/openrct2/network/NetworkBase.cpp +++ b/src/openrct2/network/NetworkBase.cpp @@ -24,7 +24,7 @@ #include "../core/File.h" #include "../core/Guard.hpp" #include "../core/Json.hpp" -#include "../drawing/Drawing.h" +#include "../drawing/Drawing.Screen.h" #include "../entity/EntityRegistry.h" #include "../entity/EntityTweener.h" #include "../localisation/Formatter.h" @@ -204,7 +204,7 @@ namespace OpenRCT2::Network scriptEngine.RemoveNetworkPlugins(); #endif - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); _requireClose = false; } diff --git a/src/openrct2/paint/Painter.cpp b/src/openrct2/paint/Painter.cpp index 1c5a5832d1..5b159f3a34 100644 --- a/src/openrct2/paint/Painter.cpp +++ b/src/openrct2/paint/Painter.cpp @@ -16,6 +16,7 @@ #include "../drawing/Drawing.String.h" #include "../drawing/Drawing.h" #include "../drawing/IDrawingEngine.h" +#include "../drawing/NewDrawing.h" #include "../drawing/Palette.h" #include "../drawing/PickupPeep.h" #include "../drawing/Text.h" diff --git a/src/openrct2/park/ParkFile.cpp b/src/openrct2/park/ParkFile.cpp index 85f32e7829..f1a7002a72 100644 --- a/src/openrct2/park/ParkFile.cpp +++ b/src/openrct2/park/ParkFile.cpp @@ -23,7 +23,7 @@ #include "../core/OrcaStream.hpp" #include "../core/Path.hpp" #include "../core/String.hpp" -#include "../drawing/Drawing.h" +#include "../drawing/Drawing.Screen.h" #include "../entity/Balloon.h" #include "../entity/Duck.h" #include "../entity/EntityList.h" @@ -2776,10 +2776,10 @@ int32_t ScenarioSave(GameState_t& gameState, u8string_view path, int32_t flags) Formatter ft; ft.Add(e.what()); ContextShowError(STR_FILE_DIALOG_TITLE_SAVE_SCENARIO, STR_STRING, ft); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); if (result && !(flags & S6_SAVE_FLAG_AUTOMATIC)) { diff --git a/src/openrct2/ride/Ride.cpp b/src/openrct2/ride/Ride.cpp index ad518f1663..d6ae864d87 100644 --- a/src/openrct2/ride/Ride.cpp +++ b/src/openrct2/ride/Ride.cpp @@ -24,7 +24,7 @@ #include "../core/EnumUtils.hpp" #include "../core/Guard.hpp" #include "../core/Numerics.hpp" -#include "../drawing/Drawing.h" +#include "../drawing/Drawing.Screen.h" #include "../entity/EntityList.h" #include "../entity/EntityRegistry.h" #include "../entity/Peep.h" @@ -4453,7 +4453,7 @@ namespace OpenRCT2 const auto& rtd = ride.getRideTypeDescriptor(); if (rtd.specialType == RtdSpecialType::spaceRings || rtd.flags.has(RtdFlag::vehicleIsIntegral)) { - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } auto& entities = getGameState().entities; diff --git a/src/openrct2/ride/TrackDesignSave.cpp b/src/openrct2/ride/TrackDesignSave.cpp index 96544b3c93..581d8f3425 100644 --- a/src/openrct2/ride/TrackDesignSave.cpp +++ b/src/openrct2/ride/TrackDesignSave.cpp @@ -9,7 +9,7 @@ #include "../Context.h" #include "../Diagnostic.h" -#include "../drawing/Drawing.h" +#include "../drawing/Drawing.Screen.h" #include "../interface/Viewport.h" #include "../localisation/Formatter.h" #include "../localisation/StringIds.h" @@ -111,7 +111,7 @@ void TrackDesignSaveSelectNearbyScenery(RideId rideIndex) } } while (TileElementIteratorNext(&it)); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } /** @@ -121,7 +121,7 @@ void TrackDesignSaveSelectNearbyScenery(RideId rideIndex) void TrackDesignSaveResetScenery() { TrackDesignSaveInit(); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } bool TrackDesignSaveContainsTileElement(const TileElement* tileElement) diff --git a/src/openrct2/scenes/editor/EditorController.cpp b/src/openrct2/scenes/editor/EditorController.cpp index 4fd3e905d3..87d80d1c84 100644 --- a/src/openrct2/scenes/editor/EditorController.cpp +++ b/src/openrct2/scenes/editor/EditorController.cpp @@ -16,7 +16,7 @@ #include "../../actions/ResultWithMessage.h" #include "../../audio/Audio.h" #include "../../core/EnumUtils.hpp" -#include "../../drawing/Drawing.h" +#include "../../drawing/Drawing.Screen.h" #include "../../drawing/Palette.h" #include "../../entity/EntityList.h" #include "../../entity/Guest.h" @@ -721,7 +721,7 @@ namespace OpenRCT2::Editor } gameState.editorStep = Editor::Step::rollerCoasterDesigner; - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } else { @@ -731,7 +731,7 @@ namespace OpenRCT2::Editor ContextBroadcastIntent(&intent); gameState.editorStep = Editor::Step::landscapeEditor; - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } } diff --git a/src/openrct2/scenes/title/TitleScene.cpp b/src/openrct2/scenes/title/TitleScene.cpp index 9ca14c5c69..882036952d 100644 --- a/src/openrct2/scenes/title/TitleScene.cpp +++ b/src/openrct2/scenes/title/TitleScene.cpp @@ -18,7 +18,7 @@ #include "../../audio/Audio.h" #include "../../config/Config.h" #include "../../core/Console.hpp" -#include "../../drawing/Drawing.h" +#include "../../drawing/Drawing.Screen.h" #include "../../drawing/Palette.h" #include "../../interface/Screenshot.h" #include "../../interface/Window.h" @@ -311,7 +311,7 @@ bool TitleScene::TryLoadSequence(bool loadPreview) Config::Get().interface.currentTitleSequencePreset = configId; } _currentSequence = targetSequence; - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); return true; } targetSequence = (targetSequence + 1) % numSequences; diff --git a/src/openrct2/scripting/bindings/world/ScPark.cpp b/src/openrct2/scripting/bindings/world/ScPark.cpp index bfd6026a13..ac3a4c89b3 100644 --- a/src/openrct2/scripting/bindings/world/ScPark.cpp +++ b/src/openrct2/scripting/bindings/world/ScPark.cpp @@ -14,7 +14,7 @@ #include "../../../Context.h" #include "../../../GameState.h" #include "../../../core/EnumMap.hpp" - #include "../../../drawing/Drawing.h" + #include "../../../drawing/Drawing.Screen.h" #include "../../../ui/WindowManager.h" #include "../../../windows/Intent.h" #include "../../../world/Park.h" @@ -322,7 +322,7 @@ namespace OpenRCT2::Scripting if (park.name != valueStr) { park.name = std::move(valueStr); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } return JS_UNDEFINED; } @@ -343,7 +343,7 @@ namespace OpenRCT2::Scripting const auto flag = kParkFlagMap[key]; auto& gameState = getGameState(); gameState.park.flags.set(flag, value); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); return JS_UNDEFINED; } diff --git a/src/openrct2/world/Weather.cpp b/src/openrct2/world/Weather.cpp index 8959ec83ca..03e4b95b60 100644 --- a/src/openrct2/world/Weather.cpp +++ b/src/openrct2/world/Weather.cpp @@ -18,7 +18,7 @@ #include "../audio/AudioChannel.h" #include "../config/Config.h" #include "../core/EnumUtils.hpp" -#include "../drawing/Drawing.h" +#include "../drawing/Drawing.Screen.h" #include "../drawing/FilterPaletteIds.h" #include "../object/ClimateObject.h" #include "../object/ObjectManager.h" @@ -189,7 +189,7 @@ namespace OpenRCT2::Weather { gameState.weatherCurrent.weatherGloom = stepWeatherLevel( gameState.weatherCurrent.weatherGloom, gameState.weatherNext.weatherGloom); - GfxInvalidateScreen(); + Drawing::GfxInvalidateScreen(); } } else From c90ca119eb740d15313a7bcb3d0a5047129e342a Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 6 Sep 2026 19:50:48 +0200 Subject: [PATCH 017/142] Move line drawing stuff into Line.{cpp.h} --- src/openrct2-ui/interface/Graph.cpp | 2 +- src/openrct2-ui/scripting/CustomListView.cpp | 1 + .../scripting/ScGraphicsContext.hpp | 1 + src/openrct2-ui/windows/ScenarioSelect.cpp | 1 + src/openrct2/drawing/Drawing.cpp | 7 +- src/openrct2/drawing/Drawing.h | 7 - src/openrct2/drawing/Line.cpp | 321 ++++++++++-------- src/openrct2/drawing/Line.h | 25 ++ src/openrct2/drawing/NewDrawing.cpp | 43 --- src/openrct2/drawing/X8DrawingEngine.cpp | 1 + src/openrct2/libopenrct2.vcxproj | 1 + src/openrct2/paint/Paint.cpp | 1 + 12 files changed, 218 insertions(+), 193 deletions(-) create mode 100644 src/openrct2/drawing/Line.h diff --git a/src/openrct2-ui/interface/Graph.cpp b/src/openrct2-ui/interface/Graph.cpp index c41da7aa1d..9e5e908543 100644 --- a/src/openrct2-ui/interface/Graph.cpp +++ b/src/openrct2-ui/interface/Graph.cpp @@ -11,7 +11,7 @@ #include #include -#include +#include #include #include #include diff --git a/src/openrct2-ui/scripting/CustomListView.cpp b/src/openrct2-ui/scripting/CustomListView.cpp index 413cb33694..555cc78341 100644 --- a/src/openrct2-ui/scripting/CustomListView.cpp +++ b/src/openrct2-ui/scripting/CustomListView.cpp @@ -19,6 +19,7 @@ #include #include #include + #include #include #include #include diff --git a/src/openrct2-ui/scripting/ScGraphicsContext.hpp b/src/openrct2-ui/scripting/ScGraphicsContext.hpp index 61ff36115f..6d0d147cbb 100644 --- a/src/openrct2-ui/scripting/ScGraphicsContext.hpp +++ b/src/openrct2-ui/scripting/ScGraphicsContext.hpp @@ -15,6 +15,7 @@ #include #include + #include #include #include #include diff --git a/src/openrct2-ui/windows/ScenarioSelect.cpp b/src/openrct2-ui/windows/ScenarioSelect.cpp index 4020d1284f..bf60727fbb 100644 --- a/src/openrct2-ui/windows/ScenarioSelect.cpp +++ b/src/openrct2-ui/windows/ScenarioSelect.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include diff --git a/src/openrct2/drawing/Drawing.cpp b/src/openrct2/drawing/Drawing.cpp index 73b96dbe83..3b6eb5c9f7 100644 --- a/src/openrct2/drawing/Drawing.cpp +++ b/src/openrct2/drawing/Drawing.cpp @@ -9,24 +9,19 @@ #include "Drawing.h" -#include "../Context.h" #include "../Game.h" #include "../GameState.h" #include "../SpriteIds.h" -#include "../config/Config.h" #include "../interface/ScreenCoords.hpp" #include "Drawing.Sprite.h" #include "FilterPaletteIds.h" #include "Font.h" -#include "NewDrawing.h" -#include "Palette.h" +#include "Line.h" #include "Rectangle.h" #include "RenderTarget.h" #include "Text.h" -#include #include -#include using namespace OpenRCT2; using namespace OpenRCT2::Drawing; diff --git a/src/openrct2/drawing/Drawing.h b/src/openrct2/drawing/Drawing.h index 384ff74896..694300401c 100644 --- a/src/openrct2/drawing/Drawing.h +++ b/src/openrct2/drawing/Drawing.h @@ -54,13 +54,6 @@ void GfxClear(OpenRCT2::Drawing::RenderTarget& rt, OpenRCT2::Drawing::PaletteInd void GfxFilterPixel( OpenRCT2::Drawing::RenderTarget& rt, const ScreenCoordsXY& coords, OpenRCT2::Drawing::FilterPaletteID palette); -// line -void GfxDrawLine(OpenRCT2::Drawing::RenderTarget& rt, const ScreenLine& line, OpenRCT2::Drawing::PaletteIndex colour); -void GfxDrawLineSoftware(OpenRCT2::Drawing::RenderTarget& rt, const ScreenLine& line, OpenRCT2::Drawing::PaletteIndex colour); -void GfxDrawDashedLine( - OpenRCT2::Drawing::RenderTarget& rt, const ScreenLine& screenLine, int32_t dashedLineSegmentLength, - OpenRCT2::Drawing::PaletteIndex colour); - // sprite (NewDrawing.cpp functions that use the drawing engine) void FASTCALL GfxDrawSprite(OpenRCT2::Drawing::RenderTarget& rt, ImageId image_id, const ScreenCoordsXY& coords); void FASTCALL GfxDrawGlyph( diff --git a/src/openrct2/drawing/Line.cpp b/src/openrct2/drawing/Line.cpp index 14bcb12e59..f2a84471eb 100644 --- a/src/openrct2/drawing/Line.cpp +++ b/src/openrct2/drawing/Line.cpp @@ -7,164 +7,213 @@ * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ +#include "Line.h" + +#include "../interface/ScreenCoords.hpp" #include "Drawing.h" +#include "IDrawingContext.h" +#include "IDrawingEngine.h" #include "RenderTarget.h" #include -using namespace OpenRCT2::Drawing; - -/** - * Draws a horizontal line of specified colour to a buffer. - * rct2: 0x0068474C - */ -static void GfxDrawLineOnBuffer(RenderTarget& rt, PaletteIndex colour, const ScreenCoordsXY& coords, int32_t no_pixels) +namespace OpenRCT2::Drawing { - ScreenCoordsXY offset{ coords.x - rt.x, coords.y - rt.y }; - - const int32_t width = rt.width; - const int32_t height = rt.height; - - // Check to make sure point is in the y range - if (offset.y < 0) - return; - if (offset.y >= height) - return; - // Check to make sure we are drawing at least a pixel - if (!no_pixels) - no_pixels++; - - // If x coord outside range leave - if (offset.x < 0) + /** + * Draws a horizontal line of specified colour to a buffer. + * rct2: 0x0068474C + */ + static void GfxDrawLineOnBuffer(RenderTarget& rt, PaletteIndex colour, const ScreenCoordsXY& coords, int32_t no_pixels) { - // Unless the number of pixels is enough to be in range - no_pixels += offset.x; - if (no_pixels <= 0) + ScreenCoordsXY offset{ coords.x - rt.x, coords.y - rt.y }; + + const int32_t width = rt.width; + const int32_t height = rt.height; + + // Check to make sure point is in the y range + if (offset.y < 0) return; - // Resets starting point to 0 as we don't draw outside the range - offset.x = 0; - } - - // Ensure that the end point of the line is within range - if (offset.x + no_pixels - width > 0) - { - // If the end point has any pixels outside range - // cut them off. If there are now no pixels return. - no_pixels -= offset.x + no_pixels - width; - if (no_pixels <= 0) + if (offset.y >= height) return; + // Check to make sure we are drawing at least a pixel + if (!no_pixels) + no_pixels++; + + // If x coord outside range leave + if (offset.x < 0) + { + // Unless the number of pixels is enough to be in range + no_pixels += offset.x; + if (no_pixels <= 0) + return; + // Resets starting point to 0 as we don't draw outside the range + offset.x = 0; + } + + // Ensure that the end point of the line is within range + if (offset.x + no_pixels - width > 0) + { + // If the end point has any pixels outside range + // cut them off. If there are now no pixels return. + no_pixels -= offset.x + no_pixels - width; + if (no_pixels <= 0) + return; + } + + // Get the buffer we are drawing to and move to the first coordinate. + PaletteIndex* bits_pointer = reinterpret_cast(rt.bits + offset.y * rt.LineStride() + offset.x); + + // Draw the line to the specified colour + for (; no_pixels > 0; --no_pixels, ++bits_pointer) + { + *bits_pointer = colour; + } } - // Get the buffer we are drawing to and move to the first coordinate. - PaletteIndex* bits_pointer = reinterpret_cast(rt.bits + offset.y * rt.LineStride() + offset.x); + /** + * Draws a line on rt if within rt boundaries + * rct2: 0x00684466 + * rt (edi) + * x1 (ax) + * y1 (bx) + * x2 (cx) + * y2 (dx) + * colour (ebp) + */ - // Draw the line to the specified colour - for (; no_pixels > 0; --no_pixels, ++bits_pointer) + void GfxDrawLineSoftware(RenderTarget& rt, const ScreenLine& line, PaletteIndex colour) { - *bits_pointer = colour; - } -} + const ZoomLevel zoom = rt.zoom_level; + int32_t x1 = zoom.ApplyInversedTo(line.GetX1()); + int32_t x2 = zoom.ApplyInversedTo(line.GetX2()); + int32_t y1 = zoom.ApplyInversedTo(line.GetY1()); + int32_t y2 = zoom.ApplyInversedTo(line.GetY2()); + // Check to make sure the line is within the drawing area + if ((x1 < rt.x) && (x2 < rt.x)) + { + return; + } -/** - * Draws a line on rt if within rt boundaries - * rct2: 0x00684466 - * rt (edi) - * x1 (ax) - * y1 (bx) - * x2 (cx) - * y2 (dx) - * colour (ebp) - */ + if ((y1 < rt.y) && (y2 < rt.y)) + { + return; + } -void GfxDrawLineSoftware(RenderTarget& rt, const ScreenLine& line, PaletteIndex colour) -{ - const ZoomLevel zoom = rt.zoom_level; - int32_t x1 = zoom.ApplyInversedTo(line.GetX1()); - int32_t x2 = zoom.ApplyInversedTo(line.GetX2()); - int32_t y1 = zoom.ApplyInversedTo(line.GetY1()); - int32_t y2 = zoom.ApplyInversedTo(line.GetY2()); - // Check to make sure the line is within the drawing area - if ((x1 < rt.x) && (x2 < rt.x)) - { - return; - } + if ((x1 > (rt.x + rt.width)) && (x2 > (rt.x + rt.width))) + { + return; + } - if ((y1 < rt.y) && (y2 < rt.y)) - { - return; - } + if ((y1 > (rt.y + rt.height)) && (y2 > (rt.y + rt.height))) + { + return; + } - if ((x1 > (rt.x + rt.width)) && (x2 > (rt.x + rt.width))) - { - return; - } + // Bresenham's algorithm - if ((y1 > (rt.y + rt.height)) && (y2 > (rt.y + rt.height))) - { - return; - } - - // Bresenham's algorithm - - // If vertical plot points upwards - int32_t steep = std::abs(y2 - y1) > std::abs(x2 - x1); - if (steep) - { - int32_t temp_y2 = y2; - int32_t temp_x2 = x2; - y2 = x1; - x2 = y1; - y1 = temp_x2; - x1 = temp_y2; - } - - // If line is right to left swap direction - if (x1 > x2) - { - int32_t temp_y2 = y2; - int32_t temp_x2 = x2; - y2 = y1; - x2 = x1; - y1 = temp_y2; - x1 = temp_x2; - } - - int32_t delta_x = x2 - x1; - int32_t delta_y = std::abs(y2 - y1); - int32_t error = delta_x / 2; - int32_t y_step; - int32_t y = y1; - - // Direction of step - if (y1 < y2) - y_step = 1; - else - y_step = -1; - - for (int32_t x = x1, x_start = x1, length = 1; x < x2; ++x, ++length) - { - // Vertical lines are drawn 1 pixel at a time + // If vertical plot points upwards + int32_t steep = std::abs(y2 - y1) > std::abs(x2 - x1); if (steep) - GfxDrawLineOnBuffer(rt, colour, { y, x }, 1); - - error -= delta_y; - if (error < 0) { - // Non vertical lines are drawn with as many pixels in a horizontal line as possible - if (!steep) - GfxDrawLineOnBuffer(rt, colour, { x_start, y }, length); - - // Reset non vertical line vars - x_start = x + 1; - length = 0; // NB: will be incremented in next iteration - y += y_step; - error += delta_x; + int32_t temp_y2 = y2; + int32_t temp_x2 = x2; + y2 = x1; + x2 = y1; + y1 = temp_x2; + x1 = temp_y2; } - // Catch the case of the last line - if (x + 1 == x2 && !steep) + // If line is right to left swap direction + if (x1 > x2) { - GfxDrawLineOnBuffer(rt, colour, { x_start, y }, length); + int32_t temp_y2 = y2; + int32_t temp_x2 = x2; + y2 = y1; + x2 = x1; + y1 = temp_y2; + x1 = temp_x2; + } + + int32_t delta_x = x2 - x1; + int32_t delta_y = std::abs(y2 - y1); + int32_t error = delta_x / 2; + int32_t y_step; + int32_t y = y1; + + // Direction of step + if (y1 < y2) + y_step = 1; + else + y_step = -1; + + for (int32_t x = x1, x_start = x1, length = 1; x < x2; ++x, ++length) + { + // Vertical lines are drawn 1 pixel at a time + if (steep) + GfxDrawLineOnBuffer(rt, colour, { y, x }, 1); + + error -= delta_y; + if (error < 0) + { + // Non vertical lines are drawn with as many pixels in a horizontal line as possible + if (!steep) + GfxDrawLineOnBuffer(rt, colour, { x_start, y }, length); + + // Reset non vertical line vars + x_start = x + 1; + length = 0; // NB: will be incremented in next iteration + y += y_step; + error += delta_x; + } + + // Catch the case of the last line + if (x + 1 == x2 && !steep) + { + GfxDrawLineOnBuffer(rt, colour, { x_start, y }, length); + } } } -} + + void GfxDrawLine(RenderTarget& rt, const ScreenLine& line, PaletteIndex colour) + { + auto drawingEngine = rt.DrawingEngine; + if (drawingEngine != nullptr) + { + IDrawingContext* dc = drawingEngine->GetDrawingContext(); + dc->DrawLine(rt, colour, line); + } + } + + void GfxDrawDashedLine( + RenderTarget& rt, const ScreenLine& screenLine, const int32_t dashedLineSegmentLength, const PaletteIndex colour) + { + assert(dashedLineSegmentLength > 0); + + const auto drawingEngine = rt.DrawingEngine; + if (drawingEngine != nullptr) + { + constexpr int32_t kPrecisionFactor = 1000; + + const int32_t dashedLineLength = std::hypot( + screenLine.GetX2() - screenLine.GetX1(), screenLine.GetY2() - screenLine.GetY1()); + const int32_t lineSegmentCount = dashedLineLength / dashedLineSegmentLength / 2; + if (lineSegmentCount == 0) + { + return; + } + + const int32_t lineXDist = std::abs(screenLine.GetX2() - screenLine.GetX1()); + const int32_t lineYDist = std::abs(screenLine.GetY2() - screenLine.GetY1()); + const int32_t dxPrecise = kPrecisionFactor * lineXDist / lineSegmentCount / 2; + const int32_t dyPrecise = kPrecisionFactor * lineYDist / lineSegmentCount / 2; + IDrawingContext* dc = drawingEngine->GetDrawingContext(); + + for (int32_t i = 0, x, y; i < lineSegmentCount; ++i) + { + x = screenLine.GetX1() + dxPrecise * i * 2 / kPrecisionFactor; + y = screenLine.GetY1() + dyPrecise * i * 2 / kPrecisionFactor; + dc->DrawLine(rt, colour, { { x, y }, { x + dxPrecise / kPrecisionFactor, y + dyPrecise / kPrecisionFactor } }); + } + } + } +} // namespace OpenRCT2::Drawing diff --git a/src/openrct2/drawing/Line.h b/src/openrct2/drawing/Line.h new file mode 100644 index 0000000000..a532ea3a2f --- /dev/null +++ b/src/openrct2/drawing/Line.h @@ -0,0 +1,25 @@ +/***************************************************************************** + * Copyright (c) 2014-2026 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#include + +struct ScreenLine; + +namespace OpenRCT2::Drawing +{ + enum class PaletteIndex : uint8_t; + struct RenderTarget; + + void GfxDrawLine(RenderTarget& rt, const ScreenLine& line, PaletteIndex colour); + void GfxDrawLineSoftware(RenderTarget& rt, const ScreenLine& line, PaletteIndex colour); + void GfxDrawDashedLine( + RenderTarget& rt, const ScreenLine& screenLine, int32_t dashedLineSegmentLength, PaletteIndex colour); +} // namespace OpenRCT2::Drawing diff --git a/src/openrct2/drawing/NewDrawing.cpp b/src/openrct2/drawing/NewDrawing.cpp index 11e026f6d8..983a76f7ac 100644 --- a/src/openrct2/drawing/NewDrawing.cpp +++ b/src/openrct2/drawing/NewDrawing.cpp @@ -163,49 +163,6 @@ void GfxClear(RenderTarget& rt, PaletteIndex paletteIndex) } } -void GfxDrawLine(RenderTarget& rt, const ScreenLine& line, PaletteIndex colour) -{ - auto drawingEngine = rt.DrawingEngine; - if (drawingEngine != nullptr) - { - IDrawingContext* dc = drawingEngine->GetDrawingContext(); - dc->DrawLine(rt, colour, line); - } -} - -void GfxDrawDashedLine( - RenderTarget& rt, const ScreenLine& screenLine, const int32_t dashedLineSegmentLength, const PaletteIndex colour) -{ - assert(dashedLineSegmentLength > 0); - - const auto drawingEngine = rt.DrawingEngine; - if (drawingEngine != nullptr) - { - constexpr int32_t kPrecisionFactor = 1000; - - const int32_t dashedLineLength = std::hypot( - screenLine.GetX2() - screenLine.GetX1(), screenLine.GetY2() - screenLine.GetY1()); - const int32_t lineSegmentCount = dashedLineLength / dashedLineSegmentLength / 2; - if (lineSegmentCount == 0) - { - return; - } - - const int32_t lineXDist = std::abs(screenLine.GetX2() - screenLine.GetX1()); - const int32_t lineYDist = std::abs(screenLine.GetY2() - screenLine.GetY1()); - const int32_t dxPrecise = kPrecisionFactor * lineXDist / lineSegmentCount / 2; - const int32_t dyPrecise = kPrecisionFactor * lineYDist / lineSegmentCount / 2; - IDrawingContext* dc = drawingEngine->GetDrawingContext(); - - for (int32_t i = 0, x, y; i < lineSegmentCount; ++i) - { - x = screenLine.GetX1() + dxPrecise * i * 2 / kPrecisionFactor; - y = screenLine.GetY1() + dyPrecise * i * 2 / kPrecisionFactor; - dc->DrawLine(rt, colour, { { x, y }, { x + dxPrecise / kPrecisionFactor, y + dyPrecise / kPrecisionFactor } }); - } - } -} - void FASTCALL GfxDrawSprite(RenderTarget& rt, const ImageId imageId, const ScreenCoordsXY& coords) { auto drawingEngine = rt.DrawingEngine; diff --git a/src/openrct2/drawing/X8DrawingEngine.cpp b/src/openrct2/drawing/X8DrawingEngine.cpp index 61b41671ee..4bd3fd35fd 100644 --- a/src/openrct2/drawing/X8DrawingEngine.cpp +++ b/src/openrct2/drawing/X8DrawingEngine.cpp @@ -24,6 +24,7 @@ #include "IDrawingEngine.h" #include "InvalidationGrid.h" #include "LightFX.h" +#include "Line.h" #include "TTF.h" #include "WeatherDrawer.h" diff --git a/src/openrct2/libopenrct2.vcxproj b/src/openrct2/libopenrct2.vcxproj index 9eb3d42a09..07bd95fa48 100644 --- a/src/openrct2/libopenrct2.vcxproj +++ b/src/openrct2/libopenrct2.vcxproj @@ -265,6 +265,7 @@ + diff --git a/src/openrct2/paint/Paint.cpp b/src/openrct2/paint/Paint.cpp index d62475f30d..6c23548fd3 100644 --- a/src/openrct2/paint/Paint.cpp +++ b/src/openrct2/paint/Paint.cpp @@ -17,6 +17,7 @@ #include "../drawing/Drawing.String.h" #include "../drawing/Drawing.h" #include "../drawing/Font.h" +#include "../drawing/Line.h" #include "../interface/Viewport.h" #include "../localisation/Currency.h" #include "../localisation/Formatting.h" From 96ba41b5e6aa82222b525d198478aeeb149f9f9a Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 6 Sep 2026 19:58:11 +0200 Subject: [PATCH 018/142] Move ImageId::GetCatalogue() out of Drawing.cpp --- src/openrct2/drawing/Drawing.cpp | 26 ---------------------- src/openrct2/drawing/ImageId.cpp | 38 ++++++++++++++++++++++++++++++++ src/openrct2/libopenrct2.vcxproj | 1 + 3 files changed, 39 insertions(+), 26 deletions(-) create mode 100644 src/openrct2/drawing/ImageId.cpp diff --git a/src/openrct2/drawing/Drawing.cpp b/src/openrct2/drawing/Drawing.cpp index 3b6eb5c9f7..8081ee0e69 100644 --- a/src/openrct2/drawing/Drawing.cpp +++ b/src/openrct2/drawing/Drawing.cpp @@ -374,32 +374,6 @@ const TranslucentWindowPalette kTranslucentWindowPalettes[kColourNumTotal] = { }; // clang-format on -ImageCatalogue ImageId::GetCatalogue() const -{ - auto index = GetIndex(); - if (index >= SPR_TEMP_BEGIN && index < SPR_TEMP_END) - { - return ImageCatalogue::temporary; - } - if (index < SPR_RCTC_G1_END) - { - return ImageCatalogue::g1; - } - if (index < SPR_G2_END) - { - return ImageCatalogue::g2; - } - if (index < SPR_CSG_END) - { - return ImageCatalogue::csg; - } - if (index < SPR_IMAGE_LIST_END) - { - return ImageCatalogue::object; - } - return ImageCatalogue::unknown; -} - void GfxFilterPixel(RenderTarget& rt, const ScreenCoordsXY& coords, FilterPaletteID palette) { Rectangle::filter(rt, { coords, coords }, palette); diff --git a/src/openrct2/drawing/ImageId.cpp b/src/openrct2/drawing/ImageId.cpp new file mode 100644 index 0000000000..2adc967913 --- /dev/null +++ b/src/openrct2/drawing/ImageId.cpp @@ -0,0 +1,38 @@ +/***************************************************************************** + * Copyright (c) 2014-2026 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#include "ImageId.hpp" + +#include "../SpriteIds.h" + +ImageCatalogue ImageId::GetCatalogue() const +{ + auto index = GetIndex(); + if (index >= SPR_TEMP_BEGIN && index < SPR_TEMP_END) + { + return ImageCatalogue::temporary; + } + if (index < SPR_RCTC_G1_END) + { + return ImageCatalogue::g1; + } + if (index < SPR_G2_END) + { + return ImageCatalogue::g2; + } + if (index < SPR_CSG_END) + { + return ImageCatalogue::csg; + } + if (index < SPR_IMAGE_LIST_END) + { + return ImageCatalogue::object; + } + return ImageCatalogue::unknown; +} diff --git a/src/openrct2/libopenrct2.vcxproj b/src/openrct2/libopenrct2.vcxproj index 07bd95fa48..9cd0795813 100644 --- a/src/openrct2/libopenrct2.vcxproj +++ b/src/openrct2/libopenrct2.vcxproj @@ -910,6 +910,7 @@ + From fcdf61e009b2f3da81cf3ba019174c353bad9709 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 6 Sep 2026 20:03:24 +0200 Subject: [PATCH 019/142] Move GfxFilterPixel to Rectangle.cpp --- src/openrct2-ui/windows/Tooltip.cpp | 9 ++++----- src/openrct2/drawing/Drawing.cpp | 5 ----- src/openrct2/drawing/Drawing.h | 2 -- src/openrct2/drawing/Rectangle.cpp | 5 +++++ src/openrct2/drawing/Rectangle.h | 2 ++ 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/openrct2-ui/windows/Tooltip.cpp b/src/openrct2-ui/windows/Tooltip.cpp index ae9506e3e6..4c191efd27 100644 --- a/src/openrct2-ui/windows/Tooltip.cpp +++ b/src/openrct2-ui/windows/Tooltip.cpp @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include @@ -125,10 +124,10 @@ namespace OpenRCT2::Ui::Windows Rectangle::filter(rt, { { left + 2, top + 0 }, { right - 2, top + 0 } }, FilterPaletteID::paletteDarken3); // Corners - GfxFilterPixel(rt, { left + 1, top + 1 }, FilterPaletteID::paletteDarken3); - GfxFilterPixel(rt, { right - 1, top + 1 }, FilterPaletteID::paletteDarken3); - GfxFilterPixel(rt, { left + 1, bottom - 1 }, FilterPaletteID::paletteDarken3); - GfxFilterPixel(rt, { right - 1, bottom - 1 }, FilterPaletteID::paletteDarken3); + Rectangle::filterPixel(rt, { left + 1, top + 1 }, FilterPaletteID::paletteDarken3); + Rectangle::filterPixel(rt, { right - 1, top + 1 }, FilterPaletteID::paletteDarken3); + Rectangle::filterPixel(rt, { left + 1, bottom - 1 }, FilterPaletteID::paletteDarken3); + Rectangle::filterPixel(rt, { right - 1, bottom - 1 }, FilterPaletteID::paletteDarken3); // Text left = windowPos.x + ((width + 1) / 2) - 1; diff --git a/src/openrct2/drawing/Drawing.cpp b/src/openrct2/drawing/Drawing.cpp index 8081ee0e69..b625934d1c 100644 --- a/src/openrct2/drawing/Drawing.cpp +++ b/src/openrct2/drawing/Drawing.cpp @@ -374,11 +374,6 @@ const TranslucentWindowPalette kTranslucentWindowPalettes[kColourNumTotal] = { }; // clang-format on -void GfxFilterPixel(RenderTarget& rt, const ScreenCoordsXY& coords, FilterPaletteID palette) -{ - Rectangle::filter(rt, { coords, coords }, palette); -} - /* * * rct2: 0x006EE53B diff --git a/src/openrct2/drawing/Drawing.h b/src/openrct2/drawing/Drawing.h index 694300401c..360cd20399 100644 --- a/src/openrct2/drawing/Drawing.h +++ b/src/openrct2/drawing/Drawing.h @@ -51,8 +51,6 @@ bool ClipRenderTarget( // other void GfxClear(OpenRCT2::Drawing::RenderTarget& rt, OpenRCT2::Drawing::PaletteIndex paletteIndex); -void GfxFilterPixel( - OpenRCT2::Drawing::RenderTarget& rt, const ScreenCoordsXY& coords, OpenRCT2::Drawing::FilterPaletteID palette); // sprite (NewDrawing.cpp functions that use the drawing engine) void FASTCALL GfxDrawSprite(OpenRCT2::Drawing::RenderTarget& rt, ImageId image_id, const ScreenCoordsXY& coords); diff --git a/src/openrct2/drawing/Rectangle.cpp b/src/openrct2/drawing/Rectangle.cpp index 0ac8aab2fe..8e95428d90 100644 --- a/src/openrct2/drawing/Rectangle.cpp +++ b/src/openrct2/drawing/Rectangle.cpp @@ -153,4 +153,9 @@ namespace OpenRCT2::Drawing::Rectangle dc->FilterRect(rt, palette, rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetBottom()); } } + + void filterPixel(RenderTarget& rt, const ScreenCoordsXY& coords, FilterPaletteID palette) + { + filter(rt, { coords, coords }, palette); + } } // namespace OpenRCT2::Drawing::Rectangle diff --git a/src/openrct2/drawing/Rectangle.h b/src/openrct2/drawing/Rectangle.h index 773b4d2a80..695a329488 100644 --- a/src/openrct2/drawing/Rectangle.h +++ b/src/openrct2/drawing/Rectangle.h @@ -11,6 +11,7 @@ #include +struct ScreenCoordsXY; struct ScreenRect; namespace OpenRCT2 @@ -51,4 +52,5 @@ namespace OpenRCT2::Drawing::Rectangle RenderTarget& rt, const ScreenRect& rect, ColourWithFlags colour, BorderStyle borderStyle = BorderStyle::outset, FillBrightness brightness = FillBrightness::light, FillMode fillMode = FillMode::standard); void filter(RenderTarget& rt, const ScreenRect& rect, FilterPaletteID palette); + void filterPixel(RenderTarget& rt, const ScreenCoordsXY& coords, FilterPaletteID palette); } // namespace OpenRCT2::Drawing::Rectangle From b8a5e2431cde79b75656d05fc82348d886dac409 Mon Sep 17 00:00:00 2001 From: Sjoerd de Bruin Date: Mon, 7 Sep 2026 22:51:20 +0200 Subject: [PATCH 020/142] Fix #26754: Guard stale hover widget index when switching window pages (#27086) --- distribution/changelog.txt | 1 + src/openrct2-ui/input/MouseInput.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 0de2cc3969..a562f27636 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,6 +1,7 @@ 0.5.6 (in development) ------------------------------------------------------------------------ - Fix: [#24457] Yellow is always rendered as third remap in Ride window. +- Fix: [#26754] Switching window tabs by touch could crash the game on some Linux builds. - Fix: [#27052] Unnamed rides in RCT2 base and Wacky Worlds scenarios have hardcoded English names. 0.5.5 (2026-09-06) diff --git a/src/openrct2-ui/input/MouseInput.cpp b/src/openrct2-ui/input/MouseInput.cpp index 626e3cb631..3cdb1d4d1e 100644 --- a/src/openrct2-ui/input/MouseInput.cpp +++ b/src/openrct2-ui/input/MouseInput.cpp @@ -1024,6 +1024,11 @@ namespace OpenRCT2 if (w != nullptr) { w->onPrepareDraw(); + + // Switching a window to another page can leave the remembered index out of range. + if (static_cast(gHoverWidget.widgetIndex) >= w->widgets.size()) + return; + if (w->widgets[gHoverWidget.widgetIndex].type == WidgetType::flatBtn || w->widgets[gHoverWidget.widgetIndex].type == WidgetType::hiddenButton) { From 092783cc1160be24f2acbed023217558bdb1f41a Mon Sep 17 00:00:00 2001 From: Harry Hopkinson <63599884+Harry-Hopkinson@users.noreply.github.com> Date: Mon, 7 Sep 2026 22:58:24 +0200 Subject: [PATCH 021/142] Rename Location.hpp members to camelCase (#27085) --- src/openrct2-ui/input/Shortcuts.cpp | 2 +- .../interface/ViewportInteraction.cpp | 8 +- src/openrct2-ui/interface/ViewportQuery.cpp | 10 +- src/openrct2-ui/ride/Construction.cpp | 12 +-- src/openrct2-ui/windows/Banner.cpp | 4 +- src/openrct2-ui/windows/ClearScenery.cpp | 2 +- .../windows/EditorParkEntrance.cpp | 8 +- src/openrct2-ui/windows/Footpath.cpp | 10 +- src/openrct2-ui/windows/Guest.cpp | 6 +- src/openrct2-ui/windows/InstallTrack.cpp | 2 +- src/openrct2-ui/windows/Land.cpp | 8 +- src/openrct2-ui/windows/LandRights.cpp | 2 +- src/openrct2-ui/windows/Map.cpp | 6 +- src/openrct2-ui/windows/MazeConstruction.cpp | 4 +- src/openrct2-ui/windows/PatrolArea.cpp | 4 +- src/openrct2-ui/windows/Player.cpp | 2 +- src/openrct2-ui/windows/Ride.cpp | 14 +-- src/openrct2-ui/windows/RideConstruction.cpp | 12 +-- src/openrct2-ui/windows/Scenery.cpp | 68 +++++++------- src/openrct2-ui/windows/Sign.cpp | 6 +- src/openrct2-ui/windows/Staff.cpp | 6 +- src/openrct2-ui/windows/StaffList.cpp | 4 +- src/openrct2-ui/windows/TileInspector.cpp | 2 +- src/openrct2-ui/windows/TrackDesignPlace.cpp | 18 ++-- src/openrct2-ui/windows/TrackList.cpp | 2 +- src/openrct2-ui/windows/Viewport.cpp | 2 +- src/openrct2-ui/windows/Water.cpp | 2 +- src/openrct2/Game.cpp | 2 +- src/openrct2/ReplayManager.cpp | 2 +- src/openrct2/actions/GameActionRunner.cpp | 2 +- .../footpath/FootpathLayoutPlaceAction.cpp | 4 +- .../actions/footpath/FootpathPlaceAction.cpp | 4 +- .../actions/footpath/FootpathRemoveAction.cpp | 2 +- .../actions/park/LandBuyRightsAction.cpp | 2 +- .../actions/park/LandSetRightsAction.cpp | 2 +- .../actions/peep/PeepPickupAction.cpp | 2 +- .../actions/peep/PeepSpawnPlaceAction.cpp | 4 +- .../actions/ride/MazePlaceTrackAction.cpp | 8 +- .../actions/ride/MazeSetTrackAction.cpp | 16 ++-- .../actions/ride/RideCreateAction.cpp | 8 +- .../actions/ride/RideDemolishAction.cpp | 10 +- .../ride/RideEntranceExitPlaceAction.cpp | 14 +-- .../ride/RideEntranceExitRemoveAction.cpp | 4 +- .../actions/ride/RideSetAppearanceAction.cpp | 4 +- .../actions/ride/RideSetNameAction.cpp | 2 +- .../actions/ride/RideSetPriceAction.cpp | 4 +- .../actions/ride/RideSetSettingAction.cpp | 4 +- .../actions/ride/RideSetStatusAction.cpp | 4 +- .../actions/ride/RideSetVehicleAction.cpp | 4 +- .../actions/ride/RideSetVisibilityAction.cpp | 2 +- .../actions/scenery/BannerSetNameAction.cpp | 2 +- .../actions/scenery/BannerSetStyleAction.cpp | 6 +- .../scenery/LargeSceneryPlaceAction.cpp | 8 +- .../scenery/LargeSceneryRemoveAction.cpp | 8 +- .../scenery/LargeScenerySetColourAction.cpp | 4 +- .../actions/scenery/SignSetNameAction.cpp | 4 +- .../actions/scenery/SignSetStyleAction.cpp | 6 +- .../scenery/SmallSceneryPlaceAction.cpp | 6 +- .../actions/terraform/LandSmoothAction.cpp | 2 +- .../terraform/SurfaceSetStyleAction.cpp | 4 +- .../actions/track/TrackPlaceAction.cpp | 14 +-- .../actions/track/TrackRemoveAction.cpp | 8 +- src/openrct2/drawing/LightFX.cpp | 18 ++-- src/openrct2/entity/EntityRegistry.cpp | 2 +- src/openrct2/entity/Guest.cpp | 42 ++++----- src/openrct2/entity/MoneyEffect.cpp | 2 +- src/openrct2/entity/Peep.cpp | 20 ++-- src/openrct2/entity/Staff.cpp | 50 +++++----- src/openrct2/interface/InteractiveConsole.cpp | 2 +- src/openrct2/interface/Screenshot.cpp | 12 +-- src/openrct2/interface/Viewport.cpp | 22 ++--- src/openrct2/management/NewsItem.cpp | 6 +- src/openrct2/paint/Paint.cpp | 28 +++--- .../paint/tile_element/Paint.Surface.cpp | 4 +- src/openrct2/peep/GuestPathfinding.cpp | 18 ++-- src/openrct2/rct1/S4Importer.cpp | 26 +++--- src/openrct2/rct1/T4Importer.cpp | 2 +- src/openrct2/rct12/ScenarioPatcher.cpp | 14 +-- src/openrct2/rct2/S6Importer.cpp | 28 +++--- src/openrct2/rct2/T6Exporter.cpp | 2 +- src/openrct2/rct2/T6Importer.cpp | 2 +- src/openrct2/ride/CableLift.cpp | 2 +- src/openrct2/ride/Ride.cpp | 92 +++++++++---------- src/openrct2/ride/RideConstruction.cpp | 42 ++++----- src/openrct2/ride/RideRatings.cpp | 8 +- src/openrct2/ride/Station.cpp | 8 +- src/openrct2/ride/Track.cpp | 4 +- src/openrct2/ride/TrackDesign.cpp | 32 +++---- src/openrct2/ride/TrackDesignSave.cpp | 6 +- src/openrct2/ride/TrackIteration.cpp | 8 +- src/openrct2/ride/Vehicle.BoatHire.cpp | 18 ++-- src/openrct2/ride/Vehicle.SceneryDoors.cpp | 4 +- src/openrct2/ride/Vehicle.Station.cpp | 8 +- src/openrct2/ride/Vehicle.cpp | 8 +- src/openrct2/scenes/editor/EditorScene.cpp | 2 +- .../scenes/title/Command/SetLocation.cpp | 2 +- src/openrct2/scripting/ScriptEngine.cpp | 2 +- src/openrct2/scripting/ScriptUtil.hpp | 18 ++-- .../scripting/bindings/entity/ScParticle.cpp | 8 +- .../scripting/bindings/entity/ScPeep.hpp | 2 +- .../scripting/bindings/entity/ScStaff.cpp | 4 +- .../scripting/bindings/entity/ScVehicle.cpp | 2 +- .../scripting/bindings/ride/ScRideStation.cpp | 10 +- .../scripting/bindings/world/ScMap.cpp | 12 +-- .../bindings/world/ScPathConnection.cpp | 4 +- .../bindings/world/ScPathNavigator.cpp | 8 +- .../scripting/bindings/world/ScTile.cpp | 4 +- .../bindings/world/ScTileElement.cpp | 6 +- src/openrct2/world/Banner.cpp | 4 +- src/openrct2/world/Entrance.cpp | 2 +- src/openrct2/world/Footpath.cpp | 6 +- src/openrct2/world/FootpathDragSlope.cpp | 2 +- src/openrct2/world/Location.hpp | 62 ++++++------- src/openrct2/world/Map.cpp | 28 +++--- src/openrct2/world/MapAnimation.cpp | 18 ++-- src/openrct2/world/MapSelection.cpp | 2 +- src/openrct2/world/Park.cpp | 2 +- src/openrct2/world/TileInspector.cpp | 16 ++-- .../world/map_generator/TreePlacement.cpp | 2 +- test/tests/Pathfinding.cpp | 8 +- test/tests/TileElements.cpp | 12 +-- test/tests/TileElementsView.cpp | 2 +- 122 files changed, 599 insertions(+), 599 deletions(-) diff --git a/src/openrct2-ui/input/Shortcuts.cpp b/src/openrct2-ui/input/Shortcuts.cpp index b28dd77dbd..6f19eadb47 100644 --- a/src/openrct2-ui/input/Shortcuts.cpp +++ b/src/openrct2-ui/input/Shortcuts.cpp @@ -523,7 +523,7 @@ static void ShortcutToggleWallSlope() extern TileCoordsXY windowTileInspectorTile; auto modifyTile = GameActions::TileModifyAction( - windowTileInspectorTile.ToCoordsXY(), GameActions::TileModifyType::wallSetSlope, windowTileInspectorSelectedIndex, + windowTileInspectorTile.toCoordsXY(), GameActions::TileModifyType::wallSetSlope, windowTileInspectorSelectedIndex, newSlopeValue); GameActions::Execute(&modifyTile, getGameState()); } diff --git a/src/openrct2-ui/interface/ViewportInteraction.cpp b/src/openrct2-ui/interface/ViewportInteraction.cpp index ab613a846f..32b1fb1538 100644 --- a/src/openrct2-ui/interface/ViewportInteraction.cpp +++ b/src/openrct2-ui/interface/ViewportInteraction.cpp @@ -395,7 +395,7 @@ namespace OpenRCT2::Ui stationIndex = tileElement->asTrack()->getStationIndex().ToUnderlying(); for (int32_t i = stationIndex; i >= 0; i--) - if (ride->getStations()[i].start.IsNull()) + if (ride->getStations()[i].start.isNull()) stationIndex--; stationIndex++; ft.Add(stationIndex); @@ -793,7 +793,7 @@ namespace OpenRCT2::Ui if (window == nullptr || window->viewport == nullptr) { CoordsXY ret{}; - ret.SetNull(); + ret.setNull(); return ret; } auto viewport = window->viewport; @@ -803,7 +803,7 @@ namespace OpenRCT2::Ui if (info.interactionType == ViewportInteractionItem::none) { - initialPos.SetNull(); + initialPos.setNull(); return initialPos; } @@ -828,6 +828,6 @@ namespace OpenRCT2::Ui mapPos.y = std::clamp(mapPos.y, initialPos.y, initialPos.y + 31); } - return mapPos.ToTileStart(); + return mapPos.toTileStart(); } } // namespace OpenRCT2::Ui diff --git a/src/openrct2-ui/interface/ViewportQuery.cpp b/src/openrct2-ui/interface/ViewportQuery.cpp index 5318688b17..ba5d882b69 100644 --- a/src/openrct2-ui/interface/ViewportQuery.cpp +++ b/src/openrct2-ui/interface/ViewportQuery.cpp @@ -41,7 +41,7 @@ namespace OpenRCT2::Ui if (window == nullptr || window->viewport == nullptr) { CoordsXY position{}; - position.SetNull(); + position.setNull(); return position; } auto viewport = window->viewport; @@ -54,7 +54,7 @@ namespace OpenRCT2::Ui if (info.interactionType == ViewportInteractionItem::none) { auto position = info.Loc; - position.SetNull(); + position.setNull(); return position; } } @@ -62,7 +62,7 @@ namespace OpenRCT2::Ui auto minPosition = info.Loc; auto maxPosition = info.Loc + CoordsXY{ 31, 31 }; auto myTileElement = info.Element; - auto position = info.Loc.ToTileCentre(); + auto position = info.Loc.toTileCentre(); auto z = 0; if (info.interactionType == ViewportInteractionItem::footpath) { @@ -112,7 +112,7 @@ namespace OpenRCT2::Ui } } - position = position.ToTileStart(); + position = position.toTileStart(); if (direction != nullptr) *direction = myDirection; @@ -140,7 +140,7 @@ namespace OpenRCT2::Ui if (window == nullptr || window->viewport == nullptr) { CoordsXY ret{}; - ret.SetNull(); + ret.setNull(); return ret; } auto viewport = window->viewport; diff --git a/src/openrct2-ui/ride/Construction.cpp b/src/openrct2-ui/ride/Construction.cpp index 4a9557a3ac..f18aca6302 100644 --- a/src/openrct2-ui/ride/Construction.cpp +++ b/src/openrct2-ui/ride/Construction.cpp @@ -401,7 +401,7 @@ namespace OpenRCT2 auto ride = GetRide(gRideEntranceExitPlaceRideIndex); if (ride == nullptr) { - entranceExitCoords.SetNull(); + entranceExitCoords.setNull(); return entranceExitCoords; } @@ -410,22 +410,22 @@ namespace OpenRCT2 auto coordsAtHeight = ScreenGetMapXYWithZ(screenCoords, stationBaseZ); if (!coordsAtHeight.has_value()) { - entranceExitCoords.SetNull(); + entranceExitCoords.setNull(); return entranceExitCoords; } - entranceExitCoords = { coordsAtHeight->ToTileStart(), stationBaseZ, kInvalidDirection }; + entranceExitCoords = { coordsAtHeight->toTileStart(), stationBaseZ, kInvalidDirection }; if (ride->type == kRideTypeNull) { - entranceExitCoords.SetNull(); + entranceExitCoords.setNull(); return entranceExitCoords; } auto stationStart = ride->getStation(gRideEntranceExitPlaceStationIndex).start; - if (stationStart.IsNull()) + if (stationStart.isNull()) { - entranceExitCoords.SetNull(); + entranceExitCoords.setNull(); return entranceExitCoords; } diff --git a/src/openrct2-ui/windows/Banner.cpp b/src/openrct2-ui/windows/Banner.cpp index 19f99e742b..269c612453 100644 --- a/src/openrct2-ui/windows/Banner.cpp +++ b/src/openrct2-ui/windows/Banner.cpp @@ -134,7 +134,7 @@ namespace OpenRCT2::Ui::Windows if (bannerElement == nullptr) return; - _bannerViewPos = CoordsXYZ{ banner->position.ToCoordsXY().ToTileCentre(), bannerElement->getBaseZ() }; + _bannerViewPos = CoordsXYZ{ banner->position.toCoordsXY().toTileCentre(), bannerElement->getBaseZ() }; createViewport(); } @@ -195,7 +195,7 @@ namespace OpenRCT2::Ui::Windows break; auto bannerRemoveAction = GameActions::BannerRemoveAction( - { banner->position.ToCoordsXY(), bannerElement->getBaseZ(), bannerElement->getPosition() }); + { banner->position.toCoordsXY(), bannerElement->getBaseZ(), bannerElement->getPosition() }); GameActions::Execute(&bannerRemoveAction, gameState); break; } diff --git a/src/openrct2-ui/windows/ClearScenery.cpp b/src/openrct2-ui/windows/ClearScenery.cpp index 4a2c7ae5ee..75b1863ce8 100644 --- a/src/openrct2-ui/windows/ClearScenery.cpp +++ b/src/openrct2-ui/windows/ClearScenery.cpp @@ -270,7 +270,7 @@ namespace OpenRCT2::Ui::Windows // Move to tool bottom left mapTile->x -= (tool_size - 1) * 16; mapTile->y -= (tool_size - 1) * 16; - mapTile = mapTile->ToTileStart(); + mapTile = mapTile->toTileStart(); if (gMapSelectPositionA.x != mapTile->x) { diff --git a/src/openrct2-ui/windows/EditorParkEntrance.cpp b/src/openrct2-ui/windows/EditorParkEntrance.cpp index 09bfbaceda..a46993f583 100644 --- a/src/openrct2-ui/windows/EditorParkEntrance.cpp +++ b/src/openrct2-ui/windows/EditorParkEntrance.cpp @@ -145,13 +145,13 @@ namespace OpenRCT2::Ui::Windows CoordsXYZD parkEntranceMapPosition{ 0, 0, 0, kInvalidDirection }; const CoordsXY mapCoords = ViewportInteractionGetTileStartAtCursor(screenCoords); parkEntranceMapPosition = { mapCoords.x, mapCoords.y, 0, kInvalidDirection }; - if (parkEntranceMapPosition.IsNull()) + if (parkEntranceMapPosition.isNull()) return parkEntranceMapPosition; auto surfaceElement = MapGetSurfaceElementAt(mapCoords); if (surfaceElement == nullptr) { - parkEntranceMapPosition.SetNull(); + parkEntranceMapPosition.setNull(); return parkEntranceMapPosition; } @@ -181,7 +181,7 @@ namespace OpenRCT2::Ui::Windows gMapSelectFlags.unset(MapSelectFlag::enable, MapSelectFlag::enableArrow, MapSelectFlag::enableConstruct); CoordsXYZD parkEntrancePosition = PlaceParkEntranceGetMapPosition(screenCoords); - if (parkEntrancePosition.IsNull()) + if (parkEntrancePosition.isNull()) { ParkEntranceRemoveGhost(); return; @@ -229,7 +229,7 @@ namespace OpenRCT2::Ui::Windows ParkEntranceRemoveGhost(); CoordsXYZD parkEntrancePosition = PlaceParkEntranceGetMapPosition(screenCoords); - if (!parkEntrancePosition.IsNull()) + if (!parkEntrancePosition.isNull()) { bool isLegacyPath = (gFootpathSelection.legacyPath != kObjectEntryIndexNull); auto pathIndex = isLegacyPath ? gFootpathSelection.legacyPath : gFootpathSelection.normalSurface; diff --git a/src/openrct2-ui/windows/Footpath.cpp b/src/openrct2-ui/windows/Footpath.cpp index 4cf9c581f6..1fa6950f6e 100644 --- a/src/openrct2-ui/windows/Footpath.cpp +++ b/src/openrct2-ui/windows/Footpath.cpp @@ -1019,7 +1019,7 @@ namespace OpenRCT2::Ui::Windows if (mapCoords.x == kLocationNull) return std::nullopt; - return mapCoords.ToTileStart(); + return mapCoords.toTileStart(); } FootpathPlacementResult FootpathGetPlacementFromInfo(const InteractionInfo& info) @@ -1224,7 +1224,7 @@ namespace OpenRCT2::Ui::Windows gMapSelectFlags.unset(MapSelectFlag::enable, MapSelectFlag::enableArrow); auto mapCoords = FootpathBridgeGetInfoFromPos(screenCoords, &direction, &tileElement); - if (mapCoords.IsNull()) + if (mapCoords.isNull()) { return; } @@ -1278,7 +1278,7 @@ namespace OpenRCT2::Ui::Windows gMapSelectFlags.set(MapSelectFlag::enable); gMapSelectType = MapSelectType::full; - auto correctedPosition = mapPos->ToTileStart(); + auto correctedPosition = mapPos->toTileStart(); setMapSelectRange(correctedPosition); _dragStartPos = correctedPosition; WindowFootpathSetProvisionalPathDragArea(getMapSelectRange(), placement.baseZ); @@ -1302,7 +1302,7 @@ namespace OpenRCT2::Ui::Windows return; } - auto correctedPos = mapPos->ToTileStart(); + auto correctedPos = mapPos->toTileStart(); // For queues, only allow selecting a single line. if (gFootpathSelection.isQueueSelected) @@ -1503,7 +1503,7 @@ namespace OpenRCT2::Ui::Windows TileElement* tileElement; auto mapCoords = FootpathBridgeGetInfoFromPos(screenCoords, &direction, &tileElement); - if (mapCoords.IsNull()) + if (mapCoords.isNull()) { return; } diff --git a/src/openrct2-ui/windows/Guest.cpp b/src/openrct2-ui/windows/Guest.cpp index 94cb85e5f1..8f81e95b57 100644 --- a/src/openrct2-ui/windows/Guest.cpp +++ b/src/openrct2-ui/windows/Guest.cpp @@ -647,7 +647,7 @@ namespace OpenRCT2::Ui::Windows } _pickedPeepX = peep->x; CoordsXYZ nullLoc{}; - nullLoc.SetNull(); + nullLoc.setNull(); GameActions::PeepPickupAction pickupAction{ GameActions::PeepPickupType::pickup, EntityId::FromUnderlying(number), nullLoc, Network::GetCurrentPlayerId() }; @@ -979,7 +979,7 @@ namespace OpenRCT2::Ui::Windows gMapSelectFlags.unset(MapSelectFlag::enable); auto mapCoords = FootpathGetCoordinatesFromPos({ screenCoords.x, screenCoords.y + 16 }, nullptr, nullptr); - if (!mapCoords.IsNull()) + if (!mapCoords.isNull()) { gMapSelectFlags.set(MapSelectFlag::enable); gMapSelectType = MapSelectType::full; @@ -1017,7 +1017,7 @@ namespace OpenRCT2::Ui::Windows TileElement* tileElement; auto destCoords = FootpathGetCoordinatesFromPos({ screenCoords.x, screenCoords.y + 16 }, nullptr, &tileElement); - if (destCoords.IsNull()) + if (destCoords.isNull()) return; GameActions::PeepPickupAction pickupAction{ GameActions::PeepPickupType::place, diff --git a/src/openrct2-ui/windows/InstallTrack.cpp b/src/openrct2-ui/windows/InstallTrack.cpp index ee7e200830..39c68330c2 100644 --- a/src/openrct2-ui/windows/InstallTrack.cpp +++ b/src/openrct2-ui/windows/InstallTrack.cpp @@ -335,7 +335,7 @@ namespace OpenRCT2::Ui::Windows screenPos.y += 4; - if (!td.statistics.spaceRequired.IsNull()) + if (!td.statistics.spaceRequired.isNull()) { // Space required auto ft = Formatter(); diff --git a/src/openrct2-ui/windows/Land.cpp b/src/openrct2-ui/windows/Land.cpp index 4023dd9740..8177eeffd5 100644 --- a/src/openrct2-ui/windows/Land.cpp +++ b/src/openrct2-ui/windows/Land.cpp @@ -483,7 +483,7 @@ namespace OpenRCT2::Ui::Windows // Move to tool bottom left mapTile->x -= (tool_size - 1) * 16; mapTile->y -= (tool_size - 1) * 16; - mapTile = mapTile->ToTileStart(); + mapTile = mapTile->toTileStart(); if (gMapSelectPositionA.x != mapTile->x) { @@ -772,19 +772,19 @@ namespace OpenRCT2::Ui::Windows case MapSelectType::edge2: // Line mapTile->y -= (tool_size - 1) * 16; - mapTile->y = mapTile->ToTileStart().y; + mapTile->y = mapTile->toTileStart().y; break; case MapSelectType::edge1: case MapSelectType::edge3: // Line mapTile->x -= (tool_size - 1) * 16; - mapTile->x = mapTile->ToTileStart().x; + mapTile->x = mapTile->toTileStart().x; break; default: // Move to tool bottom left mapTile->x -= (tool_size - 1) * 16; mapTile->y -= (tool_size - 1) * 16; - mapTile = mapTile->ToTileStart(); + mapTile = mapTile->toTileStart(); break; } diff --git a/src/openrct2-ui/windows/LandRights.cpp b/src/openrct2-ui/windows/LandRights.cpp index c932a5d5b7..04d444ef39 100644 --- a/src/openrct2-ui/windows/LandRights.cpp +++ b/src/openrct2-ui/windows/LandRights.cpp @@ -500,7 +500,7 @@ namespace OpenRCT2::Ui::Windows // Move to tool bottom left mapTile.x -= (tool_size - 1) * 16; mapTile.y -= (tool_size - 1) * 16; - mapTile = mapTile.ToTileStart(); + mapTile = mapTile.toTileStart(); if (gMapSelectPositionA.x != mapTile.x) { diff --git a/src/openrct2-ui/windows/Map.cpp b/src/openrct2-ui/windows/Map.cpp index 49da26becc..5991a29a85 100644 --- a/src/openrct2-ui/windows/Map.cpp +++ b/src/openrct2-ui/windows/Map.cpp @@ -458,7 +458,7 @@ namespace OpenRCT2::Ui::Windows TileElement* tileElement; gMapSelectFlags.unset(MapSelectFlag::enable, MapSelectFlag::enableArrow); auto mapCoords = FootpathBridgeGetInfoFromPos(screenCoords, &direction, &tileElement); - if (mapCoords.IsNull()) + if (mapCoords.isNull()) return; int32_t mapZ = tileElement->getBaseZ(); @@ -484,7 +484,7 @@ namespace OpenRCT2::Ui::Windows TileElement* tileElement; int32_t direction; auto mapCoords = FootpathGetCoordinatesFromPos(screenCoords, &direction, &tileElement); - if (mapCoords.IsNull()) + if (mapCoords.isNull()) return; int32_t mapZ = tileElement->getBaseZ(); @@ -1138,7 +1138,7 @@ namespace OpenRCT2::Ui::Windows { screenCoords.x = ((screenCoords.x + 8) - getPracticalMapSize()) / 2; screenCoords.y = ((screenCoords.y + 8)) / 2; - auto location = TileCoordsXY(screenCoords.y - screenCoords.x, screenCoords.x + screenCoords.y).ToCoordsXY(); + auto location = TileCoordsXY(screenCoords.y - screenCoords.x, screenCoords.x + screenCoords.y).toCoordsXY(); switch (GetCurrentRotation()) { diff --git a/src/openrct2-ui/windows/MazeConstruction.cpp b/src/openrct2-ui/windows/MazeConstruction.cpp index 5186540908..43814e21af 100644 --- a/src/openrct2-ui/windows/MazeConstruction.cpp +++ b/src/openrct2-ui/windows/MazeConstruction.cpp @@ -137,7 +137,7 @@ namespace OpenRCT2::Ui::Windows auto currentRide = GetRide(_currentRideIndex); if (currentRide != nullptr) { - if (currentRide->overallView.IsNull()) + if (currentRide->overallView.isNull()) { auto gameAction = GameActions::RideDemolishAction(currentRide->id, GameActions::RideModifyType::demolish); gameAction.SetFlags({ CommandFlag::allowDuringPaused }); @@ -350,7 +350,7 @@ namespace OpenRCT2::Ui::Windows gMapSelectFlags.unset(MapSelectFlag::enableArrow); CoordsXYZD entranceOrExitCoords = RideGetEntranceOrExitPositionFromScreenPosition(screenCoords); - if (entranceOrExitCoords.IsNull()) + if (entranceOrExitCoords.isNull()) return; if (gRideEntranceExitPlaceDirection == kInvalidDirection) diff --git a/src/openrct2-ui/windows/PatrolArea.cpp b/src/openrct2-ui/windows/PatrolArea.cpp index 8ee740c496..e33f873365 100644 --- a/src/openrct2-ui/windows/PatrolArea.cpp +++ b/src/openrct2-ui/windows/PatrolArea.cpp @@ -171,7 +171,7 @@ namespace OpenRCT2::Ui::Windows // Move to tool bottom left mapTile->x -= (toolSize - 1) * 16; mapTile->y -= (toolSize - 1) * 16; - mapTile = mapTile->ToTileStart(); + mapTile = mapTile->toTileStart(); auto posA = *mapTile; mapTile->x += toolLength; mapTile->y += toolLength; @@ -280,7 +280,7 @@ namespace OpenRCT2::Ui::Windows std::optional GetBestCoordsFromPos(const ScreenCoordsXY& pos) { auto coords = FootpathGetCoordinatesFromPos(pos, nullptr, nullptr); - return coords.IsNull() ? std::nullopt : std::make_optional(coords); + return coords.isNull() ? std::nullopt : std::make_optional(coords); } }; diff --git a/src/openrct2-ui/windows/Player.cpp b/src/openrct2-ui/windows/Player.cpp index aa831b762b..db7cdd61a1 100644 --- a/src/openrct2-ui/windows/Player.cpp +++ b/src/openrct2-ui/windows/Player.cpp @@ -230,7 +230,7 @@ namespace OpenRCT2::Ui::Windows { if (viewport == nullptr) { - const auto viewportFocus = Focus(TileCoordsXYZ(128, 128, 0).ToCoordsXYZ()); + const auto viewportFocus = Focus(TileCoordsXYZ(128, 128, 0).toCoordsXYZ()); ViewportCreate(*this, windowPos, width, height, viewportFocus); flags |= WindowFlag::noScrolling; onPrepareDraw(); diff --git a/src/openrct2-ui/windows/Ride.cpp b/src/openrct2-ui/windows/Ride.cpp index fb0b632254..7c6cde0004 100644 --- a/src/openrct2-ui/windows/Ride.cpp +++ b/src/openrct2-ui/windows/Ride.cpp @@ -1471,7 +1471,7 @@ namespace OpenRCT2::Ui::Windows if (it.element->asTrack()->getRideIndex() != ride.id) continue; - auto location = TileCoordsXY(it.x, it.y).ToCoordsXY(); + auto location = TileCoordsXY(it.x, it.y).toCoordsXY(); int32_t baseZ = it.element->getBaseZ(); int32_t clearZ = it.element->getClearanceZ(); @@ -1528,7 +1528,7 @@ namespace OpenRCT2::Ui::Windows for (const auto& station : ride->getStations()) { - if (!station.start.IsNull() && viewSelectionIndex-- == 0) + if (!station.start.isNull() && viewSelectionIndex-- == 0) { const auto stationIndex = ride->getStationIndex(&station); return std::make_optional(stationIndex); @@ -1613,7 +1613,7 @@ namespace OpenRCT2::Ui::Windows focus = newFocus; // rct2: 0x006aec9c only used here so brought it into the function - if (viewport == nullptr && !ride->overallView.IsNull() && focus.has_value()) + if (viewport == nullptr && !ride->overallView.isNull() && focus.has_value()) { const auto& viewWidget = widgets[WIDX_VIEWPORT]; @@ -2563,14 +2563,14 @@ namespace OpenRCT2::Ui::Windows // Entrance / exit if (ride->status == RideStatus::closed) { - if (station.entrance.IsNull()) + if (station.entrance.isNull()) stringId = STR_NO_ENTRANCE; - else if (station.exit.IsNull()) + else if (station.exit.isNull()) stringId = STR_NO_EXIT; } else { - if (station.entrance.IsNull()) + if (station.entrance.isNull()) stringId = STR_EXIT_ONLY; } // Queue length @@ -7288,7 +7288,7 @@ namespace OpenRCT2::Ui::Windows // View for (int32_t i = stationIndex.ToUnderlying(); i >= 0; i--) { - if (ride.getStations()[i].start.IsNull()) + if (ride.getStations()[i].start.isNull()) { stationIndex = StationIndex::FromUnderlying(stationIndex.ToUnderlying() - 1); } diff --git a/src/openrct2-ui/windows/RideConstruction.cpp b/src/openrct2-ui/windows/RideConstruction.cpp index 9b220458db..de49e70888 100644 --- a/src/openrct2-ui/windows/RideConstruction.cpp +++ b/src/openrct2-ui/windows/RideConstruction.cpp @@ -2234,7 +2234,7 @@ namespace OpenRCT2::Ui::Windows for (uint8_t i = 0; i < ted.sequenceData.numSequences; i++) { CoordsXY offsets = { ted.sequenceData.sequences[i].clearance.x, ted.sequenceData.sequences[i].clearance.y }; - CoordsXY currentTileCoords = tileCoords + offsets.Rotate(trackDirection); + CoordsXY currentTileCoords = tileCoords + offsets.rotate(trackDirection); MapSelection::addSelectedTile(currentTileCoords); } @@ -2664,7 +2664,7 @@ namespace OpenRCT2::Ui::Windows mapCoords.y = 0; } - auto rotatedMapCoords = mapCoords.Rotate(trackDirection); + auto rotatedMapCoords = mapCoords.rotate(trackDirection); // this is actually case 0, but the other cases all jump to it mapCoords.x = 4112 + (rotatedMapCoords.x / 2); mapCoords.y = 4112 + (rotatedMapCoords.y / 2); @@ -2731,7 +2731,7 @@ namespace OpenRCT2::Ui::Windows auto quarterTile = trackBlock.quarterTile.Rotate(trackDirection); CoordsXY offsets = { trackBlock.x, trackBlock.y }; - CoordsXY coords = originCoords + offsets.Rotate(trackDirection); + CoordsXY coords = originCoords + offsets.rotate(trackDirection); int32_t baseZ = originZ + trackBlock.z; int32_t clearanceZ = trackBlock.clearanceZ + clearanceHeight + baseZ + (4 * kCoordsZStep); @@ -3063,7 +3063,7 @@ namespace OpenRCT2::Ui::Windows if (!_trackPlaceCtrlState) { mapCoords = ViewportInteractionGetTileStartAtCursor(screenCoords); - if (mapCoords.IsNull()) + if (mapCoords.isNull()) return std::nullopt; _trackPlaceZ = 0; @@ -3101,7 +3101,7 @@ namespace OpenRCT2::Ui::Windows if (mapCoords.x == kLocationNull) return std::nullopt; - return mapCoords.ToTileStart(); + return mapCoords.toTileStart(); } /** @@ -4918,7 +4918,7 @@ namespace OpenRCT2::Ui::Windows CoordsXY offsets = { trackCoordinates.x, trackCoordinates.y }; CoordsXY coords = { x, y }; - coords += offsets.Rotate(DirectionReverse(trackDirection)); + coords += offsets.rotate(DirectionReverse(trackDirection)); x = static_cast(coords.x); y = static_cast(coords.y); } diff --git a/src/openrct2-ui/windows/Scenery.cpp b/src/openrct2-ui/windows/Scenery.cpp index eeaf4a361d..cbea0f5f94 100644 --- a/src/openrct2-ui/windows/Scenery.cpp +++ b/src/openrct2-ui/windows/Scenery.cpp @@ -1784,7 +1784,7 @@ namespace OpenRCT2::Ui::Windows updatePlacementSmallScenery(screenPos, selection.EntryIndex, mapTile, &quadrant, &rotation); - if (mapTile.IsNull()) + if (mapTile.isNull()) { SceneryRemoveGhostToolPlacement(); return; @@ -1861,7 +1861,7 @@ namespace OpenRCT2::Ui::Windows updatePlacementPathItem(screenPos, selection.EntryIndex, mapTile, &z); - if (mapTile.IsNull()) + if (mapTile.isNull()) { SceneryRemoveGhostToolPlacement(); return; @@ -1901,7 +1901,7 @@ namespace OpenRCT2::Ui::Windows updatePlacementWall(screenPos, selection.EntryIndex, mapTile, &edge); - if (mapTile.IsNull()) + if (mapTile.isNull()) { SceneryRemoveGhostToolPlacement(); return; @@ -1951,7 +1951,7 @@ namespace OpenRCT2::Ui::Windows updatePlacementLargeScenery(screenPos, selection.EntryIndex, mapTile, &direction); - if (mapTile.IsNull()) + if (mapTile.isNull()) { SceneryRemoveGhostToolPlacement(); return; @@ -1972,7 +1972,7 @@ namespace OpenRCT2::Ui::Windows MapSelection::clearSelectedTiles(); for (auto& tile : sceneryEntry->tiles) { - MapSelection::addSelectedTile(mapTile + tile.offset.Rotate(direction)); + MapSelection::addSelectedTile(mapTile + tile.offset.rotate(direction)); } SceneryRemoveGhostToolPlacement(); @@ -2010,7 +2010,7 @@ namespace OpenRCT2::Ui::Windows updatePlacementBanner(screenPos, selection.EntryIndex, mapTile, &z, &direction); - if (mapTile.IsNull()) + if (mapTile.isNull()) { SceneryRemoveGhostToolPlacement(); return; @@ -2475,7 +2475,7 @@ namespace OpenRCT2::Ui::Windows const auto* sceneryEntry = ObjectEntryManager::GetObjectEntry(sceneryIndex); if (sceneryEntry == nullptr) { - gridPos.SetNull(); + gridPos.setNull(); return; } @@ -2498,7 +2498,7 @@ namespace OpenRCT2::Ui::Windows auto gridCoords = ScreenGetMapXYQuadrant(screenPos, &quadrant); if (!gridCoords.has_value()) { - gridPos.SetNull(); + gridPos.setNull(); return; } gridPos = gridCoords.value(); @@ -2512,7 +2512,7 @@ namespace OpenRCT2::Ui::Windows if (surfaceElement == nullptr) { - gridPos.SetNull(); + gridPos.setNull(); return; } @@ -2531,7 +2531,7 @@ namespace OpenRCT2::Ui::Windows auto mapCoords = ScreenGetMapXYQuadrantWithZ(screenPos, z, &quadrant); if (!mapCoords.has_value()) { - gridPos.SetNull(); + gridPos.setNull(); return; } gridPos = mapCoords.value(); @@ -2547,7 +2547,7 @@ namespace OpenRCT2::Ui::Windows gSceneryPlaceZ = z; } - if (gridPos.IsNull()) + if (gridPos.isNull()) return; uint8_t rotation = gWindowSceneryRotation; @@ -2581,7 +2581,7 @@ namespace OpenRCT2::Ui::Windows if (info.interactionType == ViewportInteractionItem::none) { - gridPos.SetNull(); + gridPos.setNull(); return; } @@ -2595,7 +2595,7 @@ namespace OpenRCT2::Ui::Windows if (surfaceElement == nullptr) { - gridPos.SetNull(); + gridPos.setNull(); return; } @@ -2617,7 +2617,7 @@ namespace OpenRCT2::Ui::Windows } else { - gridPos.SetNull(); + gridPos.setNull(); } // If SHIFT pressed if (gSceneryShiftPressed) @@ -2630,10 +2630,10 @@ namespace OpenRCT2::Ui::Windows gSceneryPlaceZ = z; } - if (gridPos.IsNull()) + if (gridPos.isNull()) return; - gridPos = gridPos.ToTileStart(); + gridPos = gridPos.toTileStart(); uint8_t rotation = gWindowSceneryRotation; if (!sceneryEntry->flags.has(SmallSceneryFlag::isRotatable)) @@ -2666,7 +2666,7 @@ namespace OpenRCT2::Ui::Windows if (info.interactionType == ViewportInteractionItem::none) { - gridPos.SetNull(); + gridPos.setNull(); return; } @@ -2701,7 +2701,7 @@ namespace OpenRCT2::Ui::Windows auto gridCoords = ScreenGetMapXYSide(screenPos, &edge); if (!gridCoords.has_value()) { - gridPos.SetNull(); + gridPos.setNull(); return; } gridPos = gridCoords.value(); @@ -2715,7 +2715,7 @@ namespace OpenRCT2::Ui::Windows if (surfaceElement == nullptr) { - gridPos.SetNull(); + gridPos.setNull(); return; } @@ -2733,7 +2733,7 @@ namespace OpenRCT2::Ui::Windows auto mapCoords = ScreenGetMapXYSideWithZ(screenPos, z, &edge); if (!mapCoords.has_value()) { - gridPos.SetNull(); + gridPos.setNull(); return; } gridPos = mapCoords.value(); @@ -2749,10 +2749,10 @@ namespace OpenRCT2::Ui::Windows gSceneryPlaceZ = z; } - if (gridPos.IsNull()) + if (gridPos.isNull()) return; - gridPos = gridPos.ToTileStart(); + gridPos = gridPos.toTileStart(); if (Config::Get().general.virtualFloorStyle != VirtualFloorStyles::off) { @@ -2789,7 +2789,7 @@ namespace OpenRCT2::Ui::Windows const CoordsXY mapCoords = ViewportInteractionGetTileStartAtCursor(screenPos); gridPos = mapCoords; - if (gridPos.IsNull()) + if (gridPos.isNull()) return; gSceneryPlaceZ = 0; @@ -2801,7 +2801,7 @@ namespace OpenRCT2::Ui::Windows if (surfaceElement == nullptr) { - gridPos.SetNull(); + gridPos.setNull(); return; } @@ -2823,7 +2823,7 @@ namespace OpenRCT2::Ui::Windows } else { - gridPos.SetNull(); + gridPos.setNull(); } // If SHIFT pressed @@ -2837,10 +2837,10 @@ namespace OpenRCT2::Ui::Windows gSceneryPlaceZ = z; } - if (gridPos.IsNull()) + if (gridPos.isNull()) return; - gridPos = gridPos.ToTileStart(); + gridPos = gridPos.toTileStart(); Direction rotation = gWindowSceneryRotation; rotation -= GetCurrentRotation(); @@ -2868,7 +2868,7 @@ namespace OpenRCT2::Ui::Windows if (info.interactionType == ViewportInteractionItem::none) { - gridPos.SetNull(); + gridPos.setNull(); return; } @@ -2902,7 +2902,7 @@ namespace OpenRCT2::Ui::Windows Direction rotation; updatePlacementSmallScenery(screenCoords, selectedScenery, gridPos, &quadrant, &rotation); - if (gridPos.IsNull()) + if (gridPos.isNull()) return; int32_t quantity = 1; @@ -3029,7 +3029,7 @@ namespace OpenRCT2::Ui::Windows int32_t z; updatePlacementPathItem(screenCoords, selectedScenery, gridPos, &z); - if (gridPos.IsNull()) + if (gridPos.isNull()) return; auto footpathAdditionPlaceAction = GameActions::FootpathAdditionPlaceAction({ gridPos, z }, selectedScenery); @@ -3067,7 +3067,7 @@ namespace OpenRCT2::Ui::Windows coords = info.Loc; } - coords = coords.ToTileStart(); + coords = coords.toTileStart(); return coords; } @@ -3076,7 +3076,7 @@ namespace OpenRCT2::Ui::Windows CoordsXY gridPos; uint8_t edges; updatePlacementWall(screenCoords, selectedScenery, gridPos, &edges); - if (gridPos.IsNull()) + if (gridPos.isNull()) return; uint8_t zAttemptRange = 1; @@ -3347,7 +3347,7 @@ namespace OpenRCT2::Ui::Windows CoordsXY gridPos; Direction direction; updatePlacementLargeScenery(screenCoords, selectedScenery, gridPos, &direction); - if (gridPos.IsNull()) + if (gridPos.isNull()) return; uint8_t zAttemptRange = 1; @@ -3409,7 +3409,7 @@ namespace OpenRCT2::Ui::Windows int32_t z; Direction direction; updatePlacementBanner(screenCoords, selectedScenery, gridPos, &z, &direction); - if (gridPos.IsNull()) + if (gridPos.isNull()) return; CoordsXYZD loc{ gridPos, z, direction }; diff --git a/src/openrct2-ui/windows/Sign.cpp b/src/openrct2-ui/windows/Sign.cpp index 08840ed66b..2c7ddf2da7 100644 --- a/src/openrct2-ui/windows/Sign.cpp +++ b/src/openrct2-ui/windows/Sign.cpp @@ -100,7 +100,7 @@ namespace OpenRCT2::Ui::Windows return false; } - auto signViewPosition = banner->position.ToCoordsXY().ToTileCentre(); + auto signViewPosition = banner->position.toCoordsXY().toTileCentre(); auto* tileElement = BannerGetTileElement(GetBannerIndex()); if (tileElement == nullptr) return false; @@ -166,7 +166,7 @@ namespace OpenRCT2::Ui::Windows close(); return; } - auto bannerCoords = banner->position.ToCoordsXY(); + auto bannerCoords = banner->position.toCoordsXY(); if (_isSmall) { @@ -312,7 +312,7 @@ namespace OpenRCT2::Ui::Windows return; } - auto signViewPos = CoordsXYZ{ banner->position.ToCoordsXY().ToTileCentre(), currentFrame }; + auto signViewPos = CoordsXYZ{ banner->position.toCoordsXY().toTileCentre(), currentFrame }; // Create viewport Widget* viewportWidget = &widgets[WIDX_VIEWPORT]; diff --git a/src/openrct2-ui/windows/Staff.cpp b/src/openrct2-ui/windows/Staff.cpp index 59994ab10b..b4c0a8b600 100644 --- a/src/openrct2-ui/windows/Staff.cpp +++ b/src/openrct2-ui/windows/Staff.cpp @@ -381,7 +381,7 @@ namespace OpenRCT2::Ui::Windows { _pickedPeepOldX = staff->x; CoordsXYZ nullLoc{}; - nullLoc.SetNull(); + nullLoc.setNull(); GameActions::PeepPickupAction pickupAction{ GameActions::PeepPickupType::pickup, EntityId::FromUnderlying(number), nullLoc, Network::GetCurrentPlayerId() }; @@ -670,7 +670,7 @@ namespace OpenRCT2::Ui::Windows gMapSelectFlags.unset(MapSelectFlag::enable); auto mapCoords = FootpathGetCoordinatesFromPos({ screenCoords.x, screenCoords.y + 16 }, nullptr, nullptr); - if (!mapCoords.IsNull()) + if (!mapCoords.isNull()) { gMapSelectFlags.set(MapSelectFlag::enable); gMapSelectType = MapSelectType::full; @@ -709,7 +709,7 @@ namespace OpenRCT2::Ui::Windows TileElement* tileElement; auto destCoords = FootpathGetCoordinatesFromPos({ screenCoords.x, screenCoords.y + 16 }, nullptr, &tileElement); - if (destCoords.IsNull()) + if (destCoords.isNull()) return; GameActions::PeepPickupAction pickupAction{ GameActions::PeepPickupType::place, diff --git a/src/openrct2-ui/windows/StaffList.cpp b/src/openrct2-ui/windows/StaffList.cpp index 2a00a71342..cc4941bb70 100644 --- a/src/openrct2-ui/windows/StaffList.cpp +++ b/src/openrct2-ui/windows/StaffList.cpp @@ -556,7 +556,7 @@ namespace OpenRCT2::Ui::Windows if (staff->state == PeepState::picked) { CoordsXYZ nullLoc{}; - nullLoc.SetNull(); + nullLoc.setNull(); GameActions::PeepPickupAction pickupAction{ GameActions::PeepPickupType::pickup, staff->id, nullLoc, Network::GetCurrentPlayerId() }; @@ -653,7 +653,7 @@ namespace OpenRCT2::Ui::Windows int32_t direction{}; TileElement* tileElement{}; auto footpathCoords = FootpathGetCoordinatesFromPos(screenCoords, &direction, &tileElement); - if (footpathCoords.IsNull()) + if (footpathCoords.isNull()) return nullptr; auto isPatrolAreaSet = IsPatrolAreaSetForStaffType(GetSelectedStaffType(), footpathCoords); diff --git a/src/openrct2-ui/windows/TileInspector.cpp b/src/openrct2-ui/windows/TileInspector.cpp index 343d9e62d1..ea74bde2dd 100644 --- a/src/openrct2-ui/windows/TileInspector.cpp +++ b/src/openrct2-ui/windows/TileInspector.cpp @@ -1822,7 +1822,7 @@ namespace OpenRCT2::Ui::Windows // Invalidate the previous selection if (auto* elem = OpenRCT2::TileInspector::GetSelectedElement(); elem != nullptr) { - MapInvalidateElement(windowTileInspectorTile.ToCoordsXY(), elem); + MapInvalidateElement(windowTileInspectorTile.toCoordsXY(), elem); } _tileSelected = true; diff --git a/src/openrct2-ui/windows/TrackDesignPlace.cpp b/src/openrct2-ui/windows/TrackDesignPlace.cpp index 352f4734e6..2dfa384113 100644 --- a/src/openrct2-ui/windows/TrackDesignPlace.cpp +++ b/src/openrct2-ui/windows/TrackDesignPlace.cpp @@ -122,7 +122,7 @@ namespace OpenRCT2::Ui::Windows ShowGridlines(); _miniPreview.resize(kTrackMiniPreviewSize.width * kTrackMiniPreviewSize.height); _placementCost = kMoney64Undefined; - _placementLoc.SetNull(); + _placementLoc.setNull(); _currentTrackPieceDirection = (2 - GetCurrentRotation()) & 3; } @@ -149,14 +149,14 @@ namespace OpenRCT2::Ui::Windows clearProvisional(); _currentTrackPieceDirection = (_currentTrackPieceDirection + 1) & 3; invalidate(); - _placementLoc.SetNull(); + _placementLoc.setNull(); DrawMiniPreview(*_trackDesign); break; case WIDX_MIRROR: TrackDesignMirror(*_trackDesign); _currentTrackPieceDirection = (0 - _currentTrackPieceDirection) & 3; invalidate(); - _placementLoc.SetNull(); + _placementLoc.setNull(); DrawMiniPreview(*_trackDesign); break; case WIDX_SELECT_DIFFERENT_DESIGN: @@ -196,7 +196,7 @@ namespace OpenRCT2::Ui::Windows // Get the tool map position CoordsXY mapCoords = ViewportInteractionGetTileStartAtCursor(targetScreenCoords); - if (mapCoords.IsNull()) + if (mapCoords.isNull()) { clearProvisional(); return; @@ -276,7 +276,7 @@ namespace OpenRCT2::Ui::Windows // Get the tool map position CoordsXY mapCoords = ViewportInteractionGetTileStartAtCursor(targetScreenCoords); - if (mapCoords.IsNull()) + if (mapCoords.isNull()) { clearProvisional(); return; @@ -603,7 +603,7 @@ namespace OpenRCT2::Ui::Windows { for (const auto& entrance : td.entranceElements) { - auto rotatedAndOffsetEntrance = origin + entrance.location.ToCoordsXY().Rotate(rotation); + auto rotatedAndOffsetEntrance = origin + entrance.location.toCoordsXY().rotate(rotation); if (pass == 0) { @@ -645,7 +645,7 @@ namespace OpenRCT2::Ui::Windows { const auto& trackBlock = ted.sequenceData.sequences[sequenceIndex].clearance; auto rotatedAndOffsetTrackBlock = curTrackStart - + CoordsXY{ trackBlock.x, trackBlock.y }.Rotate(curTrackRotation); + + CoordsXY{ trackBlock.x, trackBlock.y }.rotate(curTrackRotation); if (pass == 0) { @@ -688,7 +688,7 @@ namespace OpenRCT2::Ui::Windows const TrackCoordinates* track_coordinate = &ted.coordinates; - curTrackStart += CoordsXY{ track_coordinate->x, track_coordinate->y }.Rotate(curTrackRotation); + curTrackStart += CoordsXY{ track_coordinate->x, track_coordinate->y }.rotate(curTrackRotation); curTrackRotation += track_coordinate->rotationEnd - track_coordinate->rotationBegin; curTrackRotation &= 3; if (track_coordinate->rotationEnd & 4) @@ -709,7 +709,7 @@ namespace OpenRCT2::Ui::Windows uint8_t rotation = (_currentTrackPieceDirection + GetCurrentRotation()) & 3; for (const auto& mazeElement : td.mazeElements) { - auto rotatedMazeCoords = origin + mazeElement.location.ToCoordsXY().Rotate(rotation); + auto rotatedMazeCoords = origin + mazeElement.location.toCoordsXY().rotate(rotation); if (pass == 0) { diff --git a/src/openrct2-ui/windows/TrackList.cpp b/src/openrct2-ui/windows/TrackList.cpp index 3977c88203..ed09e8a861 100644 --- a/src/openrct2-ui/windows/TrackList.cpp +++ b/src/openrct2-ui/windows/TrackList.cpp @@ -651,7 +651,7 @@ namespace OpenRCT2::Ui::Windows screenPos.y += 4; } - if (!_loadedTrackDesign->statistics.spaceRequired.IsNull()) + if (!_loadedTrackDesign->statistics.spaceRequired.isNull()) { // Space required ft = Formatter(); diff --git a/src/openrct2-ui/windows/Viewport.cpp b/src/openrct2-ui/windows/Viewport.cpp index 43b904e814..644bb6ab8b 100644 --- a/src/openrct2-ui/windows/Viewport.cpp +++ b/src/openrct2-ui/windows/Viewport.cpp @@ -78,7 +78,7 @@ namespace OpenRCT2::Ui::Windows setWidgets(_viewportWidgets); // Create viewport - ViewportCreate(*this, windowPos, width, height, Focus(TileCoordsXYZ(128, 128, 0).ToCoordsXYZ())); + ViewportCreate(*this, windowPos, width, height, Focus(TileCoordsXYZ(128, 128, 0).toCoordsXYZ())); if (viewport == nullptr) { close(); diff --git a/src/openrct2-ui/windows/Water.cpp b/src/openrct2-ui/windows/Water.cpp index 67fdd04b45..3f702dd3e8 100644 --- a/src/openrct2-ui/windows/Water.cpp +++ b/src/openrct2-ui/windows/Water.cpp @@ -362,7 +362,7 @@ namespace OpenRCT2::Ui::Windows // Move to tool bottom left mapTile.x -= tool_length / 2; mapTile.y -= tool_length / 2; - mapTile = mapTile.ToTileStart(); + mapTile = mapTile.toTileStart(); if (gMapSelectPositionA.x != mapTile.x) { diff --git a/src/openrct2/Game.cpp b/src/openrct2/Game.cpp index 830607f900..1840aa27f5 100644 --- a/src/openrct2/Game.cpp +++ b/src/openrct2/Game.cpp @@ -280,7 +280,7 @@ static void FixInvalidSurfaces() if (surfaceElement == nullptr) { LOG_ERROR("Null map element at x = %d and y = %d. Fixing...", x, y); - surfaceElement = TileElementInsert(TileCoordsXYZ{ x, y, 14 }.ToCoordsXYZ(), 0b0000); + surfaceElement = TileElementInsert(TileCoordsXYZ{ x, y, 14 }.toCoordsXYZ(), 0b0000); if (surfaceElement == nullptr) { LOG_ERROR("Unable to fix: Map element limit reached."); diff --git a/src/openrct2/ReplayManager.cpp b/src/openrct2/ReplayManager.cpp index 6974530adc..29d0f25522 100644 --- a/src/openrct2/ReplayManager.cpp +++ b/src/openrct2/ReplayManager.cpp @@ -860,7 +860,7 @@ namespace OpenRCT2 } // Focus camera on event. - if (!gSilentReplays && isPositionValid && !result.position.IsNull()) + if (!gSilentReplays && isPositionValid && !result.position.isNull()) { auto* mainWindow = WindowGetMain(); if (mainWindow != nullptr) diff --git a/src/openrct2/actions/GameActionRunner.cpp b/src/openrct2/actions/GameActionRunner.cpp index 35c95b0215..ac0e150765 100644 --- a/src/openrct2/actions/GameActionRunner.cpp +++ b/src/openrct2/actions/GameActionRunner.cpp @@ -379,7 +379,7 @@ namespace OpenRCT2::GameActions Network::AddPlayerMoneySpent(playerIndex, result.cost); } - if (!result.position.IsNull()) + if (!result.position.isNull()) { Network::SetPlayerLastActionCoord(playerIndex, result.position); } diff --git a/src/openrct2/actions/footpath/FootpathLayoutPlaceAction.cpp b/src/openrct2/actions/footpath/FootpathLayoutPlaceAction.cpp index 33c2bd957a..7dae84ccee 100644 --- a/src/openrct2/actions/footpath/FootpathLayoutPlaceAction.cpp +++ b/src/openrct2/actions/footpath/FootpathLayoutPlaceAction.cpp @@ -69,7 +69,7 @@ namespace OpenRCT2::GameActions auto res = Result(); res.cost = 0; res.expenditure = ExpenditureType::landscaping; - res.position = _loc.ToTileCentre(); + res.position = _loc.toTileCentre(); gFootpathGroundFlags = 0; @@ -101,7 +101,7 @@ namespace OpenRCT2::GameActions auto res = Result(); res.cost = 0; res.expenditure = ExpenditureType::landscaping; - res.position = _loc.ToTileCentre(); + res.position = _loc.toTileCentre(); if (!GetFlags().has(CommandFlag::ghost)) { diff --git a/src/openrct2/actions/footpath/FootpathPlaceAction.cpp b/src/openrct2/actions/footpath/FootpathPlaceAction.cpp index a6814ed4ea..c9f4fe186f 100644 --- a/src/openrct2/actions/footpath/FootpathPlaceAction.cpp +++ b/src/openrct2/actions/footpath/FootpathPlaceAction.cpp @@ -75,7 +75,7 @@ namespace OpenRCT2::GameActions auto res = Result(); res.cost = 0; res.expenditure = ExpenditureType::landscaping; - res.position = _loc.ToTileCentre(); + res.position = _loc.toTileCentre(); gFootpathGroundFlags = 0; @@ -126,7 +126,7 @@ namespace OpenRCT2::GameActions auto res = Result(); res.cost = 0; res.expenditure = ExpenditureType::landscaping; - res.position = _loc.ToTileCentre(); + res.position = _loc.toTileCentre(); if (!GetFlags().has(CommandFlag::ghost)) { diff --git a/src/openrct2/actions/footpath/FootpathRemoveAction.cpp b/src/openrct2/actions/footpath/FootpathRemoveAction.cpp index c1df4e3b44..49f274aee5 100644 --- a/src/openrct2/actions/footpath/FootpathRemoveAction.cpp +++ b/src/openrct2/actions/footpath/FootpathRemoveAction.cpp @@ -108,7 +108,7 @@ namespace OpenRCT2::GameActions gameState.peepSpawns.begin(), gameState.peepSpawns.end(), [this](const CoordsXYZ& spawn) { { - return spawn.ToTileStart() == _loc.ToTileStart(); + return spawn.toTileStart() == _loc.toTileStart(); } }), gameState.peepSpawns.end()); diff --git a/src/openrct2/actions/park/LandBuyRightsAction.cpp b/src/openrct2/actions/park/LandBuyRightsAction.cpp index 5455940ebd..180861b361 100644 --- a/src/openrct2/actions/park/LandBuyRightsAction.cpp +++ b/src/openrct2/actions/park/LandBuyRightsAction.cpp @@ -65,7 +65,7 @@ namespace OpenRCT2::GameActions { auto res = Result(); - MapRange normRange = _range.Normalise(); + MapRange normRange = _range.normalise(); // Keep big coordinates within map boundaries auto mapSizeMaxXY = GetMapSizeMaxXY(); auto aX = std::max(32, normRange.GetX1()); diff --git a/src/openrct2/actions/park/LandSetRightsAction.cpp b/src/openrct2/actions/park/LandSetRightsAction.cpp index 03644ced8c..852825e0d5 100644 --- a/src/openrct2/actions/park/LandSetRightsAction.cpp +++ b/src/openrct2/actions/park/LandSetRightsAction.cpp @@ -73,7 +73,7 @@ namespace OpenRCT2::GameActions { auto res = Result(); - auto validRange = ClampRangeWithinMap(_range.Normalise()); + auto validRange = ClampRangeWithinMap(_range.normalise()); CoordsXYZ centre{ (validRange.GetX1() + validRange.GetX2()) / 2 + 16, (validRange.GetY1() + validRange.GetY2()) / 2 + 16, 0 }; centre.z = TileElementHeight(centre); diff --git a/src/openrct2/actions/peep/PeepPickupAction.cpp b/src/openrct2/actions/peep/PeepPickupAction.cpp index 4caf4972a0..c05692a175 100644 --- a/src/openrct2/actions/peep/PeepPickupAction.cpp +++ b/src/openrct2/actions/peep/PeepPickupAction.cpp @@ -56,7 +56,7 @@ namespace OpenRCT2::GameActions return Result(Status::invalidParameters, STR_ERR_CANT_PLACE_PERSON_HERE, kStringIdNone); } - if (!_loc.IsNull() && !LocationValid(_loc)) + if (!_loc.isNull() && !LocationValid(_loc)) { return Result(Status::invalidParameters, STR_ERR_CANT_PLACE_PERSON_HERE, kStringIdNone); } diff --git a/src/openrct2/actions/peep/PeepSpawnPlaceAction.cpp b/src/openrct2/actions/peep/PeepSpawnPlaceAction.cpp index 2a0f69dba9..30e978bf9c 100644 --- a/src/openrct2/actions/peep/PeepSpawnPlaceAction.cpp +++ b/src/openrct2/actions/peep/PeepSpawnPlaceAction.cpp @@ -89,7 +89,7 @@ namespace OpenRCT2::GameActions res.position = _location; // Shift the spawn point to the edge of the tile - auto spawnPos = CoordsXY{ _location.ToTileCentre() } + auto spawnPos = CoordsXY{ _location.toTileCentre() } + CoordsXY{ DirectionOffsets[_location.direction].x * 15, DirectionOffsets[_location.direction].y * 15 }; PeepSpawn spawn; @@ -106,7 +106,7 @@ namespace OpenRCT2::GameActions auto foundSpawn = std::find_if( gameState.peepSpawns.begin(), gameState.peepSpawns.end(), [spawn](const CoordsXYZ& existingSpawn) { { - return existingSpawn.ToTileStart() == spawn.ToTileStart(); + return existingSpawn.toTileStart() == spawn.toTileStart(); } }); diff --git a/src/openrct2/actions/ride/MazePlaceTrackAction.cpp b/src/openrct2/actions/ride/MazePlaceTrackAction.cpp index a423272d39..d9b6792f75 100644 --- a/src/openrct2/actions/ride/MazePlaceTrackAction.cpp +++ b/src/openrct2/actions/ride/MazePlaceTrackAction.cpp @@ -109,7 +109,7 @@ namespace OpenRCT2::GameActions } auto canBuild = MapCanConstructWithClearAt( - { _loc.ToTileStart(), baseHeight, clearanceHeight }, MapPlaceNonSceneryClearFunc, { 0b1111, 0 }, GetFlags()); + { _loc.toTileStart(), baseHeight, clearanceHeight }, MapPlaceNonSceneryClearFunc, { 0b1111, 0 }, GetFlags()); if (canBuild.error != Status::ok) { canBuild.errorTitle = STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE; @@ -166,14 +166,14 @@ namespace OpenRCT2::GameActions if (!flags.has(CommandFlag::ghost)) { FootpathRemoveLitter(_loc); - WallRemoveAt({ _loc.ToTileStart(), _loc.z, _loc.z + 32 }); + WallRemoveAt({ _loc.toTileStart(), _loc.z, _loc.z + 32 }); } auto baseHeight = _loc.z; auto clearanceHeight = _loc.z + kMazeClearanceHeight; auto canBuild = MapCanConstructWithClearAt( - { _loc.ToTileStart(), baseHeight, clearanceHeight }, MapPlaceNonSceneryClearFunc, { 0b1111, 0 }, + { _loc.toTileStart(), baseHeight, clearanceHeight }, MapPlaceNonSceneryClearFunc, { 0b1111, 0 }, GetFlags().with(CommandFlag::apply)); if (canBuild.error != Status::ok) { @@ -183,7 +183,7 @@ namespace OpenRCT2::GameActions res.cost = MazeCalculateCost(canBuild.cost, *ride, _loc); - auto startLoc = _loc.ToTileStart(); + auto startLoc = _loc.toTileStart(); auto* trackElement = TileElementInsert(_loc, 0b1111); Guard::Assert(trackElement != nullptr); diff --git a/src/openrct2/actions/ride/MazeSetTrackAction.cpp b/src/openrct2/actions/ride/MazeSetTrackAction.cpp index d672ef1327..69305f3b22 100644 --- a/src/openrct2/actions/ride/MazeSetTrackAction.cpp +++ b/src/openrct2/actions/ride/MazeSetTrackAction.cpp @@ -150,7 +150,7 @@ namespace OpenRCT2::GameActions return res; } auto constructResult = MapCanConstructWithClearAt( - { _loc.ToTileStart(), baseHeight, clearanceHeight }, MapPlaceNonSceneryClearFunc, { 0b1111, 0 }, GetFlags()); + { _loc.toTileStart(), baseHeight, clearanceHeight }, MapPlaceNonSceneryClearFunc, { 0b1111, 0 }, GetFlags()); if (constructResult.error != Status::ok) { constructResult.errorTitle = STR_RIDE_CONSTRUCTION_CANT_CONSTRUCT_THIS_HERE; @@ -210,7 +210,7 @@ namespace OpenRCT2::GameActions if (!flags.has(CommandFlag::ghost)) { FootpathRemoveLitter(_loc); - WallRemoveAt({ _loc.ToTileStart(), _loc.z, _loc.z + 32 }); + WallRemoveAt({ _loc.toTileStart(), _loc.z, _loc.z + 32 }); } auto tileElement = MapGetTrackElementAtOfTypeFromRide(_loc, TrackElemType::maze, _rideIndex); @@ -220,7 +220,7 @@ namespace OpenRCT2::GameActions auto clearanceHeight = _loc.z + kMazeClearanceHeight; auto canBuild = MapCanConstructWithClearAt( - { _loc.ToTileStart(), baseHeight, clearanceHeight }, MapPlaceNonSceneryClearFunc, { 0b1111, 0 }, + { _loc.toTileStart(), baseHeight, clearanceHeight }, MapPlaceNonSceneryClearFunc, { 0b1111, 0 }, GetFlags().with(CommandFlag::apply)); if (canBuild.error != Status::ok) { @@ -230,7 +230,7 @@ namespace OpenRCT2::GameActions res.cost = MazeCalculateCost(canBuild.cost, *ride, _loc); - auto startLoc = _loc.ToTileStart(); + auto startLoc = _loc.toTileStart(); auto* trackElement = TileElementInsert(_loc, 0b1111); Guard::Assert(trackElement != nullptr); @@ -272,7 +272,7 @@ namespace OpenRCT2::GameActions uint8_t temp_edx = kByte993CFC[segmentOffset]; if (temp_edx != 0xFF) { - auto previousElementLoc = CoordsXY{ _loc }.ToTileStart() - CoordsDirectionDelta[_loc.direction]; + auto previousElementLoc = CoordsXY{ _loc }.toTileStart() - CoordsDirectionDelta[_loc.direction]; TileElement* previousTileElement = MapGetTrackElementAtOfTypeFromRide( { previousElementLoc, _loc.z }, TrackElemType::maze, _rideIndex); @@ -303,7 +303,7 @@ namespace OpenRCT2::GameActions tileElement = MapGetTrackElementAtOfTypeFromRide( { previousSegment, _loc.z }, TrackElemType::maze, _rideIndex); - MapInvalidateTileFull(previousSegment.ToTileStart()); + MapInvalidateTileFull(previousSegment.toTileStart()); if (tileElement == nullptr) { LOG_ERROR("No surface found"); @@ -326,7 +326,7 @@ namespace OpenRCT2::GameActions tileElement->asTrack()->mazeEntryAdd(1 << segmentBit); uint32_t direction1 = kByte993D0C[segmentBit]; - auto nextElementLoc = previousSegment.ToTileStart() + CoordsDirectionDelta[direction1]; + auto nextElementLoc = previousSegment.toTileStart() + CoordsDirectionDelta[direction1]; TileElement* tmp_tileElement = MapGetTrackElementAtOfTypeFromRide( { nextElementLoc, _loc.z }, TrackElemType::maze, _rideIndex); @@ -343,7 +343,7 @@ namespace OpenRCT2::GameActions break; } - MapInvalidateTile({ _loc.ToTileStart(), tileElement->getBaseZ(), tileElement->getClearanceZ() }); + MapInvalidateTile({ _loc.toTileStart(), tileElement->getBaseZ(), tileElement->getClearanceZ() }); if ((tileElement->asTrack()->getMazeEntry() & 0x8888) == 0x8888) { diff --git a/src/openrct2/actions/ride/RideCreateAction.cpp b/src/openrct2/actions/ride/RideCreateAction.cpp index fbbc0f0d58..08e421155a 100644 --- a/src/openrct2/actions/ride/RideCreateAction.cpp +++ b/src/openrct2/actions/ride/RideCreateAction.cpp @@ -145,14 +145,14 @@ namespace OpenRCT2::GameActions ride->type = _rideType; ride->subtype = rideEntryIndex; ride->setColourPreset(_trackColourPreset, _vehicleColourPreset); - ride->overallView.SetNull(); + ride->overallView.setNull(); ride->setNameToDefault(); // Default initialize all stations. RideStation station{}; - station.start.SetNull(); - station.entrance.SetNull(); - station.exit.SetNull(); + station.start.setNull(); + station.entrance.setNull(); + station.exit.setNull(); std::ranges::fill(ride->getStations(), station); ride->status = RideStatus::closed; diff --git a/src/openrct2/actions/ride/RideDemolishAction.cpp b/src/openrct2/actions/ride/RideDemolishAction.cpp index 5067a837c5..be0cc33282 100644 --- a/src/openrct2/actions/ride/RideDemolishAction.cpp +++ b/src/openrct2/actions/ride/RideDemolishAction.cpp @@ -148,9 +148,9 @@ namespace OpenRCT2::GameActions res.expenditure = ExpenditureType::rideConstruction; res.cost = refundPrice; - if (!ride.overallView.IsNull()) + if (!ride.overallView.isNull()) { - auto xy = ride.overallView.ToTileCentre(); + auto xy = ride.overallView.toTileCentre(); res.position = { xy, TileElementHeight(xy) }; } @@ -200,7 +200,7 @@ namespace OpenRCT2::GameActions { for (tilePos.y = 0; tilePos.y < gameState.mapSize.y; ++tilePos.y) { - const auto tileCoords = tilePos.ToCoordsXY(); + const auto tileCoords = tilePos.toCoordsXY(); // Loop over all elements of the tile until there are no more items to remove int offset = -1; bool lastForTileReached = false; @@ -279,9 +279,9 @@ namespace OpenRCT2::GameActions ride.windowInvalidateFlags.set(RideInvalidateFlag::maintenance, RideInvalidateFlag::customers); - if (!ride.overallView.IsNull()) + if (!ride.overallView.isNull()) { - auto location = ride.overallView.ToTileCentre(); + auto location = ride.overallView.toTileCentre(); res.position = { location, TileElementHeight(location) }; } diff --git a/src/openrct2/actions/ride/RideEntranceExitPlaceAction.cpp b/src/openrct2/actions/ride/RideEntranceExitPlaceAction.cpp index b5cb08b84e..5071c12592 100644 --- a/src/openrct2/actions/ride/RideEntranceExitPlaceAction.cpp +++ b/src/openrct2/actions/ride/RideEntranceExitPlaceAction.cpp @@ -90,9 +90,9 @@ namespace OpenRCT2::GameActions const auto& station = ride->getStation(_stationNum); const auto location = _isExit ? station.exit : station.entrance; - if (!location.IsNull()) + if (!location.isNull()) { - auto rideEntranceExitRemove = RideEntranceExitRemoveAction(location.ToCoordsXY(), _rideIndex, _stationNum, _isExit); + auto rideEntranceExitRemove = RideEntranceExitRemoveAction(location.toCoordsXY(), _rideIndex, _stationNum, _isExit); rideEntranceExitRemove.SetFlags(GetFlags()); auto result = QueryNested(&rideEntranceExitRemove, gameState); @@ -138,7 +138,7 @@ namespace OpenRCT2::GameActions } auto res = Result(); - res.position = { _loc.ToTileCentre(), z }; + res.position = { _loc.toTileCentre(), z }; res.expenditure = ExpenditureType::rideConstruction; res.cost += canBuild.cost; return res; @@ -165,9 +165,9 @@ namespace OpenRCT2::GameActions auto& station = ride->getStation(_stationNum); const auto location = _isExit ? station.exit : station.entrance; - if (!location.IsNull()) + if (!location.isNull()) { - auto rideEntranceExitRemove = RideEntranceExitRemoveAction(location.ToCoordsXY(), _rideIndex, _stationNum, _isExit); + auto rideEntranceExitRemove = RideEntranceExitRemoveAction(location.toCoordsXY(), _rideIndex, _stationNum, _isExit); rideEntranceExitRemove.SetFlags(GetFlags()); auto result = ExecuteNested(&rideEntranceExitRemove, gameState); @@ -196,7 +196,7 @@ namespace OpenRCT2::GameActions } auto res = Result(); - res.position = { _loc.ToTileCentre(), z }; + res.position = { _loc.toTileCentre(), z }; res.expenditure = ExpenditureType::rideConstruction; res.cost += canBuild.cost; @@ -272,7 +272,7 @@ namespace OpenRCT2::GameActions return Result(Status::disallowed, errorTitle, STR_TOO_HIGH); } auto res = Result(); - res.position = { loc.ToTileCentre(), TileElementHeight(loc) }; + res.position = { loc.toTileCentre(), TileElementHeight(loc) }; res.expenditure = ExpenditureType::rideConstruction; res.cost += canBuild.cost; return res; diff --git a/src/openrct2/actions/ride/RideEntranceExitRemoveAction.cpp b/src/openrct2/actions/ride/RideEntranceExitRemoveAction.cpp index 1ac38850b7..8ab5814576 100644 --- a/src/openrct2/actions/ride/RideEntranceExitRemoveAction.cpp +++ b/src/openrct2/actions/ride/RideEntranceExitRemoveAction.cpp @@ -156,11 +156,11 @@ namespace OpenRCT2::GameActions auto& station = ride->getStation(_stationNum); if (_isExit) { - station.exit.SetNull(); + station.exit.setNull(); } else { - station.entrance.SetNull(); + station.entrance.setNull(); } FootpathUpdateQueueChains(); diff --git a/src/openrct2/actions/ride/RideSetAppearanceAction.cpp b/src/openrct2/actions/ride/RideSetAppearanceAction.cpp index 47b9855070..9b6b00a772 100644 --- a/src/openrct2/actions/ride/RideSetAppearanceAction.cpp +++ b/src/openrct2/actions/ride/RideSetAppearanceAction.cpp @@ -143,9 +143,9 @@ namespace OpenRCT2::GameActions windowMgr->InvalidateByNumber(WindowClass::ride, _rideIndex.ToUnderlying()); auto res = Result(); - if (!ride->overallView.IsNull()) + if (!ride->overallView.isNull()) { - auto location = ride->overallView.ToTileCentre(); + auto location = ride->overallView.toTileCentre(); res.position = { location, TileElementHeight(location) }; } diff --git a/src/openrct2/actions/ride/RideSetNameAction.cpp b/src/openrct2/actions/ride/RideSetNameAction.cpp index e2f6556d07..af3baca846 100644 --- a/src/openrct2/actions/ride/RideSetNameAction.cpp +++ b/src/openrct2/actions/ride/RideSetNameAction.cpp @@ -88,7 +88,7 @@ namespace OpenRCT2::GameActions windowManager->BroadcastIntent(Intent(INTENT_ACTION_REFRESH_GUEST_LIST)); auto res = Result(); - auto location = ride->overallView.ToTileCentre(); + auto location = ride->overallView.toTileCentre(); res.position = { location, TileElementHeight(location) }; return res; diff --git a/src/openrct2/actions/ride/RideSetPriceAction.cpp b/src/openrct2/actions/ride/RideSetPriceAction.cpp index 6202f8380e..c2178ca738 100644 --- a/src/openrct2/actions/ride/RideSetPriceAction.cpp +++ b/src/openrct2/actions/ride/RideSetPriceAction.cpp @@ -97,9 +97,9 @@ namespace OpenRCT2::GameActions return Result(Status::invalidParameters, STR_ERR_INVALID_PARAMETER, kStringIdEmpty); } - if (!ride->overallView.IsNull()) + if (!ride->overallView.isNull()) { - auto location = ride->overallView.ToTileCentre(); + auto location = ride->overallView.toTileCentre(); res.position = { location, TileElementHeight(location) }; } diff --git a/src/openrct2/actions/ride/RideSetSettingAction.cpp b/src/openrct2/actions/ride/RideSetSettingAction.cpp index 2f5b34bb05..af0259439a 100644 --- a/src/openrct2/actions/ride/RideSetSettingAction.cpp +++ b/src/openrct2/actions/ride/RideSetSettingAction.cpp @@ -242,9 +242,9 @@ namespace OpenRCT2::GameActions } auto res = Result(); - if (!ride->overallView.IsNull()) + if (!ride->overallView.isNull()) { - auto location = ride->overallView.ToTileCentre(); + auto location = ride->overallView.toTileCentre(); res.position = { location, TileElementHeight(location) }; } auto* windowMgr = Ui::GetWindowManager(); diff --git a/src/openrct2/actions/ride/RideSetStatusAction.cpp b/src/openrct2/actions/ride/RideSetStatusAction.cpp index b50aa0bc78..7a380af82b 100644 --- a/src/openrct2/actions/ride/RideSetStatusAction.cpp +++ b/src/openrct2/actions/ride/RideSetStatusAction.cpp @@ -134,9 +134,9 @@ namespace OpenRCT2::GameActions Formatter ft(res.errorMessageArgs.data()); ft.Increment(6); ride->formatNameTo(ft); - if (!ride->overallView.IsNull()) + if (!ride->overallView.isNull()) { - auto location = ride->overallView.ToTileCentre(); + auto location = ride->overallView.toTileCentre(); res.position = { location, TileElementHeight(location) }; } diff --git a/src/openrct2/actions/ride/RideSetVehicleAction.cpp b/src/openrct2/actions/ride/RideSetVehicleAction.cpp index 84d5128186..1030607b22 100644 --- a/src/openrct2/actions/ride/RideSetVehicleAction.cpp +++ b/src/openrct2/actions/ride/RideSetVehicleAction.cpp @@ -212,9 +212,9 @@ namespace OpenRCT2::GameActions } auto res = Result(); - if (!ride->overallView.IsNull()) + if (!ride->overallView.isNull()) { - auto location = ride->overallView.ToTileCentre(); + auto location = ride->overallView.toTileCentre(); res.position = { location, TileElementHeight(res.position) }; } diff --git a/src/openrct2/actions/ride/RideSetVisibilityAction.cpp b/src/openrct2/actions/ride/RideSetVisibilityAction.cpp index 4e55bf080f..2f8fb4fd4f 100644 --- a/src/openrct2/actions/ride/RideSetVisibilityAction.cpp +++ b/src/openrct2/actions/ride/RideSetVisibilityAction.cpp @@ -63,7 +63,7 @@ namespace OpenRCT2::GameActions if (trackElement->getRideIndex() == _rideIndex) { trackElement->setInvisible(_visibility == RideSetVisibilityType::invisible); - MapInvalidateTileFull(tileCoords.ToCoordsXY()); + MapInvalidateTileFull(tileCoords.toCoordsXY()); } } } diff --git a/src/openrct2/actions/scenery/BannerSetNameAction.cpp b/src/openrct2/actions/scenery/BannerSetNameAction.cpp index 0f7fc2d697..de228fc0ee 100644 --- a/src/openrct2/actions/scenery/BannerSetNameAction.cpp +++ b/src/openrct2/actions/scenery/BannerSetNameAction.cpp @@ -63,7 +63,7 @@ namespace OpenRCT2::GameActions } BannerElement* bannerElement = tileElement->asBanner(); - CoordsXYZD loc = { banner->position.ToCoordsXY(), bannerElement->getBaseZ(), bannerElement->getPosition() }; + CoordsXYZD loc = { banner->position.toCoordsXY(), bannerElement->getBaseZ(), bannerElement->getPosition() }; if (!LocationValid(loc)) { diff --git a/src/openrct2/actions/scenery/BannerSetStyleAction.cpp b/src/openrct2/actions/scenery/BannerSetStyleAction.cpp index 0744a70aa0..fb57609583 100644 --- a/src/openrct2/actions/scenery/BannerSetStyleAction.cpp +++ b/src/openrct2/actions/scenery/BannerSetStyleAction.cpp @@ -66,7 +66,7 @@ namespace OpenRCT2::GameActions } res.expenditure = ExpenditureType::landscaping; - auto location = banner->position.ToCoordsXY().ToTileCentre(); + auto location = banner->position.toCoordsXY().toTileCentre(); res.position = { location, TileElementHeight(location) }; TileElement* tileElement = BannerGetTileElement(_bannerIndex); @@ -78,7 +78,7 @@ namespace OpenRCT2::GameActions } BannerElement* bannerElement = tileElement->asBanner(); - CoordsXYZ loc = { banner->position.ToCoordsXY(), bannerElement->getBaseZ() }; + CoordsXYZ loc = { banner->position.toCoordsXY(), bannerElement->getBaseZ() }; if (!LocationValid(loc)) { @@ -132,7 +132,7 @@ namespace OpenRCT2::GameActions } res.expenditure = ExpenditureType::landscaping; - auto location = banner->position.ToCoordsXY().ToTileCentre(); + auto location = banner->position.toCoordsXY().toTileCentre(); res.position = { location, TileElementHeight(location) }; TileElement* tileElement = BannerGetTileElement(_bannerIndex); diff --git a/src/openrct2/actions/scenery/LargeSceneryPlaceAction.cpp b/src/openrct2/actions/scenery/LargeSceneryPlaceAction.cpp index 4f9207fbfd..51fc32be85 100644 --- a/src/openrct2/actions/scenery/LargeSceneryPlaceAction.cpp +++ b/src/openrct2/actions/scenery/LargeSceneryPlaceAction.cpp @@ -128,7 +128,7 @@ namespace OpenRCT2::GameActions for (auto& tile : sceneryEntry->tiles) { - auto curTile = CoordsXY{ tile.offset }.Rotate(_loc.direction); + auto curTile = CoordsXY{ tile.offset }.rotate(_loc.direction); curTile.x += _loc.x; curTile.y += _loc.y; @@ -259,7 +259,7 @@ namespace OpenRCT2::GameActions for (auto& tile : sceneryEntry->tiles) { - auto curTile = CoordsXY{ tile.offset }.Rotate(_loc.direction); + auto curTile = CoordsXY{ tile.offset }.rotate(_loc.direction); curTile.x += _loc.x; curTile.y += _loc.y; @@ -328,7 +328,7 @@ namespace OpenRCT2::GameActions { for (auto& tile : tiles) { - auto curTile = CoordsXY{ tile.offset }.Rotate(_loc.direction); + auto curTile = CoordsXY{ tile.offset }.rotate(_loc.direction); curTile.x += _loc.x; curTile.y += _loc.y; @@ -345,7 +345,7 @@ namespace OpenRCT2::GameActions int16_t maxHeight = -1; for (auto& tile : tiles) { - auto curTile = CoordsXY{ tile.offset }.Rotate(_loc.direction); + auto curTile = CoordsXY{ tile.offset }.rotate(_loc.direction); curTile.x += _loc.x; curTile.y += _loc.y; diff --git a/src/openrct2/actions/scenery/LargeSceneryRemoveAction.cpp b/src/openrct2/actions/scenery/LargeSceneryRemoveAction.cpp index ed926fd907..a49141a04c 100644 --- a/src/openrct2/actions/scenery/LargeSceneryRemoveAction.cpp +++ b/src/openrct2/actions/scenery/LargeSceneryRemoveAction.cpp @@ -73,7 +73,7 @@ namespace OpenRCT2::GameActions return Result(Status::unknown, STR_CANT_REMOVE_THIS, STR_UNKNOWN_OBJECT_TYPE); } - auto rotatedOffsets = CoordsXYZ{ CoordsXY{ sceneryEntry->tiles[_tileIndex].offset }.Rotate(_loc.direction), + auto rotatedOffsets = CoordsXYZ{ CoordsXY{ sceneryEntry->tiles[_tileIndex].offset }.rotate(_loc.direction), sceneryEntry->tiles[_tileIndex].offset.z }; auto firstTile = CoordsXYZ{ _loc.x, _loc.y, _loc.z } - rotatedOffsets; @@ -81,7 +81,7 @@ namespace OpenRCT2::GameActions bool calculate_cost = true; for (auto& tile : sceneryEntry->tiles) { - auto currentTileRotatedOffset = CoordsXYZ{ CoordsXY{ tile.offset }.Rotate(_loc.direction), tile.offset.z }; + auto currentTileRotatedOffset = CoordsXYZ{ CoordsXY{ tile.offset }.rotate(_loc.direction), tile.offset.z }; auto currentTile = CoordsXYZ{ firstTile.x, firstTile.y, firstTile.z } + currentTileRotatedOffset; @@ -153,14 +153,14 @@ namespace OpenRCT2::GameActions tileElement->removeBannerEntry(); - auto rotatedFirstTile = CoordsXYZ{ CoordsXY{ sceneryEntry->tiles[_tileIndex].offset }.Rotate(_loc.direction), + auto rotatedFirstTile = CoordsXYZ{ CoordsXY{ sceneryEntry->tiles[_tileIndex].offset }.rotate(_loc.direction), sceneryEntry->tiles[_tileIndex].offset.z }; auto firstTile = CoordsXYZ{ _loc.x, _loc.y, _loc.z } - rotatedFirstTile; for (auto& tile : sceneryEntry->tiles) { - auto rotatedCurrentTile = CoordsXYZ{ CoordsXY{ tile.offset }.Rotate(_loc.direction), tile.offset.z }; + auto rotatedCurrentTile = CoordsXYZ{ CoordsXY{ tile.offset }.rotate(_loc.direction), tile.offset.z }; auto currentTile = CoordsXYZ{ firstTile.x, firstTile.y, firstTile.z } + rotatedCurrentTile; diff --git a/src/openrct2/actions/scenery/LargeScenerySetColourAction.cpp b/src/openrct2/actions/scenery/LargeScenerySetColourAction.cpp index a42bcade10..1dfcc81a39 100644 --- a/src/openrct2/actions/scenery/LargeScenerySetColourAction.cpp +++ b/src/openrct2/actions/scenery/LargeScenerySetColourAction.cpp @@ -117,7 +117,7 @@ namespace OpenRCT2::GameActions return Result(Status::unknown, STR_CANT_REPAINT_THIS, kStringIdNone); } // Work out the base tile coordinates (Tile with index 0) - auto rotatedBaseCoordsOffset = CoordsXYZ{ CoordsXY{ sceneryEntry->tiles[_tileIndex].offset }.Rotate(_loc.direction), + auto rotatedBaseCoordsOffset = CoordsXYZ{ CoordsXY{ sceneryEntry->tiles[_tileIndex].offset }.rotate(_loc.direction), sceneryEntry->tiles[_tileIndex].offset.z }; auto baseTile = CoordsXYZ{ _loc.x, _loc.y, _loc.z } - rotatedBaseCoordsOffset; @@ -125,7 +125,7 @@ namespace OpenRCT2::GameActions for (auto& tile : sceneryEntry->tiles) { // Work out the current tile coordinates - auto rotatedTileCoords = CoordsXYZ{ CoordsXY{ tile.offset }.Rotate(_loc.direction), tile.offset.z }; + auto rotatedTileCoords = CoordsXYZ{ CoordsXY{ tile.offset }.rotate(_loc.direction), tile.offset.z }; auto currentTile = CoordsXYZ{ baseTile.x, baseTile.y, baseTile.z } + rotatedTileCoords; if (gLegacyScene != LegacyScene::scenarioEditor && !gameState.cheats.sandboxMode) diff --git a/src/openrct2/actions/scenery/SignSetNameAction.cpp b/src/openrct2/actions/scenery/SignSetNameAction.cpp index e3ba4ebbcf..23a29e60bf 100644 --- a/src/openrct2/actions/scenery/SignSetNameAction.cpp +++ b/src/openrct2/actions/scenery/SignSetNameAction.cpp @@ -60,7 +60,7 @@ namespace OpenRCT2::GameActions return Result(Status::invalidParameters, STR_CANT_RENAME_BANNER, STR_ERR_BANNER_ELEMENT_NOT_FOUND); } - CoordsXYZ loc = { banner->position.ToCoordsXY(), tileElement->getBaseZ() }; + CoordsXYZ loc = { banner->position.toCoordsXY(), tileElement->getBaseZ() }; if (!LocationValid(loc)) { @@ -92,7 +92,7 @@ namespace OpenRCT2::GameActions else { // If empty name take closest ride name. - RideId rideIndex = BannerGetClosestRideIndex({ banner->position.ToCoordsXY(), 16 }); + RideId rideIndex = BannerGetClosestRideIndex({ banner->position.toCoordsXY(), 16 }); if (rideIndex.IsNull()) { banner->flags.unset(BannerFlag::linkedToRide); diff --git a/src/openrct2/actions/scenery/SignSetStyleAction.cpp b/src/openrct2/actions/scenery/SignSetStyleAction.cpp index 133774d27f..616745755d 100644 --- a/src/openrct2/actions/scenery/SignSetStyleAction.cpp +++ b/src/openrct2/actions/scenery/SignSetStyleAction.cpp @@ -74,7 +74,7 @@ namespace OpenRCT2::GameActions TileElementType::largeScenery); return Result(Status::invalidParameters, STR_CANT_REPAINT_THIS, kStringIdNone); } - loc = { banner->position.ToCoordsXY(), tileElement->getBaseZ() }; + loc = { banner->position.toCoordsXY(), tileElement->getBaseZ() }; } else { @@ -85,7 +85,7 @@ namespace OpenRCT2::GameActions LOG_ERROR("Wall element not found for bannerIndex", _bannerIndex); return Result(Status::invalidParameters, STR_CANT_REPAINT_THIS, kStringIdNone); } - loc = { banner->position.ToCoordsXY(), wallElement->getBaseZ() }; + loc = { banner->position.toCoordsXY(), wallElement->getBaseZ() }; } if (!LocationValid(loc)) @@ -109,7 +109,7 @@ namespace OpenRCT2::GameActions return Result(Status::invalidParameters, STR_CANT_REPAINT_THIS, kStringIdNone); } - CoordsXY coords = banner->position.ToCoordsXY(); + CoordsXY coords = banner->position.toCoordsXY(); if (_isLarge) { diff --git a/src/openrct2/actions/scenery/SmallSceneryPlaceAction.cpp b/src/openrct2/actions/scenery/SmallSceneryPlaceAction.cpp index 49066c4fd4..c9d1d93c7c 100644 --- a/src/openrct2/actions/scenery/SmallSceneryPlaceAction.cpp +++ b/src/openrct2/actions/scenery/SmallSceneryPlaceAction.cpp @@ -92,7 +92,7 @@ namespace OpenRCT2::GameActions surfaceHeight = waterHeight; } auto res = Result(); - auto centre = _loc.ToTileCentre(); + auto centre = _loc.toTileCentre(); res.position.x = centre.x; res.position.y = centre.y; res.position.z = surfaceHeight; @@ -139,7 +139,7 @@ namespace OpenRCT2::GameActions auto loc2 = _loc; if (sceneryEntry->flags.has(SmallSceneryFlag::occupiesFullTile)) { - loc2 = loc2.ToTileCentre(); + loc2 = loc2.toTileCentre(); } else { @@ -299,7 +299,7 @@ namespace OpenRCT2::GameActions surfaceHeight = waterHeight; } auto res = Result(); - auto centre = _loc.ToTileCentre(); + auto centre = _loc.toTileCentre(); res.position.x = centre.x; res.position.y = centre.y; res.position.z = surfaceHeight; diff --git a/src/openrct2/actions/terraform/LandSmoothAction.cpp b/src/openrct2/actions/terraform/LandSmoothAction.cpp index c08e41bf14..7dd84150b1 100644 --- a/src/openrct2/actions/terraform/LandSmoothAction.cpp +++ b/src/openrct2/actions/terraform/LandSmoothAction.cpp @@ -335,7 +335,7 @@ namespace OpenRCT2::GameActions const auto selectionType = _selectionType; const int32_t heightOffset = raiseLand ? 2 : -2; - auto normRange = _range.Normalise(); + auto normRange = _range.normalise(); // Cap bounds to map auto l = std::max(normRange.GetX1(), 32); auto t = std::max(normRange.GetY1(), 32); diff --git a/src/openrct2/actions/terraform/SurfaceSetStyleAction.cpp b/src/openrct2/actions/terraform/SurfaceSetStyleAction.cpp index e91c166c8c..0100f9661e 100644 --- a/src/openrct2/actions/terraform/SurfaceSetStyleAction.cpp +++ b/src/openrct2/actions/terraform/SurfaceSetStyleAction.cpp @@ -50,7 +50,7 @@ namespace OpenRCT2::GameActions res.errorTitle = STR_CANT_CHANGE_LAND_TYPE; res.expenditure = ExpenditureType::landscaping; - auto validRange = ClampRangeWithinMap(_range.Normalise()); + auto validRange = ClampRangeWithinMap(_range.normalise()); auto& objManager = GetContext()->GetObjectManager(); if (_surfaceStyle != kObjectEntryIndexNull) { @@ -147,7 +147,7 @@ namespace OpenRCT2::GameActions res.errorTitle = STR_CANT_CHANGE_LAND_TYPE; res.expenditure = ExpenditureType::landscaping; - auto validRange = ClampRangeWithinMap(_range.Normalise()); + auto validRange = ClampRangeWithinMap(_range.normalise()); auto xMid = (validRange.GetX1() + validRange.GetX2()) / 2 + 16; auto yMid = (validRange.GetY1() + validRange.GetY2()) / 2 + 16; auto heightMid = TileElementHeight({ xMid, yMid }); diff --git a/src/openrct2/actions/track/TrackPlaceAction.cpp b/src/openrct2/actions/track/TrackPlaceAction.cpp index d151eb55aa..74762378d5 100644 --- a/src/openrct2/actions/track/TrackPlaceAction.cpp +++ b/src/openrct2/actions/track/TrackPlaceAction.cpp @@ -187,7 +187,7 @@ namespace OpenRCT2::GameActions for (uint8_t i = 0; i < ted.sequenceData.numSequences; i++) { const auto& trackBlock = ted.sequenceData.sequences[i].clearance; - auto rotatedTrack = CoordsXYZ{ CoordsXY{ trackBlock.x, trackBlock.y }.Rotate(_origin.direction), 0 }; + auto rotatedTrack = CoordsXYZ{ CoordsXY{ trackBlock.x, trackBlock.y }.rotate(_origin.direction), 0 }; auto tileCoords = CoordsXYZ{ _origin.x, _origin.y, _origin.z } + rotatedTrack; if (!LocationValid(tileCoords)) @@ -236,7 +236,7 @@ namespace OpenRCT2::GameActions for (int32_t blockIndex = 0; blockIndex < ted.sequenceData.numSequences; blockIndex++) { const auto& trackBlock = ted.sequenceData.sequences[blockIndex].clearance; - auto rotatedTrack = CoordsXYZ{ CoordsXY{ trackBlock.x, trackBlock.y }.Rotate(_origin.direction), trackBlock.z }; + auto rotatedTrack = CoordsXYZ{ CoordsXY{ trackBlock.x, trackBlock.y }.rotate(_origin.direction), trackBlock.z }; auto mapLoc = CoordsXYZ{ _origin.x, _origin.y, _origin.z } + rotatedTrack; auto quarterTile = trackBlock.quarterTile.Rotate(_origin.direction); @@ -452,11 +452,11 @@ namespace OpenRCT2::GameActions const auto& block0 = ted.sequenceData.sequences[0].clearance; auto clearanceHeight = rideEntry->Clearance; CoordsXYZ originLocation = CoordsXYZ{ _origin.x, _origin.y, _origin.z } - + CoordsXYZ{ CoordsXY{ block0.x, block0.y }.Rotate(_origin.direction), block0.z }; + + CoordsXYZ{ CoordsXY{ block0.x, block0.y }.rotate(_origin.direction), block0.z }; for (int32_t blockIndex = 0; blockIndex < ted.sequenceData.numSequences; blockIndex++) { const auto& trackBlock = ted.sequenceData.sequences[blockIndex].clearance; - auto rotatedTrack = CoordsXYZ{ CoordsXY{ trackBlock.x, trackBlock.y }.Rotate(_origin.direction), trackBlock.z }; + auto rotatedTrack = CoordsXYZ{ CoordsXY{ trackBlock.x, trackBlock.y }.rotate(_origin.direction), trackBlock.z }; auto mapLoc = CoordsXYZ{ _origin.x, _origin.y, _origin.z } + rotatedTrack; auto quarterTile = trackBlock.quarterTile.Rotate(_origin.direction); @@ -554,7 +554,7 @@ namespace OpenRCT2::GameActions supportCosts += (supportHeight / (2 * kCoordsZStep)) * rtd.BuildCosts.SupportPrice; bool isOrigin = false; - if (!ride->overallView.IsNull()) + if (!ride->overallView.isNull()) { if (!GetFlags().has(CommandFlag::noSpend)) { @@ -562,7 +562,7 @@ namespace OpenRCT2::GameActions } } - if (isOrigin || ride->overallView.IsNull()) + if (isOrigin || ride->overallView.isNull()) { ride->overallView = mapLoc; } @@ -746,7 +746,7 @@ namespace OpenRCT2::GameActions for (uint8_t i = 0; i < ted.sequenceData.numSequences; i++) { const auto& trackBlock = ted.sequenceData.sequences[i].clearance; - auto rotatedTrack = CoordsXY{ trackBlock.x, trackBlock.y }.Rotate(_origin.direction); + auto rotatedTrack = CoordsXY{ trackBlock.x, trackBlock.y }.rotate(_origin.direction); auto tileCoords = CoordsXY{ _origin.x, _origin.y } + rotatedTrack; if (!MapCheckCapacityAndReorganise(tileCoords, numTiles)) diff --git a/src/openrct2/actions/track/TrackRemoveAction.cpp b/src/openrct2/actions/track/TrackRemoveAction.cpp index a333619bf9..0d48ea5dab 100644 --- a/src/openrct2/actions/track/TrackRemoveAction.cpp +++ b/src/openrct2/actions/track/TrackRemoveAction.cpp @@ -146,7 +146,7 @@ namespace OpenRCT2::GameActions auto startLoc = _origin; startLoc.direction = foundElement->getDirection(); - auto rotatedTrack = CoordsXYZ{ CoordsXY{ currentTrackBlock.x, currentTrackBlock.y }.Rotate(startLoc.direction), + auto rotatedTrack = CoordsXYZ{ CoordsXY{ currentTrackBlock.x, currentTrackBlock.y }.rotate(startLoc.direction), currentTrackBlock.z }; startLoc.x -= rotatedTrack.x; startLoc.y -= rotatedTrack.y; @@ -160,7 +160,7 @@ namespace OpenRCT2::GameActions for (uint8_t i = 0; i < ted.sequenceData.numSequences; i++) { const auto& trackBlock = ted.sequenceData.sequences[i].clearance; - rotatedTrack = CoordsXYZ{ CoordsXY{ trackBlock.x, trackBlock.y }.Rotate(startLoc.direction), trackBlock.z }; + rotatedTrack = CoordsXYZ{ CoordsXY{ trackBlock.x, trackBlock.y }.rotate(startLoc.direction), trackBlock.z }; auto mapLoc = CoordsXYZ{ startLoc.x, startLoc.y, startLoc.z } + rotatedTrack; if (!LocationValid(mapLoc)) @@ -304,7 +304,7 @@ namespace OpenRCT2::GameActions startLoc.direction = foundElement->getDirection(); const auto& currentTrackBlock = ted.sequenceData.sequences[sequenceIndex].clearance; - auto rotatedTrackLoc = CoordsXYZ{ CoordsXY{ currentTrackBlock.x, currentTrackBlock.y }.Rotate(startLoc.direction), + auto rotatedTrackLoc = CoordsXYZ{ CoordsXY{ currentTrackBlock.x, currentTrackBlock.y }.rotate(startLoc.direction), currentTrackBlock.z }; startLoc.x -= rotatedTrackLoc.x; startLoc.y -= rotatedTrackLoc.y; @@ -319,7 +319,7 @@ namespace OpenRCT2::GameActions { const auto& trackBlock = ted.sequenceData.sequences[i].clearance; - rotatedTrackLoc = CoordsXYZ{ CoordsXY{ trackBlock.x, trackBlock.y }.Rotate(startLoc.direction), trackBlock.z }; + rotatedTrackLoc = CoordsXYZ{ CoordsXY{ trackBlock.x, trackBlock.y }.rotate(startLoc.direction), trackBlock.z }; auto mapLoc = CoordsXYZ{ startLoc.x, startLoc.y, startLoc.z } + rotatedTrackLoc; MapInvalidateTileFull(mapLoc); diff --git a/src/openrct2/drawing/LightFX.cpp b/src/openrct2/drawing/LightFX.cpp index 4d28a707d9..f20450100e 100644 --- a/src/openrct2/drawing/LightFX.cpp +++ b/src/openrct2/drawing/LightFX.cpp @@ -793,8 +793,8 @@ namespace OpenRCT2::Drawing::LightFx void AddKioskLights(const CoordsXY& mapPosition, const int32_t height, const uint8_t zOffset) { uint8_t relativeRotation = (4 - GetCurrentRotation()) % 4; - CoordsXY lanternOffset1 = CoordsXY(0, 16).Rotate(relativeRotation); - CoordsXY lanternOffset2 = CoordsXY(16, 0).Rotate(relativeRotation); + CoordsXY lanternOffset1 = CoordsXY(0, 16).rotate(relativeRotation); + CoordsXY lanternOffset2 = CoordsXY(16, 0).rotate(relativeRotation); Add3DLightMagicFromDrawingTile(mapPosition, lanternOffset1.x, lanternOffset1.y, height + zOffset, LightType::lantern3); Add3DLightMagicFromDrawingTile(mapPosition, lanternOffset2.x, lanternOffset2.y, height + zOffset, LightType::lantern3); Add3DLightMagicFromDrawingTile(mapPosition, 8, 32, height, LightType::spot1); @@ -811,23 +811,23 @@ namespace OpenRCT2::Drawing::LightFx { if (direction == (4 - GetCurrentRotation()) % 4) // Back Right Facing Stall { - CoordsXY spotOffset1 = CoordsXY(-32, 8).Rotate(direction); - CoordsXY spotOffset2 = CoordsXY(-32, 4).Rotate(direction); + CoordsXY spotOffset1 = CoordsXY(-32, 8).rotate(direction); + CoordsXY spotOffset2 = CoordsXY(-32, 4).rotate(direction); Add3DLightMagicFromDrawingTile(mapPosition, spotOffset1.x, spotOffset1.y, height, LightType::spot1); Add3DLightMagicFromDrawingTile(mapPosition, spotOffset2.x, spotOffset2.y, height, LightType::spot2); } else if (direction == (7 - GetCurrentRotation()) % 4) // Back left Facing Stall { - CoordsXY spotOffset1 = CoordsXY(-32, -8).Rotate(direction); - CoordsXY spotOffset2 = CoordsXY(-32, -4).Rotate(direction); + CoordsXY spotOffset1 = CoordsXY(-32, -8).rotate(direction); + CoordsXY spotOffset2 = CoordsXY(-32, -4).rotate(direction); Add3DLightMagicFromDrawingTile(mapPosition, spotOffset1.x, spotOffset1.y, height, LightType::spot1); Add3DLightMagicFromDrawingTile(mapPosition, spotOffset2.x, spotOffset2.y, height, LightType::spot2); } else // Forward Facing Stall { - CoordsXY spotOffset1 = CoordsXY(-32, 8).Rotate(direction); - CoordsXY spotOffset2 = CoordsXY(-32, -8).Rotate(direction); - CoordsXY lanternOffset = CoordsXY(-16, 0).Rotate(direction); + CoordsXY spotOffset1 = CoordsXY(-32, 8).rotate(direction); + CoordsXY spotOffset2 = CoordsXY(-32, -8).rotate(direction); + CoordsXY lanternOffset = CoordsXY(-16, 0).rotate(direction); Add3DLightMagicFromDrawingTile( mapPosition, lanternOffset.x, lanternOffset.y, height + zOffset, LightType::lantern3); Add3DLightMagicFromDrawingTile(mapPosition, spotOffset1.x, spotOffset1.y, height, LightType::spot1); diff --git a/src/openrct2/entity/EntityRegistry.cpp b/src/openrct2/entity/EntityRegistry.cpp index 308538b141..7a653a78a8 100644 --- a/src/openrct2/entity/EntityRegistry.cpp +++ b/src/openrct2/entity/EntityRegistry.cpp @@ -40,7 +40,7 @@ namespace OpenRCT2 static constexpr uint32_t ComputeSpatialIndex(const CoordsXY& loc) { - if (loc.IsNull()) + if (loc.isNull()) return kSpatialIndexNullBucket; // NOTE: The input coordinate is rotated and can have negative components. diff --git a/src/openrct2/entity/Guest.cpp b/src/openrct2/entity/Guest.cpp index 320078c64f..a0b4e19890 100644 --- a/src/openrct2/entity/Guest.cpp +++ b/src/openrct2/entity/Guest.cpp @@ -1183,7 +1183,7 @@ namespace OpenRCT2 guest.setState(PeepState::walking); // Set destination to the centre of the tile. - const auto destination = guest.getLocation().ToTileCentre(); + const auto destination = guest.getLocation().toTileCentre(); guest.setDestination(destination, 5); guest.updateCurrentAnimationType(); } @@ -1204,7 +1204,7 @@ namespace OpenRCT2 if (!(pathingResult & PATHING_DESTINATION_REACHED)) return; - auto loc = getLocation().ToTileStart() + CoordsXYZ{ BenchUseOffsets[var37 & 0x7], 0 }; + auto loc = getLocation().toTileStart() + CoordsXYZ{ BenchUseOffsets[var37 & 0x7], 0 }; moveTo(loc); @@ -1236,7 +1236,7 @@ namespace OpenRCT2 setState(PeepState::walking); // Set destination to the centre of the tile - auto destination = getLocation().ToTileCentre(); + auto destination = getLocation().toTileCentre(); setDestination(destination, 5); updateCurrentAnimationType(); return; @@ -2452,13 +2452,13 @@ namespace OpenRCT2 void Guest::goToRideEntrance(const Ride& ride) { const auto& station = ride.getStation(currentRideStation); - if (station.entrance.IsNull()) + if (station.entrance.isNull()) { removeFromQueue(); return; } - auto location = station.entrance.ToCoordsXYZD().ToTileCentre(); + auto location = station.entrance.toCoordsXYZD().toTileCentre(); int16_t x_shift = DirectionOffsets[location.direction].x; int16_t y_shift = DirectionOffsets[location.direction].y; @@ -3429,7 +3429,7 @@ namespace OpenRCT2 if (xy_distance < 16) { const auto& station = ride->getStation(currentRideStation); - auto entrance = station.entrance.ToCoordsXYZ(); + auto entrance = station.entrance.toCoordsXYZ(); actionZ = entrance.z + 2; } moveTo({ loc.value(), actionZ }); @@ -3585,7 +3585,7 @@ namespace OpenRCT2 void Guest::updateRideLeaveEntranceWaypoints(const Ride& ride) { const auto& station = ride.getStation(currentRideStation); - if (station.entrance.IsNull()) + if (station.entrance.isNull()) { return; } @@ -3674,8 +3674,8 @@ namespace OpenRCT2 if (ride->getRideTypeDescriptor().flags.has(RtdFlag::noVehicles)) { const auto& station = ride->getStation(currentRideStation); - auto entranceLocation = station.entrance.ToCoordsXYZD(); - if (entranceLocation.IsNull()) + auto entranceLocation = station.entrance.toCoordsXYZD(); + if (entranceLocation.isNull()) { return; } @@ -4256,8 +4256,8 @@ namespace OpenRCT2 return; } - auto exitLocation = station.exit.ToCoordsXYZD(); - if (exitLocation.IsNull()) + auto exitLocation = station.exit.toCoordsXYZD(); + if (exitLocation.isNull()) { return; } @@ -4318,7 +4318,7 @@ namespace OpenRCT2 return; auto exit = ride->getStation(currentRideStation).exit; - auto newDestination = exit.ToCoordsXY().ToTileCentre(); + auto newDestination = exit.toCoordsXY().toTileCentre(); auto [xShift, yShift] = [exit]() { if (exit.direction < DirectionOffsets.size()) @@ -4409,7 +4409,7 @@ namespace OpenRCT2 CoordsXY GetGuestWaypointLocationDefault(const Vehicle& vehicle, const Ride& ride, const StationIndex& CurrentRideStation) { - return ride.getStation(CurrentRideStation).start.ToTileCentre(); + return ride.getStation(CurrentRideStation).start.toTileCentre(); } CoordsXY GetGuestWaypointLocationEnterprise( @@ -4577,7 +4577,7 @@ namespace OpenRCT2 var37 |= 3; - auto targetLoc = ride->getStation(currentRideStation).exit.ToCoordsXYZD().ToTileCentre(); + auto targetLoc = ride->getStation(currentRideStation).exit.toCoordsXYZD().toTileCentre(); uint8_t exit_direction = DirectionReverse(targetLoc.direction); int16_t x_shift = DirectionOffsets[exit_direction].x; @@ -4823,7 +4823,7 @@ namespace OpenRCT2 // Actually force the final waypoint var37 |= 3; - auto targetLoc = ride->getStation(currentRideStation).exit.ToCoordsXYZD().ToTileCentre(); + auto targetLoc = ride->getStation(currentRideStation).exit.toCoordsXYZD().toTileCentre(); int16_t xShift = DirectionOffsets[DirectionReverse(targetLoc.direction)].x; int16_t yShift = DirectionOffsets[DirectionReverse(targetLoc.direction)].y; @@ -4889,7 +4889,7 @@ namespace OpenRCT2 } } - auto targetLoc = getDestination().ToTileStart(); + auto targetLoc = getDestination().toTileStart(); auto stationBaseZ = ride->getStation().getBaseZ(); @@ -4969,11 +4969,11 @@ namespace OpenRCT2 targetLoc = getDestination(); if (chosenEdge & 1) { - targetLoc.x = targetLoc.ToTileCentre().x; + targetLoc.x = targetLoc.toTileCentre().x; } else { - targetLoc.y = targetLoc.ToTileCentre().y; + targetLoc.y = targetLoc.toTileCentre().y; } setDestination(targetLoc); var37 = 16; @@ -5120,7 +5120,7 @@ namespace OpenRCT2 const auto curLoc = getLocation(); moveTo({ loc.value(), curLoc.z }); - const auto newLoc = getLocation().ToTileStart(); + const auto newLoc = getLocation().toTileStart(); if (newLoc.x != nextLoc.x) return; if (newLoc.y != nextLoc.y) @@ -5894,7 +5894,7 @@ namespace OpenRCT2 updateAnimationGroup(); // Send peep to the centre of current tile. - auto destination = getLocation().ToTileCentre(); + auto destination = getLocation().toTileCentre(); setDestination(destination, 5); updateCurrentAnimationType(); } @@ -6869,7 +6869,7 @@ namespace OpenRCT2 if (Weather::isPrecipitating() && (hasItem(ShopItem::umbrella)) && x != kLocationNull) { CoordsXY loc = { x, y }; - if (MapIsLocationValid(loc.ToTileStart())) + if (MapIsLocationValid(loc.toTileStart())) { TileElement* tileElement = MapGetFirstElementAt(loc); while (true) diff --git a/src/openrct2/entity/MoneyEffect.cpp b/src/openrct2/entity/MoneyEffect.cpp index f9351c09c1..936b9d934c 100644 --- a/src/openrct2/entity/MoneyEffect.cpp +++ b/src/openrct2/entity/MoneyEffect.cpp @@ -62,7 +62,7 @@ namespace OpenRCT2 void MoneyEffect::create(money64 value, const CoordsXYZ& loc) { auto offsetLoc = loc; - if (loc.IsNull()) + if (loc.isNull()) { // If game actions return no valid location of the action we can not use the screen // coordinates as every client will have different ones. diff --git a/src/openrct2/entity/Peep.cpp b/src/openrct2/entity/Peep.cpp index e9c3cfeb10..130ee37e81 100644 --- a/src/openrct2/entity/Peep.cpp +++ b/src/openrct2/entity/Peep.cpp @@ -667,7 +667,7 @@ namespace OpenRCT2 // Set the coordinate of destination to be exactly // in the middle of a tile. - CoordsXYZ destination = { location.ToCoordsXY().ToTileCentre(), tileElement->getBaseZ() + 16 }; + CoordsXYZ destination = { location.toCoordsXY().toTileCentre(), tileElement->getBaseZ() + 16 }; if (!MapIsLocationOwned(destination)) { @@ -869,7 +869,7 @@ namespace OpenRCT2 moveTo({ x, y, saved_height }); - nextLoc = { CoordsXY{ x, y }.ToTileStart(), saved_map->getBaseZ() }; + nextLoc = { CoordsXY{ x, y }.toTileStart(), saved_map->getBaseZ() }; if (saved_map->getType() != TileElementType::path) { @@ -1612,7 +1612,7 @@ namespace OpenRCT2 static void PeepReturnToCentreOfTile(Peep* peep) { peep->peepDirection = DirectionReverse(peep->peepDirection); - auto destination = peep->getLocation().ToTileCentre(); + auto destination = peep->getLocation().toTileCentre(); peep->setDestination(destination, 5); } @@ -1817,12 +1817,12 @@ namespace OpenRCT2 bool found = false; auto entrance = std::find_if( gameState.park.entrances.begin(), gameState.park.entrances.end(), - [coords](const auto& e) { return coords.ToTileStart() == e; }); + [coords](const auto& e) { return coords.toTileStart() == e; }); if (entrance != gameState.park.entrances.end()) { int16_t z = entrance->z / 8; entranceDirection = entrance->direction; - auto nextLoc = coords.ToTileStart() + CoordsDirectionDelta[entranceDirection]; + auto nextLoc = coords.toTileStart() + CoordsDirectionDelta[entranceDirection]; // Make sure there is a path right behind the entrance, otherwise turn around TileElement* nextTileElement = MapGetFirstElementAt(nextLoc); @@ -1934,7 +1934,7 @@ namespace OpenRCT2 const auto* pathElement = coords.element->asPath(); assert(pathElement != nullptr); - peep->nextLoc = { coords.ToTileStart(), pathElement->getBaseZ() }; + peep->nextLoc = { coords.toTileStart(), pathElement->getBaseZ() }; peep->setNextFlags(pathElement->getSlopeDirection(), pathElement->isSloped(), false); int16_t z = peep->getZOnSlope(coords.x, coords.y); @@ -2190,7 +2190,7 @@ namespace OpenRCT2 // Force set centre of tile to prevent issues with guests accidentally skipping the queue auto queueTileCentre = CoordsXY{ CoordsXY{ guest->nextLoc } + CoordsDirectionDelta[guest->peepDirection] } - .ToTileCentre(); + .toTileCentre(); guest->setDestination(queueTileCentre); PeepFootpathMoveForward(guest, coords, vandalismPresent); @@ -2283,7 +2283,7 @@ namespace OpenRCT2 guest->spendMoney(cost, ExpenditureType::shopSales); } - auto coordsCentre = coords.ToTileCentre(); + auto coordsCentre = coords.toTileCentre(); guest->setDestination(coordsCentre, 3); guest->currentRide = rideIndex; guest->setState(PeepState::enteringRide); @@ -2365,7 +2365,7 @@ namespace OpenRCT2 } auto newLoc = *loc; - CoordsXY truncatedNewLoc = newLoc.ToTileStart(); + CoordsXY truncatedNewLoc = newLoc.toTileStart(); if (truncatedNewLoc == CoordsXY{ nextLoc }) { int16_t height = getZOnSlope(newLoc.x, newLoc.y); @@ -2733,7 +2733,7 @@ namespace OpenRCT2 */ void Peep::resetPathfindGoal() { - pathfindGoal.SetNull(); + pathfindGoal.setNull(); pathfindGoal.direction = kInvalidDirection; } } // namespace OpenRCT2 diff --git a/src/openrct2/entity/Staff.cpp b/src/openrct2/entity/Staff.cpp index 6f106fe5b3..94f932f7ed 100644 --- a/src/openrct2/entity/Staff.cpp +++ b/src/openrct2/entity/Staff.cpp @@ -339,16 +339,16 @@ namespace OpenRCT2 return kInvalidDirection; } - auto litterTile = CoordsXY{ nearestLitter->x, nearestLitter->y }.ToTileStart(); + auto litterTile = CoordsXY{ nearestLitter->x, nearestLitter->y }.toTileStart(); if (!isLocationInPatrol(litterTile)) { return kInvalidDirection; } - Direction nextDirection = DirectionFromTo(CoordsXY(x, y), litterTile.ToTileCentre()); + Direction nextDirection = DirectionFromTo(CoordsXY(x, y), litterTile.toTileCentre()); - CoordsXY nextTile = litterTile.ToTileStart() - CoordsDirectionDelta[nextDirection]; + CoordsXY nextTile = litterTile.toTileStart() - CoordsDirectionDelta[nextDirection]; int16_t nextZ = ((z + kCoordsZStep) & 0xFFF0) / kCoordsZStep; @@ -365,7 +365,7 @@ namespace OpenRCT2 } } while (!(tileElement++)->isLastForTile()); - nextTile = CoordsXY(x, y).ToTileStart() + CoordsDirectionDelta[nextDirection]; + nextTile = CoordsXY(x, y).toTileStart() + CoordsDirectionDelta[nextDirection]; tileElement = MapGetFirstElementAt(nextTile); if (tileElement == nullptr) @@ -635,12 +635,12 @@ namespace OpenRCT2 && (ScenarioRand() & 1)) { auto location = ride->getStation(currentRideStation).exit; - if (location.IsNull()) + if (location.isNull()) { location = ride->getStation(currentRideStation).entrance; } - direction = DirectionFromTo(CoordsXY(x, y), location.ToCoordsXY()); + direction = DirectionFromTo(CoordsXY(x, y), location.toCoordsXY()); } return directionSurface(direction); @@ -716,12 +716,12 @@ namespace OpenRCT2 /* Find location of the exit for the target ride station * or if the ride has no exit, the entrance. */ TileCoordsXYZD location = ride->getStation(currentRideStation).exit; - if (location.IsNull()) + if (location.isNull()) { location = ride->getStation(currentRideStation).entrance; // If no entrance is present either. This is an incorrect state. - if (location.IsNull()) + if (location.isNull()) { return mechanicDirectionPathRand(pathDirections); } @@ -1269,7 +1269,7 @@ namespace OpenRCT2 return; } - if (ride->getStation(currentRideStation).exit.IsNull()) + if (ride->getStation(currentRideStation).exit.isNull()) { ride->flags.unset(RideFlag::dueInspection); setState(PeepState::falling); @@ -1323,7 +1323,7 @@ namespace OpenRCT2 if (pathingResult & PATHING_RIDE_ENTRANCE) { - if (!ride->getStation(exitIndex).exit.IsNull()) + if (!ride->getStation(exitIndex).exit.isNull()) { return; } @@ -1428,7 +1428,7 @@ namespace OpenRCT2 if (pathingResult & PATHING_RIDE_ENTRANCE) { - if (!ride->getStation(exitIndex).exit.IsNull()) + if (!ride->getStation(exitIndex).exit.isNull()) { return; } @@ -1534,7 +1534,7 @@ namespace OpenRCT2 var37 = chosen_position; subState = 0; - auto destination = kWateringUseOffsets[chosen_position] + getLocation().ToTileStart(); + auto destination = kWateringUseOffsets[chosen_position] + getLocation().toTileStart(); setDestination(destination, 3); return true; @@ -1605,7 +1605,7 @@ namespace OpenRCT2 setState(PeepState::emptyingBin); subState = 0; - auto destination = BinUseOffsets[chosen_position] + getLocation().ToTileStart(); + auto destination = BinUseOffsets[chosen_position] + getLocation().toTileStart(); setDestination(destination, 3); return true; } @@ -2277,7 +2277,7 @@ namespace OpenRCT2 } auto stationPos = ride.getStation(currentRideStation).getStart(); - if (stationPos.IsNull()) + if (stationPos.isNull()) { return true; } @@ -2364,7 +2364,7 @@ namespace OpenRCT2 } auto stationPosition = ride.getStation(currentRideStation).getStart(); - if (stationPosition.IsNull()) + if (stationPosition.isNull()) { return true; } @@ -2509,18 +2509,18 @@ namespace OpenRCT2 { if (!firstRun) { - auto stationPosition = ride.getStation(currentRideStation).exit.ToCoordsXY(); - if (stationPosition.IsNull()) + auto stationPosition = ride.getStation(currentRideStation).exit.toCoordsXY(); + if (stationPosition.isNull()) { - stationPosition = ride.getStation(currentRideStation).entrance.ToCoordsXY(); + stationPosition = ride.getStation(currentRideStation).entrance.toCoordsXY(); - if (stationPosition.IsNull()) + if (stationPosition.isNull()) { return true; } } - stationPosition = stationPosition.ToTileCentre(); + stationPosition = stationPosition.toTileCentre(); CoordsXY stationPlatformDirection = DirectionOffsets[peepDirection]; stationPosition.x += stationPlatformDirection.x * 20; @@ -2589,19 +2589,19 @@ namespace OpenRCT2 { if (!firstRun) { - auto exitPosition = ride.getStation(currentRideStation).exit.ToCoordsXY(); - if (exitPosition.IsNull()) + auto exitPosition = ride.getStation(currentRideStation).exit.toCoordsXY(); + if (exitPosition.isNull()) { - exitPosition = ride.getStation(currentRideStation).entrance.ToCoordsXY(); + exitPosition = ride.getStation(currentRideStation).entrance.toCoordsXY(); - if (exitPosition.IsNull()) + if (exitPosition.isNull()) { setState(PeepState::falling); return false; } } - exitPosition = exitPosition.ToTileCentre(); + exitPosition = exitPosition.toTileCentre(); CoordsXY ebx_direction = DirectionOffsets[peepDirection]; exitPosition.x -= ebx_direction.x * 19; diff --git a/src/openrct2/interface/InteractiveConsole.cpp b/src/openrct2/interface/InteractiveConsole.cpp index 480bc443ca..b3e89c1161 100644 --- a/src/openrct2/interface/InteractiveConsole.cpp +++ b/src/openrct2/interface/InteractiveConsole.cpp @@ -911,7 +911,7 @@ static void ConsoleCommandSet(InteractiveConsole& console, const arguments_t& ar WindowBase* w = WindowGetMain(); if (w != nullptr) { - auto location = TileCoordsXYZ(int_val[0], int_val[1], 0).ToCoordsXYZ().ToTileCentre(); + auto location = TileCoordsXYZ(int_val[0], int_val[1], 0).toCoordsXYZ().toTileCentre(); location.z = TileElementHeight(location); w->setViewportLocation(location); console.Execute("get location"); diff --git a/src/openrct2/interface/Screenshot.cpp b/src/openrct2/interface/Screenshot.cpp index 3151862caf..2d4b96f109 100644 --- a/src/openrct2/interface/Screenshot.cpp +++ b/src/openrct2/interface/Screenshot.cpp @@ -216,9 +216,9 @@ static int32_t GetTallestVisibleTileTop( { for (int32_t x = startCoords.x; x <= endCoords.x; x++) { - auto location = TileCoordsXY(x, y).ToCoordsXY(); + auto location = TileCoordsXY(x, y).toCoordsXY(); int32_t z = GetHighestBaseClearanceZ(location, useViewClipping); - int32_t viewY = Translate3DTo2DWithZ(rotation, CoordsXYZ(location.ToTileCentre(), z)).y; + int32_t viewY = Translate3DTo2DWithZ(rotation, CoordsXYZ(location.toTileCentre(), z)).y; minViewY = std::min(minViewY, viewY); } } @@ -287,10 +287,10 @@ static Viewport GetGiantViewport(int32_t rotation, ZoomLevel zoom) // Calculate the viewport bounds auto corners = cornerCoords[useViewClipping ? 1 : 0]; - auto screenCoords1 = Translate3DTo2DWithZ(rotation, { corners[0].ToCoordsXY().ToTileCentre(), 0 }); - auto screenCoords2 = Translate3DTo2DWithZ(rotation, { corners[1].ToCoordsXY().ToTileCentre(), 0 }); - auto screenCoords3 = Translate3DTo2DWithZ(rotation, { corners[2].ToCoordsXY().ToTileCentre(), 0 }); - auto screenCoords4 = Translate3DTo2DWithZ(rotation, { corners[3].ToCoordsXY().ToTileCentre(), 0 }); + auto screenCoords1 = Translate3DTo2DWithZ(rotation, { corners[0].toCoordsXY().toTileCentre(), 0 }); + auto screenCoords2 = Translate3DTo2DWithZ(rotation, { corners[1].toCoordsXY().toTileCentre(), 0 }); + auto screenCoords3 = Translate3DTo2DWithZ(rotation, { corners[2].toCoordsXY().toTileCentre(), 0 }); + auto screenCoords4 = Translate3DTo2DWithZ(rotation, { corners[3].toCoordsXY().toTileCentre(), 0 }); auto left = std::min({ screenCoords1.x, screenCoords2.x, screenCoords3.x, screenCoords4.x }) - 32; auto top = GetTallestVisibleTileTop(rotation, corners[0], corners[1], useViewClipping); diff --git a/src/openrct2/interface/Viewport.cpp b/src/openrct2/interface/Viewport.cpp index 02815e55da..6fab0970b8 100644 --- a/src/openrct2/interface/Viewport.cpp +++ b/src/openrct2/interface/Viewport.cpp @@ -101,7 +101,7 @@ namespace OpenRCT2 // If the start location was invalid // propagate the invalid location to the output. // This fixes a bug that caused the game to enter an infinite loop. - if (loc.IsNull()) + if (loc.isNull()) { return std::nullopt; } @@ -716,7 +716,7 @@ namespace OpenRCT2 auto ride = GetRide(peep.currentRide); if (ride != nullptr) { - auto xy = ride->overallView.ToTileCentre(); + auto xy = ride->overallView.toTileCentre(); CoordsXYZ coordFocus; coordFocus.x = xy.x; coordFocus.y = xy.y; @@ -1060,12 +1060,12 @@ namespace OpenRCT2 if (direction != nullptr) *direction = my_direction; - return { mapCoords->ToTileStart() }; + return { mapCoords->toTileStart() }; } [[nodiscard]] bool Viewport::ContainsTile(const TileCoordsXY coords) const noexcept { - const auto centreCoords = coords.ToCoordsXY() + CoordsXY(kCoordsXYHalfTile, kCoordsXYHalfTile); + const auto centreCoords = coords.toCoordsXY() + CoordsXY(kCoordsXYHalfTile, kCoordsXYHalfTile); const auto screenPos = Translate3DTo2DWithZ(rotation, CoordsXYZ{ centreCoords, 0 }); const auto left = screenPos.x - kScreenCoordsTileWidthHalf; const auto top = screenPos.y - (kMaxTileElementHeight * kCoordsZStep) - kScreenCoordsTileHeightHalf; @@ -1107,7 +1107,7 @@ namespace OpenRCT2 // Reverse of Translate3DTo2DWithZ CoordsXY ret = { coords.y - coords.x / 2 + z, coords.y + coords.x / 2 + z }; auto inverseRotation = DirectionFlipXAxis(rotation); - return ret.Rotate(inverseRotation); + return ret.rotate(inverseRotation); } /** @@ -1827,7 +1827,7 @@ namespace OpenRCT2 } auto start_vp_pos = myViewport->ScreenToViewportCoord(screenCoords); - CoordsXY cursorMapPos = info.Loc.ToTileCentre(); + CoordsXY cursorMapPos = info.Loc.toTileCentre(); // Iterates the cursor location to work out exactly where on the tile it is for (int32_t i = 0; i < 5; i++) @@ -1877,7 +1877,7 @@ namespace OpenRCT2 return std::nullopt; *quadrant = MapGetTileQuadrant(*mapCoords); - return mapCoords->ToTileStart(); + return mapCoords->toTileStart(); } /** @@ -1891,7 +1891,7 @@ namespace OpenRCT2 return std::nullopt; *quadrant = MapGetTileQuadrant(*mapCoords); - return mapCoords->ToTileStart(); + return mapCoords->toTileStart(); } /** @@ -1905,7 +1905,7 @@ namespace OpenRCT2 return std::nullopt; *side = MapGetTileSide(*mapCoords); - return mapCoords->ToTileStart(); + return mapCoords->toTileStart(); } /** @@ -1919,12 +1919,12 @@ namespace OpenRCT2 return std::nullopt; *side = MapGetTileSide(*mapCoords); - return mapCoords->ToTileStart(); + return mapCoords->toTileStart(); } ScreenCoordsXY Translate3DTo2DWithZ(int32_t rotation, const CoordsXYZ& pos) { - auto rotated = pos.Rotate(rotation); + auto rotated = pos.rotate(rotation); // Use right shift to avoid issues like #9301 return ScreenCoordsXY{ rotated.y - rotated.x, ((rotated.x + rotated.y) >> 1) - pos.z }; } diff --git a/src/openrct2/management/NewsItem.cpp b/src/openrct2/management/NewsItem.cpp index 50de83641e..b4f3357e4b 100644 --- a/src/openrct2/management/NewsItem.cpp +++ b/src/openrct2/management/NewsItem.cpp @@ -220,11 +220,11 @@ std::optional News::GetSubjectLocation(ItemType type, int32_t subject case ItemType::ride: { Ride* ride = GetRide(RideId::FromUnderlying(subject)); - if (ride == nullptr || ride->overallView.IsNull()) + if (ride == nullptr || ride->overallView.isNull()) { break; } - auto rideViewCentre = ride->overallView.ToTileCentre(); + auto rideViewCentre = ride->overallView.toTileCentre(); subjectLoc = CoordsXYZ{ rideViewCentre, TileElementHeight(rideViewCentre) }; break; } @@ -279,7 +279,7 @@ std::optional News::GetSubjectLocation(ItemType type, int32_t subject auto subjectUnsigned = static_cast(subject); auto subjectXY = CoordsXY{ static_cast(subjectUnsigned & 0xFFFF), static_cast(subjectUnsigned >> 16) }; - if (!subjectXY.IsNull()) + if (!subjectXY.isNull()) { subjectLoc = CoordsXYZ{ subjectXY, TileElementHeight(subjectXY) }; } diff --git a/src/openrct2/paint/Paint.cpp b/src/openrct2/paint/Paint.cpp index 6c23548fd3..2299a5a595 100644 --- a/src/openrct2/paint/Paint.cpp +++ b/src/openrct2/paint/Paint.cpp @@ -153,18 +153,18 @@ static constexpr CoordsXYZ RotateBoundBoxSize(const CoordsXYZ& bbSize, const uin case 0: output.x--; output.y--; - output = { output.Rotate(0), output.z }; + output = { output.rotate(0), output.z }; break; case 1: output.x--; - output = { output.Rotate(3), output.z }; + output = { output.rotate(3), output.z }; break; case 2: - output = { output.Rotate(2), output.z }; + output = { output.rotate(2), output.z }; break; case 3: output.y--; - output = { output.Rotate(1), output.z }; + output = { output.rotate(1), output.z }; break; } return output; @@ -183,7 +183,7 @@ static PaintStruct* CreateNormalPaintStruct( } const auto swappedRotation = DirectionFlipXAxis(session.CurrentRotation); - auto swappedRotCoord = CoordsXYZ{ offset.Rotate(swappedRotation), offset.z }; + auto swappedRotCoord = CoordsXYZ{ offset.rotate(swappedRotation), offset.z }; swappedRotCoord += session.SpritePosition; const auto imagePos = Translate3DTo2DWithZ(session.CurrentRotation, swappedRotCoord); @@ -193,7 +193,7 @@ static PaintStruct* CreateNormalPaintStruct( return nullptr; } - const auto rotBoundBoxOffset = CoordsXYZ{ boundBox.offset.Rotate(swappedRotation), boundBox.offset.z }; + const auto rotBoundBoxOffset = CoordsXYZ{ boundBox.offset.rotate(swappedRotation), boundBox.offset.z }; const auto rotBoundBoxSize = RotateBoundBoxSize(boundBox.length, session.CurrentRotation); auto* ps = session.AllocateNormalPaintEntry(); @@ -231,7 +231,7 @@ static PaintStruct* CreateNormalPaintStructHeight( } const auto swappedRotation = DirectionFlipXAxis(session.CurrentRotation); - auto swappedRotCoord = CoordsXYZ{ offset.Rotate(swappedRotation), offset.z + height }; + auto swappedRotCoord = CoordsXYZ{ offset.rotate(swappedRotation), offset.z + height }; swappedRotCoord += session.SpritePosition; const auto imagePos = Translate3DTo2DWithZ(session.CurrentRotation, swappedRotCoord); @@ -241,7 +241,7 @@ static PaintStruct* CreateNormalPaintStructHeight( return nullptr; } - const auto rotBoundBoxOffset = CoordsXYZ{ boundBox.offset.Rotate(swappedRotation), boundBox.offset.z + height }; + const auto rotBoundBoxOffset = CoordsXYZ{ boundBox.offset.rotate(swappedRotation), boundBox.offset.z + height }; const auto rotBoundBoxSize = RotateBoundBoxSize(boundBox.length, session.CurrentRotation); auto* ps = session.AllocateNormalPaintEntry(); @@ -275,23 +275,23 @@ void PaintSessionGenerateRotate(PaintSession& session) // Optimised modified version of ViewportPosToMapPos ScreenCoordsXY screenCoord = { floor2(session.rt.WorldX(), 32), floor2((session.rt.WorldY() - 16), 32) }; CoordsXY mapTile = { screenCoord.y - screenCoord.x / 2, screenCoord.y + screenCoord.x / 2 }; - mapTile = mapTile.Rotate(direction); + mapTile = mapTile.rotate(direction); if constexpr (direction & 1) { mapTile.y -= 16; } - mapTile = mapTile.ToTileStart(); + mapTile = mapTile.toTileStart(); uint16_t numVerticalTiles = (session.rt.WorldHeight() + 2128) >> 5; // Adjacent tiles to also check due to overlapping of sprites constexpr CoordsXY adjacentTiles[] = { - CoordsXY{ -32, 32 }.Rotate(direction), - CoordsXY{ 0, 32 }.Rotate(direction), - CoordsXY{ 32, 0 }.Rotate(direction), + CoordsXY{ -32, 32 }.rotate(direction), + CoordsXY{ 0, 32 }.rotate(direction), + CoordsXY{ 32, 0 }.rotate(direction), }; - constexpr CoordsXY nextVerticalTile = CoordsXY{ 32, 32 }.Rotate(direction); + constexpr CoordsXY nextVerticalTile = CoordsXY{ 32, 32 }.rotate(direction); for (; numVerticalTiles > 0; --numVerticalTiles) { diff --git a/src/openrct2/paint/tile_element/Paint.Surface.cpp b/src/openrct2/paint/tile_element/Paint.Surface.cpp index e48df864ed..f80f11ad0f 100644 --- a/src/openrct2/paint/tile_element/Paint.Surface.cpp +++ b/src/openrct2/paint/tile_element/Paint.Surface.cpp @@ -330,7 +330,7 @@ static void ViewportSurfaceSmoothenEdge( return; // The edge row consists of invisible grass tiles. Do not attempt to smooth with them. - if (MapIsEdge(self.tile_coords.ToCoordsXY()) || MapIsEdge(neighbour.tile_coords.ToCoordsXY())) + if (MapIsEdge(self.tile_coords.toCoordsXY()) || MapIsEdge(neighbour.tile_coords.toCoordsXY())) return; uint32_t maskImageBase = 0; @@ -436,7 +436,7 @@ static bool TileIsInsideClipView(const TileDescriptor& tile) if (tile.tile_element->getBaseZ() > gClipHeight * kCoordsZStep) return false; - auto coords = tile.tile_coords.ToCoordsXY(); + auto coords = tile.tile_coords.toCoordsXY(); if (coords.x < gClipSelectionA.x || coords.x > gClipSelectionB.x) return false; if (coords.y < gClipSelectionA.y || coords.y > gClipSelectionB.y) diff --git a/src/openrct2/peep/GuestPathfinding.cpp b/src/openrct2/peep/GuestPathfinding.cpp index 799daf81c4..ee0b9d2ee7 100644 --- a/src/openrct2/peep/GuestPathfinding.cpp +++ b/src/openrct2/peep/GuestPathfinding.cpp @@ -198,7 +198,7 @@ namespace OpenRCT2::PathFinding static int32_t PeepMoveOneTile(Direction direction, Peep& peep) { assert(DirectionValid(direction)); - auto newTile = CoordsXY{ CoordsXY{ peep.nextLoc } + CoordsDirectionDelta[direction] }.ToTileCentre(); + auto newTile = CoordsXY{ CoordsXY{ peep.nextLoc } + CoordsDirectionDelta[direction] }.toTileCentre(); if (newTile.x >= kMaximumMapSizeBig || newTile.y >= kMaximumMapSizeBig) { @@ -723,7 +723,7 @@ namespace OpenRCT2::PathFinding if (currentElementIsWide) { const Staff* staff = peep.as(); - if (staff != nullptr && staff->canIgnoreWideFlag(loc.ToCoordsXYZ(), currentTileElement)) + if (staff != nullptr && staff->canIgnoreWideFlag(loc.toCoordsXYZ(), currentTileElement)) currentElementIsWide = false; } @@ -745,7 +745,7 @@ namespace OpenRCT2::PathFinding auto* staff = peep.as(); if (staff != nullptr && staff->isMechanic()) { - nextInPatrolArea = staff->isLocationInPatrol(loc.ToCoordsXY()); + nextInPatrolArea = staff->isLocationInPatrol(loc.toCoordsXY()); if (inPatrolArea && !nextInPatrolArea) { /* The mechanic will leave his patrol area by taking @@ -850,7 +850,7 @@ namespace OpenRCT2::PathFinding if (pathElement->isWide()) { /* Check if staff can ignore this wide flag. */ - if (staff == nullptr || !staff->canIgnoreWideFlag(loc.ToCoordsXYZ(), tileElement)) + if (staff == nullptr || !staff->canIgnoreWideFlag(loc.toCoordsXYZ(), tileElement)) { searchResult = PathSearchResult::wide; found = true; @@ -1356,7 +1356,7 @@ namespace OpenRCT2::PathFinding // Clear pathfinding history TileCoordsXYZD nullPos; - nullPos.SetNull(); + nullPos.setNull(); std::fill(std::begin(peep.pathfindHistory), std::end(peep.pathfindHistory), nullPos); @@ -1408,7 +1408,7 @@ namespace OpenRCT2::PathFinding for (auto& entry : state.history) { - entry.location.SetNull(); + entry.location.setNull(); entry.direction = kInvalidDirection; } @@ -1635,7 +1635,7 @@ namespace OpenRCT2::PathFinding if (chosenSpawn == 0xFF) return GuestPathfindAimless(peep, edges); - const auto peepSpawnLoc = getGameState().peepSpawns[chosenSpawn].ToTileStart(); + const auto peepSpawnLoc = getGameState().peepSpawns[chosenSpawn].toTileStart(); Direction direction = peepSpawnLoc.direction; if (peepSpawnLoc.x == peep.nextLoc.x && peepSpawnLoc.y == peep.nextLoc.y) @@ -1661,7 +1661,7 @@ namespace OpenRCT2::PathFinding if (peep.peepFlags.has(PeepFlag::parkEntranceChosen)) { entranceGoal = peep.pathfindGoal; - auto* entranceElement = MapGetParkEntranceElementAt(entranceGoal.ToCoordsXYZ(), false); + auto* entranceElement = MapGetParkEntranceElementAt(entranceGoal.toCoordsXYZ(), false); // If entrance no longer exists, choose a new one if (entranceElement == nullptr) { @@ -2051,7 +2051,7 @@ namespace OpenRCT2::PathFinding for (const auto& station : ride->getStations()) { // Skip if stationNum has no entrance (so presumably an exit only station) - if (station.entrance.IsNull()) + if (station.entrance.isNull()) continue; const auto stationIndex = ride->getStationIndex(&station); diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index c7e5759de4..aa3a2c1f21 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -868,11 +868,11 @@ namespace OpenRCT2::RCT1 // Station if (src->overallView.IsNull()) { - dst->overallView.SetNull(); + dst->overallView.setNull(); } else { - dst->overallView = TileCoordsXY{ src->overallView.x, src->overallView.y }.ToCoordsXY(); + dst->overallView = TileCoordsXY{ src->overallView.x, src->overallView.y }.toCoordsXY(); } for (StationIndex::UnderlyingType i = 0; i < Limits::kMaxStationsPerRide; i++) @@ -880,12 +880,12 @@ namespace OpenRCT2::RCT1 auto& dstStation = dst->getStation(StationIndex::FromUnderlying(i)); if (src->stationStarts[i].IsNull()) { - dstStation.start.SetNull(); + dstStation.start.setNull(); } else { auto tileStartLoc = TileCoordsXY{ src->stationStarts[i].x, src->stationStarts[i].y }; - dstStation.start = tileStartLoc.ToCoordsXY(); + dstStation.start = tileStartLoc.toCoordsXY(); } dstStation.setBaseZ(src->stationHeights[i] * Limits::kCoordsZStep); dstStation.length = src->stationLengths[i]; @@ -895,12 +895,12 @@ namespace OpenRCT2::RCT1 // Direction is fixed later. if (src->entrances[i].IsNull()) - dstStation.entrance.SetNull(); + dstStation.entrance.setNull(); else dstStation.entrance = { src->entrances[i].x, src->entrances[i].y, src->stationHeights[i] / 2, 0 }; if (src->exits[i].IsNull()) - dstStation.exit.SetNull(); + dstStation.exit.setNull(); else dstStation.exit = { src->exits[i].x, src->exits[i].y, src->stationHeights[i] / 2, 0 }; @@ -915,10 +915,10 @@ namespace OpenRCT2::RCT1 for (int32_t i = Limits::kMaxStationsPerRide; i < OpenRCT2::Limits::kMaxStationsPerRide; i++) { auto& dstStation = dst->getStation(StationIndex::FromUnderlying(i)); - dstStation.start.SetNull(); + dstStation.start.setNull(); dstStation.trainAtStation = RideStation::kNoTrain; - dstStation.entrance.SetNull(); - dstStation.exit.SetNull(); + dstStation.entrance.setNull(); + dstStation.exit.setNull(); dstStation.lastPeepInQueue = EntityId::GetNull(); } @@ -1051,7 +1051,7 @@ namespace OpenRCT2::RCT1 if (src->curTestTrackLocation.IsNull()) { - dst->curTestTrackLocation.SetNull(); + dst->curTestTrackLocation.setNull(); } else { @@ -2542,7 +2542,7 @@ namespace OpenRCT2::RCT1 if ((element->asEntrance()->getSequenceIndex()) != ParkEntranceSequence::centre) continue; - CoordsXYZD entrance = { TileCoordsXY(it.x, it.y).ToCoordsXY(), element->getBaseZ(), element->getDirection() }; + CoordsXYZD entrance = { TileCoordsXY(it.x, it.y).toCoordsXY(), element->getBaseZ(), element->getDirection() }; park.entrances.push_back(entrance); } } @@ -2877,13 +2877,13 @@ namespace OpenRCT2::RCT1 dst->current_station = StationIndex::FromUnderlying(src->CurrentStation); if (src->BoatLocation.IsNull() || ride->mode != RideMode::boatHire || statusSrc != ::Vehicle::Status::travellingBoat) { - dst->BoatLocation.SetNull(); + dst->BoatLocation.setNull(); dst->SetTrackDirection(src->GetTrackDirection()); dst->SetTrackType(RCT1TrackTypeToOpenRCT2(src->GetTrackType(), ride->type)); } else { - dst->BoatLocation = TileCoordsXY{ src->BoatLocation.x, src->BoatLocation.y }.ToCoordsXY(); + dst->BoatLocation = TileCoordsXY{ src->BoatLocation.x, src->BoatLocation.y }.toCoordsXY(); dst->SetTrackDirection(0); dst->SetTrackType(TrackElemType::flat); } diff --git a/src/openrct2/rct1/T4Importer.cpp b/src/openrct2/rct1/T4Importer.cpp index 31776a8916..a90ed82375 100644 --- a/src/openrct2/rct1/T4Importer.cpp +++ b/src/openrct2/rct1/T4Importer.cpp @@ -268,7 +268,7 @@ namespace OpenRCT2::RCT1 td->statistics.ratings.intensity = td4Base.Intensity * kTD46RatingsMultiplier; td->statistics.ratings.nausea = td4Base.Nausea * kTD46RatingsMultiplier; td->statistics.upkeepCost = ToMoney64(td4Base.UpkeepCost); - td->statistics.spaceRequired.SetNull(); + td->statistics.spaceRequired.setNull(); td->operation.liftHillSpeed = 5; td->operation.numCircuits = 1; td->operation.operationSetting = std::min( diff --git a/src/openrct2/rct12/ScenarioPatcher.cpp b/src/openrct2/rct12/ScenarioPatcher.cpp index 03278091f1..2e381f9a57 100644 --- a/src/openrct2/rct12/ScenarioPatcher.cpp +++ b/src/openrct2/rct12/ScenarioPatcher.cpp @@ -212,7 +212,7 @@ static void FixLandOwnershipTilesWithOwnership(const std::spansetOwnership(ownership); - Park::UpdateFencesAroundTile(tile.ToCoordsXY()); + Park::UpdateFencesAroundTile(tile.toCoordsXY()); } } } @@ -487,7 +487,7 @@ static void RemoveTileElements(const json_t& scenarioPatch) for (const auto& tile : coordinatesVector) { - auto tileElement = MapGetNthElementAt(tile.ToCoordsXY(), elementIndex); + auto tileElement = MapGetNthElementAt(tile.toCoordsXY(), elementIndex); if (tileElement == nullptr) { Guard::Assert(false, "Invalid Nth element at tile"); @@ -495,7 +495,7 @@ static void RemoveTileElements(const json_t& scenarioPatch) } else { - ClearElementAt(tile.ToCoordsXY(), &tileElement); + ClearElementAt(tile.toCoordsXY(), &tileElement); } } } @@ -530,15 +530,15 @@ static void SwapRideEntranceAndExit(RideId rideId) station.entrance = entranceCoords; station.exit = exitCoords; - auto entranceElement = MapGetRideExitElementAt(entranceCoords.ToCoordsXYZD(), false); + auto entranceElement = MapGetRideExitElementAt(entranceCoords.toCoordsXYZD(), false); entranceElement->setEntranceType(EntranceType::rideEntrance); - auto exitElement = MapGetRideEntranceElementAt(exitCoords.ToCoordsXYZD(), false); + auto exitElement = MapGetRideEntranceElementAt(exitCoords.toCoordsXYZD(), false); exitElement->setEntranceType(EntranceType::rideExit); // Trigger footpath update FootpathQueueChainReset(); FootpathConnectEdges( - entranceCoords.ToCoordsXY(), reinterpret_cast(entranceElement), + entranceCoords.toCoordsXY(), reinterpret_cast(entranceElement), { CommandFlag::apply, CommandFlag::allowDuringPaused }); FootpathUpdateQueueChains(); } @@ -739,7 +739,7 @@ static void ApplyPathFixes(const json_t& scenarioPatch) if (direction != kInvalidDirection) slope = { FootpathSlopeType::sloped, direction }; auto footpathPlaceAction = GameActions::FootpathPlaceAction( - coordinate.ToCoordsXYZ(), slope, surfaceObjIndex, railingsObjIndex, direction, constructionFlags); + coordinate.toCoordsXYZ(), slope, surfaceObjIndex, railingsObjIndex, direction, constructionFlags); auto& gameState = getGameState(); auto result = footpathPlaceAction.Execute(gameState, gameState.park); if (result.error != GameActions::Status::ok) diff --git a/src/openrct2/rct2/S6Importer.cpp b/src/openrct2/rct2/S6Importer.cpp index 5ba779c4f3..8055ec9580 100644 --- a/src/openrct2/rct2/S6Importer.cpp +++ b/src/openrct2/rct2/S6Importer.cpp @@ -749,12 +749,12 @@ namespace OpenRCT2::RCT2 if (src->overallView.IsNull()) { - dst->overallView.SetNull(); + dst->overallView.setNull(); } else { auto tileLoc = TileCoordsXY(src->overallView.x, src->overallView.y); - dst->overallView = tileLoc.ToCoordsXY(); + dst->overallView = tileLoc.toCoordsXY(); } for (StationIndex::UnderlyingType i = 0; i < Limits::kMaxStationsPerRide; i++) @@ -764,12 +764,12 @@ namespace OpenRCT2::RCT2 if (src->stationStarts[i].IsNull()) { - destStation.start.SetNull(); + destStation.start.setNull(); } else { auto tileStartLoc = TileCoordsXY(src->stationStarts[i].x, src->stationStarts[i].y); - destStation.start = tileStartLoc.ToCoordsXY(); + destStation.start = tileStartLoc.toCoordsXY(); } destStation.height = src->stationHeights[i]; destStation.length = src->stationLength[i]; @@ -778,12 +778,12 @@ namespace OpenRCT2::RCT2 // Direction is fixed later. if (src->entrances[i].IsNull()) - destStation.entrance.SetNull(); + destStation.entrance.setNull(); else destStation.entrance = { src->entrances[i].x, src->entrances[i].y, src->stationHeights[i], 0 }; if (src->exits[i].IsNull()) - destStation.exit.SetNull(); + destStation.exit.setNull(); else destStation.exit = { src->exits[i].x, src->exits[i].y, src->stationHeights[i], 0 }; @@ -802,10 +802,10 @@ namespace OpenRCT2::RCT2 StationIndex stationIndex = StationIndex::FromUnderlying(i); auto& destStation = dst->getStation(stationIndex); - destStation.start.SetNull(); + destStation.start.setNull(); destStation.trainAtStation = RideStation::kNoTrain; - destStation.entrance.SetNull(); - destStation.exit.SetNull(); + destStation.entrance.setNull(); + destStation.exit.setNull(); destStation.lastPeepInQueue = EntityId::GetNull(); } @@ -858,7 +858,7 @@ namespace OpenRCT2::RCT2 if (src->curTestTrackLocation.IsNull()) { - dst->curTestTrackLocation.SetNull(); + dst->curTestTrackLocation.setNull(); } else { @@ -1724,7 +1724,7 @@ namespace OpenRCT2::RCT2 dst->peepFlags.holder = src->PeepFlags; if (isNullLocation(src->PathfindGoal)) { - dst->pathfindGoal.SetNull(); + dst->pathfindGoal.setNull(); dst->pathfindGoal.direction = kInvalidDirection; } else @@ -1736,7 +1736,7 @@ namespace OpenRCT2::RCT2 { if (isNullLocation(src->PathfindHistory[i])) { - dst->pathfindHistory[i].SetNull(); + dst->pathfindHistory[i].setNull(); dst->pathfindHistory[i].direction = kInvalidDirection; } else @@ -1999,7 +1999,7 @@ namespace OpenRCT2::RCT2 if (src->BoatLocation.IsNull() || static_cast(ride.mode) != RideMode::boatHire || src->Status != static_cast(::Vehicle::Status::travellingBoat)) { - dst->BoatLocation.SetNull(); + dst->BoatLocation.setNull(); dst->SetTrackDirection(src->GetTrackDirection()); // Skipping OriginalRideClass::wildMouse - this is handled specifically. auto originalClass = IsFlatRide(src->Ride) ? OriginalRideClass::flatRide : OriginalRideClass::regular; @@ -2026,7 +2026,7 @@ namespace OpenRCT2::RCT2 } else { - dst->BoatLocation = TileCoordsXY{ src->BoatLocation.x, src->BoatLocation.y }.ToCoordsXY(); + dst->BoatLocation = TileCoordsXY{ src->BoatLocation.x, src->BoatLocation.y }.toCoordsXY(); dst->SetTrackDirection(0); dst->SetTrackType(TrackElemType::flat); } diff --git a/src/openrct2/rct2/T6Exporter.cpp b/src/openrct2/rct2/T6Exporter.cpp index 77cdc572c1..57f6f9870b 100644 --- a/src/openrct2/rct2/T6Exporter.cpp +++ b/src/openrct2/rct2/T6Exporter.cpp @@ -197,7 +197,7 @@ namespace OpenRCT2::RCT2 tempStream.WriteValue( entranceElement.location.z == -1 ? static_cast(0x80) : entranceElement.location.z); tempStream.WriteValue(entranceElement.location.direction | (entranceElement.isExit << 7)); - auto xy = entranceElement.location.ToCoordsXY(); + auto xy = entranceElement.location.toCoordsXY(); tempStream.WriteValue(xy.x); tempStream.WriteValue(xy.y); } diff --git a/src/openrct2/rct2/T6Importer.cpp b/src/openrct2/rct2/T6Importer.cpp index 8f54ba4d79..3d98db060b 100644 --- a/src/openrct2/rct2/T6Importer.cpp +++ b/src/openrct2/rct2/T6Importer.cpp @@ -127,7 +127,7 @@ namespace OpenRCT2::RCT2 TrackDesignSceneryElement sceneryElement{}; sceneryElement.sceneryObject = ObjectEntryDescriptor(t6SceneryElement.SceneryObject); TileCoordsXYZ tileCoords = { t6SceneryElement.x, t6SceneryElement.y, t6SceneryElement.z }; - sceneryElement.loc = tileCoords.ToCoordsXYZ(); + sceneryElement.loc = tileCoords.toCoordsXYZ(); sceneryElement.flags = t6SceneryElement.Flags; sceneryElement.primaryColour = t6SceneryElement.PrimaryColour; sceneryElement.secondaryColour = t6SceneryElement.SecondaryColour; diff --git a/src/openrct2/ride/CableLift.cpp b/src/openrct2/ride/CableLift.cpp index 055c68a755..a6e958fa73 100644 --- a/src/openrct2/ride/CableLift.cpp +++ b/src/openrct2/ride/CableLift.cpp @@ -83,7 +83,7 @@ Vehicle* CableLiftSegmentCreate( current->SetState(Vehicle::Status::movingToEndOfStation, 0); current->num_peeps = 0; current->next_free_seat = 0; - current->BoatLocation.SetNull(); + current->BoatLocation.setNull(); return current; } diff --git a/src/openrct2/ride/Ride.cpp b/src/openrct2/ride/Ride.cpp index d6ae864d87..bb894c162e 100644 --- a/src/openrct2/ride/Ride.cpp +++ b/src/openrct2/ride/Ride.cpp @@ -337,7 +337,7 @@ namespace OpenRCT2 { int32_t queueLength = 0; for (const auto& station : stations) - if (!station.entrance.IsNull()) + if (!station.entrance.isNull()) queueLength += station.queueLength; return queueLength; } @@ -346,7 +346,7 @@ namespace OpenRCT2 { uint8_t queueTime = 0; for (const auto& station : stations) - if (!station.entrance.IsNull()) + if (!station.entrance.isNull()) queueTime = std::max(queueTime, station.queueTime); return static_cast(queueTime); } @@ -766,7 +766,7 @@ namespace OpenRCT2 StationIndex::UnderlyingType nullStationsSeen{ 0 }; for (size_t i = 0; i < in.ToUnderlying(); i++) { - if (stations[i].start.IsNull()) + if (stations[i].start.isNull()) { nullStationsSeen++; } @@ -884,10 +884,10 @@ namespace OpenRCT2 if (oldChairliftBullwheelRotation == ride.speed / 8) return; - auto bullwheelLoc = ride.chairliftBullwheelLocation[0].ToCoordsXYZ(); + auto bullwheelLoc = ride.chairliftBullwheelLocation[0].toCoordsXYZ(); MapInvalidateTileZoom1({ bullwheelLoc, bullwheelLoc.z, bullwheelLoc.z + (4 * kCoordsZStep) }); - bullwheelLoc = ride.chairliftBullwheelLocation[1].ToCoordsXYZ(); + bullwheelLoc = ride.chairliftBullwheelLocation[1].toCoordsXYZ(); MapInvalidateTileZoom1({ bullwheelLoc, bullwheelLoc.z, bullwheelLoc.z + (4 * kCoordsZStep) }); } @@ -987,7 +987,7 @@ namespace OpenRCT2 // Invalidate something related to station start for (int32_t i = 0; i < Limits::kMaxStationsPerRide; i++) { - if (ride.stations[i].start.IsNull()) + if (ride.stations[i].start.isNull()) continue; auto startLoc = ride.stations[i].start; @@ -1494,21 +1494,21 @@ namespace OpenRCT2 // Get either exit position or entrance position if there is no exit const auto& station = ride.getStation(stationIndex); TileCoordsXYZD location = station.exit; - if (location.IsNull()) + if (location.isNull()) { location = station.entrance; - if (station.entrance.IsNull()) + if (station.entrance.isNull()) return nullptr; } // Get station start track element and position - auto mapLocation = location.ToCoordsXYZ(); + auto mapLocation = location.toCoordsXYZ(); TileElement* tileElement = RideGetStationExitElement(mapLocation); if (tileElement == nullptr) return nullptr; // Set x,y to centre of the station exit for the mechanic search. - auto centreMapLocation = mapLocation.ToTileCentre(); + auto centreMapLocation = mapLocation.toTileCentre(); return FindClosestMechanic(centreMapLocation, forInspection); } @@ -1547,7 +1547,7 @@ namespace OpenRCT2 continue; } - auto location = entrancePosition.ToTileStart(); + auto location = entrancePosition.toTileStart(); if (MapIsLocationInPark(location)) if (!peep->isLocationInPatrol(location)) continue; @@ -1668,7 +1668,7 @@ namespace OpenRCT2 return; } - CoordsXYZ rideCoords = ride.getStation().getStart().ToTileCentre(); + CoordsXYZ rideCoords = ride.getStation().getStart().toTileCentre(); const auto sampleRate = RideMusicSampleRate(ride); @@ -1706,7 +1706,7 @@ namespace OpenRCT2 return; } - CoordsXYZ rideCoords = ride.getStation().getStart().ToTileCentre(); + CoordsXYZ rideCoords = ride.getStation().getStart().toTileCentre(); int32_t sampleRate = RideMusicSampleRate(ride); @@ -2035,7 +2035,7 @@ namespace OpenRCT2 */ static bool RideEntranceExitIsReachable(const TileCoordsXYZD& coordinates) { - if (coordinates.IsNull()) + if (coordinates.isNull()) return true; TileCoordsXYZ loc{ coordinates.x, coordinates.y, coordinates.z }; @@ -2052,10 +2052,10 @@ namespace OpenRCT2 auto entrance = station.entrance; auto exit = station.exit; - if (station_start.IsNull()) + if (station_start.isNull()) continue; - if (!entrance.IsNull() && !RideEntranceExitIsReachable(entrance)) + if (!entrance.isNull() && !RideEntranceExitIsReachable(entrance)) { // name of ride is parameter of the format string Formatter ft; @@ -2067,7 +2067,7 @@ namespace OpenRCT2 ride.connectedMessageThrottle = 3; } - if (!exit.IsNull() && !RideEntranceExitIsReachable(exit)) + if (!exit.isNull() && !RideEntranceExitIsReachable(exit)) { // name of ride is parameter of the format string Formatter ft; @@ -2084,7 +2084,7 @@ namespace OpenRCT2 static void RideShopConnected(const Ride& ride) { auto shopLoc = TileCoordsXY(ride.getStation().start); - if (shopLoc.IsNull()) + if (shopLoc.isNull()) return; TrackElement* trackElement = nullptr; @@ -2217,7 +2217,7 @@ namespace OpenRCT2 // Get the queue length int32_t queueLength = 0; const auto stationIndex = entranceElement.getStationIndex(); - if (!ride->getStation(stationIndex).entrance.IsNull()) + if (!ride->getStation(stationIndex).entrance.isNull()) { queueLength = ride->getStation(stationIndex).queueLength; } @@ -2304,7 +2304,7 @@ namespace OpenRCT2 uint16_t numStations = 0; for (const auto& station : ride.getStations()) { - if (!station.start.IsNull()) + if (!station.start.isNull()) { numStations++; } @@ -2377,22 +2377,22 @@ namespace OpenRCT2 uint8_t exit = 0; for (const auto& station : ride->getStations()) { - if (station.start.IsNull()) + if (station.start.isNull()) continue; - if (!station.entrance.IsNull()) + if (!station.entrance.isNull()) { entrance = 1; } - if (!station.exit.IsNull()) + if (!station.exit.isNull()) { exit = 1; } // If station start and no entrance/exit // Sets same error message as no entrance - if (station.exit.IsNull() && station.entrance.IsNull()) + if (station.exit.isNull() && station.entrance.isNull()) { entrance = 0; break; @@ -2420,10 +2420,10 @@ namespace OpenRCT2 { for (const auto& station : stations) { - if (station.entrance.IsNull()) + if (station.entrance.isNull()) continue; - auto mapLocation = station.entrance.ToCoordsXYZ(); + auto mapLocation = station.entrance.toCoordsXYZ(); // This will fire for every entrance on this x, y and z, regardless whether that actually belongs to // the ride or not. @@ -2764,21 +2764,21 @@ namespace OpenRCT2 TileCoordsXYZD* position = positions; for (const auto& station : ride.getStations()) { - if (!station.entrance.IsNull()) + if (!station.entrance.isNull()) { *position++ = station.entrance; } - if (!station.exit.IsNull()) + if (!station.exit.isNull()) { *position++ = station.exit; } } - position->SetNull(); + position->setNull(); // Enumerate entrance and exit positions - for (position = positions; !position->IsNull(); position++) + for (position = positions; !position->isNull(); position++) { - auto entranceExitMapPos = position->ToCoordsXYZ(); + auto entranceExitMapPos = position->toCoordsXYZ(); TileElement* tileElement = MapGetFirstElementAt(*position); do @@ -3166,7 +3166,7 @@ namespace OpenRCT2 // Loc6DDD5E: vehicle->num_peeps = 0; vehicle->next_free_seat = 0; - vehicle->BoatLocation.SetNull(); + vehicle->BoatLocation.setNull(); return vehicle; } @@ -3524,7 +3524,7 @@ namespace OpenRCT2 for (const auto& station : ride.getStations()) { CoordsXYZ trackStart = station.getStart(); - if (trackStart.IsNull()) + if (trackStart.isNull()) continue; TileElement* tileElement = MapGetTrackElementAtOfType(trackStart, TrackElemType::endStation); @@ -3695,17 +3695,17 @@ namespace OpenRCT2 const RideStation* incompleteStation = nullptr; for (const auto& station : stations) { - if (station.start.IsNull()) + if (station.start.isNull()) continue; - if (station.entrance.IsNull()) + if (station.entrance.isNull()) { entranceOrExit = WC_RIDE_CONSTRUCTION__WIDX_ENTRANCE; incompleteStation = &station; break; } - if (station.exit.IsNull()) + if (station.exit.isNull()) { entranceOrExit = WC_RIDE_CONSTRUCTION__WIDX_EXIT; incompleteStation = &station; @@ -4723,7 +4723,7 @@ namespace OpenRCT2 std::optional result; for (const auto& station : ride.getStations()) { - if (!station.start.IsNull()) + if (!station.start.isNull()) { if (!result.has_value() || station.length < result.value()) { @@ -4748,7 +4748,7 @@ namespace OpenRCT2 for (const auto& station : ride.getStations()) { trackStart = station.getStart(); - if (trackStart.IsNull()) + if (trackStart.isNull()) continue; tileElement = MapGetFirstElementAt(trackStart); @@ -5187,7 +5187,7 @@ namespace OpenRCT2 for (const auto& station : ride.getStations()) { auto stationStart = station.getStart(); - if (!stationStart.IsNull()) + if (!stationStart.isNull()) { /* Get the map element for the station start. */ TileElement* stationElement = GetStationPlatform({ stationStart, stationStart.z + 0 }); @@ -5336,9 +5336,9 @@ namespace OpenRCT2 bool fixExit = false; // Skip if the station has no entrance - if (!entranceLoc.IsNull()) + if (!entranceLoc.isNull()) { - const EntranceElement* entranceElement = MapGetRideEntranceElementAt(entranceLoc.ToCoordsXYZD(), false); + const EntranceElement* entranceElement = MapGetRideEntranceElementAt(entranceLoc.toCoordsXYZD(), false); if (entranceElement == nullptr || entranceElement->getRideIndex() != ride.id || entranceElement->getStationIndex() != stationIndex) @@ -5351,9 +5351,9 @@ namespace OpenRCT2 } } - if (!exitLoc.IsNull()) + if (!exitLoc.isNull()) { - const EntranceElement* entranceElement = MapGetRideExitElementAt(exitLoc.ToCoordsXYZD(), false); + const EntranceElement* entranceElement = MapGetRideExitElementAt(exitLoc.toCoordsXYZD(), false); if (entranceElement == nullptr || entranceElement->getRideIndex() != ride.id || entranceElement->getStationIndex() != stationIndex) @@ -5445,12 +5445,12 @@ namespace OpenRCT2 if (fixEntrance && !alreadyFoundEntrance) { - station.entrance.SetNull(); + station.entrance.setNull(); LOG_VERBOSE("Cleared disconnected entrance of ride %d, station %d.", ride.id, stationIndex); } if (fixExit && !alreadyFoundExit) { - station.exit.SetNull(); + station.exit.setNull(); LOG_VERBOSE("Cleared disconnected exit of ride %d, station %d.", ride.id, stationIndex); } } @@ -5464,7 +5464,7 @@ namespace OpenRCT2 { for (tilePos.y = 0; tilePos.y < gameState.mapSize.y; ++tilePos.y) { - for (auto* entrance : TileElementsView(tilePos.ToCoordsXY())) + for (auto* entrance : TileElementsView(tilePos.toCoordsXY())) { const bool isRideEntranceExit = entrance->getEntranceType() == EntranceType::rideEntrance || entrance->getEntranceType() == EntranceType::rideExit; diff --git a/src/openrct2/ride/RideConstruction.cpp b/src/openrct2/ride/RideConstruction.cpp index 8cae78a8c0..d36568c874 100644 --- a/src/openrct2/ride/RideConstruction.cpp +++ b/src/openrct2/ride/RideConstruction.cpp @@ -465,8 +465,8 @@ namespace OpenRCT2 auto exitPosition = CoordsXYZD{ 0, 0, 0, kInvalidDirection }; if (!stationIndex.IsNull()) { - auto location = getStation(stationIndex).exit.ToCoordsXYZD(); - if (!location.IsNull()) + auto location = getStation(stationIndex).exit.toCoordsXYZD(); + if (!location.isNull()) { auto direction = DirectionReverse(location.direction); exitPosition = location; @@ -496,7 +496,7 @@ namespace OpenRCT2 if (exitPosition.direction == kInvalidDirection) { - CoordsXYZ newLoc = { peep->nextLoc.ToTileCentre(), peep->nextLoc.z }; + CoordsXYZ newLoc = { peep->nextLoc.toTileCentre(), peep->nextLoc.z }; if (peep->getNextIsSloped()) newLoc.z += kCoordsZStep; newLoc.z++; @@ -526,7 +526,7 @@ namespace OpenRCT2 if (exitPosition.direction == kInvalidDirection) { - CoordsXYZ newLoc = { peep->nextLoc.ToTileCentre(), peep->nextLoc.z }; + CoordsXYZ newLoc = { peep->nextLoc.toTileCentre(), peep->nextLoc.z }; if (peep->getNextIsSloped()) newLoc.z += kCoordsZStep; newLoc.z++; @@ -556,14 +556,14 @@ namespace OpenRCT2 { for (tilePos.y = 0; tilePos.y < gameState.mapSize.y; ++tilePos.y) { - for (auto* trackElement : TileElementsView(tilePos.ToCoordsXY())) + for (auto* trackElement : TileElementsView(tilePos.toCoordsXY())) { if (trackElement->getRideIndex() != ride.id) continue; // Unblock footpath element that is at same position auto* footpathElement = MapGetFootpathElement( - TileCoordsXYZ{ tilePos, trackElement->baseHeight }.ToCoordsXYZ()); + TileCoordsXYZ{ tilePos, trackElement->baseHeight }.toCoordsXYZ()); if (footpathElement == nullptr) continue; @@ -613,7 +613,7 @@ namespace OpenRCT2 CoordsXY offsets = { trackBlock.x, trackBlock.y }; CoordsXY newCoords = location; - newCoords += offsets.Rotate(DirectionReverse(mapDirection)); + newCoords += offsets.rotate(DirectionReverse(mapDirection)); auto retCoordsXYZ = CoordsXYZ{ newCoords.x, newCoords.y, location.z - trackBlock.z }; @@ -627,7 +627,7 @@ namespace OpenRCT2 const auto& block = ted.sequenceData.sequences[i].clearance; CoordsXY cur = { retCoordsXYZ }; offsets = { block.x, block.y }; - cur += offsets.Rotate(mapDirection); + cur += offsets.rotate(mapDirection); int32_t cur_z = start_z + block.z; MapInvalidateTileFull(cur); @@ -727,7 +727,7 @@ namespace OpenRCT2 case RideConstructionState::back: if (_currentTrackSelectionFlags.has(TrackSelectionFlag::arrow)) { - MapInvalidateTileFull(_currentTrackBegin.ToTileStart()); + MapInvalidateTileFull(_currentTrackBegin.toTileStart()); } RideConstructionRemoveGhosts(); break; @@ -1394,7 +1394,7 @@ namespace OpenRCT2 // find the stations of the ride to begin stepping over track elements from for (const auto& station : stations) { - if (station.start.IsNull()) + if (station.start.isNull()) continue; CoordsXYZ location = station.getStart(); @@ -1464,7 +1464,7 @@ namespace OpenRCT2 for (uint8_t i = 0; i < ted.sequenceData.numSequences; i++) { const auto& block = ted.sequenceData.sequences[i].clearance; - CoordsXYZ blockLocation = location + CoordsXYZ{ CoordsXY{ block.x, block.y }.Rotate(direction), 0 }; + CoordsXYZ blockLocation = location + CoordsXYZ{ CoordsXY{ block.x, block.y }.rotate(direction), 0 }; bool trackFound = false; tileElement = MapGetFirstElementAt(blockLocation); @@ -1500,16 +1500,16 @@ namespace OpenRCT2 sfl::static_vector locations; for (auto& station : stations) { - if (!station.entrance.IsNull()) + if (!station.entrance.isNull()) { locations.push_back(station.entrance); - station.entrance.SetNull(); + station.entrance.setNull(); } - if (!station.exit.IsNull()) + if (!station.exit.isNull()) { locations.push_back(station.exit); - station.exit.SetNull(); + station.exit.setNull(); } } @@ -1537,7 +1537,7 @@ namespace OpenRCT2 continue; } // if it's not a duplicate location - CoordsXY location = locationCoords.ToCoordsXY(); + CoordsXY location = locationCoords.toCoordsXY(); TileElement* tileElement = MapGetFirstElementAt(location); if (tileElement == nullptr) @@ -1600,7 +1600,7 @@ namespace OpenRCT2 if (tileElement->asEntrance()->getEntranceType() == EntranceType::rideExit) { // if the location is already set for this station, big problem! - if (!station.exit.IsNull()) + if (!station.exit.isNull()) break; // set the station's exit location to this one CoordsXYZD loc = { location, station.getBaseZ(), tileElement->getDirection() }; @@ -1609,7 +1609,7 @@ namespace OpenRCT2 else { // if the location is already set for this station, big problem! - if (!station.entrance.IsNull()) + if (!station.entrance.isNull()) break; // set the station's entrance location to this one CoordsXYZD loc = { location, station.getBaseZ(), tileElement->getDirection() }; @@ -1693,15 +1693,15 @@ namespace OpenRCT2 for (auto& station : ride.getStations()) { - if (station.start.IsNull()) + if (station.start.isNull()) { continue; } - if (station.entrance.IsNull()) + if (station.entrance.isNull()) { return { false, STR_ENTRANCE_NOT_YET_BUILT }; } - if (station.exit.IsNull()) + if (station.exit.isNull()) { return { false, STR_EXIT_NOT_YET_BUILT }; } diff --git a/src/openrct2/ride/RideRatings.cpp b/src/openrct2/ride/RideRatings.cpp index 09d415d544..19d05d7b73 100644 --- a/src/openrct2/ride/RideRatings.cpp +++ b/src/openrct2/ride/RideRatings.cpp @@ -395,7 +395,7 @@ namespace OpenRCT2 { auto entranceIndex = tileElement->asTrack()->getStationIndex(); state.StationFlags &= ~RIDE_RATING_STATION_FLAG_NO_ENTRANCE; - if (ride->getStation(entranceIndex).entrance.IsNull()) + if (ride->getStation(entranceIndex).entrance.isNull()) { state.StationFlags |= RIDE_RATING_STATION_FLAG_NO_ENTRANCE; } @@ -543,10 +543,10 @@ namespace OpenRCT2 for (auto& station : ride->getStations()) { - if (!station.start.IsNull()) + if (!station.start.isNull()) { state.StationFlags &= ~RIDE_RATING_STATION_FLAG_NO_ENTRANCE; - if (station.entrance.IsNull()) + if (station.entrance.isNull()) { state.StationFlags |= RIDE_RATING_STATION_FLAG_NO_ENTRANCE; } @@ -1763,7 +1763,7 @@ namespace OpenRCT2 const auto& rtd = ride.getRideTypeDescriptor(); if (rtd.specialType == RtdSpecialType::maze) { - location = ride.getStation().entrance.ToCoordsXY(); + location = ride.getStation().entrance.toCoordsXY(); } else { diff --git a/src/openrct2/ride/Station.cpp b/src/openrct2/ride/Station.cpp index fb4b1d4d3b..928e5bcf91 100644 --- a/src/openrct2/ride/Station.cpp +++ b/src/openrct2/ride/Station.cpp @@ -34,7 +34,7 @@ namespace OpenRCT2 */ void RideUpdateStation(Ride& ride, StationIndex stationIndex) { - if (ride.getStation(stationIndex).start.IsNull()) + if (ride.getStation(stationIndex).start.isNull()) return; switch (ride.mode) @@ -381,7 +381,7 @@ namespace OpenRCT2 { for (const auto& station : ride.getStations()) { - if (!station.exit.IsNull()) + if (!station.exit.isNull()) { return ride.getStationIndex(&station); } @@ -393,7 +393,7 @@ namespace OpenRCT2 { for (const auto& station : ride.getStations()) { - if (!station.start.IsNull()) + if (!station.start.isNull()) { return ride.getStationIndex(&station); } @@ -405,7 +405,7 @@ namespace OpenRCT2 { for (const auto& station : ride.getStations()) { - if (station.start.IsNull()) + if (station.start.isNull()) { return ride.getStationIndex(&station); } diff --git a/src/openrct2/ride/Track.cpp b/src/openrct2/ride/Track.cpp index ab3de88400..2435ffde30 100644 --- a/src/openrct2/ride/Track.cpp +++ b/src/openrct2/ride/Track.cpp @@ -78,7 +78,7 @@ static void ride_remove_station(Ride& ride, const CoordsXYZ& location) auto stationStart = station.getStart(); if (stationStart == location) { - station.start.SetNull(); + station.start.setNull(); ride.numStations--; break; } @@ -444,7 +444,7 @@ std::optional GetTrackSegmentOrigin(const CoordsXYE& posEl) const auto& trackBlock = ted.sequenceData.sequences[sequenceIndex].clearance; CoordsXY trackBlockOffset = { trackBlock.x, trackBlock.y }; - coords += trackBlockOffset.Rotate(DirectionReverse(direction)); + coords += trackBlockOffset.rotate(DirectionReverse(direction)); coords.z -= trackBlock.z; return CoordsXYZD(coords, direction); diff --git a/src/openrct2/ride/TrackDesign.cpp b/src/openrct2/ride/TrackDesign.cpp index 13c8a28cf9..10df58760a 100644 --- a/src/openrct2/ride/TrackDesign.cpp +++ b/src/openrct2/ride/TrackDesign.cpp @@ -282,12 +282,12 @@ ResultWithMessage TrackDesign::CreateTrackDesignTrack(TrackDesignState& tds, con location = station.exit; } - if (location.IsNull()) + if (location.isNull()) { continue; } - CoordsXY mapLocation = location.ToCoordsXY(); + CoordsXY mapLocation = location.toCoordsXY(); TileElement* tileElement = MapGetFirstElementAt(mapLocation); if (tileElement == nullptr) @@ -309,7 +309,7 @@ ResultWithMessage TrackDesign::CreateTrackDesignTrack(TrackDesignState& tds, con mapLocation -= tds.origin; // Rotate entrance coordinates backwards to the correct direction - auto rotatedMapLocation = TileCoordsXY(mapLocation.Rotate(0 - _saveDirection)); + auto rotatedMapLocation = TileCoordsXY(mapLocation.rotate(0 - _saveDirection)); z -= tds.origin.z; z /= kCoordsZStep; @@ -391,12 +391,12 @@ ResultWithMessage TrackDesign::CreateTrackDesignMaze(TrackDesignState& tds, cons } auto location = ride.getStation().entrance; - if (location.IsNull()) + if (location.isNull()) { return { false, STR_TRACK_TOO_LARGE_OR_TOO_MUCH_SCENERY }; } - CoordsXY entranceLoc = location.ToCoordsXY(); + CoordsXY entranceLoc = location.toCoordsXY(); auto tileElement = MapGetFirstElementAt(entranceLoc); do { @@ -418,12 +418,12 @@ ResultWithMessage TrackDesign::CreateTrackDesignMaze(TrackDesignState& tds, cons entranceElements.push_back(mazeEntrance); location = ride.getStation().exit; - if (location.IsNull()) + if (location.isNull()) { return { false, STR_TRACK_TOO_LARGE_OR_TOO_MUCH_SCENERY }; } - CoordsXY exitLoc = location.ToCoordsXY(); + CoordsXY exitLoc = location.toCoordsXY(); tileElement = MapGetFirstElementAt(exitLoc); if (tileElement == nullptr) return { false, STR_TRACK_TOO_LARGE_OR_TOO_MUCH_SCENERY }; @@ -524,7 +524,7 @@ ResultWithMessage TrackDesign::CreateTrackDesignScenery(TrackDesignState& tds) } const auto relativeMapPosition = scenery.loc - tds.origin; - const CoordsXY rotatedRelativeMapPos = relativeMapPosition.Rotate(0 - _saveDirection); + const CoordsXY rotatedRelativeMapPos = relativeMapPosition.rotate(0 - _saveDirection); if (rotatedRelativeMapPos.x > 127 * kCoordsXYStep || rotatedRelativeMapPos.y > 127 * kCoordsXYStep || rotatedRelativeMapPos.x < -126 * kCoordsXYStep || rotatedRelativeMapPos.y < -126 * kCoordsXYStep) @@ -1307,7 +1307,7 @@ static GameActions::Result TrackDesignPlaceAllScenery( for (const auto& scenery : sceneryList) { - auto mapCoord = CoordsXYZ{ CoordsXY(origin) + scenery.loc.Rotate(rotation), origin.z }; + auto mapCoord = CoordsXYZ{ CoordsXY(origin) + scenery.loc.rotate(rotation), origin.z }; TrackDesignUpdatePreviewBounds(tds, mapCoord); auto placementRes = TrackDesignPlaceSceneryElement(tds, mapCoord, mode, scenery, rotation, origin.z); @@ -1341,8 +1341,8 @@ static std::optional TrackDesignPlaceEntrances( for (const auto& entrance : td.entranceElements) { auto rotation = _currentTrackPieceDirection & 3; - CoordsXY entranceMapPos = entrance.location.ToCoordsXY(); - auto rotatedEntranceMapPos = entranceMapPos.Rotate(rotation); + CoordsXY entranceMapPos = entrance.location.toCoordsXY(); + auto rotatedEntranceMapPos = entranceMapPos.rotate(rotation); newCoords = { rotatedEntranceMapPos + tds.origin, newCoords.z }; TrackDesignUpdatePreviewBounds(tds, newCoords); @@ -1462,8 +1462,8 @@ static GameActions::Result TrackDesignPlaceMaze( for (const auto& maze_element : td.mazeElements) { uint8_t rotation = _currentTrackPieceDirection & 3; - CoordsXY mazeMapPos = maze_element.location.ToCoordsXY(); - auto mapCoord = mazeMapPos.Rotate(rotation); + CoordsXY mazeMapPos = maze_element.location.toCoordsXY(); + auto mapCoord = mazeMapPos.rotate(rotation); mapCoord += origin; TrackDesignUpdatePreviewBounds(tds, { mapCoord, origin.z }); @@ -1603,7 +1603,7 @@ static GameActions::Result TrackDesignPlaceRide( for (uint8_t i = 0; i < ted.sequenceData.numSequences; i++) { const auto& trackBlock = ted.sequenceData.sequences[i].clearance; - auto tile = CoordsXY{ newCoords } + CoordsXY{ trackBlock.x, trackBlock.y }.Rotate(rotation); + auto tile = CoordsXY{ newCoords } + CoordsXY{ trackBlock.x, trackBlock.y }.rotate(rotation); TrackDesignUpdatePreviewBounds(tds, { tile, newCoords.z }); TrackDesignAddSelectedTile(tile); } @@ -1678,7 +1678,7 @@ static GameActions::Result TrackDesignPlaceRide( for (uint8_t i = 0; i < ted.sequenceData.numSequences; i++) { const auto& trackBlock = ted.sequenceData.sequences[i].clearance; - auto tile = CoordsXY{ newCoords } + CoordsXY{ trackBlock.x, trackBlock.y }.Rotate(rotation); + auto tile = CoordsXY{ newCoords } + CoordsXY{ trackBlock.x, trackBlock.y }.rotate(rotation); if (!MapIsLocationValid(tile)) { continue; @@ -1719,7 +1719,7 @@ static GameActions::Result TrackDesignPlaceRide( const TrackCoordinates& track_coordinates = ted.coordinates; auto offsetAndRotatedTrack = CoordsXY{ newCoords } - + CoordsXY{ track_coordinates.x, track_coordinates.y }.Rotate(rotation); + + CoordsXY{ track_coordinates.x, track_coordinates.y }.rotate(rotation); newCoords = { offsetAndRotatedTrack, newCoords.z - track_coordinates.zBegin + track_coordinates.zEnd }; rotation = (rotation + track_coordinates.rotationEnd - track_coordinates.rotationBegin) & 3; diff --git a/src/openrct2/ride/TrackDesignSave.cpp b/src/openrct2/ride/TrackDesignSave.cpp index 581d8f3425..a70339d59c 100644 --- a/src/openrct2/ride/TrackDesignSave.cpp +++ b/src/openrct2/ride/TrackDesignSave.cpp @@ -270,7 +270,7 @@ static TrackDesignAddStatus TrackDesignSaveAddLargeScenery(const CoordsXY& loc, for (auto& tile : sceneryTiles) { CoordsXY offsetPos{ tile.offset }; - auto rotatedOffsetPos = offsetPos.Rotate(direction); + auto rotatedOffsetPos = offsetPos.rotate(direction); CoordsXYZ tileLoc = { sceneryOrigin->x + rotatedOffsetPos.x, sceneryOrigin->y + rotatedOffsetPos.y, sceneryOrigin->z + tile.offset.z }; @@ -484,7 +484,7 @@ static void TrackDesignSaveRemoveLargeScenery(const CoordsXY& loc, LargeSceneryE for (auto& tile : sceneryTiles) { CoordsXY offsetPos{ tile.offset }; - auto rotatedOffsetPos = offsetPos.Rotate(direction); + auto rotatedOffsetPos = offsetPos.rotate(direction); CoordsXYZ tileLoc = { sceneryOrigin->x + rotatedOffsetPos.x, sceneryOrigin->y + rotatedOffsetPos.y, sceneryOrigin->z + tile.offset.z }; @@ -616,7 +616,7 @@ static void TrackDesignSaveShouldSelectNearbySceneryForTile(RideId rideIndex, in { if (!TrackDesignSaveContainsTileElement(tileElement)) { - TrackDesignSaveAddTileElement(TileCoordsXY(x, y).ToCoordsXY(), tileElement); + TrackDesignSaveAddTileElement(TileCoordsXY(x, y).toCoordsXY(), tileElement); } } } while (!(tileElement++)->isLastForTile()); diff --git a/src/openrct2/ride/TrackIteration.cpp b/src/openrct2/ride/TrackIteration.cpp index 90e680c2a9..cff59f5c88 100644 --- a/src/openrct2/ride/TrackIteration.cpp +++ b/src/openrct2/ride/TrackIteration.cpp @@ -289,8 +289,8 @@ namespace OpenRCT2 CoordsXY coords = { x, y }; CoordsXY trackCoordOffset = { trackCoordinate.x, trackCoordinate.y }; CoordsXY trackBlockOffset = { trackBlock.x, trackBlock.y }; - coords += trackCoordOffset.Rotate(rotation); - coords += trackBlockOffset.Rotate(DirectionReverse(rotation)); + coords += trackCoordOffset.rotate(rotation); + coords += trackBlockOffset.rotate(DirectionReverse(rotation)); OriginZ -= trackBlock.z; OriginZ += trackCoordinate.zEnd; @@ -371,7 +371,7 @@ namespace OpenRCT2 CoordsXY coords = { outTrackBeginEnd->begin_x, outTrackBeginEnd->begin_y }; CoordsXY offsets = { nextTrackCoordinate.x, nextTrackCoordinate.y }; - coords += offsets.Rotate(DirectionReverse(nextRotation)); + coords += offsets.rotate(DirectionReverse(nextRotation)); outTrackBeginEnd->begin_x = coords.x; outTrackBeginEnd->begin_y = coords.y; @@ -428,7 +428,7 @@ namespace OpenRCT2 uint8_t rotation = trackElement->getDirection(); CoordsXY coords = CoordsXY{ trackPos }; CoordsXY offsets = { trackBlock.x, trackBlock.y }; - coords += offsets.Rotate(DirectionReverse(rotation)); + coords += offsets.rotate(DirectionReverse(rotation)); z -= trackBlock.z; z += trackCoordinate.zBegin; diff --git a/src/openrct2/ride/Vehicle.BoatHire.cpp b/src/openrct2/ride/Vehicle.BoatHire.cpp index 020572909e..9f58222199 100644 --- a/src/openrct2/ride/Vehicle.BoatHire.cpp +++ b/src/openrct2/ride/Vehicle.BoatHire.cpp @@ -27,7 +27,7 @@ void Vehicle::UpdateTravellingBoatHireSetup() var_34 = orientation; TrackLocation.x = x; TrackLocation.y = y; - TrackLocation = TrackLocation.ToTileStart(); + TrackLocation = TrackLocation.toTileStart(); CoordsXY location = CoordsXY(TrackLocation) + CoordsDirectionDelta[orientation >> 3]; @@ -88,7 +88,7 @@ void Vehicle::TryReconnectBoatToTrack(const CoordsXY& currentBoatLocation, const SetTrackType(trackElement->getTrackType()); SetTrackDirection(curRide->boatHireReturnDirection); - BoatLocation.SetNull(); + BoatLocation.setNull(); } track_progress = 0; @@ -132,7 +132,7 @@ void Vehicle::UpdateMotionBoatHire() { // Loc6DA7A5 var_35++; - auto loc = BoatLocation.ToTileCentre(); + auto loc = BoatLocation.toTileCentre(); CoordsXY loc2 = loc; uint8_t bl; @@ -249,7 +249,7 @@ void Vehicle::UpdateMotionBoatHire() break; } - auto flooredLocation = loc2.ToTileStart(); + auto flooredLocation = loc2.toTileStart(); if (flooredLocation != TrackLocation) { if (!vehicle_boat_is_location_accessible({ loc2, TrackLocation.z })) @@ -398,10 +398,10 @@ void Vehicle::UpdateBoatLocation() CoordsXY location = CoordsXY{ x, y } + CoordsDirectionDelta[returnDirection]; - if (location.ToTileStart() == returnPosition.ToCoordsXY()) + if (location.toTileStart() == returnPosition.toCoordsXY()) { sub_state = BoatHireSubState::enteringReturnPosition; - BoatLocation = location.ToTileStart(); + BoatLocation = location.toTileStart(); return; } @@ -413,7 +413,7 @@ void Vehicle::UpdateBoatLocation() { if (ScenarioRand() & 1) { - CoordsXY destLocation = (returnPosition.ToCoordsXY() - CoordsDirectionDelta[returnDirection]).ToTileCentre(); + CoordsXY destLocation = (returnPosition.toCoordsXY() - CoordsDirectionDelta[returnDirection]).toTileCentre(); destLocation.x -= x; destLocation.y -= y; @@ -445,13 +445,13 @@ void Vehicle::UpdateBoatLocation() continue; } - BoatLocation = trackLocation.ToTileStart(); + BoatLocation = trackLocation.toTileStart(); return; } CoordsXY trackLocation = TrackLocation; trackLocation += CoordsDirectionDelta[curDirection & 3]; - BoatLocation = trackLocation.ToTileStart(); + BoatLocation = trackLocation.toTileStart(); } /** diff --git a/src/openrct2/ride/Vehicle.SceneryDoors.cpp b/src/openrct2/ride/Vehicle.SceneryDoors.cpp index 49aee67c38..3d213476c5 100644 --- a/src/openrct2/ride/Vehicle.SceneryDoors.cpp +++ b/src/openrct2/ride/Vehicle.SceneryDoors.cpp @@ -118,7 +118,7 @@ void Vehicle::UpdateSceneryDoor() const const auto& ted = GetTrackElementDescriptor(trackType); const auto& trackBlock = ted.sequenceData.sequences[ted.sequenceData.numSequences - 1].clearance; const TrackCoordinates* trackCoordinates = &ted.coordinates; - auto wallCoords = CoordsXYZ{ x, y, TrackLocation.z - trackBlock.z + trackCoordinates->zEnd }.ToTileStart(); + auto wallCoords = CoordsXYZ{ x, y, TrackLocation.z - trackBlock.z + trackCoordinates->zEnd }.toTileStart(); int32_t direction = (GetTrackDirection() + trackCoordinates->rotationEnd) & 3; AnimateSceneryDoor({ wallCoords, static_cast(direction) }, TrackLocation, next_vehicle_on_train.IsNull()); @@ -172,7 +172,7 @@ void Vehicle::UpdateLandscapeDoors(const int32_t previousTrackHeight) const return; } - const CoordsXYZ previousTrackLocation = CoordsXYZ(x, y, previousTrackHeight).ToTileStart(); + const CoordsXYZ previousTrackLocation = CoordsXYZ(x, y, previousTrackHeight).toTileStart(); auto* const previousTrackElement = MapGetTrackElementAtBeforeSurfaceFromRide(previousTrackLocation, ride); auto* const currentTrackElement = MapGetTrackElementAtBeforeSurfaceFromRide(TrackLocation, ride); if (previousTrackElement != nullptr && currentTrackElement == nullptr) diff --git a/src/openrct2/ride/Vehicle.Station.cpp b/src/openrct2/ride/Vehicle.Station.cpp index deea2eee00..3dbe71fff9 100644 --- a/src/openrct2/ride/Vehicle.Station.cpp +++ b/src/openrct2/ride/Vehicle.Station.cpp @@ -526,7 +526,7 @@ void Vehicle::UpdateWaitingForPassengers() return; auto& station = curRide->getStation(current_station); - if (station.entrance.IsNull()) + if (station.entrance.isNull()) { station.trainAtStation = RideStation::kNoTrain; sub_state = 2; @@ -720,7 +720,7 @@ void Vehicle::UpdateWaitingToDepart() } else { - if (!currentStation.exit.IsNull()) + if (!currentStation.exit.isNull()) { SetState(Status::unloadingPassengers); return; @@ -734,7 +734,7 @@ void Vehicle::UpdateWaitingToDepart() { if (trainCar->num_peeps != 0) { - if (!currentStation.exit.IsNull()) + if (!currentStation.exit.isNull()) { SetState(Status::unloadingPassengers); return; @@ -950,7 +950,7 @@ void Vehicle::UpdateUnloadingPassengers() } else { - if (currentStation.exit.IsNull()) + if (currentStation.exit.isNull()) { if (sub_state != 1) return; diff --git a/src/openrct2/ride/Vehicle.cpp b/src/openrct2/ride/Vehicle.cpp index 743cc37034..7119df9e56 100644 --- a/src/openrct2/ride/Vehicle.cpp +++ b/src/openrct2/ride/Vehicle.cpp @@ -457,7 +457,7 @@ namespace OpenRCT2 return; const auto& currentStation = curRide->getStation(curRide->currentTestStation); - if (!currentStation.entrance.IsNull()) + if (!currentStation.entrance.isNull()) { uint8_t test_segment = curRide->currentTestSegment; StationIndex stationIndex = StationIndex::FromUnderlying(test_segment); @@ -517,7 +517,7 @@ namespace OpenRCT2 { curRide->curTestTrackLocation = curTrackLoc; - if (currentStation.entrance.IsNull()) + if (currentStation.entrance.isNull()) return; auto trackElemType = GetTrackType(); @@ -705,7 +705,7 @@ namespace OpenRCT2 } } - if (currentStation.entrance.IsNull()) + if (currentStation.entrance.isNull()) return; if (x == kLocationNull) @@ -971,7 +971,7 @@ namespace OpenRCT2 ride.previousVerticalG = MakeFixed16_2dp(1, 0); ride.previousLateralG = 0; ride.testingFlags.clearAll(); - ride.curTestTrackLocation.SetNull(); + ride.curTestTrackLocation.setNull(); ride.turnCountDefault = 0; ride.turnCountBanked = 0; ride.turnCountSloped = 0; diff --git a/src/openrct2/scenes/editor/EditorScene.cpp b/src/openrct2/scenes/editor/EditorScene.cpp index b4ad506552..6867f03017 100644 --- a/src/openrct2/scenes/editor/EditorScene.cpp +++ b/src/openrct2/scenes/editor/EditorScene.cpp @@ -318,7 +318,7 @@ void EditorScene::FinaliseMainView() void EditorScene::resetMainViewport() { auto* mainWindow = WindowGetMain(); - mainWindow->setViewportLocation(TileCoordsXYZ{ 75, 75, 14 }.ToCoordsXYZ()); + mainWindow->setViewportLocation(TileCoordsXYZ{ 75, 75, 14 }.toCoordsXYZ()); } /** diff --git a/src/openrct2/scenes/title/Command/SetLocation.cpp b/src/openrct2/scenes/title/Command/SetLocation.cpp index a93690db19..238cce26ab 100644 --- a/src/openrct2/scenes/title/Command/SetLocation.cpp +++ b/src/openrct2/scenes/title/Command/SetLocation.cpp @@ -22,7 +22,7 @@ namespace OpenRCT2::Title WindowBase* w = WindowGetMain(); if (w != nullptr) { - auto loc = TileCoordsXY(Location.X, Location.Y).ToCoordsXY().ToTileCentre(); + auto loc = TileCoordsXY(Location.X, Location.Y).toCoordsXY().toTileCentre(); int32_t z = TileElementHeight(loc); // Prevent scroll adjustment due to window placement when in-game diff --git a/src/openrct2/scripting/ScriptEngine.cpp b/src/openrct2/scripting/ScriptEngine.cpp index 943591cf01..a7af61d4d9 100644 --- a/src/openrct2/scripting/ScriptEngine.cpp +++ b/src/openrct2/scripting/ScriptEngine.cpp @@ -1502,7 +1502,7 @@ JSValue ScriptEngine::GameActionResultToJS( { JS_SetPropertyStr(ctx, obj, "cost", JS_NewInt64(ctx, result.cost)); } - if (!result.position.IsNull()) + if (!result.position.isNull()) { JS_SetPropertyStr(ctx, obj, "position", ToJSValue(ctx, result.position)); } diff --git a/src/openrct2/scripting/ScriptUtil.hpp b/src/openrct2/scripting/ScriptUtil.hpp index 9ac6f3dc08..7fd1074f15 100644 --- a/src/openrct2/scripting/ScriptUtil.hpp +++ b/src/openrct2/scripting/ScriptUtil.hpp @@ -363,7 +363,7 @@ namespace OpenRCT2::Scripting return output; } - inline CoordsXY JSToCoordsXY(JSContext* ctx, JSValue obj) + inline CoordsXY JStoCoordsXY(JSContext* ctx, JSValue obj) { return { AsOrDefault(ctx, obj, "x", 0), AsOrDefault(ctx, obj, "y", 0) }; } @@ -371,12 +371,12 @@ namespace OpenRCT2::Scripting inline CoordsXY JSToCoordXY(JSContext* ctx, JSValue obj, const char* property) { JSValue val = JS_GetPropertyStr(ctx, obj, property); - CoordsXY output = JSToCoordsXY(ctx, val); + CoordsXY output = JStoCoordsXY(ctx, val); JS_FreeValue(ctx, val); return output; } - inline CoordsXYZ JSToCoordsXYZ(JSContext* ctx, JSValue obj) + inline CoordsXYZ JStoCoordsXYZ(JSContext* ctx, JSValue obj) { CoordsXYZ result; if (JS_IsObject(obj)) @@ -387,21 +387,21 @@ namespace OpenRCT2::Scripting } else { - result.SetNull(); + result.setNull(); } return result; } - inline CoordsXYZD JSToCoordsXYZD(JSContext* ctx, JSValue obj) + inline CoordsXYZD JStoCoordsXYZD(JSContext* ctx, JSValue obj) { CoordsXYZD result; if (JS_IsObject(obj)) { - result = CoordsXYZD(JSToCoordsXYZ(ctx, obj), AsOrDefault(ctx, obj, "direction", 0)); + result = CoordsXYZD(JStoCoordsXYZ(ctx, obj), AsOrDefault(ctx, obj, "direction", 0)); } else { - result.SetNull(); + result.setNull(); } return result; } @@ -445,7 +445,7 @@ namespace OpenRCT2::Scripting inline JSValue ToJSValue(JSContext* ctx, const CoordsXYZ& value) { - if (value.IsNull()) + if (value.isNull()) { return JS_NULL; } @@ -459,7 +459,7 @@ namespace OpenRCT2::Scripting inline JSValue ToJSValue(JSContext* ctx, const CoordsXYZD& value) { - if (value.IsNull()) + if (value.isNull()) { return JS_NULL; } diff --git a/src/openrct2/scripting/bindings/entity/ScParticle.cpp b/src/openrct2/scripting/bindings/entity/ScParticle.cpp index fdfb803650..4883f4d96b 100644 --- a/src/openrct2/scripting/bindings/entity/ScParticle.cpp +++ b/src/openrct2/scripting/bindings/entity/ScParticle.cpp @@ -123,7 +123,7 @@ namespace OpenRCT2::Scripting auto entity = GetCrashedVehicleParticle(thisVal); if (entity != nullptr) { - auto velocity = JSToCoordsXYZ(ctx, obj); + auto velocity = JStoCoordsXYZ(ctx, obj); entity->velocityX = velocity.x; entity->velocityY = velocity.y; entity->velocityZ = velocity.z; @@ -147,7 +147,7 @@ namespace OpenRCT2::Scripting auto entity = GetCrashedVehicleParticle(thisVal); if (entity != nullptr) { - auto acceleration = JSToCoordsXYZ(ctx, obj); + auto acceleration = JStoCoordsXYZ(ctx, obj); entity->accelerationX = acceleration.x; entity->accelerationY = acceleration.y; entity->accelerationZ = acceleration.z; @@ -191,14 +191,14 @@ namespace OpenRCT2::Scripting } if (JS_IsObject(acceleration)) { - auto accelerationXYZ = JSToCoordsXYZ(ctx, acceleration); + auto accelerationXYZ = JStoCoordsXYZ(ctx, acceleration); entity->accelerationX = accelerationXYZ.x; entity->accelerationY = accelerationXYZ.y; entity->accelerationZ = accelerationXYZ.z; } if (JS_IsObject(velocity)) { - auto velocityXYZ = JSToCoordsXYZ(ctx, velocity); + auto velocityXYZ = JStoCoordsXYZ(ctx, velocity); entity->velocityX = velocityXYZ.x; entity->velocityY = velocityXYZ.y; entity->velocityZ = velocityXYZ.z; diff --git a/src/openrct2/scripting/bindings/entity/ScPeep.hpp b/src/openrct2/scripting/bindings/entity/ScPeep.hpp index eb42b0064d..a60bd1963c 100644 --- a/src/openrct2/scripting/bindings/entity/ScPeep.hpp +++ b/src/openrct2/scripting/bindings/entity/ScPeep.hpp @@ -130,7 +130,7 @@ namespace OpenRCT2::Scripting auto peep = GetPeep(thisVal); if (peep != nullptr) { - auto pos = JSToCoordsXY(ctx, value); + auto pos = JStoCoordsXY(ctx, value); peep->setDestination(pos); peep->invalidate(); } diff --git a/src/openrct2/scripting/bindings/entity/ScStaff.cpp b/src/openrct2/scripting/bindings/entity/ScStaff.cpp index 6ea476533d..7f14077101 100644 --- a/src/openrct2/scripting/bindings/entity/ScStaff.cpp +++ b/src/openrct2/scripting/bindings/entity/ScStaff.cpp @@ -617,7 +617,7 @@ namespace OpenRCT2::Scripting if (JS_IsArray(coordsOrRange)) { JSIterateArray(ctx, coordsOrRange, [staff, reset](JSContext* ctx2, JSValue v) { - auto coord = JSToCoordsXY(ctx2, v); + auto coord = JStoCoordsXY(ctx2, v); staff->setPatrolArea(coord, reset); MapInvalidateTileFull(coord); }); @@ -712,7 +712,7 @@ namespace OpenRCT2::Scripting auto staff = GetStaff(thisVal); if (staff != nullptr) { - auto pos = JSToCoordsXY(ctx, coord); + auto pos = JStoCoordsXY(ctx, coord); return JS_NewBool(ctx, staff->isLocationInPatrol(pos)); } return JS_NewBool(ctx, false); diff --git a/src/openrct2/scripting/bindings/entity/ScVehicle.cpp b/src/openrct2/scripting/bindings/entity/ScVehicle.cpp index 5250ccf309..7aca4088be 100644 --- a/src/openrct2/scripting/bindings/entity/ScVehicle.cpp +++ b/src/openrct2/scripting/bindings/entity/ScVehicle.cpp @@ -621,7 +621,7 @@ namespace OpenRCT2::Scripting if (vehicle == nullptr) return JS_UNDEFINED; - CoordsXY coords = TileCoordsXY(x, y).ToCoordsXY(); + CoordsXY coords = TileCoordsXY(x, y).toCoordsXY(); auto el = MapGetNthElementAt(coords, elementIndex); if (el == nullptr) return JS_UNDEFINED; diff --git a/src/openrct2/scripting/bindings/ride/ScRideStation.cpp b/src/openrct2/scripting/bindings/ride/ScRideStation.cpp index 9c88f40ee8..3afa140ee9 100644 --- a/src/openrct2/scripting/bindings/ride/ScRideStation.cpp +++ b/src/openrct2/scripting/bindings/ride/ScRideStation.cpp @@ -76,7 +76,7 @@ namespace OpenRCT2::Scripting auto station = GetRideStation(thisVal); if (station != nullptr) { - auto start = JSToCoordsXYZ(ctx, value); + auto start = JStoCoordsXYZ(ctx, value); station->start = { start.x, start.y }; station->setBaseZ(start.z); } @@ -107,7 +107,7 @@ namespace OpenRCT2::Scripting auto station = GetRideStation(thisVal); if (station != nullptr) { - return ToJSValue(ctx, station->entrance.ToCoordsXYZD()); + return ToJSValue(ctx, station->entrance.toCoordsXYZD()); } return JS_NULL; } @@ -119,7 +119,7 @@ namespace OpenRCT2::Scripting auto station = GetRideStation(thisVal); if (station != nullptr) { - station->entrance = JSToCoordsXYZD(ctx, value); + station->entrance = JStoCoordsXYZD(ctx, value); } return JS_UNDEFINED; } @@ -129,7 +129,7 @@ namespace OpenRCT2::Scripting auto station = GetRideStation(thisVal); if (station != nullptr) { - return ToJSValue(ctx, station->exit.ToCoordsXYZD()); + return ToJSValue(ctx, station->exit.toCoordsXYZD()); } return JS_NULL; } @@ -141,7 +141,7 @@ namespace OpenRCT2::Scripting auto station = GetRideStation(thisVal); if (station != nullptr) { - station->exit = JSToCoordsXYZD(ctx, value); + station->exit = JStoCoordsXYZD(ctx, value); } return JS_UNDEFINED; } diff --git a/src/openrct2/scripting/bindings/world/ScMap.cpp b/src/openrct2/scripting/bindings/world/ScMap.cpp index 42d3a408e4..59b6510e4d 100644 --- a/src/openrct2/scripting/bindings/world/ScMap.cpp +++ b/src/openrct2/scripting/bindings/world/ScMap.cpp @@ -84,7 +84,7 @@ namespace OpenRCT2::Scripting { JS_UNPACK_INT32(x, ctx, argv[0]); JS_UNPACK_INT32(y, ctx, argv[1]); - auto coords = TileCoordsXY(x, y).ToCoordsXY(); + auto coords = TileCoordsXY(x, y).toCoordsXY(); return gScTile.New(ctx, coords); } @@ -233,7 +233,7 @@ namespace OpenRCT2::Scripting JS_UNPACK_STR(type, ctx, argv[0]); // Get the tile position - const auto pos = JSToCoordsXY(ctx, argv[1]); + const auto pos = JStoCoordsXY(ctx, argv[1]); // Declare an array that will hold the result to return JSValue result = JS_NewArray(ctx); @@ -375,7 +375,7 @@ namespace OpenRCT2::Scripting { entity->peep[i] = EntityId::GetNull(); } - entity->BoatLocation.SetNull(); + entity->BoatLocation.setNull(); res = ScVehicle::New(ctx, entity->id); } @@ -442,7 +442,7 @@ namespace OpenRCT2::Scripting JS_UNPACK_OBJECT(pos, ctx, argv[0]); JS_UNPACK_UINT32(elementIndex, ctx, argv[1]); - const auto position = JSToCoordsXY(ctx, pos); + const auto position = JStoCoordsXY(ctx, pos); return ScTrackIterator::FromElement(ctx, position, elementIndex); } @@ -490,11 +490,11 @@ namespace OpenRCT2::Scripting if (hasElementIndex) { - const auto position = JSToCoordsXY(ctx, pos); + const auto position = JStoCoordsXY(ctx, pos); return ScPathNavigator::fromElement(ctx, position, elementIndex, options); } - const auto position = JSToCoordsXYZ(ctx, pos); + const auto position = JStoCoordsXYZ(ctx, pos); return ScPathNavigator::fromPosition(ctx, position, options); } diff --git a/src/openrct2/scripting/bindings/world/ScPathConnection.cpp b/src/openrct2/scripting/bindings/world/ScPathConnection.cpp index a906ec59f4..e7e1d48538 100644 --- a/src/openrct2/scripting/bindings/world/ScPathConnection.cpp +++ b/src/openrct2/scripting/bindings/world/ScPathConnection.cpp @@ -52,7 +52,7 @@ namespace OpenRCT2::Scripting const PathElement* ScPathConnection::findPathElement(const PathConnectionData* data) { - auto coords = data->position.ToCoordsXY(); + auto coords = data->position.toCoordsXY(); auto* el = MapGetNthElementAt(coords, data->elementIndex); if (el == nullptr) return nullptr; @@ -68,7 +68,7 @@ namespace OpenRCT2::Scripting auto* data = getData(thisVal); if (data == nullptr) return JS_NULL; - return ToJSValue(ctx, data->position.ToCoordsXYZ()); + return ToJSValue(ctx, data->position.toCoordsXYZ()); } JSValue ScPathConnection::getDirection(JSContext* ctx, JSValue thisVal) diff --git a/src/openrct2/scripting/bindings/world/ScPathNavigator.cpp b/src/openrct2/scripting/bindings/world/ScPathNavigator.cpp index 5d5da4a1d8..6de0cdd8a5 100644 --- a/src/openrct2/scripting/bindings/world/ScPathNavigator.cpp +++ b/src/openrct2/scripting/bindings/world/ScPathNavigator.cpp @@ -39,7 +39,7 @@ namespace OpenRCT2::Scripting JSValue ScPathNavigator::fromPosition(JSContext* ctx, const CoordsXYZ& position, const PathNavigationOptions& options) { TileCoordsXYZ tilePos(position); - auto coords = tilePos.ToCoordsXY(); + auto coords = tilePos.toCoordsXY(); TileElement* tileElement = MapGetFirstElementAt(coords); if (tileElement == nullptr) return JS_NULL; @@ -93,7 +93,7 @@ namespace OpenRCT2::Scripting const PathElement* ScPathNavigator::findPathElement(const PathNavigatorData* data) { const bool includeGhost = data->options.includeGhosts; - auto coords = data->position.ToCoordsXY(); + auto coords = data->position.toCoordsXY(); auto* el = MapGetNthElementAt(coords, data->elementIndex); if (el != nullptr && el->getType() == TileElementType::path && el->baseHeight == data->position.z && (includeGhost || !el->isGhost())) @@ -223,7 +223,7 @@ namespace OpenRCT2::Scripting neighborPos.x += TileDirectionDelta[direction].x; neighborPos.y += TileDirectionDelta[direction].y; - auto neighborCoords = neighborPos.ToCoordsXY(); + auto neighborCoords = neighborPos.toCoordsXY(); TileElement* nextEl = MapGetFirstElementAt(neighborCoords); if (nextEl == nullptr) continue; @@ -289,7 +289,7 @@ namespace OpenRCT2::Scripting neighborPos.x += TileDirectionDelta[direction].x; neighborPos.y += TileDirectionDelta[direction].y; - auto neighborCoords = neighborPos.ToCoordsXY(); + auto neighborCoords = neighborPos.toCoordsXY(); TileElement* nextEl = MapGetFirstElementAt(neighborCoords); if (nextEl == nullptr) return JS_NewBool(ctx, false); diff --git a/src/openrct2/scripting/bindings/world/ScTile.cpp b/src/openrct2/scripting/bindings/world/ScTile.cpp index cb03b940cf..03cc24cc63 100644 --- a/src/openrct2/scripting/bindings/world/ScTile.cpp +++ b/src/openrct2/scripting/bindings/world/ScTile.cpp @@ -89,7 +89,7 @@ namespace OpenRCT2::Scripting if (numElements > currentNumElements) { // Allocate space for the extra tile elements (inefficient but works) - auto pos = TileCoordsXYZ(TileCoordsXY(coords), 0).ToCoordsXYZ(); + auto pos = TileCoordsXYZ(TileCoordsXY(coords), 0).toCoordsXYZ(); auto numToInsert = numElements - currentNumElements; for (size_t i = 0; i < numToInsert; i++) { @@ -141,7 +141,7 @@ namespace OpenRCT2::Scripting { std::vector data(first, first + origNumElements); - auto pos = TileCoordsXYZ(TileCoordsXY(coords), 0).ToCoordsXYZ(); + auto pos = TileCoordsXYZ(TileCoordsXY(coords), 0).toCoordsXYZ(); auto newElement = TileElementInsert(pos, 0, TileElementType::surface); if (newElement == nullptr) { diff --git a/src/openrct2/scripting/bindings/world/ScTileElement.cpp b/src/openrct2/scripting/bindings/world/ScTileElement.cpp index 87c1688405..2803d4d870 100644 --- a/src/openrct2/scripting/bindings/world/ScTileElement.cpp +++ b/src/openrct2/scripting/bindings/world/ScTileElement.cpp @@ -2272,7 +2272,7 @@ namespace OpenRCT2::Scripting if (element->getType() != TileElementType::banner) { if (value.empty()) - banner->rideIndex = BannerGetClosestRideIndex({ banner->position.ToCoordsXY(), 16 }); + banner->rideIndex = BannerGetClosestRideIndex({ banner->position.toCoordsXY(), 16 }); else banner->rideIndex = RideId::GetNull(); @@ -2314,14 +2314,14 @@ namespace OpenRCT2::Scripting const auto& tiles = largeEntry->tiles; const auto& initialTile = tiles[sequenceIndex]; const auto rotatedFirstTile = CoordsXYZ{ - CoordsXY{ initialTile.offset }.Rotate(direction), + CoordsXY{ initialTile.offset }.rotate(direction), initialTile.offset.z, }; const auto firstTile = CoordsXYZ{ loc, largeScenery->getBaseZ() } - rotatedFirstTile; for (auto& tile : tiles) { - const auto rotatedCurrentTile = CoordsXYZ{ CoordsXY{ tile.offset }.Rotate(direction), tile.offset.z }; + const auto rotatedCurrentTile = CoordsXYZ{ CoordsXY{ tile.offset }.rotate(direction), tile.offset.z }; const auto currentTile = firstTile + rotatedCurrentTile; diff --git a/src/openrct2/world/Banner.cpp b/src/openrct2/world/Banner.cpp index 81a3c957fc..6613cc0c45 100644 --- a/src/openrct2/world/Banner.cpp +++ b/src/openrct2/world/Banner.cpp @@ -224,7 +224,7 @@ RideId BannerGetClosestRideIndex(const CoordsXYZ& mapPos) continue; auto rideCoords = ride.overallView; - if (rideCoords.IsNull()) + if (rideCoords.isNull()) continue; int32_t distance = abs(mapPos.x - rideCoords.x) + abs(mapPos.y - rideCoords.y); @@ -253,7 +253,7 @@ static std::vector GetAllBannerElementsOnMap() for (int x = 0; x < gameState.mapSize.x; x++) { const auto tilePos = TileCoordsXY{ x, y }; - for (auto* bannerElement : OpenRCT2::TileElementsView(tilePos.ToCoordsXY())) + for (auto* bannerElement : OpenRCT2::TileElementsView(tilePos.toCoordsXY())) { auto bannerIndex = bannerElement->getIndex(); if (bannerIndex == BannerIndex::GetNull()) diff --git a/src/openrct2/world/Entrance.cpp b/src/openrct2/world/Entrance.cpp index 536c08b18c..e5aa5b2d31 100644 --- a/src/openrct2/world/Entrance.cpp +++ b/src/openrct2/world/Entrance.cpp @@ -220,7 +220,7 @@ void ParkEntranceUpdateLocations() if (entranceElement != nullptr && entranceElement->getEntranceType() == EntranceType::parkEntrance && entranceElement->getSequenceIndex() == ParkEntranceSequence::centre && !entranceElement->isGhost()) { - auto entrance = TileCoordsXYZD(it.x, it.y, it.element->baseHeight, it.element->getDirection()).ToCoordsXYZD(); + auto entrance = TileCoordsXYZD(it.x, it.y, it.element->baseHeight, it.element->getDirection()).toCoordsXYZD(); park.entrances.push_back(entrance); } } diff --git a/src/openrct2/world/Footpath.cpp b/src/openrct2/world/Footpath.cpp index 9351e2d862..e80953be6c 100644 --- a/src/openrct2/world/Footpath.cpp +++ b/src/openrct2/world/Footpath.cpp @@ -162,7 +162,7 @@ namespace OpenRCT2 auto location = peep->getLocation(); if (location.z == footpathPos.z) { - auto destination = location.ToTileCentre(); + auto destination = location.toTileCentre(); peep->setState(PeepState::walking); peep->setDestination(destination, 5); peep->updateCurrentAnimationType(); @@ -947,7 +947,7 @@ namespace OpenRCT2 for (const auto& station : ride->getStations()) { - if (station.entrance.IsNull()) + if (station.entrance.isNull()) continue; TileElement* tileElement = MapGetFirstElementAt(station.entrance); @@ -964,7 +964,7 @@ namespace OpenRCT2 Direction direction = DirectionReverse(tileElement->getDirection()); FootpathChainRideQueue( - rideIndex, ride->getStationIndex(&station), station.entrance.ToCoordsXY(), tileElement, direction); + rideIndex, ride->getStationIndex(&station), station.entrance.toCoordsXY(), tileElement, direction); } while (!(tileElement++)->isLastForTile()); } } diff --git a/src/openrct2/world/FootpathDragSlope.cpp b/src/openrct2/world/FootpathDragSlope.cpp index 637816933b..5e3e601ebe 100644 --- a/src/openrct2/world/FootpathDragSlope.cpp +++ b/src/openrct2/world/FootpathDragSlope.cpp @@ -57,7 +57,7 @@ namespace OpenRCT2 { dragWidth = range.GetX2() - range.GetX1(); dragHeight = range.GetY2() - range.GetY1(); - startPos = dragStart.ToTileStart(); + startPos = dragStart.toTileStart(); startPos.x = std::clamp(startPos.x, range.GetX1(), range.GetX2()); startPos.y = std::clamp(startPos.y, range.GetY1(), range.GetY2()); diff --git a/src/openrct2/world/Location.hpp b/src/openrct2/world/Location.hpp index 66310f981a..d52b536728 100644 --- a/src/openrct2/world/Location.hpp +++ b/src/openrct2/world/Location.hpp @@ -94,7 +94,7 @@ struct CoordsXY return { x / rhs, y / rhs }; } - constexpr CoordsXY Rotate(int32_t direction) const + constexpr CoordsXY rotate(int32_t direction) const { CoordsXY rotatedCoords; switch (direction & 3) @@ -131,24 +131,24 @@ struct CoordsXY return !(*this == other); } - constexpr CoordsXY ToTileCentre() const + constexpr CoordsXY toTileCentre() const { - return ToTileStart() + CoordsXY{ kCoordsXYHalfTile, kCoordsXYHalfTile }; + return toTileStart() + CoordsXY{ kCoordsXYHalfTile, kCoordsXYHalfTile }; } - constexpr CoordsXY ToTileStart() const + constexpr CoordsXY toTileStart() const { using namespace OpenRCT2::Numerics; return { floor2(x, kCoordsXYStep), floor2(y, kCoordsXYStep) }; } - constexpr bool IsNull() const + constexpr bool isNull() const { return x == kCoordsNull; } - constexpr void SetNull() + constexpr void setNull() { x = kCoordsNull; y = 0; @@ -187,21 +187,21 @@ struct CoordsXYZ : public CoordsXY return x == other.x && y == other.y && z == other.z; } - constexpr CoordsXYZ ToTileStart() const + constexpr CoordsXYZ toTileStart() const { using namespace OpenRCT2::Numerics; return { floor2(x, kCoordsXYStep), floor2(y, kCoordsXYStep), z }; } - constexpr CoordsXYZ ToTileCentre() const + constexpr CoordsXYZ toTileCentre() const { - return ToTileStart() + CoordsXYZ{ kCoordsXYHalfTile, kCoordsXYHalfTile, 0 }; + return toTileStart() + CoordsXYZ{ kCoordsXYHalfTile, kCoordsXYHalfTile, 0 }; } - constexpr void SetNull() + constexpr void setNull() { - CoordsXY::SetNull(); + CoordsXY::setNull(); z = 0; } }; @@ -293,19 +293,19 @@ struct TileCoordsXY return *this; } - constexpr CoordsXY ToCoordsXY() const + constexpr CoordsXY toCoordsXY() const { - if (IsNull()) + if (isNull()) { CoordsXY ret{}; - ret.SetNull(); + ret.setNull(); return ret; } return { x * kCoordsXYStep, y * kCoordsXYStep }; } - constexpr TileCoordsXY Rotate(int32_t direction) const + constexpr TileCoordsXY rotate(int32_t direction) const { TileCoordsXY rotatedCoords; switch (direction & 3) @@ -342,12 +342,12 @@ struct TileCoordsXY return !(*this == other); } - constexpr bool IsNull() const + constexpr bool isNull() const { return x == kCoordsNull; } - constexpr void SetNull() + constexpr void setNull() { x = kCoordsNull; y = 0; @@ -407,20 +407,20 @@ struct TileCoordsXYZ : public TileCoordsXY return !(*this == other); } - constexpr CoordsXYZ ToCoordsXYZ() const + constexpr CoordsXYZ toCoordsXYZ() const { - if (IsNull()) + if (isNull()) { CoordsXYZ ret{}; - ret.SetNull(); + ret.setNull(); return ret; } return { x * kCoordsXYStep, y * kCoordsXYStep, z * kCoordsZStep }; } - constexpr void SetNull() + constexpr void setNull() { - TileCoordsXY::SetNull(); + TileCoordsXY::setNull(); z = 0; } }; @@ -596,16 +596,16 @@ struct CoordsXYZD : public CoordsXYZ return { x - rhs.x, y - rhs.y, z - rhs.z, direction }; } - constexpr CoordsXYZD ToTileStart() const + constexpr CoordsXYZD toTileStart() const { using namespace OpenRCT2::Numerics; return { floor2(x, kCoordsXYStep), floor2(y, kCoordsXYStep), z, direction }; } - constexpr CoordsXYZD ToTileCentre() const + constexpr CoordsXYZD toTileCentre() const { - return ToTileStart() + CoordsXYZD{ kCoordsXYHalfTile, kCoordsXYHalfTile, 0, 0 }; + return toTileStart() + CoordsXYZD{ kCoordsXYHalfTile, kCoordsXYHalfTile, 0, 0 }; } }; @@ -650,20 +650,20 @@ struct TileCoordsXYZD : public TileCoordsXYZ { } - constexpr CoordsXYZD ToCoordsXYZD() const + constexpr CoordsXYZD toCoordsXYZD() const { - if (IsNull()) + if (isNull()) { CoordsXYZD ret{}; - ret.SetNull(); + ret.setNull(); return ret; } return { x * kCoordsXYStep, y * kCoordsXYStep, z * kCoordsZStep, direction }; } - constexpr void SetNull() + constexpr void setNull() { - TileCoordsXYZ::SetNull(); + TileCoordsXYZ::setNull(); direction = kInvalidDirection; } }; @@ -676,7 +676,7 @@ struct MapRange : public CoordsRange { using CoordsRange::CoordsRange; - constexpr MapRange Normalise() const + constexpr MapRange normalise() const { // Don't use std::min/max, as they require , one of C++'s heaviest // in this very common header. diff --git a/src/openrct2/world/Map.cpp b/src/openrct2/world/Map.cpp index d96892bf05..f93f2ba70b 100644 --- a/src/openrct2/world/Map.cpp +++ b/src/openrct2/world/Map.cpp @@ -384,7 +384,7 @@ namespace OpenRCT2 void MapSetTileElement(const TileCoordsXY& tilePos, TileElement* elements) { - if (!MapIsLocationValid(tilePos.ToCoordsXY())) + if (!MapIsLocationValid(tilePos.toCoordsXY())) { LOG_ERROR("Trying to access element outside of range"); return; @@ -406,7 +406,7 @@ namespace OpenRCT2 PathElement* MapGetPathElementAt(const TileCoordsXYZ& loc) { - for (auto* element : TileElementsView(loc.ToCoordsXY())) + for (auto* element : TileElementsView(loc.toCoordsXY())) { if (element->isGhost()) continue; @@ -943,7 +943,7 @@ namespace OpenRCT2 if (gLegacyScene != LegacyScene::scenarioEditor && !getGameState().cheats.sandboxMode) { - if (!MapIsLocationInPark(tileCoords.ToCoordsXY())) + if (!MapIsLocationInPark(tileCoords.toCoordsXY())) continue; } @@ -963,7 +963,7 @@ namespace OpenRCT2 if (gLegacyScene != LegacyScene::scenarioEditor && !getGameState().cheats.sandboxMode) { - if (!MapIsLocationInPark(tileCoords.ToCoordsXY())) + if (!MapIsLocationInPark(tileCoords.toCoordsXY())) continue; } @@ -1033,7 +1033,7 @@ namespace OpenRCT2 [[fallthrough]]; case TileElementType::track: FootpathQueueChainReset(); - FootpathRemoveEdgesAt(TileCoordsXY{ it.x, it.y }.ToCoordsXY(), it.element); + FootpathRemoveEdgesAt(TileCoordsXY{ it.x, it.y }.toCoordsXY(), it.element); TileElementRemove(it.element); TileElementIteratorRestartForTile(&it); break; @@ -1207,7 +1207,7 @@ namespace OpenRCT2 { for (int32_t blockX = 0; blockX < gameState.mapSize.x; blockX += 256) { - auto mapPos = TileCoordsXY{ blockX + x, blockY + y }.ToCoordsXY(); + auto mapPos = TileCoordsXY{ blockX + x, blockY + y }.toCoordsXY(); if (MapIsEdge(mapPos)) continue; @@ -1353,7 +1353,7 @@ namespace OpenRCT2 { MapExtendBoundarySurfaceExtendTile(*existingTileElement, *newTileElement, 1); } - Park::UpdateFences(TileCoordsXY{ x, y }.ToCoordsXY()); + Park::UpdateFences(TileCoordsXY{ x, y }.toCoordsXY()); } } } @@ -1370,7 +1370,7 @@ namespace OpenRCT2 { MapExtendBoundarySurfaceExtendTile(*existingTileElement, *newTileElement, 2); } - Park::UpdateFences(TileCoordsXY{ x, y }.ToCoordsXY()); + Park::UpdateFences(TileCoordsXY{ x, y }.toCoordsXY()); } } } @@ -1479,7 +1479,7 @@ namespace OpenRCT2 gameState.peepSpawns.erase( std::remove_if( gameState.peepSpawns.begin(), gameState.peepSpawns.end(), - [loc](const CoordsXY& spawn) { return spawn.ToTileStart() == loc.ToTileStart(); }), + [loc](const CoordsXY& spawn) { return spawn.toTileStart() == loc.toTileStart(); }), gameState.peepSpawns.end()); TileElement* tileElement = MapGetFirstElementAt(loc); @@ -1648,7 +1648,7 @@ namespace OpenRCT2 auto& tile = sceneryEntry->tiles[sequence]; CoordsXY offsetPos{ tile.offset }; - auto rotatedOffsetPos = offsetPos.Rotate(sceneryPos.direction); + auto rotatedOffsetPos = offsetPos.rotate(sceneryPos.direction); auto origin = CoordsXYZ{ sceneryPos.x - rotatedOffsetPos.x, sceneryPos.y - rotatedOffsetPos.y, sceneryPos.z - tile.offset.z }; @@ -1678,7 +1678,7 @@ namespace OpenRCT2 for (auto& tile : sceneryEntry->tiles) { CoordsXY offsetPos{ tile.offset }; - auto rotatedOffsetPos = offsetPos.Rotate(signPos.direction); + auto rotatedOffsetPos = offsetPos.rotate(signPos.direction); auto tmpSignPos = CoordsXYZD{ sceneryOrigin->x + rotatedOffsetPos.x, sceneryOrigin->y + rotatedOffsetPos.y, sceneryOrigin->z + tile.offset.z, signPos.direction }; @@ -2127,13 +2127,13 @@ namespace OpenRCT2 static inline void shiftIfNotNull(TileCoordsXY& coords, const TileCoordsXY& amount) { - if (!coords.IsNull()) + if (!coords.isNull()) coords += amount; } static inline void shiftIfNotNull(CoordsXY& coords, const CoordsXY& amount) { - if (!coords.IsNull()) + if (!coords.isNull()) coords += amount; } @@ -2142,7 +2142,7 @@ namespace OpenRCT2 if (amount.x == 0 && amount.y == 0) return; - auto amountToMove = amount.ToCoordsXY(); + auto amountToMove = amount.toCoordsXY(); auto& gameState = getGameState(); // Tile elements diff --git a/src/openrct2/world/MapAnimation.cpp b/src/openrct2/world/MapAnimation.cpp index 6c8c095e75..42716a01fc 100644 --- a/src/openrct2/world/MapAnimation.cpp +++ b/src/openrct2/world/MapAnimation.cpp @@ -335,7 +335,7 @@ static std::optional UpdateTile(const TileCoordsXY& coords, const Vi do { const auto baseZ = tileElement->getBaseZ(); - const CoordsXYZ loc{ coords.ToCoordsXY(), baseZ }; + const CoordsXYZ loc{ coords.toCoordsXY(), baseZ }; switch (tileElement->getType()) { @@ -595,7 +595,7 @@ static std::optional IsElementAnimated(const TileElementBase& elemen void MapAnimations::MarkTileForInvalidation(const TileCoordsXY coords) { - if (!MapIsEdge(coords.ToCoordsXY()) && !_mapAnimationsUpdate.contains(coords)) + if (!MapIsEdge(coords.toCoordsXY()) && !_mapAnimationsUpdate.contains(coords)) { _mapAnimationsInvalidate[coords.x + (coords.y * kMaximumMapSizeTechnical)] = true; } @@ -603,7 +603,7 @@ void MapAnimations::MarkTileForInvalidation(const TileCoordsXY coords) void MapAnimations::MarkTileForUpdate(const TileCoordsXY coords) { - if (!MapIsEdge(coords.ToCoordsXY())) + if (!MapIsEdge(coords.toCoordsXY())) { _mapAnimationsInvalidate[coords.x + (coords.y * kMaximumMapSizeTechnical)] = false; _mapAnimationsUpdate.insert(coords); @@ -653,7 +653,7 @@ static void InvalidateAll(const ViewportList& viewports) const auto direction = DirectionFlipXAxis(viewport->rotation); const int32_t numVerticalTiles = (viewport->ViewHeight() + maxTileHeight) / kScreenCoordsTileHeight; - const TileCoordsXY nextVerticalTile = TileCoordsXY{ 1, 1 }.Rotate(direction); + const TileCoordsXY nextVerticalTile = TileCoordsXY{ 1, 1 }.rotate(direction); const int32_t screenCoordY = Numerics::floor2( (viewport->viewPos.y - kScreenCoordsTileHeightHalf), kScreenCoordsTileWidthHalf); @@ -662,17 +662,17 @@ static void InvalidateAll(const ViewportList& viewports) { const ScreenCoordsXY screenCoord = { Numerics::floor2(x, kScreenCoordsTileWidthHalf), screenCoordY }; CoordsXY mapTile = { screenCoord.y - screenCoord.x / 2, screenCoord.y + screenCoord.x / 2 }; - mapTile = mapTile.Rotate(direction); + mapTile = mapTile.rotate(direction); if (direction & 1) { mapTile.y -= kCoordsXYHalfTile; } - mapTile = mapTile.ToTileStart(); + mapTile = mapTile.toTileStart(); TileCoordsXY tileCoords(mapTile); for (int32_t i = 0; i < numVerticalTiles; ++i) { - if (!MapIsEdge(tileCoords.ToCoordsXY()) + if (!MapIsEdge(tileCoords.toCoordsXY()) && _mapAnimationsInvalidate[tileCoords.x + (tileCoords.y * kMaximumMapSizeTechnical)]) { if (!UpdateTile(tileCoords, viewport)) @@ -777,7 +777,7 @@ void MapAnimations::ShiftAll(const TileCoordsXY amount) { const bool animated = _mapAnimationsInvalidate[x + (y * kMaximumMapSizeTechnical)]; const TileCoordsXY newCoords = TileCoordsXY(x, y) + amount; - if (!MapIsEdge(newCoords.ToCoordsXY())) + if (!MapIsEdge(newCoords.toCoordsXY())) { newMapAnimationsInvalidate[newCoords.x + (newCoords.y * kMaximumMapSizeTechnical)] = animated; } @@ -795,7 +795,7 @@ void MapAnimations::ShiftAll(const TileCoordsXY amount) std::set newTemporaryMapAnimations; for (const auto& a : _temporaryMapAnimations) { - newTemporaryMapAnimations.insert(TemporaryMapAnimation{ a.location + CoordsXYZ(amount.ToCoordsXY(), 0), a.type }); + newTemporaryMapAnimations.insert(TemporaryMapAnimation{ a.location + CoordsXYZ(amount.toCoordsXY(), 0), a.type }); } _temporaryMapAnimations = std::move(newTemporaryMapAnimations); } diff --git a/src/openrct2/world/MapSelection.cpp b/src/openrct2/world/MapSelection.cpp index 38c3ce2fbb..1f40e25414 100644 --- a/src/openrct2/world/MapSelection.cpp +++ b/src/openrct2/world/MapSelection.cpp @@ -35,7 +35,7 @@ MapRange getMapSelectRange() void setMapSelectRange(const MapRange& range) { - const auto normalised = range.Normalise(); + const auto normalised = range.normalise(); gMapSelectPositionA = normalised.Point1; gMapSelectPositionB = normalised.Point2; } diff --git a/src/openrct2/world/Park.cpp b/src/openrct2/world/Park.cpp index e62cffe1fe..9445e139e0 100644 --- a/src/openrct2/world/Park.cpp +++ b/src/openrct2/world/Park.cpp @@ -542,7 +542,7 @@ namespace OpenRCT2::Park { peep->orientation = direction << 3; - auto destination = peep->getLocation().ToTileCentre(); + auto destination = peep->getLocation().toTileCentre(); peep->setDestination(destination, 5); peep->peepDirection = direction; peep->var37 = 0; diff --git a/src/openrct2/world/TileInspector.cpp b/src/openrct2/world/TileInspector.cpp index 9dc210adf7..05a4ce84eb 100644 --- a/src/openrct2/world/TileInspector.cpp +++ b/src/openrct2/world/TileInspector.cpp @@ -84,7 +84,7 @@ namespace OpenRCT2::TileInspector // Return true for everyone who has the window open and tile selected auto* windowMgr = Ui::GetWindowManager(); auto* window = windowMgr->FindByClass(WindowClass::tileInspector); - return window != nullptr && loc == windowTileInspectorTile.ToCoordsXY(); + return window != nullptr && loc == windowTileInspectorTile.toCoordsXY(); } static int32_t NumLargeScenerySequences(const CoordsXY& loc, const LargeSceneryElement* const largeScenery) @@ -95,7 +95,7 @@ namespace OpenRCT2::TileInspector const auto& tiles = largeEntry->tiles; const auto& initialTile = tiles[sequenceIndex]; const auto rotatedFirstTile = CoordsXYZ{ - CoordsXY{ initialTile.offset }.Rotate(direction), + CoordsXY{ initialTile.offset }.rotate(direction), initialTile.offset.z, }; @@ -103,7 +103,7 @@ namespace OpenRCT2::TileInspector auto numFoundElements = 0; for (auto& tile : tiles) { - const auto rotatedCurrentTile = CoordsXYZ{ CoordsXY{ tile.offset }.Rotate(direction), tile.offset.z }; + const auto rotatedCurrentTile = CoordsXYZ{ CoordsXY{ tile.offset }.rotate(direction), tile.offset.z }; const auto currentTile = firstTile + rotatedCurrentTile; @@ -737,7 +737,7 @@ namespace OpenRCT2::TileInspector uint8_t originDirection = trackElement->getDirection(); CoordsXY offsets = { trackBlock.x, trackBlock.y }; CoordsXY coords = { originX, originY }; - coords += offsets.Rotate(DirectionReverse(originDirection)); + coords += offsets.rotate(DirectionReverse(originDirection)); originX = static_cast(coords.x); originY = static_cast(coords.y); @@ -749,7 +749,7 @@ namespace OpenRCT2::TileInspector CoordsXYZD elem = { originX, originY, originZ + trackBlock2.z, rotation }; offsets.x = trackBlock2.x; offsets.y = trackBlock2.y; - elem += offsets.Rotate(originDirection); + elem += offsets.rotate(originDirection); TrackElement* nextTrackElement = MapGetTrackElementAtOfTypeSeq(elem, type, i); if (nextTrackElement == nullptr) @@ -821,7 +821,7 @@ namespace OpenRCT2::TileInspector uint8_t originDirection = trackElement->getDirection(); CoordsXY offsets = { trackBlock.x, trackBlock.y }; CoordsXY coords = { originX, originY }; - coords += offsets.Rotate(DirectionReverse(originDirection)); + coords += offsets.rotate(DirectionReverse(originDirection)); originX = static_cast(coords.x); originY = static_cast(coords.y); @@ -833,7 +833,7 @@ namespace OpenRCT2::TileInspector CoordsXYZD elem = { originX, originY, originZ + trackBlock2.z, rotation }; offsets.x = trackBlock2.x; offsets.y = trackBlock2.y; - elem += offsets.Rotate(originDirection); + elem += offsets.rotate(originDirection); TrackElement* nextTrackElement = MapGetTrackElementAtOfTypeSeq(elem, type, i); if (nextTrackElement == nullptr) @@ -972,6 +972,6 @@ namespace OpenRCT2::TileInspector Guard::Assert( windowTileInspectorSelectedIndex >= 0 && windowTileInspectorSelectedIndex < windowTileInspectorElementCount, "Selected list item out of range"); - return MapGetNthElementAt(windowTileInspectorTile.ToCoordsXY(), windowTileInspectorSelectedIndex); + return MapGetNthElementAt(windowTileInspectorTile.toCoordsXY(), windowTileInspectorSelectedIndex); } } // namespace OpenRCT2::TileInspector diff --git a/src/openrct2/world/map_generator/TreePlacement.cpp b/src/openrct2/world/map_generator/TreePlacement.cpp index 685be54c51..065bbc7562 100644 --- a/src/openrct2/world/map_generator/TreePlacement.cpp +++ b/src/openrct2/world/map_generator/TreePlacement.cpp @@ -69,7 +69,7 @@ namespace OpenRCT2::World::MapGenerator return; } - int32_t surfaceZ = TileElementHeight(loc.ToTileCentre()); + int32_t surfaceZ = TileElementHeight(loc.toTileCentre()); auto* sceneryElement = TileElementInsert({ loc, surfaceZ }, 0b1111); Guard::Assert(sceneryElement != nullptr); diff --git a/test/tests/Pathfinding.cpp b/test/tests/Pathfinding.cpp index d3d094598d..98931b6664 100644 --- a/test/tests/Pathfinding.cpp +++ b/test/tests/Pathfinding.cpp @@ -71,7 +71,7 @@ protected: // Our start position is in tile coordinates, but we need to give the peep spawn // position in actual world coords (32 units per tile X/Y, 8 per Z level). // Add 16 so the peep spawns in the centre of the tile. - auto* peep = Guest::generate(pos->ToCoordsXYZ().ToTileCentre()); + auto* peep = Guest::generate(pos->toCoordsXYZ().toTileCentre()); // Peeps that are outside of the park use specialized pathfinding which we don't want to // use here @@ -115,7 +115,7 @@ protected: // Check that the peep is still on a footpath. Use next_z instead of pos->z here because pos->z will change // when the peep is halfway up a slope, but next_z will not change until they move to the next tile. - EXPECT_NE(MapGetFootpathElement({ pos->ToCoordsXY(), peep->nextLoc.z }), nullptr); + EXPECT_NE(MapGetFootpathElement({ pos->toCoordsXY(), peep->nextLoc.z }), nullptr); } // Clean up the peep, because we're reusing this loaded context for all tests. @@ -134,7 +134,7 @@ protected: static testing::AssertionResult AssertIsStartPosition(const char*, const TileCoordsXYZ& location) { const uint32_t expectedSurfaceStyle = 11u; - const uint32_t style = MapGetSurfaceElementAt(location.ToCoordsXYZ())->getSurfaceObjectIndex(); + const uint32_t style = MapGetSurfaceElementAt(location.toCoordsXYZ())->getSurfaceObjectIndex(); if (style != expectedSurfaceStyle) return testing::AssertionFailure() @@ -149,7 +149,7 @@ protected: { const uint32_t forbiddenSurfaceStyle = 8u; - const uint32_t style = MapGetSurfaceElementAt(location.ToCoordsXYZ())->getSurfaceObjectIndex(); + const uint32_t style = MapGetSurfaceElementAt(location.toCoordsXYZ())->getSurfaceObjectIndex(); if (style == forbiddenSurfaceStyle) return testing::AssertionFailure() diff --git a/test/tests/TileElements.cpp b/test/tests/TileElements.cpp index e47ffa8984..33aa3fd378 100644 --- a/test/tests/TileElements.cpp +++ b/test/tests/TileElements.cpp @@ -61,7 +61,7 @@ LegacyScene TileElementWantsFootpathConnection::_gLegacyScene; TEST_F(TileElementWantsFootpathConnection, FlatPath) { // Flat paths want to connect to other paths in any direction - const auto* pathElement = MapGetFootpathElement(TileCoordsXYZ{ 19, 18, 14 }.ToCoordsXYZ()); + const auto* pathElement = MapGetFootpathElement(TileCoordsXYZ{ 19, 18, 14 }.toCoordsXYZ()); ASSERT_NE(pathElement, nullptr); EXPECT_TRUE(TileElementWantsPathConnectionTowards({ 19, 18, 14, 0 }, nullptr)); EXPECT_TRUE(TileElementWantsPathConnectionTowards({ 19, 18, 14, 1 }, nullptr)); @@ -73,7 +73,7 @@ TEST_F(TileElementWantsFootpathConnection, FlatPath) TEST_F(TileElementWantsFootpathConnection, SlopedPath) { // Sloped paths only want to connect in two directions, of which is one at a higher offset - const auto* slopedPathElement = MapGetFootpathElement(TileCoordsXYZ{ 18, 18, 14 }.ToCoordsXYZ()); + const auto* slopedPathElement = MapGetFootpathElement(TileCoordsXYZ{ 18, 18, 14 }.toCoordsXYZ()); ASSERT_NE(slopedPathElement, nullptr); ASSERT_TRUE(slopedPathElement->asPath()->isSloped()); // Bottom and top of sloped path want a path connection @@ -93,7 +93,7 @@ TEST_F(TileElementWantsFootpathConnection, Stall) { // Stalls usually have one path direction flag, but can have multiple (info kiosk for example) auto tileCoords = TileCoordsXYZ{ 19, 15, 14 }; - const TrackElement* const stallElement = MapGetTrackElementAt(tileCoords.ToCoordsXYZ()); + const TrackElement* const stallElement = MapGetTrackElementAt(tileCoords.toCoordsXYZ()); ASSERT_NE(stallElement, nullptr); EXPECT_TRUE(TileElementWantsPathConnectionTowards({ 19, 15, 14, 0 }, nullptr)); EXPECT_FALSE(TileElementWantsPathConnectionTowards({ 19, 15, 14, 1 }, nullptr)); @@ -105,7 +105,7 @@ TEST_F(TileElementWantsFootpathConnection, Stall) TEST_F(TileElementWantsFootpathConnection, RideEntrance) { // Ride entrances and exits want a connection in one direction - const EntranceElement* const entranceElement = MapGetRideEntranceElementAt(TileCoordsXYZ{ 18, 8, 14 }.ToCoordsXYZ(), false); + const EntranceElement* const entranceElement = MapGetRideEntranceElementAt(TileCoordsXYZ{ 18, 8, 14 }.toCoordsXYZ(), false); ASSERT_NE(entranceElement, nullptr); EXPECT_TRUE(TileElementWantsPathConnectionTowards({ 18, 8, 14, 0 }, nullptr)); EXPECT_FALSE(TileElementWantsPathConnectionTowards({ 18, 8, 14, 1 }, nullptr)); @@ -117,7 +117,7 @@ TEST_F(TileElementWantsFootpathConnection, RideEntrance) TEST_F(TileElementWantsFootpathConnection, RideExit) { // The exit has been rotated; it wants a path connection in direction 1, but not 0 like the entrance - const EntranceElement* const exitElement = MapGetRideExitElementAt(TileCoordsXYZ{ 18, 10, 14 }.ToCoordsXYZ(), false); + const EntranceElement* const exitElement = MapGetRideExitElementAt(TileCoordsXYZ{ 18, 10, 14 }.toCoordsXYZ(), false); ASSERT_NE(exitElement, nullptr); EXPECT_FALSE(TileElementWantsPathConnectionTowards({ 18, 10, 14, 0 }, nullptr)); EXPECT_TRUE(TileElementWantsPathConnectionTowards({ 18, 10, 14, 1 }, nullptr)); @@ -154,7 +154,7 @@ TEST_F(TileElementWantsFootpathConnection, MapEdge) { // Paths at the map edge should have edge flags turned on when placed in scenario editor // This tile is a single, unconnected footpath on the map edge - on load, GetEdges() returns 0 - auto* pathElement = MapGetFootpathElement(TileCoordsXYZ{ 1, 4, 14 }.ToCoordsXYZ()); + auto* pathElement = MapGetFootpathElement(TileCoordsXYZ{ 1, 4, 14 }.toCoordsXYZ()); gLegacyScene = LegacyScene::scenarioEditor; diff --git a/test/tests/TileElementsView.cpp b/test/tests/TileElementsView.cpp index 345b3e8008..6e0fc95716 100644 --- a/test/tests/TileElementsView.cpp +++ b/test/tests/TileElementsView.cpp @@ -133,7 +133,7 @@ void CheckMapTiles() { for (int x = 0; x < kMaximumMapSizeTechnical; ++x) { - auto pos = TileCoordsXY(x, y).ToCoordsXY(); + auto pos = TileCoordsXY(x, y).toCoordsXY(); bool matches = CompareLists(pos); EXPECT_TRUE(matches) << "x = " << x << ", y = " << y; From bcf80e292e76d1f05fe12e745d1d7a1754f8f390 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Tue, 8 Sep 2026 09:22:05 +0200 Subject: [PATCH 022/142] Fix 'update available' widget position (#27091) --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/TitleMenu.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index a562f27636..6b71d7b63e 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -3,6 +3,7 @@ - Fix: [#24457] Yellow is always rendered as third remap in Ride window. - Fix: [#26754] Switching window tabs by touch could crash the game on some Linux builds. - Fix: [#27052] Unnamed rides in RCT2 base and Wacky Worlds scenarios have hardcoded English names. +- Fix: [#27087] The ‘Update available’ widget is offset incorrectly. 0.5.5 (2026-09-06) ------------------------------------------------------------------------ diff --git a/src/openrct2-ui/windows/TitleMenu.cpp b/src/openrct2-ui/windows/TitleMenu.cpp index 28afff6616..6ce08eea19 100644 --- a/src/openrct2-ui/windows/TitleMenu.cpp +++ b/src/openrct2-ui/windows/TitleMenu.cpp @@ -58,7 +58,7 @@ namespace OpenRCT2::Ui::Windows makeWidget({0, kUpdateButtonDims.height}, kMenuButtonDims, WidgetType::imgBtn, WindowColour::tertiary, ImageId(SPR_MENU_LOAD_GAME), STR_CONTINUE_SAVED_GAME_TIP), makeWidget({0, kUpdateButtonDims.height}, kMenuButtonDims, WidgetType::imgBtn, WindowColour::tertiary, ImageId(SPR_G2_MENU_MULTIPLAYER), STR_SHOW_MULTIPLAYER_TIP), makeWidget({0, kUpdateButtonDims.height}, kMenuButtonDims, WidgetType::imgBtn, WindowColour::tertiary, ImageId(SPR_MENU_TOOLBOX), STR_GAME_TOOLS_TIP), - makeWidget({0, kUpdateButtonDims.height}, kUpdateButtonDims, WidgetType::button, WindowColour::secondary, STR_UPDATE_AVAILABLE) + makeWidget({0, 0}, kUpdateButtonDims, WidgetType::button, WindowColour::secondary, STR_UPDATE_AVAILABLE) ); // clang-format on From bb118516646347d73e7eb0d30de9eef2f5b16043 Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Thu, 10 Sep 2026 04:05:28 +0000 Subject: [PATCH 023/142] Merge Localisation/master into OpenRCT2/develop --- data/language/es-ES.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/data/language/es-ES.txt b/data/language/es-ES.txt index fddfc89e46..87e8d5ab06 100644 --- a/data/language/es-ES.txt +++ b/data/language/es-ES.txt @@ -3837,3 +3837,4 @@ STR_7039 :Tipo de atracción STR_7040 :Adiciones de los senderos STR_7041 :Panel de información del parque STR_7042 :Panel de información de la fecha +STR_7043 :No se puede cambiar la altura del terreno aquí… From c25762467a5b44141a73ebc01307703531b4f1e1 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Fri, 11 Sep 2026 20:05:27 +0200 Subject: [PATCH 024/142] Fix #27093: Pause and fast forward buttons are shown in multiplayer --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/TopToolbar.cpp | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 6b71d7b63e..b2ef29e96f 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -4,6 +4,7 @@ - Fix: [#26754] Switching window tabs by touch could crash the game on some Linux builds. - Fix: [#27052] Unnamed rides in RCT2 base and Wacky Worlds scenarios have hardcoded English names. - Fix: [#27087] The ‘Update available’ widget is offset incorrectly. +- Fix: [#27093] Pause and fast forward buttons are shown in multiplayer. 0.5.5 (2026-09-06) ------------------------------------------------------------------------ diff --git a/src/openrct2-ui/windows/TopToolbar.cpp b/src/openrct2-ui/windows/TopToolbar.cpp index 604d657579..fd6944c806 100644 --- a/src/openrct2-ui/windows/TopToolbar.cpp +++ b/src/openrct2-ui/windows/TopToolbar.cpp @@ -1152,11 +1152,19 @@ namespace OpenRCT2::Ui::Windows if (isInEditorMode()) return; - const auto mode = Network::GetMode(); - widgets[WIDX_NETWORK].setHidden(mode == Network::Mode::none); - widgets[WIDX_CHAT].setHidden(mode == Network::Mode::none); - widgets[WIDX_PAUSE].setHidden(mode == Network::Mode::client); - widgets[WIDX_FASTFORWARD].setHidden(mode == Network::Mode::server); + switch (Network::GetMode()) + { + case Network::Mode::none: + widgets[WIDX_NETWORK].setHidden(true); + widgets[WIDX_CHAT].setHidden(true); + break; + case Network::Mode::client: + widgets[WIDX_PAUSE].setHidden(true); + [[fallthrough]]; + case Network::Mode::server: + widgets[WIDX_FASTFORWARD].setHidden(true); + break; + } } void ApplyZoomState() From 7164b12fd693267d3cfe0c21e681d64158b3c682 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 11 Sep 2026 20:57:02 +0200 Subject: [PATCH 025/142] Fix #27056: Loading water palettes from plugin would not update the palette correctly (#27057) --- distribution/changelog.txt | 1 + .../bindings/object/ScObjectManager.cpp | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 6b71d7b63e..2015146b02 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -54,6 +54,7 @@ - Fix: [#26996] Scenario patch for Okinawa Coast doesn’t work for CD versions of Wacky Worlds (meaning landscape ownership fixes do not get applied). - Fix: [#27004] Windows are moved off-screen when mouse is released outside of the game window. - Fix: [#27023] [Plugin] Transparent plugin sprites do not work correctly in software rendering mode. +- Fix: [#27056] [Plugin] Loading water palettes from plugin does not update the palette correctly. 0.5.4 (2026-08-02) ------------------------------------------------------------------------ diff --git a/src/openrct2/scripting/bindings/object/ScObjectManager.cpp b/src/openrct2/scripting/bindings/object/ScObjectManager.cpp index 0112f23a83..d6341d39bb 100644 --- a/src/openrct2/scripting/bindings/object/ScObjectManager.cpp +++ b/src/openrct2/scripting/bindings/object/ScObjectManager.cpp @@ -12,6 +12,7 @@ #include "ScObjectManager.h" #include "../../../Context.h" + #include "../../../drawing/Drawing.h" #include "../../../object/ObjectList.h" #include "../../../ride/RideData.h" #include "../../../windows/Intent.h" @@ -88,6 +89,7 @@ JSValue ScObjectManager::load(JSContext* ctx, JSValue thisVal, int argc, JSValue JSValue result = JS_NewArray(ctx); int64_t index = 0; + bool loadedWater = false; for (const auto& descriptor : descriptors) { auto obj = objectManager.LoadObject(descriptor); @@ -97,6 +99,9 @@ JSValue ScObjectManager::load(JSContext* ctx, JSValue thisVal, int argc, JSValue auto objIndex = objectManager.GetLoadedObjectEntryIndex(obj); auto scLoadedObject = CreateScObject(ctx, obj->GetObjectType(), objIndex); JS_SetPropertyInt64(ctx, result, index, scLoadedObject); + + if (obj->GetObjectType() == ObjectType::water) + loadedWater = true; } else { @@ -105,6 +110,11 @@ JSValue ScObjectManager::load(JSContext* ctx, JSValue thisVal, int argc, JSValue index++; } RefreshResearchedItems(); + if (loadedWater) + { + LoadPalette(); + } + return result; } else @@ -133,6 +143,12 @@ JSValue ScObjectManager::load(JSContext* ctx, JSValue thisVal, int argc, JSValue { MarkAsResearched(obj); RefreshResearchedItems(); + + if (obj->GetObjectType() == ObjectType::water) + { + LoadPalette(); + } + auto objIndex = objectManager.GetLoadedObjectEntryIndex(obj); return CreateScObject(ctx, obj->GetObjectType(), objIndex); } @@ -145,6 +161,12 @@ JSValue ScObjectManager::load(JSContext* ctx, JSValue thisVal, int argc, JSValue { MarkAsResearched(obj); RefreshResearchedItems(); + + if (obj->GetObjectType() == ObjectType::water) + { + LoadPalette(); + } + auto objIndex = objectManager.GetLoadedObjectEntryIndex(obj); return CreateScObject(ctx, obj->GetObjectType(), objIndex); } From ced6f35f9f4d2b138fec70c5d78d044b04a024e0 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Fri, 11 Sep 2026 22:11:26 +0200 Subject: [PATCH 026/142] Move changelog entry for #27056 to correct place [ci skip] --- distribution/changelog.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 2015146b02..0ec98a2825 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -3,6 +3,7 @@ - Fix: [#24457] Yellow is always rendered as third remap in Ride window. - Fix: [#26754] Switching window tabs by touch could crash the game on some Linux builds. - Fix: [#27052] Unnamed rides in RCT2 base and Wacky Worlds scenarios have hardcoded English names. +- Fix: [#27056] [Plugin] Loading water palettes from plugin does not update the palette correctly. - Fix: [#27087] The ‘Update available’ widget is offset incorrectly. 0.5.5 (2026-09-06) @@ -54,7 +55,6 @@ - Fix: [#26996] Scenario patch for Okinawa Coast doesn’t work for CD versions of Wacky Worlds (meaning landscape ownership fixes do not get applied). - Fix: [#27004] Windows are moved off-screen when mouse is released outside of the game window. - Fix: [#27023] [Plugin] Transparent plugin sprites do not work correctly in software rendering mode. -- Fix: [#27056] [Plugin] Loading water palettes from plugin does not update the palette correctly. 0.5.4 (2026-08-02) ------------------------------------------------------------------------ From 3fb24b8963f388944986aafc034710b02c0a0efe Mon Sep 17 00:00:00 2001 From: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com> Date: Fri, 11 Sep 2026 23:21:58 +0200 Subject: [PATCH 027/142] Fix references to LoadPalette in ScObjectManager.cpp (#27105) A refactor and #27056 crossed each other, leading to a situation where the PR passes CIs only to cause problems upon merge. --- .../scripting/bindings/object/ScObjectManager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openrct2/scripting/bindings/object/ScObjectManager.cpp b/src/openrct2/scripting/bindings/object/ScObjectManager.cpp index d6341d39bb..38a0a51279 100644 --- a/src/openrct2/scripting/bindings/object/ScObjectManager.cpp +++ b/src/openrct2/scripting/bindings/object/ScObjectManager.cpp @@ -12,7 +12,7 @@ #include "ScObjectManager.h" #include "../../../Context.h" - #include "../../../drawing/Drawing.h" + #include "../../../drawing/Palette.h" #include "../../../object/ObjectList.h" #include "../../../ride/RideData.h" #include "../../../windows/Intent.h" @@ -112,7 +112,7 @@ JSValue ScObjectManager::load(JSContext* ctx, JSValue thisVal, int argc, JSValue RefreshResearchedItems(); if (loadedWater) { - LoadPalette(); + Drawing::LoadPalette(); } return result; @@ -146,7 +146,7 @@ JSValue ScObjectManager::load(JSContext* ctx, JSValue thisVal, int argc, JSValue if (obj->GetObjectType() == ObjectType::water) { - LoadPalette(); + Drawing::LoadPalette(); } auto objIndex = objectManager.GetLoadedObjectEntryIndex(obj); @@ -164,7 +164,7 @@ JSValue ScObjectManager::load(JSContext* ctx, JSValue thisVal, int argc, JSValue if (obj->GetObjectType() == ObjectType::water) { - LoadPalette(); + Drawing::LoadPalette(); } auto objIndex = objectManager.GetLoadedObjectEntryIndex(obj); From 829dd93bd03ad79a4fd94803707f83dcc7831c4d Mon Sep 17 00:00:00 2001 From: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com> Date: Sat, 12 Sep 2026 10:24:24 +0200 Subject: [PATCH 028/142] Fix #21320: RCT1 allows more cars per train on some rides than OpenRCT2 (#27106) --- distribution/changelog.txt | 1 + src/openrct2/ride/Ride.cpp | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 851289cf37..3b7fe0a31b 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,5 +1,6 @@ 0.5.6 (in development) ------------------------------------------------------------------------ +- Fix: [#21320] RCT1 allows more cars per train on some rides than OpenRCT2. - Fix: [#24457] Yellow is always rendered as third remap in Ride window. - Fix: [#26754] Switching window tabs by touch could crash the game on some Linux builds. - Fix: [#27052] Unnamed rides in RCT2 base and Wacky Worlds scenarios have hardcoded English names. diff --git a/src/openrct2/ride/Ride.cpp b/src/openrct2/ride/Ride.cpp index bb894c162e..c8194735bf 100644 --- a/src/openrct2/ride/Ride.cpp +++ b/src/openrct2/ride/Ride.cpp @@ -4842,7 +4842,13 @@ namespace OpenRCT2 if (!stationNumTiles.has_value()) return; - auto stationLength = (stationNumTiles.value() * 0x44180) - 0x16B2A; + // Change: RCT2 builds in a safety margin, presumably to ensure a block brake just before the station + // is never blocked by a tiny overhang from a train in the station. However, this also means + // it allows fewer trains or fewer cars per train even for non-block sectioned rides. + // For this reason, limit this margin to just block sectioned rides. This also improves + // compatibility with RCT1 parks and track designs. + const auto safetyMargin = isBlockSectioned() ? 0x16B2A : 0; + auto stationLength = (stationNumTiles.value() * 0x44180) - safetyMargin; int32_t maxMass = rtd.MaxMass << 8; int32_t newMaxCarsPerTrain = 1; for (int32_t numCars = rideEntry->max_cars_in_train; numCars > 0; numCars--) From e93fa5342a6c447fa0d32492281af9459ceaed24 Mon Sep 17 00:00:00 2001 From: Sjoerd de Bruin Date: Sat, 12 Sep 2026 10:40:52 +0200 Subject: [PATCH 029/142] Close #21400: draw staff patrol area selector on the water (#27067) --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/LandRights.cpp | 4 ++-- src/openrct2-ui/windows/PatrolArea.cpp | 16 ++++++++++------ .../paint/tile_element/Paint.Surface.cpp | 5 +++-- src/openrct2/world/MapSelection.h | 2 +- 5 files changed, 17 insertions(+), 11 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 3b7fe0a31b..382d9b9e8f 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,5 +1,6 @@ 0.5.6 (in development) ------------------------------------------------------------------------ +- Improved: [#21400] The selector for setting staff patrol areas is now drawn on the water as well as on the surface under water. - Fix: [#21320] RCT1 allows more cars per train on some rides than OpenRCT2. - Fix: [#24457] Yellow is always rendered as third remap in Ride window. - Fix: [#26754] Switching window tabs by touch could crash the game on some Linux builds. diff --git a/src/openrct2-ui/windows/LandRights.cpp b/src/openrct2-ui/windows/LandRights.cpp index 04d444ef39..a8907229b7 100644 --- a/src/openrct2-ui/windows/LandRights.cpp +++ b/src/openrct2-ui/windows/LandRights.cpp @@ -485,9 +485,9 @@ namespace OpenRCT2::Ui::Windows state_changed++; } - if (gMapSelectType != MapSelectType::fullLandRights) + if (gMapSelectType != MapSelectType::fullTerrainAndWater) { - gMapSelectType = MapSelectType::fullLandRights; + gMapSelectType = MapSelectType::fullTerrainAndWater; state_changed++; } diff --git a/src/openrct2-ui/windows/PatrolArea.cpp b/src/openrct2-ui/windows/PatrolArea.cpp index e33f873365..d8f62ba95a 100644 --- a/src/openrct2-ui/windows/PatrolArea.cpp +++ b/src/openrct2-ui/windows/PatrolArea.cpp @@ -7,8 +7,6 @@ * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ -#include "../interface/ViewportQuery.h" - #include #include #include @@ -162,7 +160,7 @@ namespace OpenRCT2::Ui::Windows if (!gMapSelectFlags.has(MapSelectFlag::enable)) stateChanged = true; - if (gMapSelectType != MapSelectType::full) + if (gMapSelectType != MapSelectType::fullTerrainAndWater) stateChanged = true; auto toolSize = std::max(1, gLandToolSize); @@ -182,7 +180,7 @@ namespace OpenRCT2::Ui::Windows if (stateChanged) { gMapSelectFlags.set(MapSelectFlag::enable); - gMapSelectType = MapSelectType::full; + gMapSelectType = MapSelectType::fullTerrainAndWater; gMapSelectPositionA = posA; gMapSelectPositionB = posB; } @@ -279,8 +277,14 @@ namespace OpenRCT2::Ui::Windows std::optional GetBestCoordsFromPos(const ScreenCoordsXY& pos) { - auto coords = FootpathGetCoordinatesFromPos(pos, nullptr, nullptr); - return coords.isNull() ? std::nullopt : std::make_optional(coords); + auto info = GetMapCoordinatesFromPos( + pos, + EnumsToFlags( + ViewportInteractionItem::terrain, ViewportInteractionItem::water, ViewportInteractionItem::footpath)); + if (info.interactionType == ViewportInteractionItem::none) + return std::nullopt; + + return info.Loc; } }; diff --git a/src/openrct2/paint/tile_element/Paint.Surface.cpp b/src/openrct2/paint/tile_element/Paint.Surface.cpp index f80f11ad0f..d68914ffc6 100644 --- a/src/openrct2/paint/tile_element/Paint.Surface.cpp +++ b/src/openrct2/paint/tile_element/Paint.Surface.cpp @@ -806,7 +806,8 @@ static std::pair SurfaceGetHeightAboveWater( std::optional GetPatrolAreaTileColour(const CoordsXY& pos) { - bool selected = gMapSelectFlags.has(MapSelectFlag::enable) && gMapSelectType == MapSelectType::full + bool selected = gMapSelectFlags.has(MapSelectFlag::enable) + && (gMapSelectType == MapSelectType::full || gMapSelectType == MapSelectType::fullTerrainAndWater) && pos.x >= gMapSelectPositionA.x && pos.x <= gMapSelectPositionB.x && pos.y >= gMapSelectPositionA.y && pos.y <= gMapSelectPositionB.y; @@ -1131,7 +1132,7 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con const auto image_id = ImageId(SPR_TERRAIN_SELECTION_CORNER + Byte97B444[surfaceShape], fpId); PaintAttachToPreviousPS(session, image_id, 0, 0); } - else if (mapSelectionType == MapSelectType::fullLandRights) + else if (mapSelectionType == MapSelectType::fullTerrainAndWater) { auto [waterHeight, waterSurfaceShape] = SurfaceGetHeightAboveWater(tileElement, height, surfaceShape); diff --git a/src/openrct2/world/MapSelection.h b/src/openrct2/world/MapSelection.h index e053c2e6ae..04a65674a4 100644 --- a/src/openrct2/world/MapSelection.h +++ b/src/openrct2/world/MapSelection.h @@ -35,7 +35,7 @@ enum class MapSelectType : uint8_t corner3, full, fullWater, - fullLandRights, + fullTerrainAndWater, quarter0, quarter1, quarter2, From 345f61452e9c66a0eec584243933a3563b93e822 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 12 Sep 2026 13:20:13 +0200 Subject: [PATCH 030/142] Move JSON colour conversion to its own function --- src/openrct2-ui/interface/Theme.cpp | 32 +++++++++++++++-------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/openrct2-ui/interface/Theme.cpp b/src/openrct2-ui/interface/Theme.cpp index 52a72ed882..1e440de4ab 100644 --- a/src/openrct2-ui/interface/Theme.cpp +++ b/src/openrct2-ui/interface/Theme.cpp @@ -339,6 +339,22 @@ namespace OpenRCT2::Ui return colourSettingsEntry; } + static ColourWithFlags jsonColourObjectToColourWithFlags(json_t input, uint8_t version) + { + if (version == 0) + { + auto number = Json::GetNumber(input); + return ColourWithFlags::fromLegacy(number); + } + + auto colourObject = Json::AsObject(input); + auto colour = colourFromString(Json::GetString(colourObject["colour"]), Drawing::Colour::black); + auto isTranslucent = Json::GetBoolean(colourObject["translucent"], false); + ColourFlags flags{}; + flags.set(ColourFlag::translucent, isTranslucent); + return ColourWithFlags{ colour, flags }; + } + UIThemeWindowEntry UIThemeWindowEntry::FromJson(const WindowThemeDesc* wtDesc, json_t& jsonData, uint8_t version) { Guard::Assert(jsonData.is_object(), "UIThemeWindowEntry::FromJson expects parameter jsonData to be object"); @@ -359,21 +375,7 @@ namespace OpenRCT2::Ui for (size_t i = 0; i < colourCount; i++) { - if (version == 0) - { - auto number = Json::GetNumber(jsonColours[i]); - result.Theme.Colours[i] = ColourWithFlags::fromLegacy(number); - } - else - { - auto colourObject = Json::AsObject(jsonColours[i]); - auto colour = colourFromString(Json::GetString(colourObject["colour"]), Drawing::Colour::black); - auto isTranslucent = Json::GetBoolean(colourObject["translucent"], false); - ColourFlags flags{}; - flags.set(ColourFlag::translucent, isTranslucent); - - result.Theme.Colours[i] = { colour, flags }; - } + result.Theme.Colours[i] = jsonColourObjectToColourWithFlags(jsonColours[i], version); } return result; From be90806c808ab3d469d6edd5484472c11b00defd Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 12 Sep 2026 13:21:11 +0200 Subject: [PATCH 031/142] Convert settings for the bottom toolbar to the new window types --- src/openrct2-ui/interface/Theme.cpp | 58 ++++++++++++++++++++++++++--- 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/src/openrct2-ui/interface/Theme.cpp b/src/openrct2-ui/interface/Theme.cpp index 1e440de4ab..4acda33e13 100644 --- a/src/openrct2-ui/interface/Theme.cpp +++ b/src/openrct2-ui/interface/Theme.cpp @@ -473,6 +473,45 @@ namespace OpenRCT2::Ui return result; } + static void importOldBottomToolbar(UITheme& theme, json_t& jsonObj, uint8_t version) + { + auto jsonColours = Json::AsArray(jsonObj["colours"]); + const auto panelColour = jsonColourObjectToColourWithFlags(jsonColours[0], version); + const auto newsTickerButtonsColour = jsonColourObjectToColourWithFlags(jsonColours[1], version); + const auto messageBackgroundColour = jsonColourObjectToColourWithFlags(jsonColours[2], version); + const auto parkRatingBarColour = jsonColourObjectToColourWithFlags(jsonColours[3], version); + + const auto* parkInfoPanelDesc = GetWindowThemeDescriptor(WindowClass::parkInfoPanel); + UIThemeWindowEntry parkInfoPanelEntry{}; + parkInfoPanelEntry.Class = parkInfoPanelDesc->WindowClass; + parkInfoPanelEntry.Theme = parkInfoPanelDesc->windowColours.defaultTheme; + parkInfoPanelEntry.Theme.Colours[0] = panelColour; + parkInfoPanelEntry.Theme.Colours[1] = parkRatingBarColour; + theme.SetEntry(&parkInfoPanelEntry); + + const auto* dateInfoPanelDesc = GetWindowThemeDescriptor(WindowClass::dateInfoPanel); + UIThemeWindowEntry dateInfoPanelEntry{}; + dateInfoPanelEntry.Class = dateInfoPanelDesc->WindowClass; + dateInfoPanelEntry.Theme = dateInfoPanelDesc->windowColours.defaultTheme; + dateInfoPanelEntry.Theme.Colours[0] = panelColour; + theme.SetEntry(&dateInfoPanelEntry); + + const auto* statusBarDesc = GetWindowThemeDescriptor(WindowClass::gameStatusBar); + UIThemeWindowEntry statusBarEntry{}; + statusBarEntry.Class = statusBarDesc->WindowClass; + statusBarEntry.Theme = statusBarDesc->windowColours.defaultTheme; + statusBarEntry.Theme.Colours[0] = panelColour; + theme.SetEntry(&statusBarEntry); + + const auto* newsTickerDesc = GetWindowThemeDescriptor(WindowClass::newsTicker); + UIThemeWindowEntry newsTickerEntry{}; + newsTickerEntry.Class = newsTickerDesc->WindowClass; + newsTickerEntry.Theme = newsTickerDesc->windowColours.defaultTheme; + newsTickerEntry.Theme.Colours[0] = messageBackgroundColour; + newsTickerEntry.Theme.Colours[1] = newsTickerButtonsColour; + theme.SetEntry(&newsTickerEntry); + } + UITheme* UITheme::FromJson(json_t& jsonObj) { Guard::Assert(jsonObj.is_object(), "UITheme::FromJson expects parameter jsonObj to be object"); @@ -507,14 +546,23 @@ namespace OpenRCT2::Ui { if (jsonValue.is_object()) { - const WindowThemeDesc* wtDesc = GetWindowThemeDescriptor(jsonKey.data()); - if (wtDesc == nullptr) + const utf8* windowClassName = jsonKey.data(); + // May occur in older themes created before the bottom toolbar split + if (strcmp(windowClassName, "WC_BOTTOM_TOOLBAR") == 0) { - continue; + importOldBottomToolbar(*result, jsonValue, version); } + else + { + const WindowThemeDesc* wtDesc = GetWindowThemeDescriptor(windowClassName); + if (wtDesc == nullptr) + { + continue; + } - UIThemeWindowEntry entry = UIThemeWindowEntry::FromJson(wtDesc, jsonValue, version); - result->SetEntry(&entry); + UIThemeWindowEntry entry = UIThemeWindowEntry::FromJson(wtDesc, jsonValue, version); + result->SetEntry(&entry); + } } } } From 3418b4f8bf2a74394c1d52e01a603402ee2dacaa Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 12 Sep 2026 13:56:05 +0200 Subject: [PATCH 032/142] Group themes window tab info into one struct (#27026) --- src/openrct2-ui/windows/Themes.cpp | 135 ++++++++++------------------- 1 file changed, 47 insertions(+), 88 deletions(-) diff --git a/src/openrct2-ui/windows/Themes.cpp b/src/openrct2-ui/windows/Themes.cpp index d14eafc007..128fa747b3 100644 --- a/src/openrct2-ui/windows/Themes.cpp +++ b/src/openrct2-ui/windows/Themes.cpp @@ -33,7 +33,7 @@ using namespace OpenRCT2::Drawing; namespace OpenRCT2::Ui::Windows { - enum + enum : uint8_t { WINDOW_THEMES_TAB_SETTINGS, WINDOW_THEMES_TAB_MAIN_UI, @@ -117,42 +117,7 @@ namespace OpenRCT2::Ui::Windows #pragma region Tabs - // clang-format off - static int32_t window_themes_tab_animation_loops[] = { - 32, - 32, - 1, - 1, - 64, - 32, - 8, - 14, - 38, - }; - static int32_t window_themes_tab_animation_divisor[] = { - 4, - 4, - 1, - 1, - 4, - 2, - 2, - 2, - 2, - }; - static int32_t window_themes_tab_sprites[] = { - SPR_TAB_PAINT_0, - SPR_TAB_KIOSKS_AND_FACILITIES_0, - SPR_TAB_PARK_ENTRANCE, - SPR_G2_TAB_LAND, - SPR_TAB_RIDE_0, - SPR_TAB_WRENCH_0, - SPR_TAB_GEARS_0, - SPR_TAB_STAFF_OPTIONS_0, - SPR_TAB_FINANCES_MARKETING_0, - }; - - static WindowClass window_themes_tab_1_classes[] = { + static constexpr std::array kThemesTabMainClasses = std::to_array({ WindowClass::topToolbar, WindowClass::bottomToolbar, WindowClass::parkInfoPanel, @@ -163,9 +128,9 @@ namespace OpenRCT2::Ui::Windows WindowClass::titleExit, WindowClass::titleOptions, WindowClass::scenarioSelect, - }; + }); - static WindowClass window_themes_tab_2_classes[] = { + static constexpr std::array kThemesTabParkClasses = std::to_array({ WindowClass::parkInformation, WindowClass::editorParkEntrance, WindowClass::finances, @@ -174,9 +139,9 @@ namespace OpenRCT2::Ui::Windows WindowClass::map, WindowClass::viewport, WindowClass::recentNews, - }; + }); - static WindowClass window_themes_tab_3_classes[] = { + static constexpr std::array kThemesTabToolsClasses = std::to_array({ WindowClass::land, WindowClass::water, WindowClass::clearScenery, @@ -189,9 +154,9 @@ namespace OpenRCT2::Ui::Windows WindowClass::constructRide, WindowClass::trackDesignList, WindowClass::patrolArea, - }; + }); - static WindowClass window_themes_tab_4_classes[] = { + static constexpr std::array kThemesTabRidesGuestsClasses = std::to_array({ WindowClass::ride, WindowClass::rideList, WindowClass::peep, @@ -199,18 +164,18 @@ namespace OpenRCT2::Ui::Windows WindowClass::staff, WindowClass::staffList, WindowClass::banner, - }; + }); - static WindowClass window_themes_tab_5_classes[] = { + static constexpr std::array kThemesTabEditorsClasses = std::to_array({ WindowClass::editorObjectSelection, WindowClass::editorInventionList, WindowClass::editorScenarioOptions, WindowClass::mapgen, WindowClass::manageTrackDesign, WindowClass::installTrack, - }; + }); - static WindowClass window_themes_tab_6_classes[] = { + static constexpr std::array kThemesTabMiscClasses = std::to_array({ WindowClass::cheats, WindowClass::tileInspector, WindowClass::viewClipping, @@ -228,9 +193,9 @@ namespace OpenRCT2::Ui::Windows WindowClass::player, WindowClass::chat, WindowClass::console, - }; + }); - static WindowClass window_themes_tab_7_classes[] = { + static constexpr std::array kThemesTabPromptsClasses = std::to_array({ WindowClass::error, WindowClass::savePrompt, WindowClass::demolishRidePrompt, @@ -239,18 +204,30 @@ namespace OpenRCT2::Ui::Windows WindowClass::loadsaveOverwritePrompt, WindowClass::progressWindow, WindowClass::networkStatus, + }); + + struct ThemeTabInfo + { + uint8_t tabId; + WidgetIndex tabWidgetIndex; + int32_t baseImageId; + int32_t numAnimationFrames; + int32_t animationDivisor; + std::span windowClasses; }; - static WindowClass* window_themes_tab_classes[] = { - nullptr, - window_themes_tab_1_classes, - window_themes_tab_2_classes, - window_themes_tab_3_classes, - window_themes_tab_4_classes, - window_themes_tab_5_classes, - window_themes_tab_6_classes, - window_themes_tab_7_classes, - }; + // clang-format off + static constexpr std::array kThemeTabInfo = std::to_array({ + { WINDOW_THEMES_TAB_SETTINGS, WIDX_THEMES_SETTINGS_TAB, SPR_TAB_PAINT_0, 32, 4, {} }, + { WINDOW_THEMES_TAB_MAIN_UI, WIDX_THEMES_MAIN_UI_TAB, SPR_TAB_KIOSKS_AND_FACILITIES_0, 32, 4, kThemesTabMainClasses }, + { WINDOW_THEMES_TAB_PARK, WIDX_THEMES_PARK_TAB, SPR_TAB_PARK_ENTRANCE, 1, 1, kThemesTabParkClasses }, + { WINDOW_THEMES_TAB_TOOLS, WIDX_THEMES_TOOLS_TAB, SPR_G2_TAB_LAND, 1, 1, kThemesTabToolsClasses }, + { WINDOW_THEMES_TAB_RIDES_PEEPS, WIDX_THEMES_RIDE_PEEPS_TAB, SPR_TAB_RIDE_0, 64, 4, kThemesTabRidesGuestsClasses }, + { WINDOW_THEMES_TAB_EDITORS, WIDX_THEMES_EDITORS_TAB, SPR_TAB_WRENCH_0, 32, 2, kThemesTabEditorsClasses }, + { WINDOW_THEMES_TAB_MISC, WIDX_THEMES_MISC_TAB, SPR_TAB_GEARS_0, 8, 2, kThemesTabMiscClasses }, + { WINDOW_THEMES_TAB_PROMPTS, WIDX_THEMES_PROMPTS_TAB, SPR_TAB_STAFF_OPTIONS_0, 14, 2, kThemesTabPromptsClasses }, + { WINDOW_THEMES_TAB_FEATURES, WIDX_THEMES_FEATURES_TAB, SPR_TAB_FINANCES_MARKETING_0, 38, 2, {} }, + }); // clang-format on #pragma endregion @@ -316,7 +293,7 @@ namespace OpenRCT2::Ui::Windows void onUpdate() override { currentFrame++; - if (currentFrame >= window_themes_tab_animation_loops[_selectedTab]) + if (currentFrame >= kThemeTabInfo[_selectedTab].numAnimationFrames) currentFrame = 0; invalidateWidget(WIDX_THEMES_SETTINGS_TAB + _selectedTab); @@ -798,7 +775,7 @@ namespace OpenRCT2::Ui::Windows WindowClass GetWindowClassTabIndex(int32_t index) { - WindowClass* classes = window_themes_tab_classes[_selectedTab]; + auto classes = kThemeTabInfo[_selectedTab].windowClasses; return classes[index]; } @@ -863,38 +840,20 @@ namespace OpenRCT2::Ui::Windows int32_t GetColourSchemeTabCount() { - switch (_selectedTab) - { - case 1: - return sizeof(window_themes_tab_1_classes); - case 2: - return sizeof(window_themes_tab_2_classes); - case 3: - return sizeof(window_themes_tab_3_classes); - case 4: - return sizeof(window_themes_tab_4_classes); - case 5: - return sizeof(window_themes_tab_5_classes); - case 6: - return sizeof(window_themes_tab_6_classes); - case 7: - return sizeof(window_themes_tab_7_classes); - } - return 0; + auto& tabInfo = kThemeTabInfo[_selectedTab]; + return static_cast(tabInfo.windowClasses.size()); } void WindowThemesDrawTabImages(RenderTarget& rt) { - for (int32_t i = 0; i < WINDOW_THEMES_TAB_COUNT; i++) + for (auto& tabInfo : kThemeTabInfo) { - int32_t sprite_idx = window_themes_tab_sprites[i]; - if (_selectedTab == i) - sprite_idx += currentFrame / window_themes_tab_animation_divisor[_selectedTab]; - GfxDrawSprite( - rt, ImageId(sprite_idx), - windowPos - + ScreenCoordsXY{ widgets[WIDX_THEMES_SETTINGS_TAB + i].left, - widgets[WIDX_THEMES_SETTINGS_TAB + i].top }); + int32_t sprite_idx = tabInfo.baseImageId; + if (_selectedTab == tabInfo.tabId) + sprite_idx += currentFrame / tabInfo.animationDivisor; + + auto& widget = widgets[tabInfo.tabWidgetIndex]; + GfxDrawSprite(rt, ImageId(sprite_idx), windowPos + ScreenCoordsXY{ widget.left, widget.top }); } } }; From 242b9167679274b6670c80504850867f13dfc7cc Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 12 Sep 2026 16:11:49 +0200 Subject: [PATCH 033/142] Fix typo in en-GB --- data/language/en-GB.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/language/en-GB.txt b/data/language/en-GB.txt index 5eeabdc44d..b19bd98374 100644 --- a/data/language/en-GB.txt +++ b/data/language/en-GB.txt @@ -3837,6 +3837,6 @@ STR_7043 :Can’t change land height here… STR_7044 :News ticker STR_7045 :RCT1 style status bar STR_7046 :Status bar (RCT1 style) -STR_7047 :Step control (Track Editor) +STR_7047 :Step control (Track Designer) STR_7048 :Step control (Scenario Editor) STR_7049 :OpenRCT2 From b1175458bfb9481a02e8ac526cdf52c864aa033d Mon Sep 17 00:00:00 2001 From: Harry Hopkinson <63599884+Harry-Hopkinson@users.noreply.github.com> Date: Sat, 12 Sep 2026 17:58:50 +0200 Subject: [PATCH 034/142] Refactor CoordsRange.hpp/ScreenCoords.hpp members to camelCase (#27112) --- .../engines/opengl/OpenGLDrawingEngine.cpp | 116 +++++++++--------- src/openrct2-ui/interface/Graph.cpp | 28 ++--- src/openrct2-ui/interface/Graph.h | 12 +- .../interface/ViewportInteraction.cpp | 4 +- src/openrct2-ui/ride/VehicleSounds.cpp | 8 +- src/openrct2-ui/scripting/ScTileSelection.hpp | 8 +- src/openrct2-ui/windows/AssetPacks.cpp | 2 +- src/openrct2-ui/windows/Finances.cpp | 6 +- src/openrct2-ui/windows/Footpath.cpp | 16 +-- src/openrct2-ui/windows/Park.cpp | 8 +- src/openrct2-ui/windows/Scenery.cpp | 6 +- src/openrct2-ui/windows/TileInspector.cpp | 2 +- src/openrct2-ui/windows/TitleMenu.cpp | 2 +- .../actions/GameActionParameterVisitor.h | 8 +- .../actions/park/LandBuyRightsAction.cpp | 16 +-- .../actions/park/LandSetRightsAction.cpp | 8 +- .../actions/peep/StaffSetPatrolAreaAction.cpp | 6 +- .../actions/terraform/ClearAction.cpp | 8 +- .../actions/terraform/LandLowerAction.cpp | 4 +- .../actions/terraform/LandRaiseAction.cpp | 4 +- .../actions/terraform/LandSmoothAction.cpp | 104 ++++++++-------- .../terraform/SurfaceSetStyleAction.cpp | 16 +-- .../actions/terraform/WaterLowerAction.cpp | 12 +- .../actions/terraform/WaterRaiseAction.cpp | 12 +- src/openrct2/core/CoordsRange.hpp | 24 ++-- src/openrct2/core/DataSerialiserTraits.h | 12 +- src/openrct2/drawing/Line.cpp | 18 +-- src/openrct2/drawing/NewDrawing.cpp | 2 +- src/openrct2/drawing/Rectangle.cpp | 12 +- src/openrct2/entity/Peep.cpp | 8 +- src/openrct2/entity/Staff.cpp | 4 +- src/openrct2/interface/ScreenCoords.hpp | 28 ++--- src/openrct2/interface/Viewport.cpp | 74 +++++------ src/openrct2/paint/Paint.Entity.cpp | 8 +- .../scripting/bindings/entity/ScStaff.cpp | 4 +- src/openrct2/world/FootpathDragSlope.cpp | 36 +++--- src/openrct2/world/Location.hpp | 8 +- src/openrct2/world/Map.cpp | 16 +-- src/openrct2/world/MapRangeView.cpp | 2 +- src/openrct2/world/MapSelection.cpp | 4 +- 40 files changed, 338 insertions(+), 338 deletions(-) diff --git a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp index ff4c0da02d..e3a2a4cf09 100644 --- a/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp +++ b/src/openrct2-ui/drawing/engines/opengl/OpenGLDrawingEngine.cpp @@ -696,14 +696,14 @@ void OpenGLDrawingContext::FillRect( const ScreenRect clip = CalculateClipping(rt); - left += clip.GetLeft() - rt.x; - top += clip.GetTop() - rt.y; - right += clip.GetLeft() - rt.x; - bottom += clip.GetTop() - rt.y; + left += clip.getLeft() - rt.x; + top += clip.getTop() - rt.y; + right += clip.getLeft() - rt.x; + bottom += clip.getTop() - rt.y; DrawRectCommand& command = _commandBuffers.rects.allocate(); - command.clip = { clip.GetLeft(), clip.GetTop(), clip.GetRight(), clip.GetBottom() }; + command.clip = { clip.getLeft(), clip.getTop(), clip.getRight(), clip.getBottom() }; command.texColourAtlas = 0; command.texColourBounds = { 0.0f, 0.0f, 0.0f, 0.0f }; command.texMaskAtlas = 0; @@ -729,14 +729,14 @@ void OpenGLDrawingContext::FilterRect( const ScreenRect clip = CalculateClipping(rt); - left += clip.GetLeft() - rt.x; - top += clip.GetTop() - rt.y; - right += clip.GetLeft() - rt.x; - bottom += clip.GetTop() - rt.y; + left += clip.getLeft() - rt.x; + top += clip.getTop() - rt.y; + right += clip.getLeft() - rt.x; + bottom += clip.getTop() - rt.y; DrawRectCommand& command = _commandBuffers.transparent.allocate(); - command.clip = { clip.GetLeft(), clip.GetTop(), clip.GetRight(), clip.GetBottom() }; + command.clip = { clip.getLeft(), clip.getTop(), clip.getRight(), clip.getBottom() }; command.texColourAtlas = 0; command.texColourBounds = { 0.0f, 0.0f, 0.0f, 0.0f }; command.texMaskAtlas = 0; @@ -773,8 +773,8 @@ bool OpenGLDrawingContext::CohenSutherlandLineClip(ScreenLine& line, const Rende { ScreenCoordsXY topLeft = { rt.x, rt.y }; ScreenCoordsXY bottomRight = { rt.x + rt.width - 1, rt.y + rt.height - 1 }; - uint8_t outcode1 = ComputeOutCode(line.Point1, topLeft, bottomRight); - uint8_t outcode2 = ComputeOutCode(line.Point2, topLeft, bottomRight); + uint8_t outcode1 = ComputeOutCode(line.point1, topLeft, bottomRight); + uint8_t outcode2 = ComputeOutCode(line.point2, topLeft, bottomRight); while (true) { @@ -796,39 +796,39 @@ bool OpenGLDrawingContext::CohenSutherlandLineClip(ScreenLine& line, const Rende // clang-format off if (outcodeOut & kCSBottom) { - clipped.x = line.Point1.x + (line.Point2.x - line.Point1.x) * - (bottomRight.y - line.Point1.y) / (line.Point2.y - line.Point1.y); + clipped.x = line.point1.x + (line.point2.x - line.point1.x) * + (bottomRight.y - line.point1.y) / (line.point2.y - line.point1.y); clipped.y = bottomRight.y; } else if (outcodeOut & kCSTop) { - clipped.x = line.Point1.x + (line.Point2.x - line.Point1.x) * - (topLeft.y - line.Point1.y) / (line.Point2.y - line.Point1.y); + clipped.x = line.point1.x + (line.point2.x - line.point1.x) * + (topLeft.y - line.point1.y) / (line.point2.y - line.point1.y); clipped.y = topLeft.y; } else if (outcodeOut & kCSRight) { - clipped.y = line.Point1.y + (line.Point2.y - line.Point1.y) * - (bottomRight.x - line.Point1.x) / (line.Point2.x - line.Point1.x); + clipped.y = line.point1.y + (line.point2.y - line.point1.y) * + (bottomRight.x - line.point1.x) / (line.point2.x - line.point1.x); clipped.x = bottomRight.x; } else if (outcodeOut & kCSLeft) { - clipped.y = line.Point1.y + (line.Point2.y - line.Point1.y) * - (topLeft.x - line.Point1.x) / (line.Point2.x - line.Point1.x); + clipped.y = line.point1.y + (line.point2.y - line.point1.y) * + (topLeft.x - line.point1.x) / (line.point2.x - line.point1.x); clipped.x = topLeft.x; } // clang-format on if (outcodeOut == outcode1) { - line.Point1 = clipped; - outcode1 = ComputeOutCode(line.Point1, topLeft, bottomRight); + line.point1 = clipped; + outcode1 = ComputeOutCode(line.point1, topLeft, bottomRight); } else { - line.Point2 = clipped; - outcode2 = ComputeOutCode(line.Point2, topLeft, bottomRight); + line.point2 = clipped; + outcode2 = ComputeOutCode(line.point2, topLeft, bottomRight); } } } @@ -838,18 +838,18 @@ void OpenGLDrawingContext::DrawLine(RenderTarget& rt, PaletteIndex colour, const Guard::Assert(_inDraw == true); const ZoomLevel zoom = rt.zoom_level; - ScreenLine trimmedLine = { { zoom.ApplyInversedTo(line.GetX1()), zoom.ApplyInversedTo(line.GetY1()) }, - { zoom.ApplyInversedTo(line.GetX2()), zoom.ApplyInversedTo(line.GetY2()) } }; + ScreenLine trimmedLine = { { zoom.ApplyInversedTo(line.getX1()), zoom.ApplyInversedTo(line.getY1()) }, + { zoom.ApplyInversedTo(line.getX2()), zoom.ApplyInversedTo(line.getY2()) } }; if (!CohenSutherlandLineClip(trimmedLine, rt)) return; DrawLineCommand& command = _commandBuffers.lines.allocate(); const ScreenRect clip = CalculateClipping(rt); - const int32_t x1 = trimmedLine.GetX1() - rt.x + clip.GetLeft(); - const int32_t y1 = trimmedLine.GetY1() - rt.y + clip.GetTop(); - const int32_t x2 = trimmedLine.GetX2() - rt.x + clip.GetLeft(); - const int32_t y2 = trimmedLine.GetY2() - rt.y + clip.GetTop(); + const int32_t x1 = trimmedLine.getX1() - rt.x + clip.getLeft(); + const int32_t y1 = trimmedLine.getY1() - rt.y + clip.getTop(); + const int32_t x2 = trimmedLine.getX2() - rt.x + clip.getLeft(); + const int32_t y2 = trimmedLine.getY2() - rt.y + clip.getTop(); command.bounds = { x1, y1, x2, y2 }; command.colour = static_cast(colour); @@ -922,10 +922,10 @@ void OpenGLDrawingContext::DrawSprite(RenderTarget& rt, const ImageId imageId, c int32_t bottom = top + rt.zoom_level.ApplyInversedTo(g1Element->height + yModifier); const ScreenRect clip = CalculateClipping(rt); - left += clip.GetLeft() - rt.x; - top += clip.GetTop() - rt.y; - right += clip.GetLeft() - rt.x; - bottom += clip.GetTop() - rt.y; + left += clip.getLeft() - rt.x; + top += clip.getTop() - rt.y; + right += clip.getLeft() - rt.x; + bottom += clip.getTop() - rt.y; const float zoom = rt.zoom_level >= ZoomLevel{ 0 } ? static_cast(rt.zoom_level.ApplyTo(1)) : 1.0f / static_cast(rt.zoom_level.ApplyInversedTo(1)); @@ -966,7 +966,7 @@ void OpenGLDrawingContext::DrawSprite(RenderTarget& rt, const ImageId imageId, c { DrawRectCommand& command = _commandBuffers.transparent.allocate(); - command.clip = { clip.GetLeft(), clip.GetTop(), clip.GetRight(), clip.GetBottom() }; + command.clip = { clip.getLeft(), clip.getTop(), clip.getRight(), clip.getBottom() }; command.texColourAtlas = texture.index; command.texColourBounds = texture.coords; command.texMaskAtlas = texture.index; @@ -982,7 +982,7 @@ void OpenGLDrawingContext::DrawSprite(RenderTarget& rt, const ImageId imageId, c { DrawRectCommand& command = _commandBuffers.rects.allocate(); - command.clip = { clip.GetLeft(), clip.GetTop(), clip.GetRight(), clip.GetBottom() }; + command.clip = { clip.getLeft(), clip.getTop(), clip.getRight(), clip.getBottom() }; command.texColourAtlas = texture.index; command.texColourBounds = texture.coords; command.texMaskAtlas = 0; @@ -1036,17 +1036,17 @@ void OpenGLDrawingContext::DrawSpriteRawMasked( bottom = rt.zoom_level.ApplyInversedTo(bottom); const ScreenRect clip = CalculateClipping(rt); - left += clip.GetLeft() - rt.x; - top += clip.GetTop() - rt.y; - right += clip.GetLeft() - rt.x; - bottom += clip.GetTop() - rt.y; + left += clip.getLeft() - rt.x; + top += clip.getTop() - rt.y; + right += clip.getLeft() - rt.x; + bottom += clip.getTop() - rt.y; const float zoom = rt.zoom_level >= ZoomLevel{ 0 } ? static_cast(rt.zoom_level.ApplyTo(1)) : 1.0f / static_cast(rt.zoom_level.ApplyInversedTo(1)); DrawRectCommand& command = _commandBuffers.rects.allocate(); - command.clip = { clip.GetLeft(), clip.GetTop(), clip.GetRight(), clip.GetBottom() }; + command.clip = { clip.getLeft(), clip.getTop(), clip.getRight(), clip.getBottom() }; command.texColourAtlas = textureColour.index; command.texColourBounds = textureColour.coords; command.texMaskAtlas = textureMask.index; @@ -1091,14 +1091,14 @@ void OpenGLDrawingContext::DrawSpriteSolid(RenderTarget& rt, const ImageId image } const ScreenRect clip = CalculateClipping(rt); - left += clip.GetLeft() - rt.x; - top += clip.GetTop() - rt.y; - right += clip.GetLeft() - rt.x; - bottom += clip.GetTop() - rt.y; + left += clip.getLeft() - rt.x; + top += clip.getTop() - rt.y; + right += clip.getLeft() - rt.x; + bottom += clip.getTop() - rt.y; DrawRectCommand& command = _commandBuffers.rects.allocate(); - command.clip = { clip.GetLeft(), clip.GetTop(), clip.GetRight(), clip.GetBottom() }; + command.clip = { clip.getLeft(), clip.getTop(), clip.getRight(), clip.getBottom() }; command.texColourAtlas = 0; command.texColourBounds = { 0.0f, 0.0f, 0.0f, 0.0f }; command.texMaskAtlas = texture.index; @@ -1143,17 +1143,17 @@ void OpenGLDrawingContext::DrawGlyph(RenderTarget& rt, const ImageId image, int3 bottom = rt.zoom_level.ApplyInversedTo(bottom); const ScreenRect clip = CalculateClipping(rt); - left += clip.GetLeft() - rt.x; - top += clip.GetTop() - rt.y; - right += clip.GetLeft() - rt.x; - bottom += clip.GetTop() - rt.y; + left += clip.getLeft() - rt.x; + top += clip.getTop() - rt.y; + right += clip.getLeft() - rt.x; + bottom += clip.getTop() - rt.y; const float zoom = rt.zoom_level >= ZoomLevel{ 0 } ? static_cast(rt.zoom_level.ApplyTo(1)) : 1.0f / static_cast(rt.zoom_level.ApplyInversedTo(1)); DrawRectCommand& command = _commandBuffers.rects.allocate(); - command.clip = { clip.GetLeft(), clip.GetTop(), clip.GetRight(), clip.GetBottom() }; + command.clip = { clip.getLeft(), clip.getTop(), clip.getRight(), clip.getBottom() }; command.texColourAtlas = texture.index; command.texColourBounds = texture.coords; command.texMaskAtlas = 0; @@ -1202,10 +1202,10 @@ void OpenGLDrawingContext::DrawTTFBitmap( } const ScreenRect clip = CalculateClipping(rt); - left += clip.GetLeft() - rt.x; - top += clip.GetTop() - rt.y; - right += clip.GetLeft() - rt.x; - bottom += clip.GetTop() - rt.y; + left += clip.getLeft() - rt.x; + top += clip.getTop() - rt.y; + right += clip.getLeft() - rt.x; + bottom += clip.getTop() - rt.y; if (info.colourFlags.has(ColourFlag::withOutline)) { @@ -1218,7 +1218,7 @@ void OpenGLDrawingContext::DrawTTFBitmap( for (auto b : boundsArr) { DrawRectCommand& command = _commandBuffers.rects.allocate(); - command.clip = { clip.GetLeft(), clip.GetTop(), clip.GetRight(), clip.GetBottom() }; + command.clip = { clip.getLeft(), clip.getTop(), clip.getRight(), clip.getBottom() }; command.texColourAtlas = texture.index; command.texColourBounds = texture.coords; command.texMaskAtlas = 0; @@ -1234,7 +1234,7 @@ void OpenGLDrawingContext::DrawTTFBitmap( if (info.colourFlags.has(ColourFlag::inset)) { DrawRectCommand& command = _commandBuffers.rects.allocate(); - command.clip = { clip.GetLeft(), clip.GetTop(), clip.GetRight(), clip.GetBottom() }; + command.clip = { clip.getLeft(), clip.getTop(), clip.getRight(), clip.getBottom() }; command.texColourAtlas = texture.index; command.texColourBounds = texture.coords; command.texMaskAtlas = 0; @@ -1248,7 +1248,7 @@ void OpenGLDrawingContext::DrawTTFBitmap( } auto& cmdBuf = hintingThreshold > 0 ? _commandBuffers.transparent : _commandBuffers.rects; DrawRectCommand& command = cmdBuf.allocate(); - command.clip = { clip.GetLeft(), clip.GetTop(), clip.GetRight(), clip.GetBottom() }; + command.clip = { clip.getLeft(), clip.getTop(), clip.getRight(), clip.getBottom() }; command.texColourAtlas = texture.index; command.texColourBounds = texture.coords; command.texMaskAtlas = 0; diff --git a/src/openrct2-ui/interface/Graph.cpp b/src/openrct2-ui/interface/Graph.cpp index 9e5e908543..e7f5f477a2 100644 --- a/src/openrct2-ui/interface/Graph.cpp +++ b/src/openrct2-ui/interface/Graph.cpp @@ -32,7 +32,7 @@ namespace OpenRCT2::Graph const int32_t yLabelStepPx, const ColourWithFlags lineCol, const FmtString& fmt) { T curLabel = max; - int32_t curScreenPos = internalBounds.GetTop() - 5; + int32_t curScreenPos = internalBounds.getTop() - 5; const T yLabelStep = (max - min) / (numYLabels - 1); for (int32_t i = 0; i < numYLabels; i++) { @@ -40,15 +40,15 @@ namespace OpenRCT2::Graph char buffer[64]{}; FormatStringToBuffer(buffer, sizeof(buffer), fmt, curLabel); drawText( - rt, { internalBounds.GetLeft() - kYTickMarkPadding, curScreenPos }, buffer, + rt, { internalBounds.getLeft() - kYTickMarkPadding, curScreenPos }, buffer, { FontStyle::small, TextAlignment::right }); // Draw Y label tick mark Rectangle::fill( - rt, { { internalBounds.GetLeft() - 5, curScreenPos + 5 }, { internalBounds.GetLeft(), curScreenPos + 5 } }, + rt, { { internalBounds.getLeft() - 5, curScreenPos + 5 }, { internalBounds.getLeft(), curScreenPos + 5 } }, PaletteIndex::pi10); // Draw horizontal gridline Rectangle::fillInset( - rt, { { internalBounds.GetLeft(), curScreenPos + 5 }, { internalBounds.GetRight(), curScreenPos + 5 } }, + rt, { { internalBounds.getLeft(), curScreenPos + 5 }, { internalBounds.getRight(), curScreenPos + 5 } }, lineCol, Rectangle::BorderStyle::inset); curScreenPos += yLabelStepPx; curLabel -= yLabelStep; @@ -62,7 +62,7 @@ namespace OpenRCT2::Graph int32_t currentMonth = date.GetMonth(); int32_t currentDay = date.GetMonthTicks(); int32_t yearOver32 = (currentMonth * 4) + (currentDay >> 14) - 31; - auto screenCoords = bounds.Point1; + auto screenCoords = bounds.point1; for (int32_t i = count - 1; i >= 0; i--) { if (series[i] != TkNoValue && yearOver32 % 4 == 0) @@ -88,20 +88,20 @@ namespace OpenRCT2::Graph RenderTarget& rt, const T value, const int32_t hoverIdx, const ScreenRect& bounds, const int32_t xStep, const T minValue, const T maxValue, const_utf8string text, ColourWithFlags textCol) { - const T screenRange = bounds.GetHeight(); + const T screenRange = bounds.getHeight(); const T valueRange = maxValue - minValue; - const int32_t yPosition = bounds.GetBottom() - ((value - minValue) * screenRange) / valueRange; - ScreenCoordsXY coords = { bounds.GetRight() - hoverIdx * xStep, yPosition }; + const int32_t yPosition = bounds.getBottom() - ((value - minValue) * screenRange) / valueRange; + ScreenCoordsXY coords = { bounds.getRight() - hoverIdx * xStep, yPosition }; GfxDrawDashedLine( rt, { - { coords.x, bounds.GetTop() }, - { coords.x, bounds.GetBottom() }, + { coords.x, bounds.getTop() }, + { coords.x, bounds.getBottom() }, }, kDashLength, PaletteIndex::pi10); - GfxDrawDashedLine(rt, { { bounds.GetLeft(), coords.y }, coords }, kDashLength, PaletteIndex::pi10); + GfxDrawDashedLine(rt, { { bounds.getLeft(), coords.y }, coords }, kDashLength, PaletteIndex::pi10); drawText(rt, coords - ScreenCoordsXY{ 0, 16 }, text, { textCol, TextAlignment::centre }); @@ -114,18 +114,18 @@ namespace OpenRCT2::Graph RenderTarget& rt, const T* series, const int32_t count, const ScreenRect& bounds, const int32_t xStep, const T minValue, const T maxValue) { - const T screenRange = bounds.GetHeight(); + const T screenRange = bounds.getHeight(); const T valueRange = maxValue - minValue; ScreenCoordsXY lastCoords; bool lastCoordsValid = false; - ScreenCoordsXY coords = bounds.Point1; + ScreenCoordsXY coords = bounds.point1; for (int32_t i = count - 1; i >= 0; i--) { auto value = series[i]; if (value != TkNoValue) { - coords.y = bounds.GetBottom() - ((value - minValue) * screenRange) / valueRange; + coords.y = bounds.getBottom() - ((value - minValue) * screenRange) / valueRange; if constexpr (TbackgroundLine) { diff --git a/src/openrct2-ui/interface/Graph.h b/src/openrct2-ui/interface/Graph.h index 99db167435..38c27cd207 100644 --- a/src/openrct2-ui/interface/Graph.h +++ b/src/openrct2-ui/interface/Graph.h @@ -39,11 +39,11 @@ namespace OpenRCT2::Graph void RecalculateLayout(const ScreenRect newBounds, const int32_t newNumYLabels, const int32_t newNumPoints) { - yLabelStepPx = (newBounds.GetBottom() - newBounds.GetTop()) / (newNumYLabels - 1); - xStepPx = (newBounds.GetRight() - newBounds.GetLeft()) / (newNumPoints - 1); + yLabelStepPx = (newBounds.getBottom() - newBounds.getTop()) / (newNumYLabels - 1); + xStepPx = (newBounds.getRight() - newBounds.getLeft()) / (newNumPoints - 1); // adjust bounds to be exact multiples of the steps. - internalBounds = { newBounds.Point1, - newBounds.Point1 + internalBounds = { newBounds.point1, + newBounds.point1 + ScreenCoordsXY{ xStepPx * (newNumPoints - 1), yLabelStepPx * (newNumYLabels - 1) } }; numPoints = newNumPoints; numYLabels = newNumYLabels; @@ -54,9 +54,9 @@ namespace OpenRCT2::Graph const ScreenCoordsXY cursorPos = ContextGetCursorPositionScaled(); int32_t i = -1; - if (internalBounds.Contains(cursorPos)) + if (internalBounds.contains(cursorPos)) { - i = (numPoints - 1) - (cursorPos.x - internalBounds.GetLeft() + (xStepPx / 2)) / xStepPx; + i = (numPoints - 1) - (cursorPos.x - internalBounds.getLeft() + (xStepPx / 2)) / xStepPx; if (i < 0) i = 1; if (i > numPoints - 1) diff --git a/src/openrct2-ui/interface/ViewportInteraction.cpp b/src/openrct2-ui/interface/ViewportInteraction.cpp index 32b1fb1538..ef720e9637 100644 --- a/src/openrct2-ui/interface/ViewportInteraction.cpp +++ b/src/openrct2-ui/interface/ViewportInteraction.cpp @@ -747,8 +747,8 @@ namespace OpenRCT2::Ui screenCoords - ScreenCoordsXY{ peep->spriteData.width, peep->spriteData.heightMin }, screenCoords + ScreenCoordsXY{ peep->spriteData.width, peep->spriteData.heightMax }); - auto distance = abs(((spriteRect.GetLeft() + spriteRect.GetRight()) / 2) - viewportCoords.x) - + abs(((spriteRect.GetTop() + spriteRect.GetBottom()) / 2) - viewportCoords.y); + auto distance = abs(((spriteRect.getLeft() + spriteRect.getRight()) / 2) - viewportCoords.x) + + abs(((spriteRect.getTop() + spriteRect.getBottom()) / 2) - viewportCoords.y); if (distance > maxDistance) continue; diff --git a/src/openrct2-ui/ride/VehicleSounds.cpp b/src/openrct2-ui/ride/VehicleSounds.cpp index 8a0fdf02bf..ea7631511a 100644 --- a/src/openrct2-ui/ride/VehicleSounds.cpp +++ b/src/openrct2-ui/ride/VehicleSounds.cpp @@ -131,7 +131,7 @@ namespace OpenRCT2::Audio bottom -= quarter_h; } - if (left >= vehicle.spriteData.spriteRect.GetRight() || bottom >= vehicle.spriteData.spriteRect.GetBottom()) + if (left >= vehicle.spriteData.spriteRect.getRight() || bottom >= vehicle.spriteData.spriteRect.getBottom()) return false; auto right = gMusicTrackingViewport->ViewWidth() + left; @@ -143,7 +143,7 @@ namespace OpenRCT2::Audio top += quarter_h + quarter_h; } - if (right < vehicle.spriteData.spriteRect.GetRight() || top < vehicle.spriteData.spriteRect.GetTop()) + if (right < vehicle.spriteData.spriteRect.getRight() || top < vehicle.spriteData.spriteRect.getTop()) return false; return true; @@ -173,7 +173,7 @@ namespace OpenRCT2::Audio { VehicleSoundParams param; param.priority = priority; - int32_t panX = (vehicle.spriteData.spriteRect.GetLeft() / 2) + (vehicle.spriteData.spriteRect.GetRight() / 2) + int32_t panX = (vehicle.spriteData.spriteRect.getLeft() / 2) + (vehicle.spriteData.spriteRect.getRight() / 2) - gMusicTrackingViewport->viewPos.x; panX = gMusicTrackingViewport->zoom.ApplyInversedTo(panX); panX += gMusicTrackingViewport->pos.x; @@ -185,7 +185,7 @@ namespace OpenRCT2::Audio } param.panX = ((((panX * 65536) / screenWidth) - 0x8000) >> 4); - int32_t panY = (vehicle.spriteData.spriteRect.GetTop() / 2) + (vehicle.spriteData.spriteRect.GetBottom() / 2) + int32_t panY = (vehicle.spriteData.spriteRect.getTop() / 2) + (vehicle.spriteData.spriteRect.getBottom() / 2) - gMusicTrackingViewport->viewPos.y; panY = gMusicTrackingViewport->zoom.ApplyInversedTo(panY); panY += gMusicTrackingViewport->pos.y; diff --git a/src/openrct2-ui/scripting/ScTileSelection.hpp b/src/openrct2-ui/scripting/ScTileSelection.hpp index 6d8bb9c9a3..406a8e54d3 100644 --- a/src/openrct2-ui/scripting/ScTileSelection.hpp +++ b/src/openrct2-ui/scripting/ScTileSelection.hpp @@ -63,10 +63,10 @@ namespace OpenRCT2::Scripting auto range = GetMapRange(ctx, value); if (range) { - gMapSelectPositionA.x = range->GetX1(); - gMapSelectPositionA.y = range->GetY1(); - gMapSelectPositionB.x = range->GetX2(); - gMapSelectPositionB.y = range->GetY2(); + gMapSelectPositionA.x = range->getX1(); + gMapSelectPositionA.y = range->getY1(); + gMapSelectPositionB.x = range->getX2(); + gMapSelectPositionB.y = range->getY2(); gMapSelectType = MapSelectType::full; gMapSelectFlags.set(MapSelectFlag::enable); } diff --git a/src/openrct2-ui/windows/AssetPacks.cpp b/src/openrct2-ui/windows/AssetPacks.cpp index c688f14ced..e97e6324bc 100644 --- a/src/openrct2-ui/windows/AssetPacks.cpp +++ b/src/openrct2-ui/windows/AssetPacks.cpp @@ -270,7 +270,7 @@ namespace OpenRCT2::Ui::Windows auto checkmark = Formatter(); checkmark.Add(STR_STRING); checkmark.Add(kCheckMarkString); - drawText(rt, ScreenCoordsXY{ rect.GetLeft() + 1, rect.GetTop() }, STR_WINDOW_COLOUR_2_STRINGID, checkmark); + drawText(rt, ScreenCoordsXY{ rect.getLeft() + 1, rect.getTop() }, STR_WINDOW_COLOUR_2_STRINGID, checkmark); } } diff --git a/src/openrct2-ui/windows/Finances.cpp b/src/openrct2-ui/windows/Finances.cpp index 2f452be040..d22b1545bb 100644 --- a/src/openrct2-ui/windows/Finances.cpp +++ b/src/openrct2-ui/windows/Finances.cpp @@ -777,7 +777,7 @@ namespace OpenRCT2::Ui::Windows { Formatter ft; ft.Add(currentValue); - drawText(rt, _graphBounds.Point1 - ScreenCoordsXY{ 0, 11 }, fmt, ft); + drawText(rt, _graphBounds.point1 - ScreenCoordsXY{ 0, 11 }, fmt, ft); // Graph Rectangle::fillInset( @@ -787,7 +787,7 @@ namespace OpenRCT2::Ui::Windows constexpr ScreenCoordsXY offset{ 1, 1 }; constexpr ScreenCoordsXY bigOffset{ 5, 5 }; Rectangle::fillInset( - rt, { _graphBounds.Point2 - bigOffset, _graphBounds.Point2 - offset }, colours[1], Rectangle::BorderStyle::none, + rt, { _graphBounds.point2 - bigOffset, _graphBounds.point2 - offset }, colours[1], Rectangle::BorderStyle::none, Rectangle::FillBrightness::light, Rectangle::FillMode::dontLightenWhenInset); Graph::DrawFinanceGraph(rt, _graphProps); @@ -825,7 +825,7 @@ namespace OpenRCT2::Ui::Windows _graphBounds = { windowPos + ScreenCoordsXY{ graphPageWidget->left + 4, graphPageWidget->top + 15 }, windowPos + ScreenCoordsXY{ graphPageWidget->right - 4, graphPageWidget->bottom - 4 } }; _graphProps.RecalculateLayout( - { _graphBounds.Point1 + dynamicPadding, _graphBounds.Point2 - kGraphBottomRightPadding }, kGraphNumYLabels, + { _graphBounds.point1 + dynamicPadding, _graphBounds.point2 - kGraphBottomRightPadding }, kGraphNumYLabels, kGraphNumPoints); _graphProps.lineCol = colours[2]; } diff --git a/src/openrct2-ui/windows/Footpath.cpp b/src/openrct2-ui/windows/Footpath.cpp index 1fa6950f6e..0edd056566 100644 --- a/src/openrct2-ui/windows/Footpath.cpp +++ b/src/openrct2-ui/windows/Footpath.cpp @@ -1131,9 +1131,9 @@ namespace OpenRCT2::Ui::Windows static std::vector buildTileVector(MapRange range, int32_t baseZ) { std::vector tiles{}; - for (auto y = range.GetY1(); y <= range.GetY2(); y += kCoordsXYStep) + for (auto y = range.getY1(); y <= range.getY2(); y += kCoordsXYStep) { - for (auto x = range.GetX1(); x <= range.GetX2(); x += kCoordsXYStep) + for (auto x = range.getX1(); x <= range.getX2(); x += kCoordsXYStep) { FootpathPlacementResult placement = { baseZ, {} }; if (baseZ == 0) @@ -1169,13 +1169,13 @@ namespace OpenRCT2::Ui::Windows { gMapSelectFlags.unset(MapSelectFlag::enableArrow); - int32_t rangeXTiles = (range.GetX2() - range.GetX1()) / kCoordsXYStep + 1; - int32_t rangeYTiles = (range.GetY2() - range.GetY1()) / kCoordsXYStep + 1; + int32_t rangeXTiles = (range.getX2() - range.getX1()) / kCoordsXYStep + 1; + int32_t rangeYTiles = (range.getY2() - range.getY1()) / kCoordsXYStep + 1; size_t expectedTileCount = static_cast(rangeXTiles * rangeYTiles); bool currentlyUsingModifiers = _footpathPlaceShiftState || _footpathPlaceCtrlState; - if (_provisionalFootpath.flags.has(ProvisionalPathFlag::placed) && range.Point1 == _provisionalFootpath.positionA - && range.Point2 == _provisionalFootpath.positionB && baseZ == _provisionalFootpath.startZ + if (_provisionalFootpath.flags.has(ProvisionalPathFlag::placed) && range.point1 == _provisionalFootpath.positionA + && range.point2 == _provisionalFootpath.positionB && baseZ == _provisionalFootpath.startZ && _provisionalFootpath.tiles.size() == expectedTileCount && _provisionalFootpath.usingModifiers == currentlyUsingModifiers) { @@ -1188,7 +1188,7 @@ namespace OpenRCT2::Ui::Windows FootpathUpdateProvisional(); std::vector tiles; - bool isSingleTile = (range.Point1 == range.Point2); + bool isSingleTile = (range.point1 == range.point2); if (baseZ == 0 && !currentlyUsingModifiers && !isSingleTile) { @@ -1202,7 +1202,7 @@ namespace OpenRCT2::Ui::Windows auto pathType = gFootpathSelection.getSelectedSurface(); auto constructFlags = FootpathCreateConstructFlags(pathType); const auto footpathCost = FootpathProvisionalSet( - pathType, gFootpathSelection.railings, range.Point1, range.Point2, baseZ, tiles, constructFlags); + pathType, gFootpathSelection.railings, range.point1, range.point2, baseZ, tiles, constructFlags); _provisionalFootpath.usingModifiers = currentlyUsingModifiers; if (_windowFootpathCost != footpathCost) diff --git a/src/openrct2-ui/windows/Park.cpp b/src/openrct2-ui/windows/Park.cpp index 2a04b9f6ee..2146ccfa98 100644 --- a/src/openrct2-ui/windows/Park.cpp +++ b/src/openrct2-ui/windows/Park.cpp @@ -675,7 +675,7 @@ namespace OpenRCT2::Ui::Windows const ScreenCoordsXY dynamicPadding{ std::max(maxGraphWidth, kGraphTopLeftPadding.x), kGraphTopLeftPadding.y }; _ratingProps.RecalculateLayout( - { _ratingGraphBounds.Point1 + dynamicPadding, _ratingGraphBounds.Point2 - kGraphBottomRightPadding }, + { _ratingGraphBounds.point1 + dynamicPadding, _ratingGraphBounds.point2 - kGraphBottomRightPadding }, kGraphNumYLabels, kParkRatingHistorySize); } @@ -699,7 +699,7 @@ namespace OpenRCT2::Ui::Windows constexpr ScreenCoordsXY offset{ 1, 1 }; constexpr ScreenCoordsXY bigOffset{ 5, 5 }; Rectangle::fillInset( - rt, { _ratingGraphBounds.Point2 - bigOffset, _ratingGraphBounds.Point2 - offset }, colours[1], + rt, { _ratingGraphBounds.point2 - bigOffset, _ratingGraphBounds.point2 - offset }, colours[1], Rectangle::BorderStyle::none, Rectangle::FillBrightness::light, Rectangle::FillMode::dontLightenWhenInset); Graph::DrawRatingGraph(rt, _ratingProps); @@ -755,7 +755,7 @@ namespace OpenRCT2::Ui::Windows const ScreenCoordsXY dynamicPadding{ std::max(maxGraphWidth, kGraphTopLeftPadding.x), kGraphTopLeftPadding.y }; _guestProps.RecalculateLayout( - { _guestGraphBounds.Point1 + dynamicPadding, _guestGraphBounds.Point2 - kGraphBottomRightPadding }, + { _guestGraphBounds.point1 + dynamicPadding, _guestGraphBounds.point2 - kGraphBottomRightPadding }, kGraphNumYLabels, kGuestsInParkHistorySize); } @@ -779,7 +779,7 @@ namespace OpenRCT2::Ui::Windows constexpr ScreenCoordsXY offset{ 1, 1 }; constexpr ScreenCoordsXY bigOffset{ 5, 5 }; Rectangle::fillInset( - rt, { _guestGraphBounds.Point2 - bigOffset, _guestGraphBounds.Point2 - offset }, colours[1], + rt, { _guestGraphBounds.point2 - bigOffset, _guestGraphBounds.point2 - offset }, colours[1], Rectangle::BorderStyle::none, Rectangle::FillBrightness::light, Rectangle::FillMode::dontLightenWhenInset); Graph::DrawGuestGraph(rt, _guestProps); diff --git a/src/openrct2-ui/windows/Scenery.cpp b/src/openrct2-ui/windows/Scenery.cpp index cbea0f5f94..fc6ca9481c 100644 --- a/src/openrct2-ui/windows/Scenery.cpp +++ b/src/openrct2-ui/windows/Scenery.cpp @@ -3175,9 +3175,9 @@ namespace OpenRCT2::Ui::Windows _lastProvisionalError = {}; auto mapRange = getMapSelectRange(); - for (auto y = mapRange.GetY1(); y <= mapRange.GetY2(); y += kCoordsXYStep) + for (auto y = mapRange.getY1(); y <= mapRange.getY2(); y += kCoordsXYStep) { - for (auto x = mapRange.GetX1(); x <= mapRange.GetX2(); x += kCoordsXYStep) + for (auto x = mapRange.getX1(); x <= mapRange.getX2(); x += kCoordsXYStep) { auto wallPlaceAction = GameActions::WallPlaceAction( tabSelection.EntryIndex, { x, y, gSceneryPlaceZ }, _startEdge, _sceneryPrimaryColour, @@ -3246,7 +3246,7 @@ namespace OpenRCT2::Ui::Windows } auto mapRange = getMapSelectRange(); - CoordsXYZ lastLocation = { mapRange.Point2, gSceneryPlaceZ }; + CoordsXYZ lastLocation = { mapRange.point2, gSceneryPlaceZ }; auto& gameState = getGameState(); // First query all tiles to get total cost and check for errors diff --git a/src/openrct2-ui/windows/TileInspector.cpp b/src/openrct2-ui/windows/TileInspector.cpp index ea74bde2dd..e343c68e8b 100644 --- a/src/openrct2-ui/windows/TileInspector.cpp +++ b/src/openrct2-ui/windows/TileInspector.cpp @@ -1012,7 +1012,7 @@ namespace OpenRCT2::Ui::Windows // Because the list items are displayed in reverse order, subtract the calculated index from the amount of elements const int16_t index = windowTileInspectorElementCount - (screenCoords.y - 1) / kScrollableRowHeight - 1; const ScreenRect checkboxColumnRect{ { 2, 0 }, { 15, screenCoords.y } }; - if (index >= 0 && checkboxColumnRect.Contains(screenCoords)) + if (index >= 0 && checkboxColumnRect.contains(screenCoords)) { // Checkbox was clicked ToggleInvisibility(index); } diff --git a/src/openrct2-ui/windows/TitleMenu.cpp b/src/openrct2-ui/windows/TitleMenu.cpp index 6ce08eea19..0d11003e7c 100644 --- a/src/openrct2-ui/windows/TitleMenu.cpp +++ b/src/openrct2-ui/windows/TitleMenu.cpp @@ -262,7 +262,7 @@ namespace OpenRCT2::Ui::Windows widgets[WIDX_NEW_VERSION].setVisible(newVersionAvailable); if (newVersionAvailable) - _filterRect.Point1.y = windowPos.y; + _filterRect.point1.y = windowPos.y; } void onDraw(RenderTarget& rt) override diff --git a/src/openrct2/actions/GameActionParameterVisitor.h b/src/openrct2/actions/GameActionParameterVisitor.h index 2959a72904..7bb4a185e2 100644 --- a/src/openrct2/actions/GameActionParameterVisitor.h +++ b/src/openrct2/actions/GameActionParameterVisitor.h @@ -65,10 +65,10 @@ namespace OpenRCT2::GameActions void Visit(MapRange& param) { - Visit("x1", param.Point1.x); - Visit("y1", param.Point1.y); - Visit("x2", param.Point2.x); - Visit("y2", param.Point2.y); + Visit("x1", param.point1.x); + Visit("y1", param.point1.y); + Visit("x2", param.point2.x); + Visit("y2", param.point2.y); } template diff --git a/src/openrct2/actions/park/LandBuyRightsAction.cpp b/src/openrct2/actions/park/LandBuyRightsAction.cpp index 180861b361..51b0cbbb28 100644 --- a/src/openrct2/actions/park/LandBuyRightsAction.cpp +++ b/src/openrct2/actions/park/LandBuyRightsAction.cpp @@ -68,24 +68,24 @@ namespace OpenRCT2::GameActions MapRange normRange = _range.normalise(); // Keep big coordinates within map boundaries auto mapSizeMaxXY = GetMapSizeMaxXY(); - auto aX = std::max(32, normRange.GetX1()); - auto bX = std::min(mapSizeMaxXY.x, normRange.GetX2()); - auto aY = std::max(32, normRange.GetY1()); - auto bY = std::min(mapSizeMaxXY.y, normRange.GetY2()); + auto aX = std::max(32, normRange.getX1()); + auto bX = std::min(mapSizeMaxXY.x, normRange.getX2()); + auto aY = std::max(32, normRange.getY1()); + auto bY = std::min(mapSizeMaxXY.y, normRange.getY2()); MapRange validRange = MapRange{ aX, aY, bX, bY }; - CoordsXYZ centre{ (validRange.GetX1() + validRange.GetX2()) / 2 + 16, - (validRange.GetY1() + validRange.GetY2()) / 2 + 16, 0 }; + CoordsXYZ centre{ (validRange.getX1() + validRange.getX2()) / 2 + 16, + (validRange.getY1() + validRange.getY2()) / 2 + 16, 0 }; centre.z = TileElementHeight(centre); res.position = centre; res.expenditure = ExpenditureType::landPurchase; // Game command modified to accept selection size - for (auto y = validRange.GetY1(); y <= validRange.GetY2(); y += kCoordsXYStep) + for (auto y = validRange.getY1(); y <= validRange.getY2(); y += kCoordsXYStep) { - for (auto x = validRange.GetX1(); x <= validRange.GetX2(); x += kCoordsXYStep) + for (auto x = validRange.getX1(); x <= validRange.getX2(); x += kCoordsXYStep) { if (!LocationValid({ x, y })) continue; diff --git a/src/openrct2/actions/park/LandSetRightsAction.cpp b/src/openrct2/actions/park/LandSetRightsAction.cpp index 852825e0d5..295fd1564a 100644 --- a/src/openrct2/actions/park/LandSetRightsAction.cpp +++ b/src/openrct2/actions/park/LandSetRightsAction.cpp @@ -74,8 +74,8 @@ namespace OpenRCT2::GameActions auto res = Result(); auto validRange = ClampRangeWithinMap(_range.normalise()); - CoordsXYZ centre{ (validRange.GetX1() + validRange.GetX2()) / 2 + 16, - (validRange.GetY1() + validRange.GetY2()) / 2 + 16, 0 }; + CoordsXYZ centre{ (validRange.getX1() + validRange.getX2()) / 2 + 16, + (validRange.getY1() + validRange.getY2()) / 2 + 16, 0 }; centre.z = TileElementHeight(centre); res.position = centre; @@ -87,9 +87,9 @@ namespace OpenRCT2::GameActions } // Game command modified to accept selection size - for (auto y = validRange.GetY1(); y <= validRange.GetY2(); y += kCoordsXYStep) + for (auto y = validRange.getY1(); y <= validRange.getY2(); y += kCoordsXYStep) { - for (auto x = validRange.GetX1(); x <= validRange.GetX2(); x += kCoordsXYStep) + for (auto x = validRange.getX1(); x <= validRange.getX2(); x += kCoordsXYStep) { if (!LocationValid({ x, y })) continue; diff --git a/src/openrct2/actions/peep/StaffSetPatrolAreaAction.cpp b/src/openrct2/actions/peep/StaffSetPatrolAreaAction.cpp index 690fc22f22..d0621e4a26 100644 --- a/src/openrct2/actions/peep/StaffSetPatrolAreaAction.cpp +++ b/src/openrct2/actions/peep/StaffSetPatrolAreaAction.cpp @@ -57,7 +57,7 @@ namespace OpenRCT2::GameActions static void InvalidatePatrolTiles(const MapRange& range) { - MapInvalidateRegion(range.Point1, range.Point2); + MapInvalidateRegion(range.point1, range.point2); } Result StaffSetPatrolAreaAction::QueryExecute(GameState_t& gameState, bool executing) const @@ -70,9 +70,9 @@ namespace OpenRCT2::GameActions } auto validRange = ClampRangeWithinMap(_range); - for (int32_t y = validRange.GetY1(); y <= validRange.GetY2(); y += kCoordsXYStep) + for (int32_t y = validRange.getY1(); y <= validRange.getY2(); y += kCoordsXYStep) { - for (int32_t x = validRange.GetX1(); x <= validRange.GetX2(); x += kCoordsXYStep) + for (int32_t x = validRange.getX1(); x <= validRange.getX2(); x += kCoordsXYStep) { if (!LocationValid({ x, y })) { diff --git a/src/openrct2/actions/terraform/ClearAction.cpp b/src/openrct2/actions/terraform/ClearAction.cpp index fdb5367f01..694866d204 100644 --- a/src/openrct2/actions/terraform/ClearAction.cpp +++ b/src/openrct2/actions/terraform/ClearAction.cpp @@ -67,8 +67,8 @@ namespace OpenRCT2::GameActions result.errorTitle = STR_UNABLE_TO_REMOVE_ALL_SCENERY_FROM_HERE; result.expenditure = ExpenditureType::landscaping; - auto x = (_range.GetX1() + _range.GetX2()) / 2 + 16; - auto y = (_range.GetY1() + _range.GetY2()) / 2 + 16; + auto x = (_range.getX1() + _range.getX2()) / 2 + 16; + auto y = (_range.getY1() + _range.getY2()) / 2 + 16; auto z = TileElementHeight({ x, y }); result.position = CoordsXYZ(x, y, z); @@ -85,9 +85,9 @@ namespace OpenRCT2::GameActions money64 totalCost = 0; auto validRange = ClampRangeWithinMap(_range); - for (int32_t y = validRange.GetY1(); y <= validRange.GetY2(); y += kCoordsXYStep) + for (int32_t y = validRange.getY1(); y <= validRange.getY2(); y += kCoordsXYStep) { - for (int32_t x = validRange.GetX1(); x <= validRange.GetX2(); x += kCoordsXYStep) + for (int32_t x = validRange.getX1(); x <= validRange.getX2(); x += kCoordsXYStep) { if (LocationValid({ x, y }) && MapCanClearAt(gameState, { x, y })) { diff --git a/src/openrct2/actions/terraform/LandLowerAction.cpp b/src/openrct2/actions/terraform/LandLowerAction.cpp index 5f1964dcc6..2505bd5d81 100644 --- a/src/openrct2/actions/terraform/LandLowerAction.cpp +++ b/src/openrct2/actions/terraform/LandLowerAction.cpp @@ -83,9 +83,9 @@ namespace OpenRCT2::GameActions uint8_t maxHeight = MapGetHighestLandHeight(validRange); bool withinOwnership = false; - for (int32_t y = validRange.GetY1(); y <= validRange.GetY2(); y += kCoordsXYStep) + for (int32_t y = validRange.getY1(); y <= validRange.getY2(); y += kCoordsXYStep) { - for (int32_t x = validRange.GetX1(); x <= validRange.GetX2(); x += kCoordsXYStep) + for (int32_t x = validRange.getX1(); x <= validRange.getX2(); x += kCoordsXYStep) { if (!LocationValid({ x, y })) continue; diff --git a/src/openrct2/actions/terraform/LandRaiseAction.cpp b/src/openrct2/actions/terraform/LandRaiseAction.cpp index 141823b8e1..ce79b60044 100644 --- a/src/openrct2/actions/terraform/LandRaiseAction.cpp +++ b/src/openrct2/actions/terraform/LandRaiseAction.cpp @@ -84,9 +84,9 @@ namespace OpenRCT2::GameActions uint8_t minHeight = MapGetLowestLandHeight(validRange); bool withinOwnership = false; - for (int32_t y = validRange.GetY1(); y <= validRange.GetY2(); y += kCoordsXYStep) + for (int32_t y = validRange.getY1(); y <= validRange.getY2(); y += kCoordsXYStep) { - for (int32_t x = validRange.GetX1(); x <= validRange.GetX2(); x += kCoordsXYStep) + for (int32_t x = validRange.getX1(); x <= validRange.getX2(); x += kCoordsXYStep) { if (!LocationValid({ x, y })) continue; diff --git a/src/openrct2/actions/terraform/LandSmoothAction.cpp b/src/openrct2/actions/terraform/LandSmoothAction.cpp index 7dd84150b1..fd55ef9fe6 100644 --- a/src/openrct2/actions/terraform/LandSmoothAction.cpp +++ b/src/openrct2/actions/terraform/LandSmoothAction.cpp @@ -337,10 +337,10 @@ namespace OpenRCT2::GameActions auto normRange = _range.normalise(); // Cap bounds to map - auto l = std::max(normRange.GetX1(), 32); - auto t = std::max(normRange.GetY1(), 32); - auto r = std::clamp(normRange.GetX2(), 0, kMaximumTileStartXY); - auto b = std::clamp(normRange.GetY2(), 0, kMaximumTileStartXY); + auto l = std::max(normRange.getX1(), 32); + auto t = std::max(normRange.getY1(), 32); + auto r = std::clamp(normRange.getX2(), 0, kMaximumTileStartXY); + auto b = std::clamp(normRange.getY2(), 0, kMaximumTileStartXY); auto validRange = MapRange{ l, t, r, b }; int32_t centreZ = TileElementHeight(_coords); @@ -360,51 +360,51 @@ namespace OpenRCT2::GameActions // Smooth the 4 corners { // top-left - auto surfaceElement = MapGetSurfaceElementAt(CoordsXY{ validRange.GetX1(), validRange.GetY1() }); + auto surfaceElement = MapGetSurfaceElementAt(CoordsXY{ validRange.getX1(), validRange.getY1() }); if (surfaceElement != nullptr) { int32_t z = std::clamp( static_cast(TileElementGetCornerHeight(surfaceElement, 2)), minHeight, maxHeight); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, -32, -32, 0, 2); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, -32, -32, 0, 2); } } { // bottom-left - auto surfaceElement = MapGetSurfaceElementAt(CoordsXY{ validRange.GetX1(), validRange.GetY2() }); + auto surfaceElement = MapGetSurfaceElementAt(CoordsXY{ validRange.getX1(), validRange.getY2() }); if (surfaceElement != nullptr) { int32_t z = std::clamp( static_cast(TileElementGetCornerHeight(surfaceElement, 3)), minHeight, maxHeight); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY2() }, z, -32, 32, 1, 3); + gameState, isExecuting, { validRange.getX1(), validRange.getY2() }, z, -32, 32, 1, 3); } } { // bottom-right - auto surfaceElement = MapGetSurfaceElementAt(CoordsXY{ validRange.GetX2(), validRange.GetY2() }); + auto surfaceElement = MapGetSurfaceElementAt(CoordsXY{ validRange.getX2(), validRange.getY2() }); if (surfaceElement != nullptr) { int32_t z = std::clamp( static_cast(TileElementGetCornerHeight(surfaceElement, 0)), minHeight, maxHeight); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX2(), validRange.GetY2() }, z, 32, 32, 2, 0); + gameState, isExecuting, { validRange.getX2(), validRange.getY2() }, z, 32, 32, 2, 0); } } { // top-right - auto surfaceElement = MapGetSurfaceElementAt(CoordsXY{ validRange.GetX2(), validRange.GetY1() }); + auto surfaceElement = MapGetSurfaceElementAt(CoordsXY{ validRange.getX2(), validRange.getY1() }); if (surfaceElement != nullptr) { int32_t z = std::clamp( static_cast(TileElementGetCornerHeight(surfaceElement, 1)), minHeight, maxHeight); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX2(), validRange.GetY1() }, z, 32, -32, 3, 1); + gameState, isExecuting, { validRange.getX2(), validRange.getY1() }, z, 32, -32, 3, 1); } } // Smooth the edges int32_t z1, z2; - for (int32_t y = validRange.GetY1(); y <= validRange.GetY2(); y += kCoordsXYStep) + for (int32_t y = validRange.getY1(); y <= validRange.getY2(); y += kCoordsXYStep) { - auto surfaceElement = MapGetSurfaceElementAt(CoordsXY{ validRange.GetX1(), y }); + auto surfaceElement = MapGetSurfaceElementAt(CoordsXY{ validRange.getX1(), y }); if (surfaceElement != nullptr) { z1 = std::clamp( @@ -412,10 +412,10 @@ namespace OpenRCT2::GameActions z2 = std::clamp( static_cast(TileElementGetCornerHeight(surfaceElement, 2)), minHeight, maxHeight); res.cost += SmoothLandRowByEdge( - gameState, isExecuting, { validRange.GetX1(), y }, z1, z2, -32, 0, 0, 1, 3, 2); + gameState, isExecuting, { validRange.getX1(), y }, z1, z2, -32, 0, 0, 1, 3, 2); } - surfaceElement = MapGetSurfaceElementAt(CoordsXY{ validRange.GetX2(), y }); + surfaceElement = MapGetSurfaceElementAt(CoordsXY{ validRange.getX2(), y }); if (surfaceElement != nullptr) { z1 = std::clamp( @@ -423,13 +423,13 @@ namespace OpenRCT2::GameActions z2 = std::clamp( static_cast(TileElementGetCornerHeight(surfaceElement, 0)), minHeight, maxHeight); res.cost += SmoothLandRowByEdge( - gameState, isExecuting, { validRange.GetX2(), y }, z1, z2, 32, 0, 2, 3, 1, 0); + gameState, isExecuting, { validRange.getX2(), y }, z1, z2, 32, 0, 2, 3, 1, 0); } } - for (int32_t x = validRange.GetX1(); x <= validRange.GetX2(); x += kCoordsXYStep) + for (int32_t x = validRange.getX1(); x <= validRange.getX2(); x += kCoordsXYStep) { - auto surfaceElement = MapGetSurfaceElementAt(CoordsXY{ x, validRange.GetY1() }); + auto surfaceElement = MapGetSurfaceElementAt(CoordsXY{ x, validRange.getY1() }); if (surfaceElement != nullptr) { z1 = std::clamp( @@ -437,10 +437,10 @@ namespace OpenRCT2::GameActions z2 = std::clamp( static_cast(TileElementGetCornerHeight(surfaceElement, 2)), minHeight, maxHeight); res.cost += SmoothLandRowByEdge( - gameState, isExecuting, { x, validRange.GetY1() }, z1, z2, 0, -32, 0, 3, 1, 2); + gameState, isExecuting, { x, validRange.getY1() }, z1, z2, 0, -32, 0, 3, 1, 2); } - surfaceElement = MapGetSurfaceElementAt(CoordsXY{ x, validRange.GetY2() }); + surfaceElement = MapGetSurfaceElementAt(CoordsXY{ x, validRange.getY2() }); if (surfaceElement != nullptr) { z1 = std::clamp( @@ -448,7 +448,7 @@ namespace OpenRCT2::GameActions z2 = std::clamp( static_cast(TileElementGetCornerHeight(surfaceElement, 3)), minHeight, maxHeight); res.cost += SmoothLandRowByEdge( - gameState, isExecuting, { x, validRange.GetY2() }, z1, z2, 0, 32, 1, 2, 0, 3); + gameState, isExecuting, { x, validRange.getY2() }, z1, z2, 0, 32, 1, 2, 0, 3); } } break; @@ -458,7 +458,7 @@ namespace OpenRCT2::GameActions case MapSelectType::corner2: case MapSelectType::corner3: { - auto surfaceElement = MapGetSurfaceElementAt(CoordsXY{ validRange.GetX1(), validRange.GetY1() }); + auto surfaceElement = MapGetSurfaceElementAt(CoordsXY{ validRange.getX1(), validRange.getY1() }); if (surfaceElement == nullptr) break; uint8_t newBaseZ = surfaceElement->baseHeight; @@ -483,16 +483,16 @@ namespace OpenRCT2::GameActions // Smooth the corners int32_t z = MapGetCornerHeight(newBaseZ, newSlope, 2); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, -32, -32, 0, 2); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, -32, -32, 0, 2); z = MapGetCornerHeight(newBaseZ, newSlope, 0); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, 32, 32, 2, 0); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, 32, 32, 2, 0); z = MapGetCornerHeight(newBaseZ, newSlope, 3); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, -32, 32, 1, 3); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, -32, 32, 1, 3); z = MapGetCornerHeight(newBaseZ, newSlope, 1); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, 32, -32, 3, 1); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, 32, -32, 3, 1); // Smooth the edges switch (selectionType) @@ -500,54 +500,54 @@ namespace OpenRCT2::GameActions case MapSelectType::corner0: z = MapGetCornerHeight(newBaseZ, newSlope, 0); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, 32, 0, 3, 0); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, 32, 0, 3, 0); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, 0, 32, 1, 0); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, 0, 32, 1, 0); z = MapGetCornerHeight(newBaseZ, newSlope, 3); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, -32, 0, 0, 3); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, -32, 0, 0, 3); z = MapGetCornerHeight(newBaseZ, newSlope, 1); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, 0, -32, 0, 1); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, 0, -32, 0, 1); break; case MapSelectType::corner1: z = MapGetCornerHeight(newBaseZ, newSlope, 1); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, 32, 0, 2, 1); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, 32, 0, 2, 1); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, 0, -32, 0, 1); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, 0, -32, 0, 1); z = MapGetCornerHeight(newBaseZ, newSlope, 2); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, -32, 0, 1, 2); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, -32, 0, 1, 2); z = MapGetCornerHeight(newBaseZ, newSlope, 0); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, 0, 32, 1, 0); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, 0, 32, 1, 0); break; case MapSelectType::corner2: z = MapGetCornerHeight(newBaseZ, newSlope, 2); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, -32, 0, 1, 2); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, -32, 0, 1, 2); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, 0, -32, 3, 2); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, 0, -32, 3, 2); z = MapGetCornerHeight(newBaseZ, newSlope, 1); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, 32, 0, 2, 1); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, 32, 0, 2, 1); z = MapGetCornerHeight(newBaseZ, newSlope, 3); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, 0, 32, 2, 3); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, 0, 32, 2, 3); break; case MapSelectType::corner3: z = MapGetCornerHeight(newBaseZ, newSlope, 3); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, -32, 0, 0, 3); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, -32, 0, 0, 3); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, 0, 32, 2, 3); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, 0, 32, 2, 3); z = MapGetCornerHeight(newBaseZ, newSlope, 0); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, 32, 0, 3, 0); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, 32, 0, 3, 0); z = MapGetCornerHeight(newBaseZ, newSlope, 2); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, 0, -32, 3, 2); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, 0, -32, 3, 2); break; default: break; @@ -561,7 +561,7 @@ namespace OpenRCT2::GameActions { // TODO: Handle smoothing by edge // Get the two corners to raise - auto surfaceElement = MapGetSurfaceElementAt(CoordsXY{ validRange.GetX1(), validRange.GetY1() }); + auto surfaceElement = MapGetSurfaceElementAt(CoordsXY{ validRange.getX1(), validRange.getY1() }); if (surfaceElement == nullptr) break; uint8_t newBaseZ = surfaceElement->baseHeight; @@ -607,32 +607,32 @@ namespace OpenRCT2::GameActions uint8_t z4 = MapGetCornerHeight(newBaseZ, newSlope, c4); // Smooth the edge at the top of the new slope res.cost += SmoothLandRowByEdge( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z1, z2, stepOffsets[edge].x, + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z1, z2, stepOffsets[edge].x, stepOffsets[edge].y, c3, c4, c1, c2); // Smooth the edge at the bottom of the new slope res.cost += SmoothLandRowByEdge( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z3, z4, -stepOffsets[edge].x, + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z3, z4, -stepOffsets[edge].x, -stepOffsets[edge].y, c1, c2, c3, c4); // Smooth corners res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z1, -stepOffsets[edge].y, + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z1, -stepOffsets[edge].y, stepOffsets[edge].x, c2, c1); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z2, stepOffsets[edge].y, + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z2, stepOffsets[edge].y, -stepOffsets[edge].x, c1, c2); int32_t z = MapGetCornerHeight(newBaseZ, newSlope, 2); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, -32, -32, 0, 2); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, -32, -32, 0, 2); z = MapGetCornerHeight(newBaseZ, newSlope, 0); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, 32, 32, 2, 0); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, 32, 32, 2, 0); z = MapGetCornerHeight(newBaseZ, newSlope, 3); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, -32, 32, 1, 3); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, -32, 32, 1, 3); z = MapGetCornerHeight(newBaseZ, newSlope, 1); res.cost += SmoothLandRowByCorner( - gameState, isExecuting, { validRange.GetX1(), validRange.GetY1() }, z, 32, -32, 3, 1); + gameState, isExecuting, { validRange.getX1(), validRange.getY1() }, z, 32, -32, 3, 1); break; } default: diff --git a/src/openrct2/actions/terraform/SurfaceSetStyleAction.cpp b/src/openrct2/actions/terraform/SurfaceSetStyleAction.cpp index 0100f9661e..7f7d6bbc88 100644 --- a/src/openrct2/actions/terraform/SurfaceSetStyleAction.cpp +++ b/src/openrct2/actions/terraform/SurfaceSetStyleAction.cpp @@ -74,8 +74,8 @@ namespace OpenRCT2::GameActions } } - auto xMid = (validRange.GetX1() + validRange.GetX2()) / 2 + 16; - auto yMid = (validRange.GetY1() + validRange.GetY2()) / 2 + 16; + auto xMid = (validRange.getX1() + validRange.getX2()) / 2 + 16; + auto yMid = (validRange.getY1() + validRange.getY2()) / 2 + 16; auto heightMid = TileElementHeight({ xMid, yMid }); res.position.x = xMid; @@ -91,10 +91,10 @@ namespace OpenRCT2::GameActions money64 surfaceCost = 0; money64 edgeCost = 0; - for (CoordsXY coords = { validRange.GetX1(), validRange.GetY1() }; coords.x <= validRange.GetX2(); + for (CoordsXY coords = { validRange.getX1(), validRange.getY1() }; coords.x <= validRange.getX2(); coords.x += kCoordsXYStep) { - for (coords.y = validRange.GetY1(); coords.y <= validRange.GetY2(); coords.y += kCoordsXYStep) + for (coords.y = validRange.getY1(); coords.y <= validRange.getY2(); coords.y += kCoordsXYStep) { if (!LocationValid(coords)) continue; @@ -148,8 +148,8 @@ namespace OpenRCT2::GameActions res.expenditure = ExpenditureType::landscaping; auto validRange = ClampRangeWithinMap(_range.normalise()); - auto xMid = (validRange.GetX1() + validRange.GetX2()) / 2 + 16; - auto yMid = (validRange.GetY1() + validRange.GetY2()) / 2 + 16; + auto xMid = (validRange.getX1() + validRange.getX2()) / 2 + 16; + auto yMid = (validRange.getY1() + validRange.getY2()) / 2 + 16; auto heightMid = TileElementHeight({ xMid, yMid }); res.position.x = xMid; @@ -158,10 +158,10 @@ namespace OpenRCT2::GameActions money64 surfaceCost = 0; money64 edgeCost = 0; - for (CoordsXY coords = { validRange.GetX1(), validRange.GetY1() }; coords.x <= validRange.GetX2(); + for (CoordsXY coords = { validRange.getX1(), validRange.getY1() }; coords.x <= validRange.getX2(); coords.x += kCoordsXYStep) { - for (coords.y = validRange.GetY1(); coords.y <= validRange.GetY2(); coords.y += kCoordsXYStep) + for (coords.y = validRange.getY1(); coords.y <= validRange.getY2(); coords.y += kCoordsXYStep) { if (!LocationValid(coords)) continue; diff --git a/src/openrct2/actions/terraform/WaterLowerAction.cpp b/src/openrct2/actions/terraform/WaterLowerAction.cpp index 5a5a5820f4..c16e51c33b 100644 --- a/src/openrct2/actions/terraform/WaterLowerAction.cpp +++ b/src/openrct2/actions/terraform/WaterLowerAction.cpp @@ -57,8 +57,8 @@ namespace OpenRCT2::GameActions auto res = Result(); auto validRange = ClampRangeWithinMap(_range); - res.position.x = ((validRange.GetX1() + validRange.GetX2()) / 2) + 16; - res.position.y = ((validRange.GetY1() + validRange.GetY2()) / 2) + 16; + res.position.x = ((validRange.getX1() + validRange.getX2()) / 2) + 16; + res.position.y = ((validRange.getY1() + validRange.getY2()) / 2) + 16; int16_t z = TileElementHeight(res.position); int16_t waterHeight = TileElementWaterHeight(res.position); if (waterHeight != 0) @@ -71,9 +71,9 @@ namespace OpenRCT2::GameActions uint8_t minHeight = GetLowestHeight(gameState, validRange); bool hasChanged = false; bool withinOwnership = false; - for (int32_t y = validRange.GetY1(); y <= validRange.GetY2(); y += kCoordsXYStep) + for (int32_t y = validRange.getY1(); y <= validRange.getY2(); y += kCoordsXYStep) { - for (int32_t x = validRange.GetX1(); x <= validRange.GetX2(); x += kCoordsXYStep) + for (int32_t x = validRange.getX1(); x <= validRange.getX2(); x += kCoordsXYStep) { if (!LocationValid({ x, y })) continue; @@ -135,9 +135,9 @@ namespace OpenRCT2::GameActions { // The lowest height to lower the water to is the highest water level in the selection uint8_t minHeight{ 0 }; - for (int32_t y = validRange.GetY1(); y <= validRange.GetY2(); y += kCoordsXYStep) + for (int32_t y = validRange.getY1(); y <= validRange.getY2(); y += kCoordsXYStep) { - for (int32_t x = validRange.GetX1(); x <= validRange.GetX2(); x += kCoordsXYStep) + for (int32_t x = validRange.getX1(); x <= validRange.getX2(); x += kCoordsXYStep) { if (gLegacyScene != LegacyScene::scenarioEditor && !gameState.cheats.sandboxMode) { diff --git a/src/openrct2/actions/terraform/WaterRaiseAction.cpp b/src/openrct2/actions/terraform/WaterRaiseAction.cpp index 01f8fc24ea..e8ee09621f 100644 --- a/src/openrct2/actions/terraform/WaterRaiseAction.cpp +++ b/src/openrct2/actions/terraform/WaterRaiseAction.cpp @@ -57,8 +57,8 @@ namespace OpenRCT2::GameActions auto res = Result(); auto validRange = ClampRangeWithinMap(_range); - res.position.x = ((validRange.GetX1() + validRange.GetX2()) / 2) + 16; - res.position.y = ((validRange.GetY1() + validRange.GetY2()) / 2) + 16; + res.position.x = ((validRange.getX1() + validRange.getX2()) / 2) + 16; + res.position.y = ((validRange.getY1() + validRange.getY2()) / 2) + 16; int32_t z = TileElementHeight(res.position); int16_t waterHeight = TileElementWaterHeight(res.position); if (waterHeight != 0) @@ -71,9 +71,9 @@ namespace OpenRCT2::GameActions auto maxHeight = GetHighestHeight(gameState, validRange) / kCoordsZStep; bool hasChanged = false; bool withinOwnership = false; - for (int32_t y = validRange.GetY1(); y <= validRange.GetY2(); y += kCoordsXYStep) + for (int32_t y = validRange.getY1(); y <= validRange.getY2(); y += kCoordsXYStep) { - for (int32_t x = validRange.GetX1(); x <= validRange.GetX2(); x += kCoordsXYStep) + for (int32_t x = validRange.getX1(); x <= validRange.getX2(); x += kCoordsXYStep) { if (!LocationValid({ x, y })) continue; @@ -149,9 +149,9 @@ namespace OpenRCT2::GameActions { // The highest height to raise the water to is the lowest water level in the selection uint16_t maxHeight = 255 * kCoordsZStep; - for (int32_t y = validRange.GetY1(); y <= validRange.GetY2(); y += kCoordsXYStep) + for (int32_t y = validRange.getY1(); y <= validRange.getY2(); y += kCoordsXYStep) { - for (int32_t x = validRange.GetX1(); x <= validRange.GetX2(); x += kCoordsXYStep) + for (int32_t x = validRange.getX1(); x <= validRange.getX2(); x += kCoordsXYStep) { if (gLegacyScene != LegacyScene::scenarioEditor && !gameState.cheats.sandboxMode) { diff --git a/src/openrct2/core/CoordsRange.hpp b/src/openrct2/core/CoordsRange.hpp index 6840cb37df..d5d9b2f44d 100644 --- a/src/openrct2/core/CoordsRange.hpp +++ b/src/openrct2/core/CoordsRange.hpp @@ -14,24 +14,24 @@ template struct CoordsRange { - T Point1{ 0, 0 }; - T Point2{ 0, 0 }; + T point1{ 0, 0 }; + T point2{ 0, 0 }; - constexpr int32_t GetX1() const + constexpr int32_t getX1() const { - return Point1.x; + return point1.x; } - constexpr int32_t GetY1() const + constexpr int32_t getY1() const { - return Point1.y; + return point1.y; } - constexpr int32_t GetX2() const + constexpr int32_t getX2() const { - return Point2.x; + return point2.x; } - constexpr int32_t GetY2() const + constexpr int32_t getY2() const { - return Point2.y; + return point2.y; } constexpr CoordsRange() = default; @@ -41,8 +41,8 @@ struct CoordsRange } constexpr CoordsRange(const T& pointOne, const T& pointTwo) - : Point1(pointOne) - , Point2(pointTwo) + : point1(pointOne) + , point2(pointTwo) { } }; diff --git a/src/openrct2/core/DataSerialiserTraits.h b/src/openrct2/core/DataSerialiserTraits.h index 45f73a14a6..95514441d4 100644 --- a/src/openrct2/core/DataSerialiserTraits.h +++ b/src/openrct2/core/DataSerialiserTraits.h @@ -427,10 +427,10 @@ namespace OpenRCT2 { static void encode(IStream* stream, const MapRange& v) { - stream->WriteValue(ByteSwapBE(v.GetX1())); - stream->WriteValue(ByteSwapBE(v.GetY1())); - stream->WriteValue(ByteSwapBE(v.GetX2())); - stream->WriteValue(ByteSwapBE(v.GetY2())); + stream->WriteValue(ByteSwapBE(v.getX1())); + stream->WriteValue(ByteSwapBE(v.getY1())); + stream->WriteValue(ByteSwapBE(v.getX2())); + stream->WriteValue(ByteSwapBE(v.getY2())); } static void decode(IStream* stream, MapRange& v) { @@ -444,8 +444,8 @@ namespace OpenRCT2 { char coords[128] = {}; snprintf( - coords, sizeof(coords), "MapRange(x1 = %d, y1 = %d, x2 = %d, y2 = %d)", v.GetX1(), v.GetY1(), v.GetX2(), - v.GetY2()); + coords, sizeof(coords), "MapRange(x1 = %d, y1 = %d, x2 = %d, y2 = %d)", v.getX1(), v.getY1(), v.getX2(), + v.getY2()); stream->Write(coords, strlen(coords)); } diff --git a/src/openrct2/drawing/Line.cpp b/src/openrct2/drawing/Line.cpp index f2a84471eb..76cc702731 100644 --- a/src/openrct2/drawing/Line.cpp +++ b/src/openrct2/drawing/Line.cpp @@ -84,10 +84,10 @@ namespace OpenRCT2::Drawing void GfxDrawLineSoftware(RenderTarget& rt, const ScreenLine& line, PaletteIndex colour) { const ZoomLevel zoom = rt.zoom_level; - int32_t x1 = zoom.ApplyInversedTo(line.GetX1()); - int32_t x2 = zoom.ApplyInversedTo(line.GetX2()); - int32_t y1 = zoom.ApplyInversedTo(line.GetY1()); - int32_t y2 = zoom.ApplyInversedTo(line.GetY2()); + int32_t x1 = zoom.ApplyInversedTo(line.getX1()); + int32_t x2 = zoom.ApplyInversedTo(line.getX2()); + int32_t y1 = zoom.ApplyInversedTo(line.getY1()); + int32_t y2 = zoom.ApplyInversedTo(line.getY2()); // Check to make sure the line is within the drawing area if ((x1 < rt.x) && (x2 < rt.x)) { @@ -195,23 +195,23 @@ namespace OpenRCT2::Drawing constexpr int32_t kPrecisionFactor = 1000; const int32_t dashedLineLength = std::hypot( - screenLine.GetX2() - screenLine.GetX1(), screenLine.GetY2() - screenLine.GetY1()); + screenLine.getX2() - screenLine.getX1(), screenLine.getY2() - screenLine.getY1()); const int32_t lineSegmentCount = dashedLineLength / dashedLineSegmentLength / 2; if (lineSegmentCount == 0) { return; } - const int32_t lineXDist = std::abs(screenLine.GetX2() - screenLine.GetX1()); - const int32_t lineYDist = std::abs(screenLine.GetY2() - screenLine.GetY1()); + const int32_t lineXDist = std::abs(screenLine.getX2() - screenLine.getX1()); + const int32_t lineYDist = std::abs(screenLine.getY2() - screenLine.getY1()); const int32_t dxPrecise = kPrecisionFactor * lineXDist / lineSegmentCount / 2; const int32_t dyPrecise = kPrecisionFactor * lineYDist / lineSegmentCount / 2; IDrawingContext* dc = drawingEngine->GetDrawingContext(); for (int32_t i = 0, x, y; i < lineSegmentCount; ++i) { - x = screenLine.GetX1() + dxPrecise * i * 2 / kPrecisionFactor; - y = screenLine.GetY1() + dyPrecise * i * 2 / kPrecisionFactor; + x = screenLine.getX1() + dxPrecise * i * 2 / kPrecisionFactor; + y = screenLine.getY1() + dyPrecise * i * 2 / kPrecisionFactor; dc->DrawLine(rt, colour, { { x, y }, { x + dxPrecise / kPrecisionFactor, y + dyPrecise / kPrecisionFactor } }); } } diff --git a/src/openrct2/drawing/NewDrawing.cpp b/src/openrct2/drawing/NewDrawing.cpp index 983a76f7ac..6fd24a7a22 100644 --- a/src/openrct2/drawing/NewDrawing.cpp +++ b/src/openrct2/drawing/NewDrawing.cpp @@ -149,7 +149,7 @@ void GfxSetDirtyBlocks(const ScreenRect& rect) auto drawingEngine = GetDrawingEngine(); if (drawingEngine != nullptr) { - drawingEngine->Invalidate(rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetBottom()); + drawingEngine->Invalidate(rect.getLeft(), rect.getTop(), rect.getRight(), rect.getBottom()); } } diff --git a/src/openrct2/drawing/Rectangle.cpp b/src/openrct2/drawing/Rectangle.cpp index 8e95428d90..33cf6bade7 100644 --- a/src/openrct2/drawing/Rectangle.cpp +++ b/src/openrct2/drawing/Rectangle.cpp @@ -27,7 +27,7 @@ namespace OpenRCT2::Drawing::Rectangle if (drawingEngine != nullptr) { IDrawingContext* dc = drawingEngine->GetDrawingContext(); - dc->FillRect(rt, paletteIndex, rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetBottom(), crossHatch); + dc->FillRect(rt, paletteIndex, rect.getLeft(), rect.getTop(), rect.getRight(), rect.getBottom(), crossHatch); } } @@ -47,10 +47,10 @@ namespace OpenRCT2::Drawing::Rectangle RenderTarget& rt, const ScreenRect& rect, ColourWithFlags colour, BorderStyle borderStyle, FillBrightness brightness, FillMode fillMode) { - const auto leftTop = ScreenCoordsXY{ rect.GetLeft(), rect.GetTop() }; - const auto leftBottom = ScreenCoordsXY{ rect.GetLeft(), rect.GetBottom() }; - const auto rightTop = ScreenCoordsXY{ rect.GetRight(), rect.GetTop() }; - const auto rightBottom = ScreenCoordsXY{ rect.GetRight(), rect.GetBottom() }; + const auto leftTop = ScreenCoordsXY{ rect.getLeft(), rect.getTop() }; + const auto leftBottom = ScreenCoordsXY{ rect.getLeft(), rect.getBottom() }; + const auto rightTop = ScreenCoordsXY{ rect.getRight(), rect.getTop() }; + const auto rightBottom = ScreenCoordsXY{ rect.getRight(), rect.getBottom() }; if (colour.flags.has(ColourFlag::translucent)) { auto palette = kTranslucentWindowPalettes[EnumValue(colour.colour)]; @@ -150,7 +150,7 @@ namespace OpenRCT2::Drawing::Rectangle if (drawingEngine != nullptr) { IDrawingContext* dc = drawingEngine->GetDrawingContext(); - dc->FilterRect(rt, palette, rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetBottom()); + dc->FilterRect(rt, palette, rect.getLeft(), rect.getTop(), rect.getRight(), rect.getBottom()); } } diff --git a/src/openrct2/entity/Peep.cpp b/src/openrct2/entity/Peep.cpp index 130ee37e81..c3afcb0959 100644 --- a/src/openrct2/entity/Peep.cpp +++ b/src/openrct2/entity/Peep.cpp @@ -1184,13 +1184,13 @@ namespace OpenRCT2 { if (peep->x == kLocationNull) continue; - if (viewport->viewPos.x > peep->spriteData.spriteRect.GetRight()) + if (viewport->viewPos.x > peep->spriteData.spriteRect.getRight()) continue; - if (viewport->viewPos.x + viewport->ViewWidth() < peep->spriteData.spriteRect.GetLeft()) + if (viewport->viewPos.x + viewport->ViewWidth() < peep->spriteData.spriteRect.getLeft()) continue; - if (viewport->viewPos.y > peep->spriteData.spriteRect.GetBottom()) + if (viewport->viewPos.y > peep->spriteData.spriteRect.getBottom()) continue; - if (viewport->viewPos.y + viewport->ViewHeight() < peep->spriteData.spriteRect.GetTop()) + if (viewport->viewPos.y + viewport->ViewHeight() < peep->spriteData.spriteRect.getTop()) continue; visiblePeeps += peep->state == PeepState::queuing ? 1 : 2; diff --git a/src/openrct2/entity/Staff.cpp b/src/openrct2/entity/Staff.cpp index 94f932f7ed..8a520b3f63 100644 --- a/src/openrct2/entity/Staff.cpp +++ b/src/openrct2/entity/Staff.cpp @@ -281,9 +281,9 @@ namespace OpenRCT2 void Staff::setPatrolArea(const MapRange& range, bool value) { - for (int32_t yy = range.GetY1(); yy <= range.GetY2(); yy += kCoordsXYStep) + for (int32_t yy = range.getY1(); yy <= range.getY2(); yy += kCoordsXYStep) { - for (int32_t xx = range.GetX1(); xx <= range.GetX2(); xx += kCoordsXYStep) + for (int32_t xx = range.getX1(); xx <= range.getX2(); xx += kCoordsXYStep) { setPatrolArea({ xx, yy }, value); } diff --git a/src/openrct2/interface/ScreenCoords.hpp b/src/openrct2/interface/ScreenCoords.hpp index 5b1faacb41..752cf6eceb 100644 --- a/src/openrct2/interface/ScreenCoords.hpp +++ b/src/openrct2/interface/ScreenCoords.hpp @@ -135,21 +135,21 @@ struct RectRange : public CoordsRange { using CoordsRange::CoordsRange; - constexpr int32_t GetLeft() const + constexpr int32_t getLeft() const { - return CoordsRange::GetX1(); + return CoordsRange::getX1(); } - constexpr int32_t GetTop() const + constexpr int32_t getTop() const { - return CoordsRange::GetY1(); + return CoordsRange::getY1(); } - constexpr int32_t GetRight() const + constexpr int32_t getRight() const { - return CoordsRange::GetX2(); + return CoordsRange::getX2(); } - constexpr int32_t GetBottom() const + constexpr int32_t getBottom() const { - return CoordsRange::GetY2(); + return CoordsRange::getY2(); } constexpr RectRange(int32_t left, int32_t top, int32_t right, int32_t bottom) @@ -171,16 +171,16 @@ struct ScreenRect : public RectRange { using RectRange::RectRange; - constexpr int32_t GetWidth() const + constexpr int32_t getWidth() const { - return GetRight() - GetLeft(); + return getRight() - getLeft(); } - constexpr int32_t GetHeight() const + constexpr int32_t getHeight() const { - return GetBottom() - GetTop(); + return getBottom() - getTop(); } - constexpr bool Contains(const ScreenCoordsXY& coords) const + constexpr bool contains(const ScreenCoordsXY& coords) const { - return coords.x >= GetLeft() && coords.x <= GetRight() && coords.y >= GetTop() && coords.y <= GetBottom(); + return coords.x >= getLeft() && coords.x <= getRight() && coords.y >= getTop() && coords.y <= getBottom(); } }; diff --git a/src/openrct2/interface/Viewport.cpp b/src/openrct2/interface/Viewport.cpp index 6fab0970b8..673e916185 100644 --- a/src/openrct2/interface/Viewport.cpp +++ b/src/openrct2/interface/Viewport.cpp @@ -305,9 +305,9 @@ namespace OpenRCT2 if (window != nullptr) { // skip current window and non-intersecting windows - if (window == originalWindow || drawRect.GetRight() <= window->windowPos.x - || drawRect.GetLeft() >= window->windowPos.x + window->width || drawRect.GetBottom() <= window->windowPos.y - || drawRect.GetTop() >= window->windowPos.y + window->height) + if (window == originalWindow || drawRect.getRight() <= window->windowPos.x + || drawRect.getLeft() >= window->windowPos.x + window->width || drawRect.getBottom() <= window->windowPos.y + || drawRect.getTop() >= window->windowPos.y + window->height) { auto itWindowPos = WindowGetIterator(window); // Get next valid window after. @@ -324,52 +324,52 @@ namespace OpenRCT2 return; } - if (drawRect.GetLeft() < window->windowPos.x) + if (drawRect.getLeft() < window->windowPos.x) { - ScreenRect leftRect = { drawRect.Point1, { window->windowPos.x, drawRect.GetBottom() } }; + ScreenRect leftRect = { drawRect.point1, { window->windowPos.x, drawRect.getBottom() } }; ViewportRedrawAfterShift(rt, window, originalWindow, shift, leftRect); - ScreenRect rightRect = { { window->windowPos.x, drawRect.GetTop() }, drawRect.Point2 }; + ScreenRect rightRect = { { window->windowPos.x, drawRect.getTop() }, drawRect.point2 }; ViewportRedrawAfterShift(rt, window, originalWindow, shift, rightRect); } - else if (drawRect.GetRight() > window->windowPos.x + window->width) + else if (drawRect.getRight() > window->windowPos.x + window->width) { - ScreenRect leftRect = { drawRect.Point1, { window->windowPos.x + window->width, drawRect.GetBottom() } }; + ScreenRect leftRect = { drawRect.point1, { window->windowPos.x + window->width, drawRect.getBottom() } }; ViewportRedrawAfterShift(rt, window, originalWindow, shift, leftRect); - ScreenRect rightRect = { { window->windowPos.x + window->width, drawRect.GetTop() }, drawRect.Point2 }; + ScreenRect rightRect = { { window->windowPos.x + window->width, drawRect.getTop() }, drawRect.point2 }; ViewportRedrawAfterShift(rt, window, originalWindow, shift, rightRect); } - else if (drawRect.GetTop() < window->windowPos.y) + else if (drawRect.getTop() < window->windowPos.y) { - ScreenRect topRect = { drawRect.Point1, { drawRect.GetRight(), window->windowPos.y } }; + ScreenRect topRect = { drawRect.point1, { drawRect.getRight(), window->windowPos.y } }; ViewportRedrawAfterShift(rt, window, originalWindow, shift, topRect); - ScreenRect bottomRect = { { drawRect.GetLeft(), window->windowPos.y }, drawRect.Point2 }; + ScreenRect bottomRect = { { drawRect.getLeft(), window->windowPos.y }, drawRect.point2 }; ViewportRedrawAfterShift(rt, window, originalWindow, shift, bottomRect); } - else if (drawRect.GetBottom() > window->windowPos.y + window->height) + else if (drawRect.getBottom() > window->windowPos.y + window->height) { - ScreenRect topRect = { drawRect.Point1, { drawRect.GetRight(), window->windowPos.y + window->height } }; + ScreenRect topRect = { drawRect.point1, { drawRect.getRight(), window->windowPos.y + window->height } }; ViewportRedrawAfterShift(rt, window, originalWindow, shift, topRect); - ScreenRect bottomRect = { { drawRect.GetLeft(), window->windowPos.y + window->height }, drawRect.Point2 }; + ScreenRect bottomRect = { { drawRect.getLeft(), window->windowPos.y + window->height }, drawRect.point2 }; ViewportRedrawAfterShift(rt, window, originalWindow, shift, bottomRect); } } else { - auto left = drawRect.GetLeft(); - auto right = drawRect.GetRight(); - auto top = drawRect.GetTop(); - auto bottom = drawRect.GetBottom(); + auto left = drawRect.getLeft(); + auto right = drawRect.getRight(); + auto top = drawRect.getTop(); + auto bottom = drawRect.getBottom(); // if moved more than the draw rectangle size - if (abs(shift.x) < drawRect.GetWidth() && abs(shift.y) < drawRect.GetHeight()) + if (abs(shift.x) < drawRect.getWidth() && abs(shift.y) < drawRect.getHeight()) { // update whole block ? DrawingEngineCopyRect( - drawRect.GetLeft(), drawRect.GetTop(), drawRect.GetWidth(), drawRect.GetHeight(), shift.x, shift.y); + drawRect.getLeft(), drawRect.getTop(), drawRect.getWidth(), drawRect.getHeight(), shift.x, shift.y); if (shift.x > 0) { @@ -420,20 +420,20 @@ namespace OpenRCT2 if (w->viewport == window->viewport) continue; - if (drawRect.GetRight() <= w->windowPos.x) + if (drawRect.getRight() <= w->windowPos.x) continue; - if (w->windowPos.x + w->width <= drawRect.GetLeft()) + if (w->windowPos.x + w->width <= drawRect.getLeft()) continue; - if (drawRect.GetBottom() <= w->windowPos.y) + if (drawRect.getBottom() <= w->windowPos.y) continue; - if (w->windowPos.y + w->height <= drawRect.GetTop()) + if (w->windowPos.y + w->height <= drawRect.getTop()) continue; - const int32_t left = std::max(w->windowPos.x, drawRect.GetLeft()); - const int32_t right = std::min(w->windowPos.x + w->width, drawRect.GetRight()); - const int32_t top = std::max(w->windowPos.y, drawRect.GetTop()); - const int32_t bottom = std::min(w->windowPos.y + w->height, drawRect.GetBottom()); + const int32_t left = std::max(w->windowPos.x, drawRect.getLeft()); + const int32_t right = std::min(w->windowPos.x + w->width, drawRect.getRight()); + const int32_t top = std::max(w->windowPos.y, drawRect.getTop()); + const int32_t bottom = std::min(w->windowPos.y + w->height, drawRect.getBottom()); if (left >= right || top >= bottom) continue; @@ -1765,18 +1765,18 @@ namespace OpenRCT2 auto viewPos = viewport->viewPos; auto viewportScreenPos = viewport->pos; - ScreenRect invalidRect = { { zoom.ApplyInversedTo(screenRect.GetLeft() - viewPos.x), - zoom.ApplyInversedTo(screenRect.GetTop() - viewPos.y) }, - { zoom.ApplyInversedTo(screenRect.GetRight() - viewPos.x), - zoom.ApplyInversedTo(screenRect.GetBottom() - viewPos.y) } }; + ScreenRect invalidRect = { { zoom.ApplyInversedTo(screenRect.getLeft() - viewPos.x), + zoom.ApplyInversedTo(screenRect.getTop() - viewPos.y) }, + { zoom.ApplyInversedTo(screenRect.getRight() - viewPos.x), + zoom.ApplyInversedTo(screenRect.getBottom() - viewPos.y) } }; - if (invalidRect.GetTop() >= viewport->height || invalidRect.GetBottom() <= 0 || invalidRect.GetLeft() >= viewport->width - || invalidRect.GetRight() <= 0) + if (invalidRect.getTop() >= viewport->height || invalidRect.getBottom() <= 0 || invalidRect.getLeft() >= viewport->width + || invalidRect.getRight() <= 0) { return; } - invalidRect.Point1 += viewportScreenPos; - invalidRect.Point2 += viewportScreenPos; + invalidRect.point1 += viewportScreenPos; + invalidRect.point2 += viewportScreenPos; GfxSetDirtyBlocks(invalidRect); } diff --git a/src/openrct2/paint/Paint.Entity.cpp b/src/openrct2/paint/Paint.Entity.cpp index 7d5a1cade5..d8fe47dcdf 100644 --- a/src/openrct2/paint/Paint.Entity.cpp +++ b/src/openrct2/paint/Paint.Entity.cpp @@ -111,10 +111,10 @@ void EntityPaintSetup(PaintSession& session, const CoordsXY& pos) screenCoords + ScreenCoordsXY{ entity->spriteData.width, entity->spriteData.heightMax }); const ZoomLevel zoom = session.rt.zoom_level; - if (session.rt.y + session.rt.height <= zoom.ApplyInversedTo(spriteRect.GetTop()) - || zoom.ApplyInversedTo(spriteRect.GetBottom()) <= session.rt.y - || session.rt.x + session.rt.width <= zoom.ApplyInversedTo(spriteRect.GetLeft()) - || zoom.ApplyInversedTo(spriteRect.GetRight()) <= session.rt.x) + if (session.rt.y + session.rt.height <= zoom.ApplyInversedTo(spriteRect.getTop()) + || zoom.ApplyInversedTo(spriteRect.getBottom()) <= session.rt.y + || session.rt.x + session.rt.width <= zoom.ApplyInversedTo(spriteRect.getLeft()) + || zoom.ApplyInversedTo(spriteRect.getRight()) <= session.rt.x) { continue; } diff --git a/src/openrct2/scripting/bindings/entity/ScStaff.cpp b/src/openrct2/scripting/bindings/entity/ScStaff.cpp index 7f14077101..6bfdb83ed6 100644 --- a/src/openrct2/scripting/bindings/entity/ScStaff.cpp +++ b/src/openrct2/scripting/bindings/entity/ScStaff.cpp @@ -626,9 +626,9 @@ namespace OpenRCT2::Scripting { MapRange mapRange = { JSToCoordXY(ctx, coordsOrRange, "leftTop"), JSToCoordXY(ctx, coordsOrRange, "rightBottom") }; - for (int32_t y = mapRange.GetY1(); y <= mapRange.GetY2(); y += kCoordsXYStep) + for (int32_t y = mapRange.getY1(); y <= mapRange.getY2(); y += kCoordsXYStep) { - for (int32_t x = mapRange.GetX1(); x <= mapRange.GetX2(); x += kCoordsXYStep) + for (int32_t x = mapRange.getX1(); x <= mapRange.getX2(); x += kCoordsXYStep) { CoordsXY coord(x, y); staff->setPatrolArea(coord, reset); diff --git a/src/openrct2/world/FootpathDragSlope.cpp b/src/openrct2/world/FootpathDragSlope.cpp index 5e3e601ebe..ad8915bb93 100644 --- a/src/openrct2/world/FootpathDragSlope.cpp +++ b/src/openrct2/world/FootpathDragSlope.cpp @@ -55,51 +55,51 @@ namespace OpenRCT2 public: ConnectedPathSlopes(MapRange range, CoordsXY dragStart) { - dragWidth = range.GetX2() - range.GetX1(); - dragHeight = range.GetY2() - range.GetY1(); + dragWidth = range.getX2() - range.getX1(); + dragHeight = range.getY2() - range.getY1(); startPos = dragStart.toTileStart(); - startPos.x = std::clamp(startPos.x, range.GetX1(), range.GetX2()); - startPos.y = std::clamp(startPos.y, range.GetY1(), range.GetY2()); + startPos.x = std::clamp(startPos.x, range.getX1(), range.getX2()); + startPos.y = std::clamp(startPos.y, range.getY1(), range.getY2()); primaryIsX = dragWidth >= dragHeight; if (primaryIsX) { - secondaryStart = range.GetY1(); - secondaryEnd = range.GetY2(); + secondaryStart = range.getY1(); + secondaryEnd = range.getY2(); - if (startPos.x <= (range.GetX1() + range.GetX2()) / 2) + if (startPos.x <= (range.getX1() + range.getX2()) / 2) { - primaryStart = range.GetX1(); - primaryEnd = range.GetX2(); + primaryStart = range.getX1(); + primaryEnd = range.getX2(); primaryStep = kCoordsXYStep; slopeDirection = TILE_ELEMENT_DIRECTION_EAST; } else { - primaryStart = range.GetX2(); - primaryEnd = range.GetX1(); + primaryStart = range.getX2(); + primaryEnd = range.getX1(); primaryStep = -kCoordsXYStep; slopeDirection = TILE_ELEMENT_DIRECTION_WEST; } } else { - secondaryStart = range.GetX1(); - secondaryEnd = range.GetX2(); + secondaryStart = range.getX1(); + secondaryEnd = range.getX2(); - if (startPos.y <= (range.GetY1() + range.GetY2()) / 2) + if (startPos.y <= (range.getY1() + range.getY2()) / 2) { - primaryStart = range.GetY1(); - primaryEnd = range.GetY2(); + primaryStart = range.getY1(); + primaryEnd = range.getY2(); primaryStep = kCoordsXYStep; slopeDirection = TILE_ELEMENT_DIRECTION_NORTH; } else { - primaryStart = range.GetY2(); - primaryEnd = range.GetY1(); + primaryStart = range.getY2(); + primaryEnd = range.getY1(); primaryStep = -kCoordsXYStep; slopeDirection = TILE_ELEMENT_DIRECTION_SOUTH; } diff --git a/src/openrct2/world/Location.hpp b/src/openrct2/world/Location.hpp index d52b536728..ff86e54e27 100644 --- a/src/openrct2/world/Location.hpp +++ b/src/openrct2/world/Location.hpp @@ -681,10 +681,10 @@ struct MapRange : public CoordsRange // Don't use std::min/max, as they require , one of C++'s heaviest // in this very common header. auto result = MapRange( - GetX1() < GetX2() ? GetX1() : GetX2(), // min - GetY1() < GetY2() ? GetY1() : GetY2(), // min - GetX1() > GetX2() ? GetX1() : GetX2(), // max - GetY1() > GetY2() ? GetY1() : GetY2() // max + getX1() < getX2() ? getX1() : getX2(), // min + getY1() < getY2() ? getY1() : getY2(), // min + getX1() > getX2() ? getX1() : getX2(), // max + getY1() > getY2() ? getY1() : getY2() // max ); return result; } diff --git a/src/openrct2/world/Map.cpp b/src/openrct2/world/Map.cpp index f93f2ba70b..f663946c41 100644 --- a/src/openrct2/world/Map.cpp +++ b/src/openrct2/world/Map.cpp @@ -1047,10 +1047,10 @@ namespace OpenRCT2 { uint32_t rotation = GetCurrentRotation(); const std::array corners{ - CoordsXY{ _range.GetX1(), _range.GetY1() }, - CoordsXY{ _range.GetX2(), _range.GetY1() }, - CoordsXY{ _range.GetX2(), _range.GetY2() }, - CoordsXY{ _range.GetX1(), _range.GetY2() }, + CoordsXY{ _range.getX1(), _range.getY1() }, + CoordsXY{ _range.getX2(), _range.getY1() }, + CoordsXY{ _range.getX2(), _range.getY2() }, + CoordsXY{ _range.getX1(), _range.getY2() }, }; *left = std::numeric_limits::max(); @@ -2117,10 +2117,10 @@ namespace OpenRCT2 MapRange ClampRangeWithinMap(const MapRange& range) { auto mapSizeMax = GetMapSizeMaxXY(); - auto aX = std::max(kCoordsXYStep, range.GetX1()); - auto bX = std::min(mapSizeMax.x, range.GetX2()); - auto aY = std::max(kCoordsXYStep, range.GetY1()); - auto bY = std::min(mapSizeMax.y, range.GetY2()); + auto aX = std::max(kCoordsXYStep, range.getX1()); + auto bX = std::min(mapSizeMax.x, range.getX2()); + auto aY = std::max(kCoordsXYStep, range.getY1()); + auto bY = std::min(mapSizeMax.y, range.getY2()); MapRange validRange = MapRange{ aX, aY, bX, bY }; return validRange; } diff --git a/src/openrct2/world/MapRangeView.cpp b/src/openrct2/world/MapRangeView.cpp index bbcd147335..0fcdf231c4 100644 --- a/src/openrct2/world/MapRangeView.cpp +++ b/src/openrct2/world/MapRangeView.cpp @@ -39,7 +39,7 @@ namespace OpenRCT2::Map MapRangeView getClampedRange(const MapRange& range) { - return getClampedRange(range.Point1, range.Point2); + return getClampedRange(range.point1, range.point2); } MapRangeView getDrawableTileRange() diff --git a/src/openrct2/world/MapSelection.cpp b/src/openrct2/world/MapSelection.cpp index 1f40e25414..3f674d2931 100644 --- a/src/openrct2/world/MapSelection.cpp +++ b/src/openrct2/world/MapSelection.cpp @@ -36,8 +36,8 @@ MapRange getMapSelectRange() void setMapSelectRange(const MapRange& range) { const auto normalised = range.normalise(); - gMapSelectPositionA = normalised.Point1; - gMapSelectPositionB = normalised.Point2; + gMapSelectPositionA = normalised.point1; + gMapSelectPositionB = normalised.point2; } void setMapSelectRange(const CoordsXY coords) From fdd84f26125d49df189f24738ee10a5ca20d3e6e Mon Sep 17 00:00:00 2001 From: Harry Hopkinson <63599884+Harry-Hopkinson@users.noreply.github.com> Date: Sat, 12 Sep 2026 18:00:52 +0200 Subject: [PATCH 035/142] Refactor ViewportInteractionItems into FlagHolder (#27111) --- .../interface/ViewportInteraction.cpp | 14 +++--- src/openrct2-ui/interface/ViewportQuery.cpp | 8 ++-- src/openrct2-ui/ride/Construction.cpp | 2 +- src/openrct2-ui/scripting/CustomMenu.cpp | 4 +- src/openrct2-ui/scripting/CustomMenu.h | 3 +- src/openrct2-ui/windows/Footpath.cpp | 13 +++--- src/openrct2-ui/windows/LandRights.cpp | 3 +- src/openrct2-ui/windows/PatrolArea.cpp | 4 +- src/openrct2-ui/windows/Ride.cpp | 20 +++++---- src/openrct2-ui/windows/RideConstruction.cpp | 12 ++--- src/openrct2-ui/windows/Scenery.cpp | 45 ++++++++++--------- src/openrct2-ui/windows/TileInspector.cpp | 11 ++--- src/openrct2-ui/windows/TrackDesignPlace.cpp | 9 ++-- src/openrct2-ui/windows/Water.cpp | 2 +- src/openrct2/interface/InteractiveConsole.cpp | 2 +- src/openrct2/interface/Viewport.cpp | 27 +++++------ src/openrct2/interface/Viewport.h | 18 +++++--- 17 files changed, 107 insertions(+), 90 deletions(-) diff --git a/src/openrct2-ui/interface/ViewportInteraction.cpp b/src/openrct2-ui/interface/ViewportInteraction.cpp index ef720e9637..ef8c2e057f 100644 --- a/src/openrct2-ui/interface/ViewportInteraction.cpp +++ b/src/openrct2-ui/interface/ViewportInteraction.cpp @@ -87,8 +87,7 @@ namespace OpenRCT2::Ui info = GetMapCoordinatesFromPos( screenCoords, - EnumsToFlags( - ViewportInteractionItem::entity, ViewportInteractionItem::ride, ViewportInteractionItem::parkEntrance)); + { ViewportInteractionItem::entity, ViewportInteractionItem::ride, ViewportInteractionItem::parkEntrance }); auto tileElement = info.interactionType != ViewportInteractionItem::entity ? info.Element : nullptr; // Only valid when info.interactionType == ViewportInteractionItem::entity, but can't assign nullptr without compiler // complaining @@ -272,9 +271,12 @@ namespace OpenRCT2::Ui if (gLegacyScene == LegacyScene::trackDesigner && getGameState().editorStep != Editor::Step::rollerCoasterDesigner) return info; - constexpr auto flags = static_cast( - ~EnumsToFlags(ViewportInteractionItem::terrain, ViewportInteractionItem::water)); - info = GetMapCoordinatesFromPos(screenCoords, flags); + constexpr ViewportInteractionItems kFlags{ ViewportInteractionItem::entity, ViewportInteractionItem::ride, + ViewportInteractionItem::scenery, ViewportInteractionItem::footpath, + ViewportInteractionItem::pathAddition, ViewportInteractionItem::parkEntrance, + ViewportInteractionItem::wall, ViewportInteractionItem::largeScenery, + ViewportInteractionItem::label, ViewportInteractionItem::banner }; + info = GetMapCoordinatesFromPos(screenCoords, kFlags); auto tileElement = info.Element; switch (info.interactionType) @@ -798,7 +800,7 @@ namespace OpenRCT2::Ui } auto viewport = window->viewport; auto info = GetMapCoordinatesFromPosWindow( - window, screenCoords, EnumsToFlags(ViewportInteractionItem::terrain, ViewportInteractionItem::water)); + window, screenCoords, { ViewportInteractionItem::terrain, ViewportInteractionItem::water }); auto initialPos = info.Loc; if (info.interactionType == ViewportInteractionItem::none) diff --git a/src/openrct2-ui/interface/ViewportQuery.cpp b/src/openrct2-ui/interface/ViewportQuery.cpp index ba5d882b69..e394f6b88f 100644 --- a/src/openrct2-ui/interface/ViewportQuery.cpp +++ b/src/openrct2-ui/interface/ViewportQuery.cpp @@ -45,12 +45,12 @@ namespace OpenRCT2::Ui return position; } auto viewport = window->viewport; - auto info = GetMapCoordinatesFromPosWindow(window, screenCoords, EnumsToFlags(ViewportInteractionItem::footpath)); + auto info = GetMapCoordinatesFromPosWindow(window, screenCoords, { ViewportInteractionItem::footpath }); if (info.interactionType != ViewportInteractionItem::footpath || !(viewport->flags & (VIEWPORT_FLAG_UNDERGROUND_INSIDE | VIEWPORT_FLAG_HIDE_BASE | VIEWPORT_FLAG_HIDE_VERTICAL))) { info = GetMapCoordinatesFromPosWindow( - window, screenCoords, EnumsToFlags(ViewportInteractionItem::terrain, ViewportInteractionItem::footpath)); + window, screenCoords, { ViewportInteractionItem::terrain, ViewportInteractionItem::footpath }); if (info.interactionType == ViewportInteractionItem::none) { auto position = info.Loc; @@ -144,7 +144,7 @@ namespace OpenRCT2::Ui return ret; } auto viewport = window->viewport; - auto info = GetMapCoordinatesFromPosWindow(window, screenCoords, EnumsToFlags(ViewportInteractionItem::ride)); + auto info = GetMapCoordinatesFromPosWindow(window, screenCoords, ViewportInteractionItem::ride); *tileElement = info.Element; if (info.interactionType == ViewportInteractionItem::ride && viewport->flags & (VIEWPORT_FLAG_UNDERGROUND_INSIDE | VIEWPORT_FLAG_HIDE_BASE | VIEWPORT_FLAG_HIDE_VERTICAL) @@ -164,7 +164,7 @@ namespace OpenRCT2::Ui info = GetMapCoordinatesFromPosWindow( window, screenCoords, - EnumsToFlags(ViewportInteractionItem::terrain, ViewportInteractionItem::footpath, ViewportInteractionItem::ride)); + { ViewportInteractionItem::terrain, ViewportInteractionItem::footpath, ViewportInteractionItem::ride }); if (info.interactionType == ViewportInteractionItem::ride && (*tileElement)->getType() == TileElementType::entrance) { uint32_t directions = (*tileElement)->asEntrance()->getDirections(); diff --git a/src/openrct2-ui/ride/Construction.cpp b/src/openrct2-ui/ride/Construction.cpp index f18aca6302..3756fabc30 100644 --- a/src/openrct2-ui/ride/Construction.cpp +++ b/src/openrct2-ui/ride/Construction.cpp @@ -374,7 +374,7 @@ namespace OpenRCT2 CoordsXYZD entranceExitCoords{}; gRideEntranceExitPlaceDirection = kInvalidDirection; // determine if the mouse is hovering over a station - that's the station to add the entrance to - auto info = GetMapCoordinatesFromPos(screenCoords, EnumsToFlags(ViewportInteractionItem::ride)); + auto info = GetMapCoordinatesFromPos(screenCoords, ViewportInteractionItem::ride); if (info.interactionType != ViewportInteractionItem::none) { if (info.Element->getType() == TileElementType::track) diff --git a/src/openrct2-ui/scripting/CustomMenu.cpp b/src/openrct2-ui/scripting/CustomMenu.cpp index d60fd47aef..7bf806dae4 100644 --- a/src/openrct2-ui/scripting/CustomMenu.cpp +++ b/src/openrct2-ui/scripting/CustomMenu.cpp @@ -263,14 +263,14 @@ namespace OpenRCT2::Scripting JSValue filter = JS_GetPropertyStr(ctx, value, "filter"); if (JS_IsArray(filter)) { - customTool.Filter = 0; + customTool.Filter.clearAll(); int64_t len = -1; JS_GetLength(ctx, filter, &len); for (int64_t i = 0; i < len; i++) { JSValue curFilter = JS_GetPropertyInt64(ctx, filter, i); auto elem = FilterJSValToEnum(ctx, curFilter); - customTool.Filter |= static_cast(EnumToFlag(elem)); + customTool.Filter.set(elem); JS_FreeValue(ctx, curFilter); } } diff --git a/src/openrct2-ui/scripting/CustomMenu.h b/src/openrct2-ui/scripting/CustomMenu.h index 0c8d4b0111..9f0fd1f220 100644 --- a/src/openrct2-ui/scripting/CustomMenu.h +++ b/src/openrct2-ui/scripting/CustomMenu.h @@ -14,6 +14,7 @@ #include #include #include + #include #include #include #include @@ -77,7 +78,7 @@ namespace OpenRCT2::Scripting std::shared_ptr Owner; std::string Id; CursorID Cursor = CursorID::undefined; - uint32_t Filter{}; + ViewportInteractionItems Filter{}; bool MouseDown{}; // Event handlers diff --git a/src/openrct2-ui/windows/Footpath.cpp b/src/openrct2-ui/windows/Footpath.cpp index 0edd056566..b258fe76fc 100644 --- a/src/openrct2-ui/windows/Footpath.cpp +++ b/src/openrct2-ui/windows/Footpath.cpp @@ -907,11 +907,12 @@ namespace OpenRCT2::Ui::Windows // First, store the initial copy/ctrl state if (!_footpathPlaceCtrlState && im.isModifierKeyPressed(ModifierKey::ctrl)) { - constexpr auto interactionFlags = EnumsToFlags( - ViewportInteractionItem::terrain, ViewportInteractionItem::ride, ViewportInteractionItem::scenery, - ViewportInteractionItem::footpath, ViewportInteractionItem::wall, ViewportInteractionItem::largeScenery); + constexpr ViewportInteractionItems kInteractionFlags = { + ViewportInteractionItem::terrain, ViewportInteractionItem::ride, ViewportInteractionItem::scenery, + ViewportInteractionItem::footpath, ViewportInteractionItem::wall, ViewportInteractionItem::largeScenery + }; - auto info = GetMapCoordinatesFromPos(screenCoords, interactionFlags); + auto info = GetMapCoordinatesFromPos(screenCoords, kInteractionFlags); if (info.interactionType != ViewportInteractionItem::none) { const bool allowInvalidHeights = getGameState().cheats.allowTrackPlaceInvalidHeights; @@ -972,7 +973,7 @@ namespace OpenRCT2::Ui::Windows if (!_footpathPlaceCtrlState) { auto info = GetMapCoordinatesFromPos( - screenCoords, EnumsToFlags(ViewportInteractionItem::terrain, ViewportInteractionItem::footpath)); + screenCoords, { ViewportInteractionItem::terrain, ViewportInteractionItem::footpath }); if (info.interactionType == ViewportInteractionItem::none) return std::nullopt; @@ -1256,7 +1257,7 @@ namespace OpenRCT2::Ui::Windows return { _footpathPlaceZ, { FootpathSlopeType::flat } }; const auto info = GetMapCoordinatesFromPos( - screenCoords, EnumsToFlags(ViewportInteractionItem::terrain, ViewportInteractionItem::footpath)); + screenCoords, { ViewportInteractionItem::terrain, ViewportInteractionItem::footpath }); return FootpathGetPlacementFromInfo(info); } diff --git a/src/openrct2-ui/windows/LandRights.cpp b/src/openrct2-ui/windows/LandRights.cpp index a8907229b7..6a7675801b 100644 --- a/src/openrct2-ui/windows/LandRights.cpp +++ b/src/openrct2-ui/windows/LandRights.cpp @@ -463,7 +463,8 @@ namespace OpenRCT2::Ui::Windows gMapSelectFlags.unset(MapSelectFlag::enable); auto info = GetMapCoordinatesFromPos( - screenCoords, EnumsToFlags(ViewportInteractionItem::terrain, ViewportInteractionItem::water)); + screenCoords, { ViewportInteractionItem::terrain, ViewportInteractionItem::water }); + if (info.interactionType == ViewportInteractionItem::none) { if (_landRightsCost != kMoney64Undefined) diff --git a/src/openrct2-ui/windows/PatrolArea.cpp b/src/openrct2-ui/windows/PatrolArea.cpp index d8f62ba95a..85311168ca 100644 --- a/src/openrct2-ui/windows/PatrolArea.cpp +++ b/src/openrct2-ui/windows/PatrolArea.cpp @@ -278,9 +278,7 @@ namespace OpenRCT2::Ui::Windows std::optional GetBestCoordsFromPos(const ScreenCoordsXY& pos) { auto info = GetMapCoordinatesFromPos( - pos, - EnumsToFlags( - ViewportInteractionItem::terrain, ViewportInteractionItem::water, ViewportInteractionItem::footpath)); + pos, { ViewportInteractionItem::terrain, ViewportInteractionItem::water, ViewportInteractionItem::footpath }); if (info.interactionType == ViewportInteractionItem::none) return std::nullopt; diff --git a/src/openrct2-ui/windows/Ride.cpp b/src/openrct2-ui/windows/Ride.cpp index c4d3642be9..2250d2f777 100644 --- a/src/openrct2-ui/windows/Ride.cpp +++ b/src/openrct2-ui/windows/Ride.cpp @@ -4284,7 +4284,7 @@ namespace OpenRCT2::Ui::Windows void SetTrackColourScheme(const ScreenCoordsXY& screenPos) { auto newColourScheme = static_cast(_rideColour); - auto info = GetMapCoordinatesFromPos(screenPos, EnumsToFlags(ViewportInteractionItem::ride)); + auto info = GetMapCoordinatesFromPos(screenPos, ViewportInteractionItem::ride); if (info.interactionType != ViewportInteractionItem::ride) return; @@ -5843,10 +5843,11 @@ namespace OpenRCT2::Ui::Windows _lastSceneryY = screenCoords.y; _collectTrackDesignScenery = true; // Default to true in case user does not select anything valid - constexpr auto interactionFlags = EnumsToFlags( - ViewportInteractionItem::scenery, ViewportInteractionItem::footpath, ViewportInteractionItem::wall, - ViewportInteractionItem::largeScenery); - auto info = GetMapCoordinatesFromPos(screenCoords, interactionFlags); + constexpr ViewportInteractionItems kInteractionFlags = { ViewportInteractionItem::scenery, + ViewportInteractionItem::footpath, + ViewportInteractionItem::wall, + ViewportInteractionItem::largeScenery }; + auto info = GetMapCoordinatesFromPos(screenCoords, kInteractionFlags); switch (info.interactionType) { case ViewportInteractionItem::scenery: @@ -5868,10 +5869,11 @@ namespace OpenRCT2::Ui::Windows _lastSceneryX = screenCoords.x; _lastSceneryY = screenCoords.y; - constexpr auto interactionFlags = EnumsToFlags( - ViewportInteractionItem::scenery, ViewportInteractionItem::footpath, ViewportInteractionItem::wall, - ViewportInteractionItem::largeScenery); - auto info = GetMapCoordinatesFromPos(screenCoords, interactionFlags); + constexpr ViewportInteractionItems kInteractionFlags = { ViewportInteractionItem::scenery, + ViewportInteractionItem::footpath, + ViewportInteractionItem::wall, + ViewportInteractionItem::largeScenery }; + auto info = GetMapCoordinatesFromPos(screenCoords, kInteractionFlags); switch (info.interactionType) { case ViewportInteractionItem::scenery: diff --git a/src/openrct2-ui/windows/RideConstruction.cpp b/src/openrct2-ui/windows/RideConstruction.cpp index de49e70888..85627b45ba 100644 --- a/src/openrct2-ui/windows/RideConstruction.cpp +++ b/src/openrct2-ui/windows/RideConstruction.cpp @@ -3003,12 +3003,14 @@ namespace OpenRCT2::Ui::Windows { if (im.isModifierKeyPressed(ModifierKey::ctrl)) { - constexpr auto interactionFlags = EnumsToFlags( - ViewportInteractionItem::terrain, ViewportInteractionItem::ride, ViewportInteractionItem::footpath, - ViewportInteractionItem::pathAddition, ViewportInteractionItem::largeScenery, - ViewportInteractionItem::label, ViewportInteractionItem::banner); + constexpr ViewportInteractionItems kInteractionFlags = { + ViewportInteractionItem::terrain, ViewportInteractionItem::ride, + ViewportInteractionItem::footpath, ViewportInteractionItem::pathAddition, + ViewportInteractionItem::largeScenery, ViewportInteractionItem::label, + ViewportInteractionItem::banner + }; - auto info = GetMapCoordinatesFromPos(screenCoords, interactionFlags); + auto info = GetMapCoordinatesFromPos(screenCoords, kInteractionFlags); if (info.interactionType != ViewportInteractionItem::none) { _trackPlaceCtrlZ = info.Element->getBaseZ(); diff --git a/src/openrct2-ui/windows/Scenery.cpp b/src/openrct2-ui/windows/Scenery.cpp index fc6ca9481c..cc7572df05 100644 --- a/src/openrct2-ui/windows/Scenery.cpp +++ b/src/openrct2-ui/windows/Scenery.cpp @@ -2234,10 +2234,10 @@ namespace OpenRCT2::Ui::Windows */ void RepaintSceneryToolDown(const ScreenCoordsXY& screenCoords, WidgetIndex widgetIndex) { - constexpr auto flag = EnumsToFlags( - ViewportInteractionItem::scenery, ViewportInteractionItem::wall, ViewportInteractionItem::largeScenery, - ViewportInteractionItem::banner); - auto info = GetMapCoordinatesFromPos(screenCoords, flag); + constexpr ViewportInteractionItems kFlags = { ViewportInteractionItem::scenery, ViewportInteractionItem::wall, + ViewportInteractionItem::largeScenery, + ViewportInteractionItem::banner }; + auto info = GetMapCoordinatesFromPos(screenCoords, kFlags); auto& gameState = getGameState(); switch (info.interactionType) { @@ -2312,10 +2312,11 @@ namespace OpenRCT2::Ui::Windows void SceneryEyedropperToolDown(const ScreenCoordsXY& screenCoords, WidgetIndex widgetIndex) { - constexpr auto flag = EnumsToFlags( - ViewportInteractionItem::scenery, ViewportInteractionItem::wall, ViewportInteractionItem::largeScenery, - ViewportInteractionItem::banner, ViewportInteractionItem::pathAddition); - auto info = GetMapCoordinatesFromPos(screenCoords, flag); + constexpr ViewportInteractionItems kFlags = { ViewportInteractionItem::scenery, ViewportInteractionItem::wall, + ViewportInteractionItem::largeScenery, + ViewportInteractionItem::banner, + ViewportInteractionItem::pathAddition }; + auto info = GetMapCoordinatesFromPos(screenCoords, kFlags); switch (info.interactionType) { case ViewportInteractionItem::scenery: @@ -2404,11 +2405,12 @@ namespace OpenRCT2::Ui::Windows if (im.isModifierKeyPressed(ModifierKey::ctrl)) { // CTRL pressed - constexpr auto flag = EnumsToFlags( - ViewportInteractionItem::terrain, ViewportInteractionItem::ride, ViewportInteractionItem::scenery, - ViewportInteractionItem::footpath, ViewportInteractionItem::wall, - ViewportInteractionItem::largeScenery); - auto info = GetMapCoordinatesFromPos(screenPos, flag); + constexpr ViewportInteractionItems kFlags = { + ViewportInteractionItem::terrain, ViewportInteractionItem::ride, + ViewportInteractionItem::scenery, ViewportInteractionItem::footpath, + ViewportInteractionItem::wall, ViewportInteractionItem::largeScenery + }; + auto info = GetMapCoordinatesFromPos(screenPos, kFlags); if (info.interactionType != ViewportInteractionItem::none) { @@ -2574,9 +2576,10 @@ namespace OpenRCT2::Ui::Windows // If CTRL not pressed if (!gSceneryCtrlPressed) { - constexpr auto flag = EnumsToFlags(ViewportInteractionItem::terrain, ViewportInteractionItem::water); + constexpr ViewportInteractionItems kFlags = { ViewportInteractionItem::terrain, + ViewportInteractionItem::water }; - auto info = GetMapCoordinatesFromPos(screenPos, flag); + auto info = GetMapCoordinatesFromPos(screenPos, kFlags); gridPos = info.Loc; if (info.interactionType == ViewportInteractionItem::none) @@ -2660,8 +2663,9 @@ namespace OpenRCT2::Ui::Windows updatePlacementUpdateScreenCoordsAndButtonsPressed(false, screenPos); // Path additions - constexpr auto flag = EnumsToFlags(ViewportInteractionItem::footpath, ViewportInteractionItem::pathAddition); - auto info = GetMapCoordinatesFromPos(screenPos, flag); + constexpr ViewportInteractionItems kFlags = { ViewportInteractionItem::footpath, + ViewportInteractionItem::pathAddition }; + auto info = GetMapCoordinatesFromPos(screenPos, kFlags); gridPos = info.Loc; if (info.interactionType == ViewportInteractionItem::none) @@ -2862,8 +2866,9 @@ namespace OpenRCT2::Ui::Windows updatePlacementUpdateScreenCoordsAndButtonsPressed(false, screenPos); // Banner - constexpr auto flag = EnumsToFlags(ViewportInteractionItem::footpath, ViewportInteractionItem::pathAddition); - auto info = GetMapCoordinatesFromPos(screenPos, flag); + constexpr ViewportInteractionItems kFlags = { ViewportInteractionItem::footpath, + ViewportInteractionItem::pathAddition }; + auto info = GetMapCoordinatesFromPos(screenPos, kFlags); gridPos = info.Loc; if (info.interactionType == ViewportInteractionItem::none) @@ -3059,7 +3064,7 @@ namespace OpenRCT2::Ui::Windows } else { - auto info = GetMapCoordinatesFromPos(screenCoords, EnumsToFlags(ViewportInteractionItem::terrain)); + auto info = GetMapCoordinatesFromPos(screenCoords, ViewportInteractionItem::terrain); if (info.interactionType == ViewportInteractionItem::none) return std::nullopt; diff --git a/src/openrct2-ui/windows/TileInspector.cpp b/src/openrct2-ui/windows/TileInspector.cpp index e343c68e8b..86fb3be452 100644 --- a/src/openrct2-ui/windows/TileInspector.cpp +++ b/src/openrct2-ui/windows/TileInspector.cpp @@ -463,10 +463,11 @@ namespace OpenRCT2::Ui::Windows MakeGroupboxSettings(kBannerDetailsHeight, kBannerPropertiesHeight, STR_TILE_INSPECTOR_GROUPBOX_BANNER_INFO), }; - static constexpr int32_t ViewportInteractionFlags = EnumsToFlags( - ViewportInteractionItem::terrain, ViewportInteractionItem::ride, ViewportInteractionItem::scenery, + static constexpr ViewportInteractionItems kViewportInteractionFlags{ + ViewportInteractionItem::terrain, ViewportInteractionItem::ride, ViewportInteractionItem::scenery, ViewportInteractionItem::footpath, ViewportInteractionItem::pathAddition, ViewportInteractionItem::parkEntrance, - ViewportInteractionItem::wall, ViewportInteractionItem::largeScenery, ViewportInteractionItem::banner); + ViewportInteractionItem::wall, ViewportInteractionItem::largeScenery, ViewportInteractionItem::banner + }; static constexpr WidgetIndex kDisabledWidgetsDefault[] = { WIDX_BUTTON_MOVE_UP, WIDX_BUTTON_MOVE_DOWN, WIDX_BUTTON_REMOVE, WIDX_BUTTON_ROTATE, WIDX_BUTTON_COPY, @@ -964,7 +965,7 @@ namespace OpenRCT2::Ui::Windows bool mouseOnViewport = false; if (GetInputManager().isModifierKeyPressed(ModifierKey::ctrl)) { - auto info = GetMapCoordinatesFromPos(screenCoords, ViewportInteractionFlags); + auto info = GetMapCoordinatesFromPos(screenCoords, kViewportInteractionFlags); clickedElement = info.Element; mapCoords = info.Loc; } @@ -1801,7 +1802,7 @@ namespace OpenRCT2::Ui::Windows TileElement* clickedElement = nullptr; if (ctrlIsHeldDown) { - auto info = GetMapCoordinatesFromPos(screenCoords, ViewportInteractionFlags); + auto info = GetMapCoordinatesFromPos(screenCoords, kViewportInteractionFlags); clickedElement = info.Element; mapCoords = info.Loc; } diff --git a/src/openrct2-ui/windows/TrackDesignPlace.cpp b/src/openrct2-ui/windows/TrackDesignPlace.cpp index 2dfa384113..0b514a436b 100644 --- a/src/openrct2-ui/windows/TrackDesignPlace.cpp +++ b/src/openrct2-ui/windows/TrackDesignPlace.cpp @@ -490,11 +490,12 @@ namespace OpenRCT2::Ui::Windows if (!_trackPlaceCtrlState && im.isModifierKeyPressed(ModifierKey::ctrl)) { - constexpr auto interactionFlags = EnumsToFlags( - ViewportInteractionItem::terrain, ViewportInteractionItem::ride, ViewportInteractionItem::scenery, - ViewportInteractionItem::footpath, ViewportInteractionItem::wall, ViewportInteractionItem::largeScenery); + constexpr ViewportInteractionItems kInteractionFlags = { + ViewportInteractionItem::terrain, ViewportInteractionItem::ride, ViewportInteractionItem::scenery, + ViewportInteractionItem::footpath, ViewportInteractionItem::wall, ViewportInteractionItem::largeScenery + }; - auto info = GetMapCoordinatesFromPos(screenCoords, interactionFlags); + auto info = GetMapCoordinatesFromPos(screenCoords, kInteractionFlags); if (info.interactionType == ViewportInteractionItem::terrain) { _trackPlaceCtrlZ = floor2(surfaceElement->getBaseZ(), kCoordsZStep); diff --git a/src/openrct2-ui/windows/Water.cpp b/src/openrct2-ui/windows/Water.cpp index 3f702dd3e8..8d6bf5d0a8 100644 --- a/src/openrct2-ui/windows/Water.cpp +++ b/src/openrct2-ui/windows/Water.cpp @@ -327,7 +327,7 @@ namespace OpenRCT2::Ui::Windows gMapSelectFlags.unset(MapSelectFlag::enable); auto info = GetMapCoordinatesFromPos( - screenPos, EnumsToFlags(ViewportInteractionItem::terrain, ViewportInteractionItem::water)); + screenPos, { ViewportInteractionItem::terrain, ViewportInteractionItem::water }); if (info.interactionType == ViewportInteractionItem::none) { diff --git a/src/openrct2/interface/InteractiveConsole.cpp b/src/openrct2/interface/InteractiveConsole.cpp index b3e89c1161..47f02743fd 100644 --- a/src/openrct2/interface/InteractiveConsole.cpp +++ b/src/openrct2/interface/InteractiveConsole.cpp @@ -670,7 +670,7 @@ static void ConsoleCommandGet(InteractiveConsole& console, const arguments_t& ar { Viewport* viewport = WindowGetViewport(w); auto info = GetMapCoordinatesFromPosWindow( - w, { viewport->width / 2, viewport->height / 2 }, EnumsToFlags(ViewportInteractionItem::terrain)); + w, { viewport->width / 2, viewport->height / 2 }, ViewportInteractionItem::terrain); auto tileMapCoord = TileCoordsXY(info.Loc); console.WriteFormatLine("location %d %d", tileMapCoord.x, tileMapCoord.y); diff --git a/src/openrct2/interface/Viewport.cpp b/src/openrct2/interface/Viewport.cpp index 673e916185..0742cbc438 100644 --- a/src/openrct2/interface/Viewport.cpp +++ b/src/openrct2/interface/Viewport.cpp @@ -1474,18 +1474,11 @@ namespace OpenRCT2 /** * Checks if a PaintStruct sprite type is in the filter mask. */ - static bool PSInteractionTypeIsInFilter(PaintStruct* ps, uint16_t filter) + static bool PSInteractionTypeIsInFilter(PaintStruct* ps, ViewportInteractionItems filter) { - if (ps->InteractionItem != ViewportInteractionItem::none && ps->InteractionItem != ViewportInteractionItem::label - && ps->InteractionItem <= ViewportInteractionItem::banner) - { - auto mask = EnumToFlag(ps->InteractionItem); - if (filter & mask) - { - return true; - } - } - return false; + return (ps->InteractionItem != ViewportInteractionItem::none && ps->InteractionItem != ViewportInteractionItem::label + && ps->InteractionItem <= ViewportInteractionItem::banner) + && filter.has(ps->InteractionItem); } /** @@ -1648,7 +1641,8 @@ namespace OpenRCT2 * * rct2: 0x0068862C */ - InteractionInfo SetInteractionInfoFromPaintSession(PaintSession* session, uint32_t viewFlags, uint16_t filter) + InteractionInfo SetInteractionInfoFromPaintSession( + PaintSession* session, uint32_t viewFlags, ViewportInteractionItems filter) { PROFILED_FUNCTION(); @@ -1705,14 +1699,15 @@ namespace OpenRCT2 * tileElement: edx * viewport: edi */ - InteractionInfo GetMapCoordinatesFromPos(const ScreenCoordsXY& screenCoords, int32_t flags) + InteractionInfo GetMapCoordinatesFromPos(const ScreenCoordsXY& screenCoords, ViewportInteractionItems flags) { auto* windowMgr = Ui::GetWindowManager(); WindowBase* window = windowMgr->FindFromPoint(screenCoords); return GetMapCoordinatesFromPosWindow(window, screenCoords, flags); } - InteractionInfo GetMapCoordinatesFromPosWindow(WindowBase* window, const ScreenCoordsXY& screenCoords, int32_t flags) + InteractionInfo GetMapCoordinatesFromPosWindow( + WindowBase* window, const ScreenCoordsXY& screenCoords, ViewportInteractionItems flags) { InteractionInfo info{}; if (window == nullptr || window->viewport == nullptr) @@ -1748,7 +1743,7 @@ namespace OpenRCT2 PaintSession* session = PaintSessionAlloc(rt, viewport->flags, viewport->rotation); PaintSessionGenerate(*session); PaintSessionArrange(*session); - info = SetInteractionInfoFromPaintSession(session, viewport->flags, flags & 0xFFFF); + info = SetInteractionInfoFromPaintSession(session, viewport->flags, flags); PaintSessionFree(session); } return info; @@ -1820,7 +1815,7 @@ namespace OpenRCT2 return std::nullopt; } auto myViewport = window->viewport; - auto info = GetMapCoordinatesFromPosWindow(window, screenCoords, EnumsToFlags(ViewportInteractionItem::terrain)); + auto info = GetMapCoordinatesFromPosWindow(window, screenCoords, ViewportInteractionItem::terrain); if (info.interactionType == ViewportInteractionItem::none) { return std::nullopt; diff --git a/src/openrct2/interface/Viewport.h b/src/openrct2/interface/Viewport.h index 2d98a3f8e4..02d7aa2639 100644 --- a/src/openrct2/interface/Viewport.h +++ b/src/openrct2/interface/Viewport.h @@ -9,12 +9,12 @@ #pragma once +#include "../core/FlagHolder.hpp" #include "../interface/ScreenCoords.hpp" #include "../interface/ZoomLevel.h" #include "../world/Location.hpp" #include "Window.h" -#include #include #include #include @@ -149,6 +149,7 @@ enum class ViewportInteractionItem : uint8_t label, banner }; +using ViewportInteractionItems = FlagHolder; enum class ViewportVisibility : uint8_t { @@ -162,7 +163,12 @@ enum class ViewportVisibility : uint8_t namespace OpenRCT2 { - constexpr uint16_t kViewportInteractionItemAll = std::numeric_limits::max(); + constexpr ViewportInteractionItems kViewportInteractionItemAll{ + ViewportInteractionItem::terrain, ViewportInteractionItem::entity, ViewportInteractionItem::ride, + ViewportInteractionItem::water, ViewportInteractionItem::scenery, ViewportInteractionItem::footpath, + ViewportInteractionItem::pathAddition, ViewportInteractionItem::parkEntrance, ViewportInteractionItem::wall, + ViewportInteractionItem::largeScenery, ViewportInteractionItem::label, ViewportInteractionItem::banner + }; struct InteractionInfo { @@ -215,10 +221,12 @@ namespace OpenRCT2 void HideConstructionRights(); void ViewportSetVisibility(ViewportVisibility mode); - InteractionInfo GetMapCoordinatesFromPos(const ScreenCoordsXY& screenCoords, int32_t flags); - InteractionInfo GetMapCoordinatesFromPosWindow(WindowBase* window, const ScreenCoordsXY& screenCoords, int32_t flags); + InteractionInfo GetMapCoordinatesFromPos(const ScreenCoordsXY& screenCoords, ViewportInteractionItems flags); + InteractionInfo GetMapCoordinatesFromPosWindow( + WindowBase* window, const ScreenCoordsXY& screenCoords, ViewportInteractionItems flags); - InteractionInfo SetInteractionInfoFromPaintSession(PaintSession* session, uint32_t viewFlags, uint16_t filter); + InteractionInfo SetInteractionInfoFromPaintSession( + PaintSession* session, uint32_t viewFlags, ViewportInteractionItems filter); std::optional ScreenGetMapXY(const ScreenCoordsXY& screenCoords, Viewport** viewport); std::optional ScreenGetMapXYWithZ(const ScreenCoordsXY& screenCoords, int32_t z); From fe4e93cf0e54736420742c2149185eb5cdd87f44 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Fri, 4 Sep 2026 19:50:47 +0200 Subject: [PATCH 036/142] Split determining peep action and display --- src/openrct2-ui/windows/Guest.cpp | 3 +- src/openrct2-ui/windows/GuestList.cpp | 5 +- src/openrct2-ui/windows/Staff.cpp | 3 +- src/openrct2-ui/windows/StaffList.cpp | 3 +- src/openrct2/entity/Peep.cpp | 172 +++++++------------------ src/openrct2/entity/Peep.h | 38 +++++- src/openrct2/libopenrct2.vcxproj | 2 + src/openrct2/peep/PeepActionFormat.cpp | 60 +++++++++ src/openrct2/peep/PeepActionFormat.h | 19 +++ 9 files changed, 172 insertions(+), 133 deletions(-) create mode 100644 src/openrct2/peep/PeepActionFormat.cpp create mode 100644 src/openrct2/peep/PeepActionFormat.h diff --git a/src/openrct2-ui/windows/Guest.cpp b/src/openrct2-ui/windows/Guest.cpp index 8f81e95b57..46341ee11d 100644 --- a/src/openrct2-ui/windows/Guest.cpp +++ b/src/openrct2-ui/windows/Guest.cpp @@ -39,6 +39,7 @@ #include #include #include +#include #include #include #include @@ -807,7 +808,7 @@ namespace OpenRCT2::Ui::Windows { auto ft = Formatter(); - peep->formatActionTo(ft); + formatPeepActionTo(*peep, ft); int32_t textWidth = actionLabelWidget.width() - 1; drawTextEllipsised(rt, screenPos, textWidth, STR_BLACK_STRING, ft, { TextAlignment::centre }); } diff --git a/src/openrct2-ui/windows/GuestList.cpp b/src/openrct2-ui/windows/GuestList.cpp index 08145b49f1..6fd44bccd8 100644 --- a/src/openrct2-ui/windows/GuestList.cpp +++ b/src/openrct2-ui/windows/GuestList.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -677,7 +678,7 @@ namespace OpenRCT2::Ui::Windows // Action ft = Formatter(); - peep->formatActionTo(ft); + formatPeepActionTo(*peep, ft); drawTextEllipsised(rt, { 133, y }, 314, format, ft); break; case GuestViewType::thoughts: @@ -867,7 +868,7 @@ namespace OpenRCT2::Ui::Windows switch (type) { case GuestViewType::actions: - peep.formatActionTo(ft); + formatPeepActionTo(peep, ft); break; case GuestViewType::thoughts: { diff --git a/src/openrct2-ui/windows/Staff.cpp b/src/openrct2-ui/windows/Staff.cpp index b4c0a8b600..44586af2a4 100644 --- a/src/openrct2-ui/windows/Staff.cpp +++ b/src/openrct2-ui/windows/Staff.cpp @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -559,7 +560,7 @@ namespace OpenRCT2::Ui::Windows return; } auto ft = Formatter(); - staff->formatActionTo(ft); + formatPeepActionTo(*staff, ft); const auto& widget = widgets[WIDX_BTM_LABEL]; auto screenPos = windowPos + ScreenCoordsXY{ widget.midX(), widget.top }; int32_t widgetWidth = widget.width() - 1; diff --git a/src/openrct2-ui/windows/StaffList.cpp b/src/openrct2-ui/windows/StaffList.cpp index cc4941bb70..1696008512 100644 --- a/src/openrct2-ui/windows/StaffList.cpp +++ b/src/openrct2-ui/windows/StaffList.cpp @@ -40,6 +40,7 @@ #include #include #include +#include #include #include #include @@ -413,7 +414,7 @@ namespace OpenRCT2::Ui::Windows drawTextEllipsised(rt, { 0, y }, nameColumnSize, format, ft); ft = Formatter(); - peep->formatActionTo(ft); + formatPeepActionTo(*peep, ft); drawTextEllipsised(rt, { actionOffset, y }, actionColumnSize, format, ft); // True if a patrol path is set for the worker diff --git a/src/openrct2/entity/Peep.cpp b/src/openrct2/entity/Peep.cpp index c3afcb0959..83c07694fc 100644 --- a/src/openrct2/entity/Peep.cpp +++ b/src/openrct2/entity/Peep.cpp @@ -37,6 +37,7 @@ #include "../object/ObjectManager.h" #include "../object/PeepAnimationsObject.h" #include "../peep/GuestPathfinding.h" +#include "../peep/PeepActionFormat.h" #include "../profiling/Profiling.h" #include "../ride/Ride.h" #include "../ride/RideData.h" @@ -1278,47 +1279,31 @@ namespace OpenRCT2 } } - void Peep::formatActionTo(Formatter& ft) const + PeepActionDescription Peep::getActionDescription() const { switch (state) { case PeepState::falling: - ft.Add(action == PeepActionType::drowning ? STR_DROWNING : STR_WALKING); - break; + if (action == PeepActionType::drowning) + return { PeepActionDescriptionType::drowning }; + + return { PeepActionDescriptionType::walking }; case PeepState::one: - ft.Add(STR_WALKING); - break; + return { PeepActionDescriptionType::walking }; case PeepState::onRide: case PeepState::leavingRide: case PeepState::enteringRide: { - auto ride = GetRide(currentRide); - if (ride != nullptr) + const auto ride = GetRide(currentRide); + if (ride != nullptr && ride->getRideTypeDescriptor().flags.has(RtdFlag::describeAsInside)) { - ft.Add( - ride->getRideTypeDescriptor().flags.has(RtdFlag::describeAsInside) ? STR_IN_RIDE : STR_ON_RIDE); - ride->formatNameTo(ft); + return { PeepActionDescriptionType::inRide, currentRide }; } - else - { - ft.Add(STR_ON_RIDE).Add(kStringIdNone); - } - break; + + return { PeepActionDescriptionType::onRide, currentRide }; } case PeepState::buying: - { - ft.Add(STR_AT_RIDE); - auto ride = GetRide(currentRide); - if (ride != nullptr) - { - ride->formatNameTo(ft); - } - else - { - ft.Add(kStringIdNone); - } - break; - } + return { PeepActionDescriptionType::atShop, currentRide }; case PeepState::walking: case PeepState::usingBin: { @@ -1326,135 +1311,68 @@ namespace OpenRCT2 { if (!guest->guestHeadingToRideId.IsNull()) { - auto ride = GetRide(guest->guestHeadingToRideId); - if (ride != nullptr) - { - ft.Add(STR_HEADING_FOR); - ride->formatNameTo(ft); - } - } - else - { - ft.Add(peepFlags.has(PeepFlag::leavingPark) ? STR_LEAVING_PARK : STR_WALKING); + return { PeepActionDescriptionType::headingFor, guest->guestHeadingToRideId }; } } - break; + + if (peepFlags.has(PeepFlag::leavingPark)) + return { PeepActionDescriptionType::leavingPark }; + + return { PeepActionDescriptionType::walking }; } case PeepState::queuingFront: case PeepState::queuing: - { - auto ride = GetRide(currentRide); - if (ride != nullptr) - { - ft.Add(STR_QUEUING_FOR); - ride->formatNameTo(ft); - } - break; - } + return { PeepActionDescriptionType::queuingFor, currentRide }; case PeepState::sitting: - ft.Add(STR_SITTING); - break; + return { PeepActionDescriptionType::sitting }; case PeepState::watching: if (!currentRide.IsNull()) { auto ride = GetRide(currentRide); if (ride != nullptr) { - ft.Add((standingFlags & 0x1) ? STR_WATCHING_CONSTRUCTION_OF : STR_WATCHING_RIDE); - ride->formatNameTo(ft); + auto baseType = (standingFlags & 0x1) ? PeepActionDescriptionType::watchingRideConstruction + : PeepActionDescriptionType::watchingRide; + return { baseType, currentRide }; } } - else - { - ft.Add((standingFlags & 0x1) ? STR_WATCHING_NEW_RIDE_BEING_CONSTRUCTED : STR_LOOKING_AT_SCENERY); - } - break; + + return { (standingFlags & 0x1) ? PeepActionDescriptionType::watchingRideConstructionUnspecific + : PeepActionDescriptionType::watchingScenery }; case PeepState::picked: - ft.Add(STR_SELECT_LOCATION); - break; + return { PeepActionDescriptionType::pickedUp }; case PeepState::patrolling: case PeepState::enteringPark: case PeepState::leavingPark: - ft.Add(STR_WALKING); - break; + return { PeepActionDescriptionType::walking }; case PeepState::mowing: - ft.Add(STR_MOWING_GRASS); - break; + return { PeepActionDescriptionType::mowingGrass }; case PeepState::sweeping: - ft.Add(STR_SWEEPING_FOOTPATH); - break; + return { PeepActionDescriptionType::sweepingFootpath }; case PeepState::watering: - ft.Add(STR_WATERING_GARDENS); - break; + return { PeepActionDescriptionType::wateringGardens }; case PeepState::emptyingBin: - ft.Add(STR_EMPTYING_LITTER_BIN); - break; + return { PeepActionDescriptionType::emptyingBin }; case PeepState::answering: if (subState == 0) { - ft.Add(STR_WALKING); + return { PeepActionDescriptionType::walking }; } - else if (subState == 1) + if (subState == 1) { - ft.Add(STR_ANSWERING_RADIO_CALL); + return { PeepActionDescriptionType::answeringRadioCall }; } - else - { - ft.Add(STR_RESPONDING_TO_RIDE_BREAKDOWN_CALL); - auto ride = GetRide(currentRide); - if (ride != nullptr) - { - ride->formatNameTo(ft); - } - else - { - ft.Add(kStringIdNone); - } - } - break; + + return { PeepActionDescriptionType::respondingToBreakdownCall, currentRide }; case PeepState::fixing: - { - ft.Add(STR_FIXING_RIDE); - auto ride = GetRide(currentRide); - if (ride != nullptr) - { - ride->formatNameTo(ft); - } - else - { - ft.Add(kStringIdNone); - } - break; - } + return { PeepActionDescriptionType::fixingRide, currentRide }; case PeepState::headingToInspection: - { - ft.Add(STR_HEADING_TO_RIDE_FOR_INSPECTION); - auto ride = GetRide(currentRide); - if (ride != nullptr) - { - ride->formatNameTo(ft); - } - else - { - ft.Add(kStringIdNone); - } - break; - } + return { PeepActionDescriptionType::headingToInspectRide, currentRide }; case PeepState::inspecting: - { - ft.Add(STR_INSPECTING_RIDE); - auto ride = GetRide(currentRide); - if (ride != nullptr) - { - ride->formatNameTo(ft); - } - else - { - ft.Add(kStringIdNone); - } - break; - } + return { PeepActionDescriptionType::inspectingRide, currentRide }; } + + return { PeepActionDescriptionType::walking }; } static constexpr StringId kStaffNames[] = { @@ -1569,13 +1487,13 @@ namespace OpenRCT2 ft.Add(peep->peepFlags.has(PeepFlag::tracking) ? STR_TRACKED_GUEST_MAP_TIP : STR_GUEST_MAP_TIP); ft.Add(GetPeepFaceSpriteSmall(guest)); guest->formatNameTo(ft); - guest->formatActionTo(ft); + formatPeepActionTo(*peep, ft); } else { ft.Add(STR_STAFF_MAP_TIP); peep->formatNameTo(ft); - peep->formatActionTo(ft); + formatPeepActionTo(*peep, ft); } auto intent = Intent(INTENT_ACTION_SET_MAP_TOOLTIP); diff --git a/src/openrct2/entity/Peep.h b/src/openrct2/entity/Peep.h index 06bbd2901d..b34678671d 100644 --- a/src/openrct2/entity/Peep.h +++ b/src/openrct2/entity/Peep.h @@ -303,6 +303,42 @@ namespace OpenRCT2 PEEP_INVALIDATE_PEEP_ACTION = 1 << 5, // Currently set only when guestHeadingToRideId is changed }; + enum class PeepActionDescriptionType : uint8_t + { + walking, + sitting, + watchingScenery, + drowning, + pickedUp, + headingFor, + watchingRide, + watchingRideConstruction, + watchingRideConstructionUnspecific, + queuingFor, + onRide, + inRide, + atShop, + leavingPark, + sweepingFootpath, + emptyingBin, + wateringGardens, + mowingGrass, + headingToInspectRide, + inspectingRide, + fixingRide, + answeringRadioCall, + respondingToBreakdownCall, + + count, + }; + constexpr size_t kNumPeepActionDescriptionTypes = static_cast(PeepActionDescriptionType::count); + + struct PeepActionDescription + { + PeepActionDescriptionType type; + RideId rideId = RideId::GetNull(); + }; + struct Guest; struct Peep : EntityBase @@ -400,7 +436,7 @@ namespace OpenRCT2 void pickupAbort(int32_t old_x); [[nodiscard]] GameActions::Result place(const TileCoordsXYZ& location, bool apply); void removeFromRide(); - void formatActionTo(Formatter&) const; + PeepActionDescription getActionDescription() const; void formatNameTo(Formatter&) const; [[nodiscard]] std::string getName() const; bool setName(std::string_view value); diff --git a/src/openrct2/libopenrct2.vcxproj b/src/openrct2/libopenrct2.vcxproj index 9cd0795813..3d4381de50 100644 --- a/src/openrct2/libopenrct2.vcxproj +++ b/src/openrct2/libopenrct2.vcxproj @@ -448,6 +448,7 @@ + @@ -1153,6 +1154,7 @@ + diff --git a/src/openrct2/peep/PeepActionFormat.cpp b/src/openrct2/peep/PeepActionFormat.cpp new file mode 100644 index 0000000000..d072dbc914 --- /dev/null +++ b/src/openrct2/peep/PeepActionFormat.cpp @@ -0,0 +1,60 @@ +/***************************************************************************** + * Copyright (c) 2014-2026 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#include "PeepActionFormat.h" + +#include "../entity/Peep.h" +#include "../localisation/StringIds.h" +#include "../ride/Ride.h" + +namespace OpenRCT2 +{ + constexpr auto kPeepActionToStringMapping = std::to_array({ + STR_WALKING, // PeepActionDescriptionType::walking + STR_SITTING, // PeepActionDescriptionType::sitting + STR_LOOKING_AT_SCENERY, // PeepActionDescriptionType::watchingScenery + STR_DROWNING, // PeepActionDescriptionType::drowning + STR_SELECT_LOCATION, // PeepActionDescriptionType::pickedUp + STR_HEADING_FOR, // PeepActionDescriptionType::headingFor + STR_WATCHING_RIDE, // PeepActionDescriptionType::watchingRide + STR_WATCHING_CONSTRUCTION_OF, // PeepActionDescriptionType::watchingRideConstruction + STR_WATCHING_NEW_RIDE_BEING_CONSTRUCTED, // PeepActionDescriptionType::watchingRideConstructionUnspecific + STR_QUEUING_FOR, // PeepActionDescriptionType::queuingFor + STR_ON_RIDE, // PeepActionDescriptionType::onRide + STR_IN_RIDE, // PeepActionDescriptionType::inRide + STR_AT_RIDE, // PeepActionDescriptionType::atShop + STR_LEAVING_PARK, // PeepActionDescriptionType::leavingPark + STR_SWEEPING_FOOTPATH, // PeepActionDescriptionType::sweepingFootpath + STR_EMPTYING_LITTER_BIN, // PeepActionDescriptionType::emptyingBin + STR_WATERING_GARDENS, // PeepActionDescriptionType::wateringGardens + STR_MOWING_GRASS, // PeepActionDescriptionType::mowingGrass + STR_HEADING_TO_RIDE_FOR_INSPECTION, // PeepActionDescriptionType::headingToInspectRide + STR_INSPECTING_RIDE, // PeepActionDescriptionType::inspectingRide + STR_FIXING_RIDE, // PeepActionDescriptionType::fixingRide + STR_ANSWERING_RADIO_CALL, // PeepActionDescriptionType::answeringRadioCall + STR_RESPONDING_TO_RIDE_BREAKDOWN_CALL, // PeepActionDescriptionType::respondingToBreakdownCall + }); + static_assert(std::size(kPeepActionToStringMapping) == kNumPeepActionDescriptionTypes); + + void formatPeepActionTo(const Peep& peep, Formatter& ft) + { + auto description = peep.getActionDescription(); + auto stringId = kPeepActionToStringMapping[EnumValue(description.type)]; + ft.Add(stringId); + + if (!description.rideId.IsNull()) + { + const auto* ride = GetRide(description.rideId); + if (ride != nullptr) + { + ride->formatNameTo(ft); + } + } + } +} // namespace OpenRCT2 diff --git a/src/openrct2/peep/PeepActionFormat.h b/src/openrct2/peep/PeepActionFormat.h new file mode 100644 index 0000000000..848687ca52 --- /dev/null +++ b/src/openrct2/peep/PeepActionFormat.h @@ -0,0 +1,19 @@ +/***************************************************************************** + * Copyright (c) 2014-2026 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +namespace OpenRCT2 +{ + class Formatter; + struct Peep; + + void formatPeepActionTo(const Peep& peep, Formatter&); + +} // namespace OpenRCT2 From 6e0d62b4039e7b04cff29afa486805ed141f753b Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Fri, 4 Sep 2026 21:25:00 +0200 Subject: [PATCH 037/142] Fix #1514: Wrong capitalisation for descriptions in Guest List --- data/language/en-GB.txt | 16 ++++++- distribution/changelog.txt | 1 + src/openrct2-ui/windows/GuestList.cpp | 8 ++-- src/openrct2/localisation/StringIds.h | 15 +++++++ src/openrct2/peep/PeepActionFormat.cpp | 61 ++++++++++++++------------ src/openrct2/peep/PeepActionFormat.h | 2 +- 6 files changed, 70 insertions(+), 33 deletions(-) diff --git a/data/language/en-GB.txt b/data/language/en-GB.txt index b19bd98374..e033ab76b4 100644 --- a/data/language/en-GB.txt +++ b/data/language/en-GB.txt @@ -1157,7 +1157,7 @@ STR_1816 :Select information type to show in guest list STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}All guests STR_1819 :{WINDOW_COLOUR_2}All guests (summarised) -STR_1820 :{WINDOW_COLOUR_2}Guests {STRINGID} +STR_1820 :{WINDOW_COLOUR_2}{STRINGID} STR_1821 :{WINDOW_COLOUR_2}Guests thinking {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Guests thinking about {POP16}{STRINGID} STR_1823 :Show guests’ thoughts about this ride/attraction @@ -3840,3 +3840,17 @@ STR_7046 :Status bar (RCT1 style) STR_7047 :Step control (Track Designer) STR_7048 :Step control (Scenario Editor) STR_7049 :OpenRCT2 +STR_7050 :Guests walking +STR_7051 :Guests heading for {STRINGID} +STR_7052 :Guests queuing for {STRINGID} +STR_7053 :Guests drowning +STR_7054 :Guests on {STRINGID} +STR_7055 :Guests in {STRINGID} +STR_7056 :Guests at {STRINGID} +STR_7057 :Guests sitting +STR_7058 :Guests picked up +STR_7059 :Guests watching {STRINGID} +STR_7060 :Guests watching construction of {STRINGID} +STR_7061 :Guests looking at scenery +STR_7062 :Guests leaving the park +STR_7063 :Guests watching new ride being constructed diff --git a/distribution/changelog.txt b/distribution/changelog.txt index e7987a802b..c299ca4b29 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -2,6 +2,7 @@ ------------------------------------------------------------------------ - Improved: [#21400] The selector for setting staff patrol areas is now drawn on the water as well as on the surface under water. - Improved: [#26947] Rain is now drawn next to the bottom info panels (in RCT2 style). +- Fix: [#1514] Wrong capitalisation for strings in the Guest List window. - Fix: [#21320] RCT1 allows more cars per train on some rides than OpenRCT2. - Fix: [#24457] Yellow is always rendered as third remap in Ride window. - Fix: [#26754] Switching window tabs by touch could crash the game on some Linux builds. diff --git a/src/openrct2-ui/windows/GuestList.cpp b/src/openrct2-ui/windows/GuestList.cpp index 6fd44bccd8..988b7c37c6 100644 --- a/src/openrct2-ui/windows/GuestList.cpp +++ b/src/openrct2-ui/windows/GuestList.cpp @@ -195,8 +195,8 @@ namespace OpenRCT2::Ui::Windows if (guestRide != nullptr) { ft.Add( - guestRide->getRideTypeDescriptor().flags.has(RtdFlag::describeAsInside) ? STR_IN_RIDE - : STR_ON_RIDE); + guestRide->getRideTypeDescriptor().flags.has(RtdFlag::describeAsInside) ? STR_GUESTS_IN_RIDE + : STR_GUESTS_ON_RIDE); guestRide->formatNameTo(ft); _selectedFilter = GuestFilterType::guests; @@ -211,7 +211,7 @@ namespace OpenRCT2::Ui::Windows auto guestRide = GetRide(RideId::FromUnderlying(index)); if (guestRide != nullptr) { - ft.Add(STR_QUEUING_FOR); + ft.Add(STR_GUESTS_QUEUING_FOR); guestRide->formatNameTo(ft); _selectedFilter = GuestFilterType::guests; @@ -868,7 +868,7 @@ namespace OpenRCT2::Ui::Windows switch (type) { case GuestViewType::actions: - formatPeepActionTo(peep, ft); + formatPeepActionTo(peep, ft, true); break; case GuestViewType::thoughts: { diff --git a/src/openrct2/localisation/StringIds.h b/src/openrct2/localisation/StringIds.h index 2811a03d62..4cc2dabfa6 100644 --- a/src/openrct2/localisation/StringIds.h +++ b/src/openrct2/localisation/StringIds.h @@ -1780,6 +1780,21 @@ enum : StringId STR_CANT_CHANGE_LAND_HEIGHT_HERE = 7043, + STR_GUESTS_WALKING = 7050, + STR_GUESTS_HEADING_FOR = 7051, + STR_GUESTS_QUEUING_FOR = 7052, + STR_GUESTS_DROWNING = 7053, + STR_GUESTS_ON_RIDE = 7054, + STR_GUESTS_IN_RIDE = 7055, + STR_GUESTS_AT_RIDE = 7056, + STR_GUESTS_SITTING = 7057, + STR_GUESTS_PICKED_UP = 7058, + STR_GUESTS_WATCHING_RIDE = 7059, + STR_GUESTS_WATCHING_CONSTRUCTION_OF = 7060, + STR_GUESTS_LOOKING_AT_SCENERY = 7061, + STR_GUESTS_LEAVING_PARK = 7062, + STR_GUESTS_WATCHING_NEW_RIDE_BEING_CONSTRUCTED = 7063, + // Have to include resource strings (from scenarios and objects) for the time being now that language is partially working /* MAX_STR_COUNT = 32768 */ // MAX_STR_COUNT - upper limit for number of strings, not the current count strings }; diff --git a/src/openrct2/peep/PeepActionFormat.cpp b/src/openrct2/peep/PeepActionFormat.cpp index d072dbc914..a1d46dd4f9 100644 --- a/src/openrct2/peep/PeepActionFormat.cpp +++ b/src/openrct2/peep/PeepActionFormat.cpp @@ -15,38 +15,45 @@ namespace OpenRCT2 { - constexpr auto kPeepActionToStringMapping = std::to_array({ - STR_WALKING, // PeepActionDescriptionType::walking - STR_SITTING, // PeepActionDescriptionType::sitting - STR_LOOKING_AT_SCENERY, // PeepActionDescriptionType::watchingScenery - STR_DROWNING, // PeepActionDescriptionType::drowning - STR_SELECT_LOCATION, // PeepActionDescriptionType::pickedUp - STR_HEADING_FOR, // PeepActionDescriptionType::headingFor - STR_WATCHING_RIDE, // PeepActionDescriptionType::watchingRide - STR_WATCHING_CONSTRUCTION_OF, // PeepActionDescriptionType::watchingRideConstruction - STR_WATCHING_NEW_RIDE_BEING_CONSTRUCTED, // PeepActionDescriptionType::watchingRideConstructionUnspecific - STR_QUEUING_FOR, // PeepActionDescriptionType::queuingFor - STR_ON_RIDE, // PeepActionDescriptionType::onRide - STR_IN_RIDE, // PeepActionDescriptionType::inRide - STR_AT_RIDE, // PeepActionDescriptionType::atShop - STR_LEAVING_PARK, // PeepActionDescriptionType::leavingPark - STR_SWEEPING_FOOTPATH, // PeepActionDescriptionType::sweepingFootpath - STR_EMPTYING_LITTER_BIN, // PeepActionDescriptionType::emptyingBin - STR_WATERING_GARDENS, // PeepActionDescriptionType::wateringGardens - STR_MOWING_GRASS, // PeepActionDescriptionType::mowingGrass - STR_HEADING_TO_RIDE_FOR_INSPECTION, // PeepActionDescriptionType::headingToInspectRide - STR_INSPECTING_RIDE, // PeepActionDescriptionType::inspectingRide - STR_FIXING_RIDE, // PeepActionDescriptionType::fixingRide - STR_ANSWERING_RADIO_CALL, // PeepActionDescriptionType::answeringRadioCall - STR_RESPONDING_TO_RIDE_BREAKDOWN_CALL, // PeepActionDescriptionType::respondingToBreakdownCall + struct MappingStrings + { + StringId singular; + StringId group; + }; + + constexpr auto kPeepActionToStringMapping = std::to_array({ + { STR_WALKING, STR_GUESTS_WALKING }, // walking + { STR_SITTING, STR_GUESTS_SITTING }, // sitting + { STR_LOOKING_AT_SCENERY, STR_GUESTS_LOOKING_AT_SCENERY }, // watchingScenery + { STR_DROWNING, STR_GUESTS_DROWNING }, // drowning + { STR_SELECT_LOCATION, STR_GUESTS_PICKED_UP }, // pickedUp + { STR_HEADING_FOR, STR_GUESTS_HEADING_FOR }, // headingFor + { STR_WATCHING_RIDE, STR_GUESTS_WATCHING_RIDE }, // watchingRide + { STR_WATCHING_CONSTRUCTION_OF, STR_GUESTS_WATCHING_CONSTRUCTION_OF }, // watchingRideConstruction + { STR_WATCHING_NEW_RIDE_BEING_CONSTRUCTED, + STR_GUESTS_WATCHING_NEW_RIDE_BEING_CONSTRUCTED }, // watchingRideConstructionUnspecific + { STR_QUEUING_FOR, STR_GUESTS_QUEUING_FOR }, // queuingFor + { STR_ON_RIDE, STR_GUESTS_ON_RIDE }, // onRide + { STR_IN_RIDE, STR_GUESTS_IN_RIDE }, // inRide + { STR_AT_RIDE, STR_GUESTS_AT_RIDE }, // atShop + { STR_LEAVING_PARK, STR_GUESTS_LEAVING_PARK }, // leavingPark + { STR_SWEEPING_FOOTPATH, kStringIdEmpty }, // sweepingFootpath + { STR_EMPTYING_LITTER_BIN, kStringIdEmpty }, // emptyingBin + { STR_WATERING_GARDENS, kStringIdEmpty }, // wateringGardens + { STR_MOWING_GRASS, kStringIdEmpty }, // mowingGrass + { STR_HEADING_TO_RIDE_FOR_INSPECTION, kStringIdEmpty }, // headingToInspectRide + { STR_INSPECTING_RIDE, kStringIdEmpty }, // inspectingRide + { STR_FIXING_RIDE, kStringIdEmpty }, // fixingRide + { STR_ANSWERING_RADIO_CALL, kStringIdEmpty }, // answeringRadioCall + { STR_RESPONDING_TO_RIDE_BREAKDOWN_CALL, kStringIdEmpty }, // respondingToBreakdownCall }); static_assert(std::size(kPeepActionToStringMapping) == kNumPeepActionDescriptionTypes); - void formatPeepActionTo(const Peep& peep, Formatter& ft) + void formatPeepActionTo(const Peep& peep, Formatter& ft, bool asGroup) { auto description = peep.getActionDescription(); - auto stringId = kPeepActionToStringMapping[EnumValue(description.type)]; - ft.Add(stringId); + auto stringIds = kPeepActionToStringMapping[EnumValue(description.type)]; + ft.Add(asGroup ? stringIds.group : stringIds.singular); if (!description.rideId.IsNull()) { diff --git a/src/openrct2/peep/PeepActionFormat.h b/src/openrct2/peep/PeepActionFormat.h index 848687ca52..3126bdf43d 100644 --- a/src/openrct2/peep/PeepActionFormat.h +++ b/src/openrct2/peep/PeepActionFormat.h @@ -14,6 +14,6 @@ namespace OpenRCT2 class Formatter; struct Peep; - void formatPeepActionTo(const Peep& peep, Formatter&); + void formatPeepActionTo(const Peep& peep, Formatter&, bool asGroup = false); } // namespace OpenRCT2 From 6ab43acb35c436318cbe0932c42283ac6c43db89 Mon Sep 17 00:00:00 2001 From: RayKoopa <9631152+RayKoopa@users.noreply.github.com> Date: Sat, 12 Sep 2026 18:31:35 +0200 Subject: [PATCH 038/142] Add missing PermissionType "drag_path_area" (#27084) - Also add note to NetworkAction's kActions array about syncing permission names with it. --- distribution/changelog.txt | 1 + distribution/scripting/openrct2.d.ts | 3 ++- src/openrct2/network/NetworkAction.cpp | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index c299ca4b29..5591888336 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -8,6 +8,7 @@ - Fix: [#26754] Switching window tabs by touch could crash the game on some Linux builds. - Fix: [#27052] Unnamed rides in RCT2 base and Wacky Worlds scenarios have hardcoded English names. - Fix: [#27056] [Plugin] Loading water palettes from plugin does not update the palette correctly. +- Fix: [#27084] [Plugin] `PermissionType` for `drag_path_area` is missing. - Fix: [#27087] The ‘Update available’ widget is offset incorrectly. - Fix: [#27093] Pause and fast forward buttons are shown in multiplayer. diff --git a/distribution/scripting/openrct2.d.ts b/distribution/scripting/openrct2.d.ts index a9f1302a5e..8c7105dfd2 100644 --- a/distribution/scripting/openrct2.d.ts +++ b/distribution/scripting/openrct2.d.ts @@ -4280,7 +4280,8 @@ declare global { "toggle_scenery_cluster" | "passwordless_login" | "modify_tile" | - "edit_scenario_options"; + "edit_scenario_options" | + "drag_path_area"; /** * Park APIs diff --git a/src/openrct2/network/NetworkAction.cpp b/src/openrct2/network/NetworkAction.cpp index 7cb71aa111..a732d16fd6 100644 --- a/src/openrct2/network/NetworkAction.cpp +++ b/src/openrct2/network/NetworkAction.cpp @@ -48,6 +48,10 @@ namespace OpenRCT2::Network return Permission::count; } + /* + * When adding an action, also add its permission name (everything following the "PERMISSION_" prefix, in lowercase) + * to PermissionType in distribution/scripting/openrct2.d.ts. + */ const std::array(Permission::count)> NetworkActions::kActions = { NetworkAction{ STR_ACTION_CHAT, From 1cc42279dcbd40802fc0f60d1674e6fa962a697f Mon Sep 17 00:00:00 2001 From: MarcelVos96 Date: Sat, 12 Sep 2026 17:42:27 +0100 Subject: [PATCH 039/142] Remove red for negative Gs (#27100) --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/Ride.cpp | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 5591888336..35acc3588b 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -2,6 +2,7 @@ ------------------------------------------------------------------------ - Improved: [#21400] The selector for setting staff patrol areas is now drawn on the water as well as on the surface under water. - Improved: [#26947] Rain is now drawn next to the bottom info panels (in RCT2 style). +- Change: [#27100] Negative G-forces no longer turn red in the stats window and graph when below -2.50. - Fix: [#1514] Wrong capitalisation for strings in the Guest List window. - Fix: [#21320] RCT1 allows more cars per train on some rides than OpenRCT2. - Fix: [#24457] Yellow is always rendered as third remap in Ride window. diff --git a/src/openrct2-ui/windows/Ride.cpp b/src/openrct2-ui/windows/Ride.cpp index 2250d2f777..e442d4483e 100644 --- a/src/openrct2-ui/windows/Ride.cpp +++ b/src/openrct2-ui/windows/Ride.cpp @@ -625,7 +625,6 @@ namespace OpenRCT2::Ui::Windows }; static_assert(std::size(GraphsYAxisDetails) == 4); - static constexpr auto kRideGForcesRedNegVertical = -MakeFixed16_2dp(2, 50); static constexpr auto kRideGForcesRedLateral = MakeFixed16_2dp(2, 80); // Used for sorting the ride type cheat dropdown. @@ -6094,16 +6093,13 @@ namespace OpenRCT2::Ui::Windows { // Max. positive vertical G's stringId = STR_MAX_POSITIVE_VERTICAL_G; - ft = Formatter(); ft.Add(ride->maxPositiveVerticalG); drawText(rt, screenCoords, stringId, ft); screenCoords.y += kListRowHeight; // Max. negative vertical G's - stringId = ride->maxNegativeVerticalG <= kRideGForcesRedNegVertical - ? STR_MAX_NEGATIVE_VERTICAL_G_RED - : STR_MAX_NEGATIVE_VERTICAL_G; + stringId = STR_MAX_NEGATIVE_VERTICAL_G; ft = Formatter(); ft.Add(ride->maxNegativeVerticalG); drawText(rt, screenCoords, stringId, ft); @@ -6464,7 +6460,6 @@ namespace OpenRCT2::Ui::Windows case GRAPH_VERTICAL: firstPoint = measurement->vertical[x] + VerticalGraphHeightOffset; secondPoint = measurement->vertical[x + 1] + VerticalGraphHeightOffset; - intensityThresholdNegative = (kRideGForcesRedNegVertical / 8) + VerticalGraphHeightOffset; break; case GRAPH_LATERAL: firstPoint = measurement->lateral[x] + LateralGraphHeightOffset; @@ -6501,7 +6496,7 @@ namespace OpenRCT2::Ui::Windows previousMeasurement ? PaletteIndex::pi17 : PaletteIndex::pi21); // Draw red over extreme values (if supported by graph type). - if (listType == GRAPH_VERTICAL || listType == GRAPH_LATERAL) + if (listType == GRAPH_LATERAL) { const auto redLineColour = previousMeasurement ? PaletteIndex::pi171 : PaletteIndex::pi173; From 1e7fdd7ba65378db65290eba994f882542111340 Mon Sep 17 00:00:00 2001 From: Harry Hopkinson <63599884+Harry-Hopkinson@users.noreply.github.com> Date: Sun, 13 Sep 2026 00:22:11 +0200 Subject: [PATCH 040/142] Refactor RideModes into FlagHolder (#27115) --- src/openrct2-ui/windows/Ride.cpp | 8 +- .../actions/ride/RideSetSettingAction.cpp | 2 +- src/openrct2/ride/Ride.cpp | 4 +- src/openrct2/ride/Ride.h | 95 +++++++++---------- src/openrct2/ride/RideData.cpp | 2 +- src/openrct2/ride/RideData.h | 26 ++--- .../rtd/coaster/AirPoweredVerticalCoaster.h | 2 +- src/openrct2/ride/rtd/coaster/AlpineCoaster.h | 2 +- .../ride/rtd/coaster/BobsleighCoaster.h | 2 +- .../rtd/coaster/ClassicMiniRollerCoaster.h | 2 +- .../rtd/coaster/ClassicStandUpRollerCoaster.h | 2 +- .../rtd/coaster/ClassicWoodenRollerCoaster.h | 2 +- .../ClassicWoodenTwisterRollerCoaster.h | 2 +- .../ride/rtd/coaster/CompactInvertedCoaster.h | 2 +- .../ride/rtd/coaster/CorkscrewRollerCoaster.h | 2 +- .../ride/rtd/coaster/FlyingRollerCoaster.h | 4 +- src/openrct2/ride/rtd/coaster/GigaCoaster.h | 2 +- .../rtd/coaster/HeartlineTwisterCoaster.h | 2 +- src/openrct2/ride/rtd/coaster/HybridCoaster.h | 2 +- src/openrct2/ride/rtd/coaster/HyperTwister.h | 2 +- src/openrct2/ride/rtd/coaster/Hypercoaster.h | 2 +- .../ride/rtd/coaster/InvertedHairpinCoaster.h | 2 +- .../ride/rtd/coaster/InvertedImpulseCoaster.h | 2 +- .../ride/rtd/coaster/InvertedRollerCoaster.h | 2 +- .../ride/rtd/coaster/JuniorRollerCoaster.h | 2 +- .../rtd/coaster/LIMLaunchedRollerCoaster.h | 2 +- .../rtd/coaster/LSMLaunchedRollerCoaster.h | 2 +- .../ride/rtd/coaster/LayDownRollerCoaster.h | 4 +- .../ride/rtd/coaster/LoopingRollerCoaster.h | 2 +- src/openrct2/ride/rtd/coaster/MineRide.h | 2 +- .../ride/rtd/coaster/MineTrainCoaster.h | 2 +- .../ride/rtd/coaster/MiniRollerCoaster.h | 2 +- .../ride/rtd/coaster/MiniSuspendedCoaster.h | 2 +- .../rtd/coaster/MultiDimensionRollerCoaster.h | 4 +- .../ride/rtd/coaster/ReverseFreefallCoaster.h | 2 +- .../ride/rtd/coaster/ReverserRollerCoaster.h | 2 +- .../rtd/coaster/SideFrictionRollerCoaster.h | 2 +- .../rtd/coaster/SingleRailRollerCoaster.h | 2 +- .../ride/rtd/coaster/SpinningWildMouse.h | 2 +- .../ride/rtd/coaster/SpiralRollerCoaster.h | 2 +- .../ride/rtd/coaster/StandUpRollerCoaster.h | 2 +- .../ride/rtd/coaster/SteelWildMouse.h | 2 +- src/openrct2/ride/rtd/coaster/Steeplechase.h | 2 +- .../rtd/coaster/SuspendedSwingingCoaster.h | 2 +- .../ride/rtd/coaster/TwisterRollerCoaster.h | 2 +- .../ride/rtd/coaster/VerticalDropCoaster.h | 2 +- src/openrct2/ride/rtd/coaster/VirginiaReel.h | 2 +- src/openrct2/ride/rtd/coaster/WaterCoaster.h | 2 +- .../ride/rtd/coaster/WoodenRollerCoaster.h | 2 +- .../ride/rtd/coaster/WoodenWildMouse.h | 2 +- src/openrct2/ride/rtd/gentle/CarRide.h | 2 +- src/openrct2/ride/rtd/gentle/Circus.h | 2 +- src/openrct2/ride/rtd/gentle/CrookedHouse.h | 2 +- src/openrct2/ride/rtd/gentle/Dodgems.h | 4 +- src/openrct2/ride/rtd/gentle/FerrisWheel.h | 2 +- src/openrct2/ride/rtd/gentle/FlyingSaucers.h | 4 +- src/openrct2/ride/rtd/gentle/GhostTrain.h | 2 +- src/openrct2/ride/rtd/gentle/HauntedHouse.h | 2 +- src/openrct2/ride/rtd/gentle/Maze.h | 2 +- src/openrct2/ride/rtd/gentle/MerryGoRound.h | 2 +- src/openrct2/ride/rtd/gentle/MiniGolf.h | 2 +- .../ride/rtd/gentle/MiniHelicopters.h | 2 +- src/openrct2/ride/rtd/gentle/MonorailCycles.h | 2 +- src/openrct2/ride/rtd/gentle/MonsterTrucks.h | 2 +- .../ride/rtd/gentle/ObservationTower.h | 2 +- src/openrct2/ride/rtd/gentle/SpaceRings.h | 2 +- src/openrct2/ride/rtd/gentle/SpiralSlide.h | 2 +- src/openrct2/ride/rtd/shops/CashMachine.h | 2 +- src/openrct2/ride/rtd/shops/DrinkStall.h | 2 +- src/openrct2/ride/rtd/shops/FirstAid.h | 2 +- src/openrct2/ride/rtd/shops/FoodStall.h | 2 +- .../ride/rtd/shops/InformationKiosk.h | 2 +- src/openrct2/ride/rtd/shops/Shop.h | 2 +- src/openrct2/ride/rtd/shops/Toilets.h | 2 +- src/openrct2/ride/rtd/thrill/3DCinema.h | 2 +- src/openrct2/ride/rtd/thrill/Enterprise.h | 4 +- src/openrct2/ride/rtd/thrill/GoKarts.h | 2 +- .../ride/rtd/thrill/LaunchedFreefall.h | 2 +- src/openrct2/ride/rtd/thrill/MagicCarpet.h | 4 +- .../ride/rtd/thrill/MotionSimulator.h | 2 +- src/openrct2/ride/rtd/thrill/RotoDrop.h | 2 +- .../ride/rtd/thrill/SwingingInverterShip.h | 4 +- src/openrct2/ride/rtd/thrill/SwingingShip.h | 4 +- src/openrct2/ride/rtd/thrill/TopSpin.h | 2 +- src/openrct2/ride/rtd/thrill/Twist.h | 2 +- src/openrct2/ride/rtd/transport/Chairlift.h | 2 +- src/openrct2/ride/rtd/transport/Lift.h | 2 +- .../ride/rtd/transport/MiniatureRailway.h | 2 +- src/openrct2/ride/rtd/transport/Monorail.h | 2 +- .../ride/rtd/transport/SuspendedMonorail.h | 2 +- src/openrct2/ride/rtd/water/BoatHire.h | 2 +- src/openrct2/ride/rtd/water/DinghySlide.h | 2 +- src/openrct2/ride/rtd/water/LogFlume.h | 2 +- src/openrct2/ride/rtd/water/RiverRafts.h | 2 +- src/openrct2/ride/rtd/water/RiverRapids.h | 2 +- src/openrct2/ride/rtd/water/SplashBoats.h | 2 +- src/openrct2/ride/rtd/water/SubmarineRide.h | 2 +- 97 files changed, 169 insertions(+), 168 deletions(-) diff --git a/src/openrct2-ui/windows/Ride.cpp b/src/openrct2-ui/windows/Ride.cpp index e442d4483e..471b241e37 100644 --- a/src/openrct2-ui/windows/Ride.cpp +++ b/src/openrct2-ui/windows/Ride.cpp @@ -3106,14 +3106,14 @@ namespace OpenRCT2::Ui::Windows if (ride == nullptr) return; - auto availableModes = ride->getAvailableModes(); + RideModes availableModes = ride->getAvailableModes(); // Create dropdown list auto numAvailableModes = 0; auto checkedIndex = -1; for (auto i = 0; i < static_cast(RideMode::count); i++) { - if (availableModes & (1uLL << i)) + if (availableModes.has(static_cast(i))) { gDropdown.items[numAvailableModes] = Dropdown::MenuLabel(kRideModeNames[i]); @@ -3375,11 +3375,11 @@ namespace OpenRCT2::Ui::Windows case WIDX_MODE_DROPDOWN: { RideMode rideMode = RideMode::nullMode; - auto availableModes = ride->getAvailableModes(); + RideModes availableModes = ride->getAvailableModes(); auto modeInDropdownIndex = -1; for (RideMode rideModeIndex = RideMode::normal; rideModeIndex < RideMode::count; rideModeIndex++) { - if (availableModes & EnumToFlag(rideModeIndex)) + if (availableModes.has(rideModeIndex)) { modeInDropdownIndex++; if (modeInDropdownIndex == dropdownIndex) diff --git a/src/openrct2/actions/ride/RideSetSettingAction.cpp b/src/openrct2/actions/ride/RideSetSettingAction.cpp index af0259439a..4c093cabc0 100644 --- a/src/openrct2/actions/ride/RideSetSettingAction.cpp +++ b/src/openrct2/actions/ride/RideSetSettingAction.cpp @@ -254,7 +254,7 @@ namespace OpenRCT2::GameActions bool RideSetSettingAction::RideIsModeValid(const Ride& ride) const { - return ride.getRideTypeDescriptor().RideModes & (1uLL << _value); + return ride.getRideTypeDescriptor().rideModes.has(static_cast(_value)); } bool RideSetSettingAction::RideIsValidLiftHillSpeed(GameState_t& gameState, const Ride& ride) const diff --git a/src/openrct2/ride/Ride.cpp b/src/openrct2/ride/Ride.cpp index c8194735bf..dad75f0ed2 100644 --- a/src/openrct2/ride/Ride.cpp +++ b/src/openrct2/ride/Ride.cpp @@ -5507,12 +5507,12 @@ namespace OpenRCT2 } } - uint64_t Ride::getAvailableModes() const + RideModes Ride::getAvailableModes() const { if (getGameState().cheats.showAllOperatingModes) return kAllRideModesAvailable; - return getRideTypeDescriptor().RideModes; + return getRideTypeDescriptor().rideModes; } const RideTypeDescriptor& Ride::getRideTypeDescriptor() const diff --git a/src/openrct2/ride/Ride.h b/src/openrct2/ride/Ride.h index c3322dd8ab..24aeff6a38 100644 --- a/src/openrct2/ride/Ride.h +++ b/src/openrct2/ride/Ride.h @@ -48,7 +48,6 @@ namespace OpenRCT2 struct TrackElement; enum class EntranceType : uint8_t; - enum class RideMode : uint8_t; enum class RideStatus : uint8_t; constexpr uint8_t kRideAdjacencyCheckDistance = 5; @@ -164,6 +163,52 @@ namespace OpenRCT2 }); constexpr auto kBreakdownCount = kAllBreakdownTypes.size(); + enum class RideMode : uint8_t + { + normal, + continuousCircuit, + reverseInclineLaunchedShuttle, + poweredLaunchPassthrough, // RCT2 style, pass through station + shuttle, + boatHire, + upwardLaunch, + rotatingLift, + stationToStation, + singleRidePerAdmission, + unlimitedRidesPerAdmission = 10, + maze, + race, + dodgems, + swing, + shopStall, + rotation, + forwardRotation, + backwardRotation, + filmAvengingAviators, + mouseTails3DFilm = 20, + spaceRings, + beginners, + limPoweredLaunch, + filmThrillRiders, + stormChasers3DFilm, + spaceRaiders3DFilm, + intense, + berserk, + hauntedHouse, + circus = 30, + downwardLaunch, + crookedHouse, + freefallDrop, + continuousCircuitBlockSectioned, + poweredLaunch, // RCT1 style, don't pass through station + poweredLaunchBlockSectioned, + + count, + nullMode = 255, + }; + RideMode& operator++(RideMode& d, int); + using RideModes = FlagHolder; + struct RideStation { static constexpr uint8_t kNoTrain = std::numeric_limits::max(); @@ -495,7 +540,7 @@ namespace OpenRCT2 [[nodiscard]] std::unique_ptr saveToTrackDesign(TrackDesignState& tds) const; - uint64_t getAvailableModes() const; + RideModes getAvailableModes() const; const RideTypeDescriptor& getRideTypeDescriptor() const; RideNaming getTypeNaming() const; TrackElement* getOriginElement(StationIndex stationIndex) const; @@ -650,52 +695,6 @@ namespace OpenRCT2 count, }; - enum class RideMode : uint8_t - { - normal, - continuousCircuit, - reverseInclineLaunchedShuttle, - poweredLaunchPassthrough, // RCT2 style, pass through station - shuttle, - boatHire, - upwardLaunch, - rotatingLift, - stationToStation, - singleRidePerAdmission, - unlimitedRidesPerAdmission = 10, - maze, - race, - dodgems, - swing, - shopStall, - rotation, - forwardRotation, - backwardRotation, - filmAvengingAviators, - mouseTails3DFilm = 20, - spaceRings, - beginners, - limPoweredLaunch, - filmThrillRiders, - stormChasers3DFilm, - spaceRaiders3DFilm, - intense, - berserk, - hauntedHouse, - circus = 30, - downwardLaunch, - crookedHouse, - freefallDrop, - continuousCircuitBlockSectioned, - poweredLaunch, // RCT1 style, don't pass through station - poweredLaunchBlockSectioned, - - count, - nullMode = 255, - }; - - RideMode& operator++(RideMode& d, int); - enum class RideCategory : uint8_t { transport, diff --git a/src/openrct2/ride/RideData.cpp b/src/openrct2/ride/RideData.cpp index ceea63f77c..b8503b0719 100644 --- a/src/openrct2/ride/RideData.cpp +++ b/src/openrct2/ride/RideData.cpp @@ -389,7 +389,7 @@ namespace OpenRCT2 bool RideTypeDescriptor::SupportsRideMode(RideMode rideMode) const { - return RideModes & EnumToFlag(rideMode); + return rideModes.has(rideMode); } static RideTrackGroups _enabledRideGroups = {}; diff --git a/src/openrct2/ride/RideData.h b/src/openrct2/ride/RideData.h index edab594d5f..8b5e6ce944 100644 --- a/src/openrct2/ride/RideData.h +++ b/src/openrct2/ride/RideData.h @@ -501,7 +501,7 @@ namespace OpenRCT2 TrackDrawerDescriptor InvertedTrackPaintFunctions{}; RtdFlags flags{}; /** rct2: 0x0097C8AC */ - uint64_t RideModes{}; + RideModes rideModes{}; RideMode DefaultMode{}; /** rct2: 0x0097CF40 */ RideOperatingSettings OperatingSettings{}; @@ -616,16 +616,18 @@ namespace OpenRCT2 return kRideComponentNames[EnumValue(type)]; } - constexpr uint64_t kAllRideModesAvailable = EnumsToFlags( - RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::reverseInclineLaunchedShuttle, - RideMode::poweredLaunchPassthrough, RideMode::shuttle, RideMode::normal, RideMode::boatHire, RideMode::upwardLaunch, - RideMode::rotatingLift, RideMode::stationToStation, RideMode::singleRidePerAdmission, - RideMode::unlimitedRidesPerAdmission, RideMode::maze, RideMode::race, RideMode::dodgems, RideMode::swing, - RideMode::shopStall, RideMode::rotation, RideMode::forwardRotation, RideMode::backwardRotation, - RideMode::filmAvengingAviators, RideMode::mouseTails3DFilm, RideMode::spaceRings, RideMode::beginners, - RideMode::limPoweredLaunch, RideMode::filmThrillRiders, RideMode::stormChasers3DFilm, RideMode::spaceRaiders3DFilm, - RideMode::intense, RideMode::berserk, RideMode::hauntedHouse, RideMode::circus, RideMode::downwardLaunch, - RideMode::crookedHouse, RideMode::freefallDrop, RideMode::poweredLaunch, RideMode::poweredLaunchBlockSectioned); + // clang-format off + constexpr RideModes kAllRideModesAvailable = { + RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::reverseInclineLaunchedShuttle, + RideMode::poweredLaunchPassthrough, RideMode::shuttle, RideMode::normal, RideMode::boatHire, RideMode::upwardLaunch, + RideMode::rotatingLift, RideMode::stationToStation, RideMode::singleRidePerAdmission, + RideMode::unlimitedRidesPerAdmission, RideMode::maze, RideMode::race, RideMode::dodgems, RideMode::swing, + RideMode::shopStall, RideMode::rotation, RideMode::forwardRotation, RideMode::backwardRotation, + RideMode::filmAvengingAviators, RideMode::mouseTails3DFilm, RideMode::spaceRings, RideMode::beginners, + RideMode::limPoweredLaunch, RideMode::filmThrillRiders, RideMode::stormChasers3DFilm, RideMode::spaceRaiders3DFilm, + RideMode::intense, RideMode::berserk, RideMode::hauntedHouse, RideMode::circus, RideMode::downwardLaunch, + RideMode::crookedHouse, RideMode::freefallDrop, RideMode::poweredLaunch, RideMode::poweredLaunchBlockSectioned }; + // clang-format on extern const CarEntry kCableLiftVehicle; @@ -641,7 +643,7 @@ namespace OpenRCT2 .TrackPaintFunctions = {}, .InvertedTrackPaintFunctions = {}, .flags = { RtdFlag::isDummyType }, - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = {}, .TrackSpeedSettings = {}, diff --git a/src/openrct2/ride/rtd/coaster/AirPoweredVerticalCoaster.h b/src/openrct2/ride/rtd/coaster/AirPoweredVerticalCoaster.h index fd9149478b..66abc7d564 100644 --- a/src/openrct2/ride/rtd/coaster/AirPoweredVerticalCoaster.h +++ b/src/openrct2/ride/rtd/coaster/AirPoweredVerticalCoaster.h @@ -29,7 +29,7 @@ constexpr RideTypeDescriptor kAirPoweredVerticalCoasterRTD = }), .InvertedTrackPaintFunctions = {}, .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::checkGForces), - .RideModes = EnumsToFlags(RideMode::poweredLaunchPassthrough, RideMode::poweredLaunch), + .rideModes = { RideMode::poweredLaunchPassthrough, RideMode::poweredLaunch }, .DefaultMode = RideMode::poweredLaunchPassthrough, .OperatingSettings = { 30, 50 }, .TrackSpeedSettings = { 60, 60 }, diff --git a/src/openrct2/ride/rtd/coaster/AlpineCoaster.h b/src/openrct2/ride/rtd/coaster/AlpineCoaster.h index 9cc6f94ea6..ae0a5fd075 100644 --- a/src/openrct2/ride/rtd/coaster/AlpineCoaster.h +++ b/src/openrct2/ride/rtd/coaster/AlpineCoaster.h @@ -33,7 +33,7 @@ constexpr RideTypeDescriptor kAlpineCoasterRTD = RtdFlag::allowMusic, RtdFlag::interestingToLookAt, RtdFlag::supportsMultipleColourSchemes, RtdFlag::canSynchroniseWithAdjacentStations, RtdFlag::hasEntranceAndExit, RtdFlag::noTestMode, RtdFlag::allowMoreVehiclesThanStationFits, RtdFlag::upInclineRequiresLift), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 18 }, .TrackSpeedSettings = { 10, 10 }, diff --git a/src/openrct2/ride/rtd/coaster/BobsleighCoaster.h b/src/openrct2/ride/rtd/coaster/BobsleighCoaster.h index aa581f5e99..e02265447c 100644 --- a/src/openrct2/ride/rtd/coaster/BobsleighCoaster.h +++ b/src/openrct2/ride/rtd/coaster/BobsleighCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kBobsleighCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 7, 27 }, .Naming = { STR_RIDE_NAME_BOBSLEIGH_COASTER, STR_RIDE_DESCRIPTION_BOBSLEIGH_COASTER }, diff --git a/src/openrct2/ride/rtd/coaster/ClassicMiniRollerCoaster.h b/src/openrct2/ride/rtd/coaster/ClassicMiniRollerCoaster.h index a47b5cbc60..5c57c902ba 100644 --- a/src/openrct2/ride/rtd/coaster/ClassicMiniRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/ClassicMiniRollerCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kClassicMiniRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::allowDoorsOnTrack, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::reverseInclineLaunchedShuttle), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::reverseInclineLaunchedShuttle }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 27 }, .BoosterSettings = { 17, 16 }, diff --git a/src/openrct2/ride/rtd/coaster/ClassicStandUpRollerCoaster.h b/src/openrct2/ride/rtd/coaster/ClassicStandUpRollerCoaster.h index 861b21223d..845fc9d794 100644 --- a/src/openrct2/ride/rtd/coaster/ClassicStandUpRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/ClassicStandUpRollerCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kClassicStandUpRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::reverseInclineLaunchedShuttle, RideMode::poweredLaunchPassthrough, RideMode::poweredLaunch), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::reverseInclineLaunchedShuttle, RideMode::poweredLaunchPassthrough, RideMode::poweredLaunch }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 7, 27 }, .Naming = { STR_RIDE_NAME_CLASSIC_STAND_UP_ROLLER_COASTER, STR_RIDE_DESCRIPTION_CLASSIC_STAND_UP_ROLLER_COASTER }, diff --git a/src/openrct2/ride/rtd/coaster/ClassicWoodenRollerCoaster.h b/src/openrct2/ride/rtd/coaster/ClassicWoodenRollerCoaster.h index 78fccfc611..1770ff98c4 100644 --- a/src/openrct2/ride/rtd/coaster/ClassicWoodenRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/ClassicWoodenRollerCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kClassicWoodenRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 7, 27 }, .BoosterSettings = { 0, 68 }, diff --git a/src/openrct2/ride/rtd/coaster/ClassicWoodenTwisterRollerCoaster.h b/src/openrct2/ride/rtd/coaster/ClassicWoodenTwisterRollerCoaster.h index 77f0a67e46..2068f63f59 100644 --- a/src/openrct2/ride/rtd/coaster/ClassicWoodenTwisterRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/ClassicWoodenTwisterRollerCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kClassicWoodenTwisterRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 7, 27 }, .BoosterSettings = { 0, 68 }, diff --git a/src/openrct2/ride/rtd/coaster/CompactInvertedCoaster.h b/src/openrct2/ride/rtd/coaster/CompactInvertedCoaster.h index d12289033c..c2d6f05cad 100644 --- a/src/openrct2/ride/rtd/coaster/CompactInvertedCoaster.h +++ b/src/openrct2/ride/rtd/coaster/CompactInvertedCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kCompactInvertedCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::isSuspended, RtdFlag::reverseInclineLaunchAffectsReliability), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::reverseInclineLaunchedShuttle), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::reverseInclineLaunchedShuttle }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 7, 27 }, .Naming = { STR_RIDE_NAME_COMPACT_INVERTED_COASTER, STR_RIDE_DESCRIPTION_COMPACT_INVERTED_COASTER }, diff --git a/src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h b/src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h index af0e5e9d17..ca5661e455 100644 --- a/src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kCorkscrewRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::poweredLaunchPassthrough, RideMode::poweredLaunch, RideMode::reverseInclineLaunchedShuttle), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::poweredLaunchPassthrough, RideMode::poweredLaunch, RideMode::reverseInclineLaunchedShuttle }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 10, 27 }, .BoosterSettings = { 25, 25 }, diff --git a/src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h b/src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h index d25ec021ee..e84819f302 100644 --- a/src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h @@ -37,7 +37,7 @@ constexpr RideTypeDescriptor kFlyingRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::hasInvertedVariant, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::startConstructionInverted), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 10, 27 }, .BoosterSettings = { 25, 25 }, @@ -112,7 +112,7 @@ constexpr RideTypeDescriptor kFlyingRollerCoasterAltRTD = }), .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::startConstructionInverted, RtdFlag::isDummyType), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 10, 27 }, .BoosterSettings = { 25, 25 }, diff --git a/src/openrct2/ride/rtd/coaster/GigaCoaster.h b/src/openrct2/ride/rtd/coaster/GigaCoaster.h index bc3347df48..a1e1ffc508 100644 --- a/src/openrct2/ride/rtd/coaster/GigaCoaster.h +++ b/src/openrct2/ride/rtd/coaster/GigaCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kGigaCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowCableLiftHill, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 10, 27 }, .TrackSpeedSettings = { 60, 60 }, diff --git a/src/openrct2/ride/rtd/coaster/HeartlineTwisterCoaster.h b/src/openrct2/ride/rtd/coaster/HeartlineTwisterCoaster.h index a7b433b15f..cfd302936f 100644 --- a/src/openrct2/ride/rtd/coaster/HeartlineTwisterCoaster.h +++ b/src/openrct2/ride/rtd/coaster/HeartlineTwisterCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kHeartlineTwisterCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 10, 27 }, .BoosterSettings = { 25, 25 }, diff --git a/src/openrct2/ride/rtd/coaster/HybridCoaster.h b/src/openrct2/ride/rtd/coaster/HybridCoaster.h index a67f6aa165..c2c0ae1728 100644 --- a/src/openrct2/ride/rtd/coaster/HybridCoaster.h +++ b/src/openrct2/ride/rtd/coaster/HybridCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kHybridCoasterRTD = RtdFlags(RtdFlag::hasTrackColourMain, RtdFlag::hasTrackColourSupports, RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 10, 27 }, .BoosterSettings = { 15, 52 }, diff --git a/src/openrct2/ride/rtd/coaster/HyperTwister.h b/src/openrct2/ride/rtd/coaster/HyperTwister.h index f1aa8497fa..f53185d4a6 100644 --- a/src/openrct2/ride/rtd/coaster/HyperTwister.h +++ b/src/openrct2/ride/rtd/coaster/HyperTwister.h @@ -32,7 +32,7 @@ constexpr RideTypeDescriptor kHyperTwisterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 10, 27 }, .TrackSpeedSettings = { 60, 60 }, diff --git a/src/openrct2/ride/rtd/coaster/Hypercoaster.h b/src/openrct2/ride/rtd/coaster/Hypercoaster.h index 116ad6f688..6582e1c17e 100644 --- a/src/openrct2/ride/rtd/coaster/Hypercoaster.h +++ b/src/openrct2/ride/rtd/coaster/Hypercoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kHypercoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::poweredLaunchPassthrough, RideMode::poweredLaunch, RideMode::reverseInclineLaunchedShuttle), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::poweredLaunchPassthrough, RideMode::poweredLaunch, RideMode::reverseInclineLaunchedShuttle }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 10, 27 }, .TrackSpeedSettings = { 60, 60 }, diff --git a/src/openrct2/ride/rtd/coaster/InvertedHairpinCoaster.h b/src/openrct2/ride/rtd/coaster/InvertedHairpinCoaster.h index 070d0ac3b3..858a32fabe 100644 --- a/src/openrct2/ride/rtd/coaster/InvertedHairpinCoaster.h +++ b/src/openrct2/ride/rtd/coaster/InvertedHairpinCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kInvertedHairpinCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::isSuspended), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 18 }, .Naming = { STR_RIDE_NAME_INVERTED_HAIRPIN_COASTER, STR_RIDE_DESCRIPTION_INVERTED_HAIRPIN_COASTER }, diff --git a/src/openrct2/ride/rtd/coaster/InvertedImpulseCoaster.h b/src/openrct2/ride/rtd/coaster/InvertedImpulseCoaster.h index a5e641f9de..6d138cb21c 100644 --- a/src/openrct2/ride/rtd/coaster/InvertedImpulseCoaster.h +++ b/src/openrct2/ride/rtd/coaster/InvertedImpulseCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kInvertedImpulseCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::isSuspended, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::poweredLaunchPassthrough, RideMode::poweredLaunch), + .rideModes = { RideMode::poweredLaunchPassthrough, RideMode::poweredLaunch }, .DefaultMode = RideMode::poweredLaunchPassthrough, .OperatingSettings = { 10, 33 }, .BoosterSettings = { 25, 25 }, diff --git a/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h b/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h index ed8722b685..e7b0e307d4 100644 --- a/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kInvertedRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::isSuspended, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::poweredLaunchPassthrough, RideMode::poweredLaunch), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::poweredLaunchPassthrough, RideMode::poweredLaunch }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 7, 27 }, .BoosterSettings = { 0, 38 }, diff --git a/src/openrct2/ride/rtd/coaster/JuniorRollerCoaster.h b/src/openrct2/ride/rtd/coaster/JuniorRollerCoaster.h index f14c0ab142..0746bff8ef 100644 --- a/src/openrct2/ride/rtd/coaster/JuniorRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/JuniorRollerCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kJuniorRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::allowDoorsOnTrack, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 18 }, .TrackSpeedSettings = { 30, 15 }, diff --git a/src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h b/src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h index 4c72b2bd08..669757b582 100644 --- a/src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kLIMLaunchedRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::poweredLaunchPassthrough, RideMode::poweredLaunch, RideMode::poweredLaunchBlockSectioned), + .rideModes = { RideMode::poweredLaunchPassthrough, RideMode::poweredLaunch, RideMode::poweredLaunchBlockSectioned }, .DefaultMode = RideMode::poweredLaunch, .OperatingSettings = { 10, 31 }, .BoosterSettings = { 18, 52 }, diff --git a/src/openrct2/ride/rtd/coaster/LSMLaunchedRollerCoaster.h b/src/openrct2/ride/rtd/coaster/LSMLaunchedRollerCoaster.h index 3cbd117e6a..98b3673524 100644 --- a/src/openrct2/ride/rtd/coaster/LSMLaunchedRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/LSMLaunchedRollerCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kLSMLaunchedRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowCableLiftHill, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::poweredLaunch, RideMode::poweredLaunchBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::poweredLaunch, RideMode::poweredLaunchBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 2, 10 }, .TrackSpeedSettings = { 60, 60 }, diff --git a/src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h b/src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h index 379e3af775..87310b470a 100644 --- a/src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h @@ -40,7 +40,7 @@ constexpr RideTypeDescriptor kLayDownRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::hasInvertedVariant, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 10, 27 }, .BoosterSettings = { 25, 25 }, @@ -111,7 +111,7 @@ constexpr RideTypeDescriptor kLayDownRollerCoasterAltRTD = }), .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::isDummyType), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 10, 27 }, .BoosterSettings = { 25, 25 }, diff --git a/src/openrct2/ride/rtd/coaster/LoopingRollerCoaster.h b/src/openrct2/ride/rtd/coaster/LoopingRollerCoaster.h index c5deb616ec..9412699e2d 100644 --- a/src/openrct2/ride/rtd/coaster/LoopingRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/LoopingRollerCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kLoopingRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains, RtdFlag::poweredLaunchAffectsReliability), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::reverseInclineLaunchedShuttle, RideMode::poweredLaunchPassthrough, RideMode::poweredLaunch), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::reverseInclineLaunchedShuttle, RideMode::poweredLaunchPassthrough, RideMode::poweredLaunch }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 10, 27 }, .BoosterSettings = { 18, 18 }, diff --git a/src/openrct2/ride/rtd/coaster/MineRide.h b/src/openrct2/ride/rtd/coaster/MineRide.h index 7541ae37c9..79acb56df1 100644 --- a/src/openrct2/ride/rtd/coaster/MineRide.h +++ b/src/openrct2/ride/rtd/coaster/MineRide.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kMineRideRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 7, 27 }, .Naming = { STR_RIDE_NAME_MINE_RIDE, STR_RIDE_DESCRIPTION_MINE_RIDE }, diff --git a/src/openrct2/ride/rtd/coaster/MineTrainCoaster.h b/src/openrct2/ride/rtd/coaster/MineTrainCoaster.h index 0b0d2908d1..4e92181691 100644 --- a/src/openrct2/ride/rtd/coaster/MineTrainCoaster.h +++ b/src/openrct2/ride/rtd/coaster/MineTrainCoaster.h @@ -32,7 +32,7 @@ constexpr RideTypeDescriptor kMineTrainCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 7, 27 }, .Naming = { STR_RIDE_NAME_MINE_TRAIN_COASTER, STR_RIDE_DESCRIPTION_MINE_TRAIN_COASTER }, diff --git a/src/openrct2/ride/rtd/coaster/MiniRollerCoaster.h b/src/openrct2/ride/rtd/coaster/MiniRollerCoaster.h index e044476d15..81ae19a2b2 100644 --- a/src/openrct2/ride/rtd/coaster/MiniRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/MiniRollerCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kMiniRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 27 }, .BoosterSettings = { 0, 68 }, diff --git a/src/openrct2/ride/rtd/coaster/MiniSuspendedCoaster.h b/src/openrct2/ride/rtd/coaster/MiniSuspendedCoaster.h index 1b4eaee726..1ade4e9120 100644 --- a/src/openrct2/ride/rtd/coaster/MiniSuspendedCoaster.h +++ b/src/openrct2/ride/rtd/coaster/MiniSuspendedCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kMiniSuspendedCoasterRTD = .flags = kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasTrackColourMain, RtdFlag::hasTrackColourSupports, RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::isSuspended), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 18 }, .Naming = { STR_RIDE_NAME_MINI_SUSPENDED_COASTER, STR_RIDE_DESCRIPTION_MINI_SUSPENDED_COASTER }, diff --git a/src/openrct2/ride/rtd/coaster/MultiDimensionRollerCoaster.h b/src/openrct2/ride/rtd/coaster/MultiDimensionRollerCoaster.h index 139bc5f7bc..3d840605ff 100644 --- a/src/openrct2/ride/rtd/coaster/MultiDimensionRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/MultiDimensionRollerCoaster.h @@ -37,7 +37,7 @@ constexpr RideTypeDescriptor kMultiDimensionRollerCoasterRTD = RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::hasInvertedVariant, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::hasSeatRotation, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 10, 27 }, .BoosterSettings = { 25, 25 }, @@ -111,7 +111,7 @@ constexpr RideTypeDescriptor kMultiDimensionRollerCoasterAltRTD = }), .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::hasSeatRotation, RtdFlag::isDummyType), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 10, 27 }, .BoosterSettings = { 25, 25 }, diff --git a/src/openrct2/ride/rtd/coaster/ReverseFreefallCoaster.h b/src/openrct2/ride/rtd/coaster/ReverseFreefallCoaster.h index 9cde4de167..3cdf2fd6c8 100644 --- a/src/openrct2/ride/rtd/coaster/ReverseFreefallCoaster.h +++ b/src/openrct2/ride/rtd/coaster/ReverseFreefallCoaster.h @@ -30,7 +30,7 @@ constexpr RideTypeDescriptor kReverseFreefallCoasterRTD = .InvertedTrackPaintFunctions = {}, .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::allowReversedTrains, RtdFlag::hasLsmBehaviourOnFlat), - .RideModes = EnumsToFlags(RideMode::limPoweredLaunch), + .rideModes = { RideMode::limPoweredLaunch }, .DefaultMode = RideMode::limPoweredLaunch, .OperatingSettings = { 7, 30 }, .TrackSpeedSettings = { 60, 60 }, diff --git a/src/openrct2/ride/rtd/coaster/ReverserRollerCoaster.h b/src/openrct2/ride/rtd/coaster/ReverserRollerCoaster.h index 048dedb0ab..c569845fc2 100644 --- a/src/openrct2/ride/rtd/coaster/ReverserRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/ReverserRollerCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kReverserRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::layeredVehiclePreview), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 18 }, .Naming = { STR_RIDE_NAME_REVERSER_ROLLER_COASTER, STR_RIDE_DESCRIPTION_REVERSER_ROLLER_COASTER }, diff --git a/src/openrct2/ride/rtd/coaster/SideFrictionRollerCoaster.h b/src/openrct2/ride/rtd/coaster/SideFrictionRollerCoaster.h index 65e4ef49d6..5810bf1ed6 100644 --- a/src/openrct2/ride/rtd/coaster/SideFrictionRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/SideFrictionRollerCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kSideFrictionRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .Naming = { STR_RIDE_NAME_SIDE_FRICTION_ROLLER_COASTER, STR_RIDE_DESCRIPTION_SIDE_FRICTION_ROLLER_COASTER }, .NameConvention = { RideComponentType::train, RideComponentType::track, RideComponentType::station }, diff --git a/src/openrct2/ride/rtd/coaster/SingleRailRollerCoaster.h b/src/openrct2/ride/rtd/coaster/SingleRailRollerCoaster.h index 6ab47ff6fe..d1442c5a15 100644 --- a/src/openrct2/ride/rtd/coaster/SingleRailRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/SingleRailRollerCoaster.h @@ -30,7 +30,7 @@ constexpr RideTypeDescriptor kSingleRailRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt| RtdFlags(RtdFlag::hasTrackColourSupports, RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 7, 27 }, .BoosterSettings = { 15, 52 }, diff --git a/src/openrct2/ride/rtd/coaster/SpinningWildMouse.h b/src/openrct2/ride/rtd/coaster/SpinningWildMouse.h index 5900f9574d..3c02e3924a 100644 --- a/src/openrct2/ride/rtd/coaster/SpinningWildMouse.h +++ b/src/openrct2/ride/rtd/coaster/SpinningWildMouse.h @@ -30,7 +30,7 @@ constexpr RideTypeDescriptor kSpinningWildMouseRTD = .InvertedTrackPaintFunctions = {}, .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 18 }, .Naming = { STR_RIDE_NAME_SPINNING_WILD_MOUSE, STR_RIDE_DESCRIPTION_SPINNING_WILD_MOUSE }, diff --git a/src/openrct2/ride/rtd/coaster/SpiralRollerCoaster.h b/src/openrct2/ride/rtd/coaster/SpiralRollerCoaster.h index d93b8672ea..e7c14ad428 100644 --- a/src/openrct2/ride/rtd/coaster/SpiralRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/SpiralRollerCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kSpiralRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 10, 27 }, .BoosterSettings = { 17, 17 }, diff --git a/src/openrct2/ride/rtd/coaster/StandUpRollerCoaster.h b/src/openrct2/ride/rtd/coaster/StandUpRollerCoaster.h index 55d0d2f60a..db13f54e2e 100644 --- a/src/openrct2/ride/rtd/coaster/StandUpRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/StandUpRollerCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kStandUpRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 7, 27 }, .Naming = { STR_RIDE_NAME_STAND_UP_ROLLER_COASTER, STR_RIDE_DESCRIPTION_STAND_UP_ROLLER_COASTER }, diff --git a/src/openrct2/ride/rtd/coaster/SteelWildMouse.h b/src/openrct2/ride/rtd/coaster/SteelWildMouse.h index 2553f339a7..9243ff3428 100644 --- a/src/openrct2/ride/rtd/coaster/SteelWildMouse.h +++ b/src/openrct2/ride/rtd/coaster/SteelWildMouse.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kSteelWildMouseRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::allowDoorsOnTrack, RtdFlag::checkGForces), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 18 }, .Naming = { STR_RIDE_NAME_WILD_MOUSE, STR_RIDE_DESCRIPTION_WILD_MOUSE }, diff --git a/src/openrct2/ride/rtd/coaster/Steeplechase.h b/src/openrct2/ride/rtd/coaster/Steeplechase.h index ae672d0fa4..7afe0976f2 100644 --- a/src/openrct2/ride/rtd/coaster/Steeplechase.h +++ b/src/openrct2/ride/rtd/coaster/Steeplechase.h @@ -30,7 +30,7 @@ constexpr RideTypeDescriptor kSteeplechaseRTD = .InvertedTrackPaintFunctions = {}, .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 18 }, .Naming = { STR_RIDE_NAME_STEEPLECHASE, STR_RIDE_DESCRIPTION_STEEPLECHASE }, diff --git a/src/openrct2/ride/rtd/coaster/SuspendedSwingingCoaster.h b/src/openrct2/ride/rtd/coaster/SuspendedSwingingCoaster.h index 526baf3d9b..b129b90d4c 100644 --- a/src/openrct2/ride/rtd/coaster/SuspendedSwingingCoaster.h +++ b/src/openrct2/ride/rtd/coaster/SuspendedSwingingCoaster.h @@ -30,7 +30,7 @@ constexpr RideTypeDescriptor kSuspendedSwingingCoasterRTD = .InvertedTrackPaintFunctions = {}, .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::isSuspended), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 10, 27 }, .Naming = { STR_RIDE_NAME_SUSPENDED_SWINGING_COASTER, STR_RIDE_DESCRIPTION_SUSPENDED_SWINGING_COASTER }, diff --git a/src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h b/src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h index d17a1954e2..85e279ead3 100644 --- a/src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h @@ -32,7 +32,7 @@ constexpr RideTypeDescriptor kTwisterRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 10, 27 }, .BoosterSettings = { 17, 68 }, diff --git a/src/openrct2/ride/rtd/coaster/VerticalDropCoaster.h b/src/openrct2/ride/rtd/coaster/VerticalDropCoaster.h index df68467034..8c7a7a435c 100644 --- a/src/openrct2/ride/rtd/coaster/VerticalDropCoaster.h +++ b/src/openrct2/ride/rtd/coaster/VerticalDropCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kVerticalDropCoasterRTD = .InvertedTrackPaintFunctions = {}, .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 10, 27 }, .BoosterSettings = { 17, 68 }, diff --git a/src/openrct2/ride/rtd/coaster/VirginiaReel.h b/src/openrct2/ride/rtd/coaster/VirginiaReel.h index 4f45676074..d0ada829e4 100644 --- a/src/openrct2/ride/rtd/coaster/VirginiaReel.h +++ b/src/openrct2/ride/rtd/coaster/VirginiaReel.h @@ -30,7 +30,7 @@ constexpr RideTypeDescriptor kVirginiaReelRTD = .InvertedTrackPaintFunctions = {}, .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 18 }, .Naming = { STR_RIDE_NAME_VIRGINIA_REEL, STR_RIDE_DESCRIPTION_VIRGINIA_REEL }, diff --git a/src/openrct2/ride/rtd/coaster/WaterCoaster.h b/src/openrct2/ride/rtd/coaster/WaterCoaster.h index f598abe2bf..5fa61d03ee 100644 --- a/src/openrct2/ride/rtd/coaster/WaterCoaster.h +++ b/src/openrct2/ride/rtd/coaster/WaterCoaster.h @@ -43,7 +43,7 @@ constexpr RideTypeDescriptor kWaterCoasterRTD = .InvertedTrackPaintFunctions = {}, .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::hasCoveredPieces, RtdFlag::checkGForces), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 18 }, .TrackSpeedSettings = { 30, 15 }, diff --git a/src/openrct2/ride/rtd/coaster/WoodenRollerCoaster.h b/src/openrct2/ride/rtd/coaster/WoodenRollerCoaster.h index 691ebee827..f73f7f4456 100644 --- a/src/openrct2/ride/rtd/coaster/WoodenRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/WoodenRollerCoaster.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kWoodenRollerCoasterRTD = .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::checkGForces, RtdFlag::allowMultipleCircuits, RtdFlag::allowReversedTrains), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::reverseInclineLaunchedShuttle), + .rideModes = { RideMode::continuousCircuit, RideMode::continuousCircuitBlockSectioned, RideMode::reverseInclineLaunchedShuttle }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 7, 27 }, .BoosterSettings = { 0, 68 }, diff --git a/src/openrct2/ride/rtd/coaster/WoodenWildMouse.h b/src/openrct2/ride/rtd/coaster/WoodenWildMouse.h index 12fea27d23..9446e68f3d 100644 --- a/src/openrct2/ride/rtd/coaster/WoodenWildMouse.h +++ b/src/openrct2/ride/rtd/coaster/WoodenWildMouse.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kWoodenWildMouseRTD = .flags = kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | RtdFlags(RtdFlag::hasTrackColourMain, RtdFlag::hasTrackColourSupports, RtdFlag::hasLeaveWhenAnotherVehicleArrivesAtStation, RtdFlag::allowDoorsOnTrack, RtdFlag::checkGForces), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 18 }, .Naming = { STR_RIDE_NAME_WOODEN_WILD_MOUSE, STR_RIDE_DESCRIPTION_WOODEN_WILD_MOUSE }, diff --git a/src/openrct2/ride/rtd/gentle/CarRide.h b/src/openrct2/ride/rtd/gentle/CarRide.h index 3c52a693f5..c77d0b9487 100644 --- a/src/openrct2/ride/rtd/gentle/CarRide.h +++ b/src/openrct2/ride/rtd/gentle/CarRide.h @@ -35,7 +35,7 @@ constexpr RideTypeDescriptor kCarRideRTD = RtdFlag::allowDoorsOnTrack, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::allowMoreVehiclesThanStationFits, RtdFlag::showInTrackDesigner, RtdFlag::slightlyInterestingToLookAt), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 18 }, .Naming = { STR_RIDE_NAME_CAR_RIDE, STR_RIDE_DESCRIPTION_CAR_RIDE }, diff --git a/src/openrct2/ride/rtd/gentle/Circus.h b/src/openrct2/ride/rtd/gentle/Circus.h index d5c4388e80..a41b110488 100644 --- a/src/openrct2/ride/rtd/gentle/Circus.h +++ b/src/openrct2/ride/rtd/gentle/Circus.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kCircusRTD = RtdFlag::isFlatRide, RtdFlag::describeAsInside, RtdFlag::hasVehicleColours, RtdFlag::hasMusicByDefault, RtdFlag::hasEntranceAndExit, RtdFlag::singleSession, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::circus), + .rideModes = { RideMode::circus }, .DefaultMode = RideMode::circus, .Naming = { STR_RIDE_NAME_CIRCUS, STR_RIDE_DESCRIPTION_CIRCUS }, .NameConvention = { RideComponentType::building, RideComponentType::structure, RideComponentType::station }, diff --git a/src/openrct2/ride/rtd/gentle/CrookedHouse.h b/src/openrct2/ride/rtd/gentle/CrookedHouse.h index 289c95dead..e798540b17 100644 --- a/src/openrct2/ride/rtd/gentle/CrookedHouse.h +++ b/src/openrct2/ride/rtd/gentle/CrookedHouse.h @@ -30,7 +30,7 @@ constexpr RideTypeDescriptor kCrookedHouseRTD = RtdFlag::isFlatRide, RtdFlag::describeAsInside, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::singleSession, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::crookedHouse), + .rideModes = { RideMode::crookedHouse }, .DefaultMode = RideMode::crookedHouse, .Naming = { STR_RIDE_NAME_CROOKED_HOUSE, STR_RIDE_DESCRIPTION_CROOKED_HOUSE }, .NameConvention = { RideComponentType::building, RideComponentType::structure, RideComponentType::station }, diff --git a/src/openrct2/ride/rtd/gentle/Dodgems.h b/src/openrct2/ride/rtd/gentle/Dodgems.h index f9850609a4..96828531c6 100644 --- a/src/openrct2/ride/rtd/gentle/Dodgems.h +++ b/src/openrct2/ride/rtd/gentle/Dodgems.h @@ -33,7 +33,7 @@ constexpr RideTypeDescriptor kDodgemsRTD = RtdFlag::isFlatRide, RtdFlag::hasVehicleColours, RtdFlag::hasMusicByDefault, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::slightlyInterestingToLookAt, RtdFlag::hasRoofOverWholeRide), - .RideModes = EnumsToFlags(RideMode::dodgems), + .rideModes = { RideMode::dodgems }, .DefaultMode = RideMode::dodgems, .OperatingSettings = { 20, 180 }, .Naming = { STR_RIDE_NAME_DODGEMS, STR_RIDE_DESCRIPTION_DODGEMS }, @@ -68,7 +68,7 @@ constexpr RideTypeDescriptor kDodgemsRTD = false, { // Special case, passing -2 to represent division by 2 - { RatingsModifierType::bonusOperationOption, 0, 1, -2, 0 }, + { RatingsModifierType::bonusOperationOption, 0, 1, -2, 0 }, { RatingsModifierType::bonusNumTrains, 4, RideRating::make(0, 80), 0, 0 }, { RatingsModifierType::bonusScenery, 0, 5577, 0, 0 }, }, diff --git a/src/openrct2/ride/rtd/gentle/FerrisWheel.h b/src/openrct2/ride/rtd/gentle/FerrisWheel.h index 541b75cf71..2cb5cd1996 100644 --- a/src/openrct2/ride/rtd/gentle/FerrisWheel.h +++ b/src/openrct2/ride/rtd/gentle/FerrisWheel.h @@ -32,7 +32,7 @@ constexpr RideTypeDescriptor kFerrisWheelRTD = RtdFlag::isFlatRide, RtdFlag::hasVehicleColours, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::singleSession, RtdFlag::slightlyInterestingToLookAt, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::forwardRotation, RideMode::backwardRotation), + .rideModes = { RideMode::forwardRotation, RideMode::backwardRotation }, .DefaultMode = RideMode::forwardRotation, .OperatingSettings = { 1, 3 }, .Naming = { STR_RIDE_NAME_FERRIS_WHEEL, STR_RIDE_DESCRIPTION_FERRIS_WHEEL }, diff --git a/src/openrct2/ride/rtd/gentle/FlyingSaucers.h b/src/openrct2/ride/rtd/gentle/FlyingSaucers.h index 43a21f5225..c4d669f2c1 100644 --- a/src/openrct2/ride/rtd/gentle/FlyingSaucers.h +++ b/src/openrct2/ride/rtd/gentle/FlyingSaucers.h @@ -32,7 +32,7 @@ constexpr RideTypeDescriptor kFlyingSaucersRTD = RtdFlag::noWallsAroundTrack, RtdFlag::isFlatRide, RtdFlag::hasVehicleColours, RtdFlag::hasMusicByDefault, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::singleSession, RtdFlag::interestingToLookAt), - .RideModes = EnumsToFlags(RideMode::dodgems), + .rideModes = { RideMode::dodgems }, .DefaultMode = RideMode::dodgems, .OperatingSettings = { 20, 180 }, .Naming = { STR_RIDE_NAME_FLYING_SAUCERS, STR_RIDE_DESCRIPTION_FLYING_SAUCERS }, @@ -66,7 +66,7 @@ constexpr RideTypeDescriptor kFlyingSaucersRTD = false, { // Special case, passing -2 to represent division by 2 - { RatingsModifierType::bonusOperationOption, 0, 1, -2, 0 }, + { RatingsModifierType::bonusOperationOption, 0, 1, -2, 0 }, { RatingsModifierType::bonusNumTrains, 4, RideRating::make(0, 80), 0, 0 }, { RatingsModifierType::bonusScenery, 0, 5577, 0, 0 }, }, diff --git a/src/openrct2/ride/rtd/gentle/GhostTrain.h b/src/openrct2/ride/rtd/gentle/GhostTrain.h index c0137bff7e..914770aa37 100644 --- a/src/openrct2/ride/rtd/gentle/GhostTrain.h +++ b/src/openrct2/ride/rtd/gentle/GhostTrain.h @@ -36,7 +36,7 @@ constexpr RideTypeDescriptor kGhostTrainRTD = RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::allowMoreVehiclesThanStationFits, RtdFlag::hasAirTime, RtdFlag::showInTrackDesigner, RtdFlag::interestingToLookAt, RtdFlag::hasLandscapeDoors), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 18 }, .Naming = { STR_RIDE_NAME_GHOST_TRAIN, STR_RIDE_DESCRIPTION_GHOST_TRAIN }, diff --git a/src/openrct2/ride/rtd/gentle/HauntedHouse.h b/src/openrct2/ride/rtd/gentle/HauntedHouse.h index 4b5e6799eb..5d5aa9d769 100644 --- a/src/openrct2/ride/rtd/gentle/HauntedHouse.h +++ b/src/openrct2/ride/rtd/gentle/HauntedHouse.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kHauntedHouseRTD = RtdFlag::isFlatRide, RtdFlag::describeAsInside, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::singleSession, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::hauntedHouse), + .rideModes = { RideMode::hauntedHouse }, .DefaultMode = RideMode::hauntedHouse, .Naming = { STR_RIDE_NAME_HAUNTED_HOUSE, STR_RIDE_DESCRIPTION_HAUNTED_HOUSE }, .NameConvention = { RideComponentType::building, RideComponentType::structure, RideComponentType::station }, diff --git a/src/openrct2/ride/rtd/gentle/Maze.h b/src/openrct2/ride/rtd/gentle/Maze.h index a77a79c772..6a52772aef 100644 --- a/src/openrct2/ride/rtd/gentle/Maze.h +++ b/src/openrct2/ride/rtd/gentle/Maze.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kMazeRTD = .flags = RtdFlags(RtdFlag::hasTrackColourSupports, RtdFlag::hasSinglePieceStation, RtdFlag::noTestMode, RtdFlag::noVehicles, RtdFlag::noWallsAroundTrack, RtdFlag::describeAsInside, RtdFlag::hasTrack, RtdFlag::hasEntranceAndExit, RtdFlag::guestsCanUseUmbrella), - .RideModes = EnumsToFlags(RideMode::maze), + .rideModes = { RideMode::maze }, .DefaultMode = RideMode::maze, .OperatingSettings = { 1, 64 }, .Naming = { STR_RIDE_NAME_MAZE, STR_RIDE_DESCRIPTION_MAZE }, diff --git a/src/openrct2/ride/rtd/gentle/MerryGoRound.h b/src/openrct2/ride/rtd/gentle/MerryGoRound.h index 0865616d20..c263d3df77 100644 --- a/src/openrct2/ride/rtd/gentle/MerryGoRound.h +++ b/src/openrct2/ride/rtd/gentle/MerryGoRound.h @@ -32,7 +32,7 @@ constexpr RideTypeDescriptor kMerryGoRoundRTD = RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::singleSession, RtdFlag::interestingToLookAt, RtdFlag::listVehiclesSeparately, RtdFlag::requireExplicitListingInMusicObjects), - .RideModes = EnumsToFlags(RideMode::rotation), + .rideModes = { RideMode::rotation }, .DefaultMode = RideMode::rotation, .OperatingSettings = { 4, 25 }, .Naming = { STR_RIDE_NAME_MERRY_GO_ROUND, STR_RIDE_DESCRIPTION_MERRY_GO_ROUND }, diff --git a/src/openrct2/ride/rtd/gentle/MiniGolf.h b/src/openrct2/ride/rtd/gentle/MiniGolf.h index 2de9e498dd..51557cce1f 100644 --- a/src/openrct2/ride/rtd/gentle/MiniGolf.h +++ b/src/openrct2/ride/rtd/gentle/MiniGolf.h @@ -30,7 +30,7 @@ constexpr RideTypeDescriptor kMiniGolfRTD = .flags = kRtdFlagsHasThreeColours | RtdFlags(RtdFlag::noTestMode, RtdFlag::hasTrack, RtdFlag::hasOneStation, RtdFlag::supportsMultipleColourSchemes, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::slightlyInterestingToLookAt), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .Naming = { STR_RIDE_NAME_MINI_GOLF, STR_RIDE_DESCRIPTION_MINI_GOLF }, .NameConvention = { RideComponentType::player, RideComponentType::course, RideComponentType::station }, diff --git a/src/openrct2/ride/rtd/gentle/MiniHelicopters.h b/src/openrct2/ride/rtd/gentle/MiniHelicopters.h index c587ddc9f4..8b8983cf6f 100644 --- a/src/openrct2/ride/rtd/gentle/MiniHelicopters.h +++ b/src/openrct2/ride/rtd/gentle/MiniHelicopters.h @@ -35,7 +35,7 @@ constexpr RideTypeDescriptor kMiniHelicoptersRTD = RtdFlag::allowDoorsOnTrack, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::allowMoreVehiclesThanStationFits, RtdFlag::showInTrackDesigner, RtdFlag::slightlyInterestingToLookAt), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 18 }, .Naming = { STR_RIDE_NAME_MINI_HELICOPTERS, STR_RIDE_DESCRIPTION_MINI_HELICOPTERS }, diff --git a/src/openrct2/ride/rtd/gentle/MonorailCycles.h b/src/openrct2/ride/rtd/gentle/MonorailCycles.h index c73b12b1d3..1bfd07ed55 100644 --- a/src/openrct2/ride/rtd/gentle/MonorailCycles.h +++ b/src/openrct2/ride/rtd/gentle/MonorailCycles.h @@ -34,7 +34,7 @@ constexpr RideTypeDescriptor kMonorailCyclesRTD = RtdFlag::guestsWillRideAgain, RtdFlag::hasVehicleColours, RtdFlag::hasTrack, RtdFlag::supportsMultipleColourSchemes, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::slightlyInterestingToLookAt), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 18 }, .Naming = { STR_RIDE_NAME_MONORAIL_CYCLES, STR_RIDE_DESCRIPTION_MONORAIL_CYCLES }, diff --git a/src/openrct2/ride/rtd/gentle/MonsterTrucks.h b/src/openrct2/ride/rtd/gentle/MonsterTrucks.h index b32fb735e3..3c89ac555c 100644 --- a/src/openrct2/ride/rtd/gentle/MonsterTrucks.h +++ b/src/openrct2/ride/rtd/gentle/MonsterTrucks.h @@ -35,7 +35,7 @@ constexpr RideTypeDescriptor kMonsterTrucksRTD = RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::allowMoreVehiclesThanStationFits, RtdFlag::showInTrackDesigner, RtdFlag::slightlyInterestingToLookAt), - .RideModes = (1uLL << static_cast(RideMode::continuousCircuit)), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 18 }, .Naming = { STR_RIDE_NAME_MONSTER_TRUCKS, STR_RIDE_DESCRIPTION_MONSTER_TRUCKS }, diff --git a/src/openrct2/ride/rtd/gentle/ObservationTower.h b/src/openrct2/ride/rtd/gentle/ObservationTower.h index 45ff1e7217..0c22211f2f 100644 --- a/src/openrct2/ride/rtd/gentle/ObservationTower.h +++ b/src/openrct2/ride/rtd/gentle/ObservationTower.h @@ -32,7 +32,7 @@ constexpr RideTypeDescriptor kObservationTowerRTD = RtdFlag::hasLoadOptions, RtdFlag::noWallsAroundTrack, RtdFlag::hasVehicleColours, RtdFlag::hasTrack, RtdFlag::supportsMultipleColourSchemes, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::showInTrackDesigner, RtdFlag::slightlyInterestingToLookAt), - .RideModes = EnumsToFlags(RideMode::rotatingLift), + .rideModes = { RideMode::rotatingLift }, .DefaultMode = RideMode::rotatingLift, .OperatingSettings = { 5, 27 }, .Naming = { STR_RIDE_NAME_OBSERVATION_TOWER, STR_RIDE_DESCRIPTION_OBSERVATION_TOWER }, diff --git a/src/openrct2/ride/rtd/gentle/SpaceRings.h b/src/openrct2/ride/rtd/gentle/SpaceRings.h index 6c2998fdc5..13c896ea4a 100644 --- a/src/openrct2/ride/rtd/gentle/SpaceRings.h +++ b/src/openrct2/ride/rtd/gentle/SpaceRings.h @@ -30,7 +30,7 @@ constexpr RideTypeDescriptor kSpaceRingsRTD = RtdFlag::noWallsAroundTrack, RtdFlag::isFlatRide, RtdFlag::hasVehicleColours, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::singleSession, RtdFlag::slightlyInterestingToLookAt, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::spaceRings), + .rideModes = { RideMode::spaceRings }, .DefaultMode = RideMode::spaceRings, .Naming = { STR_RIDE_NAME_SPACE_RINGS, STR_RIDE_DESCRIPTION_SPACE_RINGS }, .NameConvention = { RideComponentType::ring, RideComponentType::structure, RideComponentType::station }, diff --git a/src/openrct2/ride/rtd/gentle/SpiralSlide.h b/src/openrct2/ride/rtd/gentle/SpiralSlide.h index 596d938238..515983a2b7 100644 --- a/src/openrct2/ride/rtd/gentle/SpiralSlide.h +++ b/src/openrct2/ride/rtd/gentle/SpiralSlide.h @@ -32,7 +32,7 @@ constexpr RideTypeDescriptor kSpiralSlideRTD = RtdFlag::noWallsAroundTrack, RtdFlag::isFlatRide, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::interestingToLookAt, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::singleRidePerAdmission, RideMode::unlimitedRidesPerAdmission), + .rideModes = { RideMode::singleRidePerAdmission, RideMode::unlimitedRidesPerAdmission }, .DefaultMode = RideMode::singleRidePerAdmission, .OperatingSettings = { 1, 5 }, .Naming = { STR_RIDE_NAME_SPIRAL_SLIDE, STR_RIDE_DESCRIPTION_SPIRAL_SLIDE }, diff --git a/src/openrct2/ride/rtd/shops/CashMachine.h b/src/openrct2/ride/rtd/shops/CashMachine.h index 96838f11a1..4b3ab403f6 100644 --- a/src/openrct2/ride/rtd/shops/CashMachine.h +++ b/src/openrct2/ride/rtd/shops/CashMachine.h @@ -29,7 +29,7 @@ constexpr RideTypeDescriptor kCashMachineRTD = .flags = RtdFlags(RtdFlag::hasSinglePieceStation, RtdFlag::cannotHaveGaps, RtdFlag::noTestMode, RtdFlag::noVehicles, RtdFlag::isShopOrFacility, RtdFlag::noWallsAroundTrack, RtdFlag::isFlatRide, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::shopStall), + .rideModes = { RideMode::shopStall }, .DefaultMode = RideMode::shopStall, .Naming = { STR_RIDE_NAME_CASH_MACHINE, STR_RIDE_DESCRIPTION_CASH_MACHINE }, .NameConvention = { RideComponentType::car, RideComponentType::building, RideComponentType::station }, diff --git a/src/openrct2/ride/rtd/shops/DrinkStall.h b/src/openrct2/ride/rtd/shops/DrinkStall.h index b6130f699b..8373660677 100644 --- a/src/openrct2/ride/rtd/shops/DrinkStall.h +++ b/src/openrct2/ride/rtd/shops/DrinkStall.h @@ -30,7 +30,7 @@ constexpr RideTypeDescriptor kDrinkStallRTD = RtdFlag::noVehicles, RtdFlag::isShopOrFacility, RtdFlag::noWallsAroundTrack, RtdFlag::isFlatRide, RtdFlag::sellsDrinks, RtdFlag::listVehiclesSeparately, RtdFlag::hasTrackColourMain), - .RideModes = EnumsToFlags(RideMode::shopStall), + .rideModes = { RideMode::shopStall }, .DefaultMode = RideMode::shopStall, .Naming = { STR_RIDE_NAME_DRINK_STALL, STR_RIDE_DESCRIPTION_DRINK_STALL }, .NameConvention = { RideComponentType::car, RideComponentType::building, RideComponentType::station }, diff --git a/src/openrct2/ride/rtd/shops/FirstAid.h b/src/openrct2/ride/rtd/shops/FirstAid.h index ef409d9cc8..e696092ffd 100644 --- a/src/openrct2/ride/rtd/shops/FirstAid.h +++ b/src/openrct2/ride/rtd/shops/FirstAid.h @@ -30,7 +30,7 @@ constexpr RideTypeDescriptor kFirstAidRTD = RtdFlag::noVehicles, RtdFlag::isShopOrFacility, RtdFlag::noWallsAroundTrack, RtdFlag::isFlatRide, RtdFlag::guestsShouldGoInsideFacility, RtdFlag::describeAsInside, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::shopStall), + .rideModes = { RideMode::shopStall }, .DefaultMode = RideMode::shopStall, .OperatingSettings = { 8, 8 }, .Naming = { STR_RIDE_NAME_FIRST_AID, STR_RIDE_DESCRIPTION_FIRST_AID }, diff --git a/src/openrct2/ride/rtd/shops/FoodStall.h b/src/openrct2/ride/rtd/shops/FoodStall.h index 3d23837b95..3ed8eb88b8 100644 --- a/src/openrct2/ride/rtd/shops/FoodStall.h +++ b/src/openrct2/ride/rtd/shops/FoodStall.h @@ -30,7 +30,7 @@ constexpr RideTypeDescriptor kFoodStallRTD = RtdFlag::noVehicles, RtdFlag::isShopOrFacility, RtdFlag::noWallsAroundTrack, RtdFlag::isFlatRide, RtdFlag::sellsFood, RtdFlag::listVehiclesSeparately, RtdFlag::hasTrackColourMain), - .RideModes = EnumsToFlags(RideMode::shopStall), + .rideModes = { RideMode::shopStall }, .DefaultMode = RideMode::shopStall, .Naming = { STR_RIDE_NAME_FOOD_STALL, STR_RIDE_DESCRIPTION_FOOD_STALL }, .NameConvention = { RideComponentType::car, RideComponentType::building, RideComponentType::station }, diff --git a/src/openrct2/ride/rtd/shops/InformationKiosk.h b/src/openrct2/ride/rtd/shops/InformationKiosk.h index 768b17bffb..2822da3c5b 100644 --- a/src/openrct2/ride/rtd/shops/InformationKiosk.h +++ b/src/openrct2/ride/rtd/shops/InformationKiosk.h @@ -30,7 +30,7 @@ constexpr RideTypeDescriptor kInformationKioskRTD = RtdFlag::cannotHaveGaps, RtdFlag::noTestMode, RtdFlag::noVehicles, RtdFlag::isShopOrFacility, RtdFlag::noWallsAroundTrack, RtdFlag::isFlatRide, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::shopStall), + .rideModes = { RideMode::shopStall }, .DefaultMode = RideMode::shopStall, .Naming = { STR_RIDE_NAME_INFORMATION_KIOSK, STR_RIDE_DESCRIPTION_INFORMATION_KIOSK }, .NameConvention = { RideComponentType::car, RideComponentType::building, RideComponentType::station }, diff --git a/src/openrct2/ride/rtd/shops/Shop.h b/src/openrct2/ride/rtd/shops/Shop.h index dce35ec61c..72889eb544 100644 --- a/src/openrct2/ride/rtd/shops/Shop.h +++ b/src/openrct2/ride/rtd/shops/Shop.h @@ -30,7 +30,7 @@ constexpr RideTypeDescriptor kShopRTD = RtdFlag::cannotHaveGaps, RtdFlag::noTestMode, RtdFlag::noVehicles, RtdFlag::isShopOrFacility, RtdFlag::noWallsAroundTrack, RtdFlag::isFlatRide, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::shopStall), + .rideModes = { RideMode::shopStall }, .DefaultMode = RideMode::shopStall, .Naming = { STR_RIDE_NAME_SHOP, STR_RIDE_DESCRIPTION_SHOP }, .NameConvention = { RideComponentType::car, RideComponentType::building, RideComponentType::station }, diff --git a/src/openrct2/ride/rtd/shops/Toilets.h b/src/openrct2/ride/rtd/shops/Toilets.h index c3e71c1a03..535aae3b52 100644 --- a/src/openrct2/ride/rtd/shops/Toilets.h +++ b/src/openrct2/ride/rtd/shops/Toilets.h @@ -30,7 +30,7 @@ constexpr RideTypeDescriptor kToiletsRTD = RtdFlag::noVehicles, RtdFlag::isShopOrFacility, RtdFlag::noWallsAroundTrack, RtdFlag::isFlatRide, RtdFlag::guestsShouldGoInsideFacility, RtdFlag::describeAsInside, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::shopStall), + .rideModes = { RideMode::shopStall }, .DefaultMode = RideMode::shopStall, .OperatingSettings = { 4, 4 }, .Naming = { STR_RIDE_NAME_TOILETS, STR_RIDE_DESCRIPTION_TOILETS }, diff --git a/src/openrct2/ride/rtd/thrill/3DCinema.h b/src/openrct2/ride/rtd/thrill/3DCinema.h index 5bed44a125..c78f98e93f 100644 --- a/src/openrct2/ride/rtd/thrill/3DCinema.h +++ b/src/openrct2/ride/rtd/thrill/3DCinema.h @@ -32,7 +32,7 @@ constexpr RideTypeDescriptor kCinemaRTD = RtdFlag::isFlatRide, RtdFlag::describeAsInside, RtdFlag::hasVehicleColours, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::singleSession, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::mouseTails3DFilm, RideMode::stormChasers3DFilm, RideMode::spaceRaiders3DFilm), + .rideModes = { RideMode::mouseTails3DFilm, RideMode::stormChasers3DFilm, RideMode::spaceRaiders3DFilm }, .DefaultMode = RideMode::mouseTails3DFilm, .Naming = { STR_RIDE_NAME_3D_CINEMA, STR_RIDE_DESCRIPTION_3D_CINEMA }, .NameConvention = { RideComponentType::building, RideComponentType::structure, RideComponentType::station }, diff --git a/src/openrct2/ride/rtd/thrill/Enterprise.h b/src/openrct2/ride/rtd/thrill/Enterprise.h index b2fb38a190..8e0333c4f3 100644 --- a/src/openrct2/ride/rtd/thrill/Enterprise.h +++ b/src/openrct2/ride/rtd/thrill/Enterprise.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kEnterpriseRTD = RtdFlag::isFlatRide, RtdFlag::guestsWillRideAgain, RtdFlag::hasVehicleColours, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::singleSession, RtdFlag::interestingToLookAt, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::rotation), + .rideModes = { RideMode::rotation }, .DefaultMode = RideMode::rotation, .OperatingSettings = { 10, 20 }, .Naming = { STR_RIDE_NAME_ENTERPRISE, STR_RIDE_DESCRIPTION_ENTERPRISE }, @@ -59,7 +59,7 @@ constexpr RideTypeDescriptor kEnterpriseRTD = 3, false, { - { RatingsModifierType::bonusOperationOption, 0, 1, 16, 16 }, + { RatingsModifierType::bonusOperationOption, 0, 1, 16, 16 }, { RatingsModifierType::bonusScenery, 0, 19521, 0, 0 }, }, }, diff --git a/src/openrct2/ride/rtd/thrill/GoKarts.h b/src/openrct2/ride/rtd/thrill/GoKarts.h index 72167ba60c..721d91f6b8 100644 --- a/src/openrct2/ride/rtd/thrill/GoKarts.h +++ b/src/openrct2/ride/rtd/thrill/GoKarts.h @@ -32,7 +32,7 @@ constexpr RideTypeDescriptor kGoKartsRTD = .flags = RtdFlags(RtdFlag::hasTrackColourMain, RtdFlag::hasTrackColourSupports, RtdFlag::noTestMode, RtdFlag::hasOneStation, RtdFlag::noWallsAroundTrack, RtdFlag::guestsWillRideAgain, RtdFlag::hasVehicleColours, RtdFlag::hasTrack, RtdFlag::supportsMultipleColourSchemes, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::interestingToLookAt), - .RideModes = EnumsToFlags(RideMode::race, RideMode::continuousCircuit), + .rideModes = { RideMode::race, RideMode::continuousCircuit }, .DefaultMode = RideMode::race, .OperatingSettings = { 1, 10 }, .Naming = { STR_RIDE_NAME_GO_KARTS, STR_RIDE_DESCRIPTION_GO_KARTS }, diff --git a/src/openrct2/ride/rtd/thrill/LaunchedFreefall.h b/src/openrct2/ride/rtd/thrill/LaunchedFreefall.h index 512b2c6709..b931aa49d7 100644 --- a/src/openrct2/ride/rtd/thrill/LaunchedFreefall.h +++ b/src/openrct2/ride/rtd/thrill/LaunchedFreefall.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kLaunchedFreefallRTD = RtdFlag::hasDataLogging, RtdFlag::hasLoadOptions, RtdFlag::noWallsAroundTrack, RtdFlag::guestsWillRideAgain, RtdFlag::hasVehicleColours, RtdFlag::hasTrack, RtdFlag::supportsMultipleColourSchemes, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::showInTrackDesigner, RtdFlag::interestingToLookAt), - .RideModes = EnumsToFlags(RideMode::upwardLaunch, RideMode::downwardLaunch), + .rideModes = { RideMode::upwardLaunch, RideMode::downwardLaunch }, .DefaultMode = RideMode::upwardLaunch, .OperatingSettings = { 10, 40 }, .Naming = { STR_RIDE_NAME_LAUNCHED_FREEFALL, STR_RIDE_DESCRIPTION_LAUNCHED_FREEFALL }, diff --git a/src/openrct2/ride/rtd/thrill/MagicCarpet.h b/src/openrct2/ride/rtd/thrill/MagicCarpet.h index 77d9c2cab0..f987bf2d07 100644 --- a/src/openrct2/ride/rtd/thrill/MagicCarpet.h +++ b/src/openrct2/ride/rtd/thrill/MagicCarpet.h @@ -32,7 +32,7 @@ constexpr RideTypeDescriptor kMagicCarpetRTD = RtdFlag::noWallsAroundTrack, RtdFlag::isFlatRide, RtdFlag::hasVehicleColours, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::singleSession, RtdFlag::interestingToLookAt, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::swing), + .rideModes = { RideMode::swing }, .DefaultMode = RideMode::swing, .OperatingSettings = { 7, 15 }, .Naming = { STR_RIDE_NAME_MAGIC_CARPET, STR_RIDE_DESCRIPTION_MAGIC_CARPET }, @@ -64,7 +64,7 @@ constexpr RideTypeDescriptor kMagicCarpetRTD = 0, false, { - { RatingsModifierType::bonusOperationOption, 0, 10, 20, 20 }, + { RatingsModifierType::bonusOperationOption, 0, 10, 20, 20 }, { RatingsModifierType::bonusScenery, 0, 11155, 0, 0 }, }, }, diff --git a/src/openrct2/ride/rtd/thrill/MotionSimulator.h b/src/openrct2/ride/rtd/thrill/MotionSimulator.h index 4974175f67..d52448b7ff 100644 --- a/src/openrct2/ride/rtd/thrill/MotionSimulator.h +++ b/src/openrct2/ride/rtd/thrill/MotionSimulator.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kMotionSimulatorRTD = RtdFlag::isFlatRide, RtdFlag::hasVehicleColours, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::singleSession, RtdFlag::slightlyInterestingToLookAt, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::filmAvengingAviators, RideMode::filmThrillRiders), + .rideModes = { RideMode::filmAvengingAviators, RideMode::filmThrillRiders }, .DefaultMode = RideMode::filmAvengingAviators, .Naming = { STR_RIDE_NAME_MOTION_SIMULATOR, STR_RIDE_DESCRIPTION_MOTION_SIMULATOR }, .NameConvention = { RideComponentType::car, RideComponentType::structure, RideComponentType::station }, diff --git a/src/openrct2/ride/rtd/thrill/RotoDrop.h b/src/openrct2/ride/rtd/thrill/RotoDrop.h index d76e4e2dcd..23d00df2ee 100644 --- a/src/openrct2/ride/rtd/thrill/RotoDrop.h +++ b/src/openrct2/ride/rtd/thrill/RotoDrop.h @@ -32,7 +32,7 @@ constexpr RideTypeDescriptor kRotoDropRTD = RtdFlag::guestsWillRideAgain, RtdFlag::hasVehicleColours, RtdFlag::hasTrack, RtdFlag::supportsMultipleColourSchemes, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::singleSession, RtdFlag::showInTrackDesigner, RtdFlag::interestingToLookAt), - .RideModes = EnumsToFlags(RideMode::freefallDrop), + .rideModes = { RideMode::freefallDrop }, .DefaultMode = RideMode::freefallDrop, .Naming = { STR_RIDE_NAME_ROTO_DROP, STR_RIDE_DESCRIPTION_ROTO_DROP }, .NameConvention = { RideComponentType::car, RideComponentType::track, RideComponentType::station }, diff --git a/src/openrct2/ride/rtd/thrill/SwingingInverterShip.h b/src/openrct2/ride/rtd/thrill/SwingingInverterShip.h index 6658208c12..bfae9502c9 100644 --- a/src/openrct2/ride/rtd/thrill/SwingingInverterShip.h +++ b/src/openrct2/ride/rtd/thrill/SwingingInverterShip.h @@ -32,7 +32,7 @@ constexpr RideTypeDescriptor kSwingingInverterShipRTD = RtdFlag::noWallsAroundTrack, RtdFlag::isFlatRide, RtdFlag::hasVehicleColours, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::singleSession, RtdFlag::interestingToLookAt, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::swing), + .rideModes = { RideMode::swing }, .DefaultMode = RideMode::swing, .OperatingSettings = { 7, 15 }, .Naming = { STR_RIDE_NAME_SWINGING_INVERTER_SHIP, STR_RIDE_DESCRIPTION_SWINGING_INVERTER_SHIP }, @@ -63,7 +63,7 @@ constexpr RideTypeDescriptor kSwingingInverterShipRTD = 0, false, { - { RatingsModifierType::bonusOperationOption, 0, 11, 22, 22 }, + { RatingsModifierType::bonusOperationOption, 0, 11, 22, 22 }, { RatingsModifierType::bonusScenery, 0, 11155, 0, 0 }, }, }, diff --git a/src/openrct2/ride/rtd/thrill/SwingingShip.h b/src/openrct2/ride/rtd/thrill/SwingingShip.h index 04f39256c6..09f3fd0228 100644 --- a/src/openrct2/ride/rtd/thrill/SwingingShip.h +++ b/src/openrct2/ride/rtd/thrill/SwingingShip.h @@ -33,7 +33,7 @@ constexpr RideTypeDescriptor kSwingingShipRTD = RtdFlag::isFlatRide, RtdFlag::hasVehicleColours, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::singleSession, RtdFlag::interestingToLookAt, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::swing), + .rideModes = { RideMode::swing }, .DefaultMode = RideMode::swing, .OperatingSettings = { 7, 25 }, .Naming = { STR_RIDE_NAME_SWINGING_SHIP, STR_RIDE_DESCRIPTION_SWINGING_SHIP }, @@ -63,7 +63,7 @@ constexpr RideTypeDescriptor kSwingingShipRTD = 0, false, { - { RatingsModifierType::bonusOperationOption, 0, 5, 5, 10 }, + { RatingsModifierType::bonusOperationOption, 0, 5, 5, 10 }, { RatingsModifierType::bonusScenery, 0, 16732, 0, 0 }, }, }, diff --git a/src/openrct2/ride/rtd/thrill/TopSpin.h b/src/openrct2/ride/rtd/thrill/TopSpin.h index 5213bb4f4b..34b6350605 100644 --- a/src/openrct2/ride/rtd/thrill/TopSpin.h +++ b/src/openrct2/ride/rtd/thrill/TopSpin.h @@ -32,7 +32,7 @@ constexpr RideTypeDescriptor kTopSpinRTD = RtdFlag::noWallsAroundTrack, RtdFlag::isFlatRide, RtdFlag::hasVehicleColours, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::singleSession, RtdFlag::interestingToLookAt, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::beginners, RideMode::intense, RideMode::berserk), + .rideModes = { RideMode::beginners, RideMode::intense, RideMode::berserk }, .DefaultMode = RideMode::beginners, .Naming = { STR_RIDE_NAME_TOP_SPIN, STR_RIDE_DESCRIPTION_TOP_SPIN }, .NameConvention = { RideComponentType::car, RideComponentType::structure, RideComponentType::station }, diff --git a/src/openrct2/ride/rtd/thrill/Twist.h b/src/openrct2/ride/rtd/thrill/Twist.h index 111823aab8..76aa9566c8 100644 --- a/src/openrct2/ride/rtd/thrill/Twist.h +++ b/src/openrct2/ride/rtd/thrill/Twist.h @@ -30,7 +30,7 @@ constexpr RideTypeDescriptor kTwistRTD = RtdFlag::vehicleIsIntegral, RtdFlag::noWallsAroundTrack, RtdFlag::isFlatRide, RtdFlag::hasVehicleColours, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::singleSession, RtdFlag::interestingToLookAt, RtdFlag::listVehiclesSeparately), - .RideModes = EnumsToFlags(RideMode::rotation), + .rideModes = { RideMode::rotation }, .DefaultMode = RideMode::rotation, .OperatingSettings = { 3, 6, 3 }, .Naming = { STR_RIDE_NAME_TWIST, STR_RIDE_DESCRIPTION_TWIST }, diff --git a/src/openrct2/ride/rtd/transport/Chairlift.h b/src/openrct2/ride/rtd/transport/Chairlift.h index 8ed25204ce..37bda42294 100644 --- a/src/openrct2/ride/rtd/transport/Chairlift.h +++ b/src/openrct2/ride/rtd/transport/Chairlift.h @@ -34,7 +34,7 @@ constexpr RideTypeDescriptor kChairliftRTD = RtdFlag::supportsMultipleColourSchemes, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::allowMoreVehiclesThanStationFits, RtdFlag::isTransportRide, RtdFlag::showInTrackDesigner, RtdFlag::slightlyInterestingToLookAt, RtdFlag::isSuspended, RtdFlag::runningSpeedAffectsReliability), - .RideModes = EnumsToFlags(RideMode::stationToStation), + .rideModes = { RideMode::stationToStation }, .DefaultMode = RideMode::stationToStation, .OperatingSettings = { 1, 4 }, .Naming = { STR_RIDE_NAME_CHAIRLIFT, STR_RIDE_DESCRIPTION_CHAIRLIFT }, diff --git a/src/openrct2/ride/rtd/transport/Lift.h b/src/openrct2/ride/rtd/transport/Lift.h index 0c74aa8d40..58c4daaf03 100644 --- a/src/openrct2/ride/rtd/transport/Lift.h +++ b/src/openrct2/ride/rtd/transport/Lift.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kLiftRTD = RtdFlag::cannotHaveGaps, RtdFlag::hasLoadOptions, RtdFlag::noWallsAroundTrack, RtdFlag::hasVehicleColours, RtdFlag::hasTrack, RtdFlag::allowExtraTowerBases, RtdFlag::supportsMultipleColourSchemes, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::isTransportRide, RtdFlag::showInTrackDesigner), - .RideModes = EnumsToFlags(RideMode::shuttle), + .rideModes = { RideMode::shuttle }, .DefaultMode = RideMode::shuttle, .OperatingSettings = { 5, 27 }, .Naming = { STR_RIDE_NAME_LIFT, STR_RIDE_DESCRIPTION_LIFT }, diff --git a/src/openrct2/ride/rtd/transport/MiniatureRailway.h b/src/openrct2/ride/rtd/transport/MiniatureRailway.h index aa28a5f19f..b23c2a32cf 100644 --- a/src/openrct2/ride/rtd/transport/MiniatureRailway.h +++ b/src/openrct2/ride/rtd/transport/MiniatureRailway.h @@ -35,7 +35,7 @@ constexpr RideTypeDescriptor kMiniatureRailwayRTD = RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::allowMoreVehiclesThanStationFits, RtdFlag::allowMultipleCircuits, RtdFlag::isTransportRide, RtdFlag::showInTrackDesigner, RtdFlag::supportsLevelCrossings), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::shuttle), + .rideModes = { RideMode::continuousCircuit, RideMode::shuttle }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 27 }, .Naming = { STR_RIDE_NAME_MINIATURE_RAILWAY, STR_RIDE_DESCRIPTION_MINIATURE_RAILWAY }, diff --git a/src/openrct2/ride/rtd/transport/Monorail.h b/src/openrct2/ride/rtd/transport/Monorail.h index 808c05d5e5..e521becef2 100644 --- a/src/openrct2/ride/rtd/transport/Monorail.h +++ b/src/openrct2/ride/rtd/transport/Monorail.h @@ -34,7 +34,7 @@ constexpr RideTypeDescriptor kMonorailRTD = RtdFlag::hasTrack, RtdFlag::supportsMultipleColourSchemes, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::allowMoreVehiclesThanStationFits, RtdFlag::allowMultipleCircuits, RtdFlag::isTransportRide, RtdFlag::showInTrackDesigner), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::shuttle), + .rideModes = { RideMode::continuousCircuit, RideMode::shuttle }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 27 }, .Naming = { STR_RIDE_NAME_MONORAIL, STR_RIDE_DESCRIPTION_MONORAIL }, diff --git a/src/openrct2/ride/rtd/transport/SuspendedMonorail.h b/src/openrct2/ride/rtd/transport/SuspendedMonorail.h index ac6e1ac9cc..8541b72823 100644 --- a/src/openrct2/ride/rtd/transport/SuspendedMonorail.h +++ b/src/openrct2/ride/rtd/transport/SuspendedMonorail.h @@ -35,7 +35,7 @@ constexpr RideTypeDescriptor kSuspendedMonorailRTD = RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::allowMoreVehiclesThanStationFits, RtdFlag::allowMultipleCircuits, RtdFlag::isTransportRide, RtdFlag::showInTrackDesigner, RtdFlag::isSuspended), - .RideModes = EnumsToFlags(RideMode::continuousCircuit, RideMode::shuttle), + .rideModes = { RideMode::continuousCircuit, RideMode::shuttle }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 27 }, .Naming = { STR_RIDE_NAME_SUSPENDED_MONORAIL, STR_RIDE_DESCRIPTION_SUSPENDED_MONORAIL }, diff --git a/src/openrct2/ride/rtd/water/BoatHire.h b/src/openrct2/ride/rtd/water/BoatHire.h index b3b3b5ce0f..eaf3daa0ed 100644 --- a/src/openrct2/ride/rtd/water/BoatHire.h +++ b/src/openrct2/ride/rtd/water/BoatHire.h @@ -31,7 +31,7 @@ constexpr RideTypeDescriptor kBoatHireRTD = .flags = RtdFlags(RtdFlag::hasTrackColourMain, RtdFlag::hasTrackColourSupports, RtdFlag::trackMustBeOnWater, RtdFlag::noTestMode, RtdFlag::hasLoadOptions, RtdFlag::hasVehicleColours, RtdFlag::checkForStalling, RtdFlag::hasTrack, RtdFlag::supportsMultipleColourSchemes, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit), - .RideModes = EnumsToFlags(RideMode::boatHire), + .rideModes = { RideMode::boatHire }, .DefaultMode = RideMode::boatHire, .OperatingSettings = { 5, 18 }, .Naming = { STR_RIDE_NAME_BOAT_HIRE, STR_RIDE_DESCRIPTION_BOAT_HIRE }, diff --git a/src/openrct2/ride/rtd/water/DinghySlide.h b/src/openrct2/ride/rtd/water/DinghySlide.h index afa79cb803..21c0b2134d 100644 --- a/src/openrct2/ride/rtd/water/DinghySlide.h +++ b/src/openrct2/ride/rtd/water/DinghySlide.h @@ -47,7 +47,7 @@ constexpr RideTypeDescriptor kDinghySlideRTD = RtdFlag::checkForStalling, RtdFlag::hasTrack, RtdFlag::supportsMultipleColourSchemes, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::hasAirTime, RtdFlag::showInTrackDesigner, RtdFlag::interestingToLookAt), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 27 }, .Naming = { STR_RIDE_NAME_DINGHY_SLIDE, STR_RIDE_DESCRIPTION_DINGHY_SLIDE }, diff --git a/src/openrct2/ride/rtd/water/LogFlume.h b/src/openrct2/ride/rtd/water/LogFlume.h index 353c4d5212..31ff9e2e00 100644 --- a/src/openrct2/ride/rtd/water/LogFlume.h +++ b/src/openrct2/ride/rtd/water/LogFlume.h @@ -34,7 +34,7 @@ constexpr RideTypeDescriptor kLogFlumeRTD = RtdFlag::supportsMultipleColourSchemes, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::allowMoreVehiclesThanStationFits, RtdFlag::hasAirTime, RtdFlag::showInTrackDesigner, RtdFlag::interestingToLookAt), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 27 }, .Naming = { STR_RIDE_NAME_LOG_FLUME, STR_RIDE_DESCRIPTION_LOG_FLUME }, diff --git a/src/openrct2/ride/rtd/water/RiverRafts.h b/src/openrct2/ride/rtd/water/RiverRafts.h index c08987614a..f150baaad8 100644 --- a/src/openrct2/ride/rtd/water/RiverRafts.h +++ b/src/openrct2/ride/rtd/water/RiverRafts.h @@ -34,7 +34,7 @@ constexpr RideTypeDescriptor kRiverRaftsRTD = RtdFlag::hasTrack, RtdFlag::supportsMultipleColourSchemes, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::allowMoreVehiclesThanStationFits, RtdFlag::showInTrackDesigner, RtdFlag::slightlyInterestingToLookAt), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 27 }, .Naming = { STR_RIDE_NAME_RIVER_RAFTS, STR_RIDE_DESCRIPTION_RIVER_RAFTS }, diff --git a/src/openrct2/ride/rtd/water/RiverRapids.h b/src/openrct2/ride/rtd/water/RiverRapids.h index 2ea1cea3fc..52b34f599f 100644 --- a/src/openrct2/ride/rtd/water/RiverRapids.h +++ b/src/openrct2/ride/rtd/water/RiverRapids.h @@ -35,7 +35,7 @@ constexpr RideTypeDescriptor kRiverRapidsRTD = RtdFlag::hasVehicleColours, RtdFlag::hasTrack, RtdFlag::supportsMultipleColourSchemes, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::allowMoreVehiclesThanStationFits, RtdFlag::hasAirTime, RtdFlag::showInTrackDesigner, RtdFlag::interestingToLookAt), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 27 }, .Naming = { STR_RIDE_NAME_RIVER_RAPIDS, STR_RIDE_DESCRIPTION_RIVER_RAPIDS }, diff --git a/src/openrct2/ride/rtd/water/SplashBoats.h b/src/openrct2/ride/rtd/water/SplashBoats.h index 6ea6cec2e3..b9997de6e6 100644 --- a/src/openrct2/ride/rtd/water/SplashBoats.h +++ b/src/openrct2/ride/rtd/water/SplashBoats.h @@ -35,7 +35,7 @@ constexpr RideTypeDescriptor kSplashBoatsRTD = RtdFlag::hasTrack, RtdFlag::supportsMultipleColourSchemes, RtdFlag::allowMusic, RtdFlag::hasEntranceAndExit, RtdFlag::allowMoreVehiclesThanStationFits, RtdFlag::hasAirTime, RtdFlag::showInTrackDesigner, RtdFlag::slightlyInterestingToLookAt), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .OperatingSettings = { 5, 27 }, .Naming = { STR_RIDE_NAME_SPLASH_BOATS, STR_RIDE_DESCRIPTION_SPLASH_BOATS }, diff --git a/src/openrct2/ride/rtd/water/SubmarineRide.h b/src/openrct2/ride/rtd/water/SubmarineRide.h index a42065c29b..b9a8227b4f 100644 --- a/src/openrct2/ride/rtd/water/SubmarineRide.h +++ b/src/openrct2/ride/rtd/water/SubmarineRide.h @@ -34,7 +34,7 @@ constexpr RideTypeDescriptor kSubmarineRideRTD = RtdFlag::hasVehicleColours, RtdFlag::hasTrack, RtdFlag::supportsMultipleColourSchemes, RtdFlag::allowMusic, RtdFlag::checkGForces, RtdFlag::hasEntranceAndExit, RtdFlag::allowMoreVehiclesThanStationFits), - .RideModes = EnumsToFlags(RideMode::continuousCircuit), + .rideModes = { RideMode::continuousCircuit }, .DefaultMode = RideMode::continuousCircuit, .Naming = { STR_RIDE_NAME_SUBMARINE_RIDE, STR_RIDE_DESCRIPTION_SUBMARINE_RIDE }, .NameConvention = { RideComponentType::boat, RideComponentType::track, RideComponentType::dockingPlatform }, From fdcda7be5d5d1293092a5e8fc0fe075579b2f283 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 13 Sep 2026 00:40:38 +0200 Subject: [PATCH 041/142] RCT1: create function to get number of additional zero cars --- src/openrct2/rct1/Tables.cpp | 19 +++++++++++++++++++ src/openrct2/rct1/Tables.h | 5 +++++ 2 files changed, 24 insertions(+) diff --git a/src/openrct2/rct1/Tables.cpp b/src/openrct2/rct1/Tables.cpp index aa76cd3624..9f2d4e9c94 100644 --- a/src/openrct2/rct1/Tables.cpp +++ b/src/openrct2/rct1/Tables.cpp @@ -1514,4 +1514,23 @@ namespace OpenRCT2::RCT1 return false; } } + + uint8_t getAdditionalZeroCars(const VehicleType vehicleType) + { + switch (vehicleType) + { + case VehicleType::woodenMineCars: + case VehicleType::woodenMouseCars: + case VehicleType::steelMouseCars: + case VehicleType::sportscars: + case VehicleType::racingCars: + case VehicleType::trucks: + case VehicleType::vintageCars: + case VehicleType::catCars: + case VehicleType::helicopterCars: + return 2; + default: + return 0; + } + } } // namespace OpenRCT2::RCT1 diff --git a/src/openrct2/rct1/Tables.h b/src/openrct2/rct1/Tables.h index 368ec7f5ee..8970b56086 100644 --- a/src/openrct2/rct1/Tables.h +++ b/src/openrct2/rct1/Tables.h @@ -57,4 +57,9 @@ namespace OpenRCT2::RCT1 const std::vector GetSceneryObjects(uint8_t sceneryType); bool VehicleTypeIsReversed(VehicleType vehicleType); + /** + * For some vehicles, OpenRCT2 has added zero cars in order to make them work with scenery doors. + * When setting the number of cars per train, this has to be taken into account. + */ + uint8_t getAdditionalZeroCars(VehicleType vehicleType); } // namespace OpenRCT2::RCT1 From 8eb25bb02f707d8199d988e7a7ea4243ea079363 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 12 Sep 2026 11:28:30 +0200 Subject: [PATCH 042/142] Fix: Some rides in RCT1 saves have a wrong number of cars per train --- distribution/changelog.txt | 1 + src/openrct2/rct1/S4Importer.cpp | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 35acc3588b..4bca23d27e 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -12,6 +12,7 @@ - Fix: [#27084] [Plugin] `PermissionType` for `drag_path_area` is missing. - Fix: [#27087] The ‘Update available’ widget is offset incorrectly. - Fix: [#27093] Pause and fast forward buttons are shown in multiplayer. +- Fix: [#27109] Some rides in RCT1 saves have a wrong number of cars per train. 0.5.5 (2026-09-06) ------------------------------------------------------------------------ diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index aa3a2c1f21..5d8126e1f2 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -935,10 +935,11 @@ namespace OpenRCT2::RCT1 } dst->numTrains = src->numTrains; - dst->numCarsPerTrain = src->numCarsPerTrain + rideEntry->zero_cars; + const auto additionalZeroCars = getAdditionalZeroCars(src->vehicleType); + dst->numCarsPerTrain = src->numCarsPerTrain + additionalZeroCars; dst->proposedNumTrains = src->numTrains; dst->maxTrains = src->maxTrains; - dst->proposedNumCarsPerTrain = src->numCarsPerTrain + rideEntry->zero_cars; + dst->proposedNumCarsPerTrain = src->numCarsPerTrain + additionalZeroCars; auto split = splitCombinedHelicesAndSpecialElements(src->specialTrackElements); dst->numHelices = split.first; dst->specialTrackElements = split.second; From 0dfc546c8b82a646223a4312f611b15d235756e6 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 12 Sep 2026 12:24:12 +0200 Subject: [PATCH 043/142] Fix #21576: RCT1 Wooden wild mouse track designs with 2-car trains are not imported correctly --- distribution/changelog.txt | 1 + src/openrct2/rct1/T4Importer.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 4bca23d27e..e31dd5f6f5 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -5,6 +5,7 @@ - Change: [#27100] Negative G-forces no longer turn red in the stats window and graph when below -2.50. - Fix: [#1514] Wrong capitalisation for strings in the Guest List window. - Fix: [#21320] RCT1 allows more cars per train on some rides than OpenRCT2. +- Fix: [#21576] RCT1 Wooden wild mouse track designs with 2-car trains are not imported correctly. - Fix: [#24457] Yellow is always rendered as third remap in Ride window. - Fix: [#26754] Switching window tabs by touch could crash the game on some Linux builds. - Fix: [#27052] Unnamed rides in RCT2 base and Wacky Worlds scenarios have hardcoded English names. diff --git a/src/openrct2/rct1/T4Importer.cpp b/src/openrct2/rct1/T4Importer.cpp index a90ed82375..e5bc04fd42 100644 --- a/src/openrct2/rct1/T4Importer.cpp +++ b/src/openrct2/rct1/T4Importer.cpp @@ -245,7 +245,8 @@ namespace OpenRCT2::RCT1 td->appearance.stationObjectIdentifier = GetStationIdentifierFromStyle(RCT12_STATION_STYLE_PLAIN); td->operation.departFlags = td4Base.DepartFlags; td->trackAndVehicle.numberOfTrains = td4Base.NumberOfTrains; - td->trackAndVehicle.numberOfCarsPerTrain = td4Base.NumberOfCarsPerTrain; + td->trackAndVehicle.numberOfCarsPerTrain = td4Base.NumberOfCarsPerTrain + + getAdditionalZeroCars(td4Base.VehicleType); td->operation.minWaitingTime = td4Base.MinWaitingTime; td->operation.maxWaitingTime = td4Base.MaxWaitingTime; td->operation.operationSetting = std::min( From b6235baa9ac5ffd359605b86100dc98b4c316b53 Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Sun, 13 Sep 2026 04:06:08 +0000 Subject: [PATCH 044/142] Merge Localisation/master into OpenRCT2/develop --- data/language/ar-EG.txt | 5 ----- data/language/ca-ES.txt | 5 ----- data/language/cs-CZ.txt | 5 ----- data/language/da-DK.txt | 5 ----- data/language/de-DE.txt | 5 ----- data/language/eo-ZZ.txt | 25 ++++++++++++++++++++----- data/language/es-ES.txt | 5 ----- data/language/fi-FI.txt | 5 ----- data/language/fr-FR.txt | 5 ----- data/language/gl-ES.txt | 10 +++++----- data/language/hu-HU.txt | 5 ----- data/language/it-IT.txt | 5 ----- data/language/ja-JP.txt | 5 ----- data/language/ko-KR.txt | 5 ----- data/language/nb-NO.txt | 5 ----- data/language/nl-NL.txt | 25 ++++++++++++++++++++----- data/language/pl-PL.txt | 5 ----- data/language/pt-BR.txt | 5 ----- data/language/ru-RU.txt | 25 ++++++++++++++++++++----- data/language/sv-SE.txt | 5 ----- data/language/tr-TR.txt | 5 ----- data/language/uk-UA.txt | 5 ----- data/language/vi-VN.txt | 5 ----- data/language/zh-CN.txt | 5 ----- data/language/zh-TW.txt | 5 ----- 25 files changed, 65 insertions(+), 125 deletions(-) diff --git a/data/language/ar-EG.txt b/data/language/ar-EG.txt index ced1eedc36..0bfb0a2a84 100644 --- a/data/language/ar-EG.txt +++ b/data/language/ar-EG.txt @@ -1152,7 +1152,6 @@ STR_1816 :Select information type to show in guest list STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}All guests STR_1819 :{WINDOW_COLOUR_2}All guests (summarised) -STR_1820 :{WINDOW_COLOUR_2}Guests {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Guests thinking {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Guests thinking about {POP16}{STRINGID} STR_1823 :Show guests’ thoughts about this ride/attraction @@ -2446,9 +2445,6 @@ STR_5242 :Theme name already exists STR_5243 :Invalid characters used STR_5244 :Themes STR_5245 :Top Toolbar -STR_5246 :Bottom Toolbar -STR_5247 :Track Editor Bottom Toolbar -STR_5248 :Scenario Editor Bottom Toolbar STR_5249 :Title Menu Buttons STR_5250 :Title Exit Button STR_5251 :Title Options Button @@ -3177,7 +3173,6 @@ STR_6137 :OpenRCT2, a free and open source clone of Roller Coaster Tycoon 2. STR_6138 :OpenRCT2 is the work of many authors, a full list can be found in “contributors.md”. For more information, visit http://github.com/OpenRCT2/OpenRCT2 STR_6139 :All product and company names belong to their respective holders. Use of them does not imply any affiliation with or endorsement by them. STR_6140 :سجل التغيير… -STR_6141 :السفليRCT1 شريط ادوات STR_6142 :{WINDOW_COLOUR_2}أسم المسار: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}نوع الرحلة: {BLACK}{STRINGID} STR_6144 :أظهر تأثيرات التراب diff --git a/data/language/ca-ES.txt b/data/language/ca-ES.txt index f7d6bb7af1..0e776d9db2 100644 --- a/data/language/ca-ES.txt +++ b/data/language/ca-ES.txt @@ -1158,7 +1158,6 @@ STR_1816 :Seleccioneu el tipus d’informació per a mostrar en la llista de STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Tots els visitants STR_1819 :{WINDOW_COLOUR_2}Tots els visitants (resum) -STR_1820 :{WINDOW_COLOUR_2}Visitants {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Visitants que pensen {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Visitants pensant en {POP16}{STRINGID} STR_1823 :Mostra els pensaments dels visitants sobre aquesta atracció @@ -2452,9 +2451,6 @@ STR_5242 :Ja existeix un tema amb aquest nom. STR_5243 :S’empren caràcters no vàlids. STR_5244 :Temes STR_5245 :Barra d’eines superior -STR_5246 :Barra d’eines inferior -STR_5247 :Barra d’eines de l’editor de vies inferior -STR_5248 :Barra d’eines de l’editor d’escenaris inferior STR_5249 :Botons del menú principal STR_5250 :Botó del títol de sortida STR_5251 :Botó del títol d’opcions @@ -3183,7 +3179,6 @@ STR_6137 :OpenRCT2, una recreació lliure i de codi obert d’una expansió d STR_6138 :L’OpenRCT2 és obra de molts autors. En trobareu una llista completa amb el botó «Col·laboradors». Per a més informació, visiteu http://github.com/OpenRCT2/OpenRCT2 STR_6139 :Tots els noms de productes i de noms de companyies pertanyen als seus propietaris. L’ús d’aquests noms no n’implica cap tipus d’afiliació o promoció. STR_6140 :Registre de canvis… -STR_6141 :Barra d’eines inferior del RCT1 STR_6142 :{WINDOW_COLOUR_2}Nom de la via: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Tipus d’atracció: {BLACK}{STRINGID} STR_6144 :Mostra el redibuixat diff --git a/data/language/cs-CZ.txt b/data/language/cs-CZ.txt index c3a3c9c362..7354c4d5c5 100644 --- a/data/language/cs-CZ.txt +++ b/data/language/cs-CZ.txt @@ -1160,7 +1160,6 @@ STR_1816 :Vyberte informaci k zobrazení v seznamu návštěvníků STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Všichni návštěvníci STR_1819 :{WINDOW_COLOUR_2}Všichni návštěvníci (sumarizace) -STR_1820 :{WINDOW_COLOUR_2}Návštěvníci {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Návštěvníci myslící si {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Návštěvníci myslící na {POP16}{STRINGID} STR_1823 :Zobrazit myšlenky návštěvníků o této atrakci @@ -2452,9 +2451,6 @@ STR_5242 :Jméno motivu již existuje STR_5243 :Použity neplatné znaky STR_5244 :Motivy STR_5245 :Vrchní nástrojová lišta -STR_5246 :Dolní nástrojová lišta -STR_5247 :Dolní nástrojová lišta editoru tratě -STR_5248 :Dolní nástrojová lišta editoru scénářů STR_5249 :Tlačítka titulního menu STR_5250 :Tlačítko titulního menu pro odchod STR_5251 :Tlačítko titulního menu pro nastavení @@ -3181,7 +3177,6 @@ STR_6137 :OpenRCT2, zdarma dostupný software s otevřeným zdrojovým kódem STR_6138 :OpenRCT2 je dílem mnoha lidí, úplný seznam zobrazíte tlačítkem „Přispěvatelé“. Pro více informací navštivte http://github.com/OpenRCT2/OpenRCT2 STR_6139 :Všechny názvy produktů a společností jsou vlastnictvím jejich příslušných vlastníků. Jejich užití neimplikuje vazbu ani podporu příslušných vlastníků a tohoto projektu. STR_6140 :Seznam změn… -STR_6141 :RCT1 dolní nástrojová lišta STR_6142 :{WINDOW_COLOUR_2}Název trati: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Název atrakce: {BLACK}{STRINGID} STR_6144 :Zvýraznit znevalidované bloky pro vykreslení diff --git a/data/language/da-DK.txt b/data/language/da-DK.txt index 5c40cd2241..391619be14 100644 --- a/data/language/da-DK.txt +++ b/data/language/da-DK.txt @@ -1157,7 +1157,6 @@ STR_1816 :Vælg typen af information der vises i gæste listen STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Alle gæster STR_1819 :{WINDOW_COLOUR_2}Alle gæster (opsummeret) -STR_1820 :{WINDOW_COLOUR_2}Gæster {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Gæster tænker {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Gæster tænker på {POP16}{STRINGID} STR_1823 :Vis gæsters tanker omkring forlystelse/attraktion @@ -2447,9 +2446,6 @@ STR_5242 :Tema navnet findes allerede STR_5243 :Ugyldige karakterer brugt STR_5244 :Temaer STR_5245 :Top værktøjslinje -STR_5246 :Bund værktøjslinje -STR_5247 :Bane redigerings bund værktøjslinje -STR_5248 :Scenarie redigerings bund værktøjslinje STR_5249 :Titelskærm Menu knapper STR_5250 :Titelskærm Afslut knap STR_5251 :Titelskærm indstillings knap @@ -3178,7 +3174,6 @@ STR_6137 :OpenRCT2, en gratis, open source genskabelse af Roller Coaster Tyc STR_6138 :OpenRCT2 er et samarbejde imellem mange forfattere, en komplet liste kan findes under “bidragydere” knappen. Du kan finde flere oplysninger på http://github.com/OpenRCT2/OpenRCT2 STR_6139 :Alle produkt- og firmanavne tilhører deres respektive indehavere. Brug af dem indebærer ikke nogen tilknytning til eller godkendelse af dem. STR_6140 :Ændringslog… -STR_6141 :RCT1 bund værktøjslinje STR_6142 :{WINDOW_COLOUR_2}Spor navn: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Forlystelses type: {BLACK}{STRINGID} STR_6144 :Vis problematiske visualiseringer diff --git a/data/language/de-DE.txt b/data/language/de-DE.txt index 4df772aea5..2fc821d038 100644 --- a/data/language/de-DE.txt +++ b/data/language/de-DE.txt @@ -1158,7 +1158,6 @@ STR_1816 :Informationsart auswählen, die{NEWLINE}in Besucherliste angezeigt{ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Alle Besucher STR_1819 :{WINDOW_COLOUR_2}Alle Besucher (zusammengefasst) -STR_1820 :{WINDOW_COLOUR_2}Besucher {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Besucher denken {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Besucher denken an {POP16}{STRINGID} STR_1823 :Gedanken der Besucher zu dieser{NEWLINE}Attraktion anzeigen @@ -2448,9 +2447,6 @@ STR_5242 :Dieser Themenname existiert bereits STR_5243 :Unzulässige Zeichen benutzt STR_5244 :Themen STR_5245 :Obere Symbolleiste -STR_5246 :Untere Symbolleiste -STR_5247 :Untere Symbolleiste Achterb.-Designer -STR_5248 :Untere Symbolleiste Szenario-Editor STR_5249 :Hauptmenü-Schaltflächen STR_5250 :Hauptmenü-Beenden-Schaltfläche STR_5251 :Hauptmenü-Optionen-Schaltfläche @@ -3175,7 +3171,6 @@ STR_6137 :OpenRCT2, eine freie und quelloffene Neuerschaffung von und Erweite STR_6138 :OpenRCT2 ist das Werk vieler Autoren, eine vollständige Liste kann mit dem „Mitwirkende“-Knopf gefunden werden. Für weitere Informationen besuchen Sie http://github.com/OpenRCT2/OpenRCT2 STR_6139 :Alle Produkt- und Firmennamen sind Eigentum ihrer jeweiligen Inhaber.{NEWLINE}Die Nutzung dieser stellt keine Zugehörigkeit oder Unterstützung dar. STR_6140 :Changelog … -STR_6141 :Untere Symbolleiste im RCT1-Stil STR_6142 :{WINDOW_COLOUR_2}Entwurfsname: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Bahntyp: {BLACK}{STRINGID} STR_6144 :Neu gezeichnete Kacheln markieren diff --git a/data/language/eo-ZZ.txt b/data/language/eo-ZZ.txt index d89e171680..3c4b26cbfc 100644 --- a/data/language/eo-ZZ.txt +++ b/data/language/eo-ZZ.txt @@ -1157,7 +1157,6 @@ STR_1816 :Elekti tipon de informoj por montri en gastlisto STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Ĉiuj gastoj STR_1819 :{WINDOW_COLOUR_2}Ĉiuj gastoj (resumitaj) -STR_1820 :{WINDOW_COLOUR_2}Gastoj {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Gastoj, kiuj pensas {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Gastoj pensantaj pri {POP16}{STRINGID} STR_1823 :Montri pensojn de gastoj pri ĉi tiu atrakcio @@ -2447,9 +2446,6 @@ STR_5242 :Ĉi tiu nomo de temo jam ekzistas STR_5243 :Nevalidaj signoj estis uzitaj STR_5244 :Temoj STR_5245 :Supra ilobreto -STR_5246 :Malsupra ilobreto -STR_5247 :Malsupra ilobreto de trakredaktilo -STR_5248 :Malsupra ilobreto de scenaroredaktilo STR_5249 :Menuo-butonoj de titolozono STR_5250 :Eliri-butono de titolozono STR_5251 :Agordoj-butono de titolozono @@ -3178,7 +3174,6 @@ STR_6137 :OpenRCT2 estas libera kaj malfermitkoda aliformigo kaj kompletigo d STR_6138 :OpenRCT2 estas la verko de multaj aŭtoroj, kompleta listo troviĝas ene de la “Kontribuantoj” butono. Por pli da informaĵoj, vizitu http://github.com/OpenRCT2/OpenRCT2 STR_6139 :Ĉiuj produktonomoj kaj firmnomoj apartenas al siaj respektivaj posedantoj. Uzo de ili ne signifas iun ajn filion kun aŭ endosaĵon de ili. STR_6140 :Ŝanĝoprotokolo… -STR_6141 :RCT1-stila malsupra ilobreto STR_6142 :{WINDOW_COLOUR_2}Trakonomo: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Atrakciotipo: {BLACK}{STRINGID} STR_6144 :Montri senpolurajn bildojn @@ -3829,3 +3824,23 @@ STR_7040 :Adicioj de trotuaro STR_7041 :Panelo de parkinformoj STR_7042 :Panelo de datoinformoj STR_7043 :Ne eblas ŝanĝi altecon de tero ĉi tie… +STR_7044 :Novaĵa rulbendo +STR_7045 :RCT1-stila stata breto +STR_7046 :Stata breto (RCT1-stila) +STR_7047 :Etapa regilo (Trakdesegnilo) +STR_7048 :Etapa regilo (Scenaroredaktilo) +STR_7049 :OpenRCT2 +STR_7050 :Gastoj marŝas +STR_7051 :Gastoj iras al {STRINGID} +STR_7052 :Gastoj vicatendas je {STRINGID} +STR_7053 :Gastoj dronas +STR_7054 :Gastoj sur {STRINGID} +STR_7055 :Gastoj en {STRINGID} +STR_7056 :Gastoj ĉe {STRINGID} +STR_7057 :Gastoj sidas +STR_7058 :Gastoj prenitaj +STR_7059 :Gastoj spektas je {STRINGID} +STR_7060 :Gastoj spektas konstruadon de {STRINGID} +STR_7061 :Gastoj rigardas pejzaĵon +STR_7062 :Gastoj foriras la parkon +STR_7063 :Gastoj spektas novan atrakcion konstruatan diff --git a/data/language/es-ES.txt b/data/language/es-ES.txt index 87e8d5ab06..2e3c4f00be 100644 --- a/data/language/es-ES.txt +++ b/data/language/es-ES.txt @@ -1158,7 +1158,6 @@ STR_1816 :Selecciona el tipo de información a mostrar en la lista de visitan STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Todos los visitantes STR_1819 :{WINDOW_COLOUR_2}Todos los visitantes (agrupados) -STR_1820 :{WINDOW_COLOUR_2}Visitantes {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Visitantes Pensando {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Visitantes Pensando en {POP16}{STRINGID} STR_1823 :Muestra los pensamientos de los visitantes sobre esta atracción @@ -2450,9 +2449,6 @@ STR_5242 :Nombre del tema ya existe STR_5243 :Caracteres no válidos STR_5244 :Temas STR_5245 :Barra de herramientas superior -STR_5246 :Barra de herramientas inferior -STR_5247 :Editor de Vías (barra inferior) -STR_5248 :Editor de Escenarios (barra inferior) STR_5249 :Color de botones del menú STR_5250 :Color del botón salir STR_5251 :Color de botones de opciones @@ -3181,7 +3177,6 @@ STR_6137 :OpenRCT2, juego de código abierto que recrea y expande Roller Coas STR_6138 :OpenRCT2 es el trabajo de muchos autores, una lista completa se puede encontrar a través del botón de "Colaboradores". Para más información visita: http://github.com/OpenRCT2/OpenRCT2 STR_6139 :Todos los nombres de productos y empresas pertenecen a sus respectivos titulares. El uso de ellos no implica ninguna afiliación o respaldo por ellos. STR_6140 :Registro de cambios… -STR_6141 :Barra de herramientas inferior RCT1 STR_6142 :{WINDOW_COLOUR_2}Nombre de vía: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Tipo atracción: {BLACK}{STRINGID} STR_6144 :Mostrar re-dibujado diff --git a/data/language/fi-FI.txt b/data/language/fi-FI.txt index 6ea346622e..450c2acdea 100644 --- a/data/language/fi-FI.txt +++ b/data/language/fi-FI.txt @@ -1157,7 +1157,6 @@ STR_1816 :Valitse kävijälistan näyttämä tietotyyppi STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Kaikki kävijät STR_1819 :{WINDOW_COLOUR_2}Kaikki kävijät (yhteenvetona) -STR_1820 :{WINDOW_COLOUR_2}Kävijät: {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Kävijät, jotka ajattelevat {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Kävijöiden ajatukset kohteesta {POP16}{STRINGID} STR_1823 :Näytä kävijöiden ajatukset tästä laitteesta/kohteesta @@ -2450,9 +2449,6 @@ STR_5242 :Teeman nimi on jo olemassa STR_5243 :Virheellisiä merkkejä käytetty STR_5244 :Teemat STR_5245 :Yläreunan työkalupalkki -STR_5246 :Alareunan työkalupalkki -STR_5247 :Ratamuokkaimen työkalupalkki -STR_5248 :Skenaariomuokkaimen työkalupalkki STR_5249 :Päävalikon painikkeet STR_5250 :Päävalikon lopetuspainike STR_5251 :Päävalikon asetukset-painike @@ -3182,7 +3178,6 @@ STR_6137 :OpenRCT2: ilmainen, avoimen lähdekoodin Roller Coaster Tycoon 2:n STR_6138 :OpenRCT2 on monen eri tekijän yhteistyötä. Lista heidän nimistään löytyy “Osallistujat” -painikkeen takaa. Lisätietoja osoitteessa http://github.com/OpenRCT2/OpenRCT2 STR_6139 :Kaikki tuote- ja yritysnimet kuuluvat kullekin oikeudenomistajalleen. Niiden käyttö ei tarkoita minkäänlaista yhteistyötä tai hyväksyntää. STR_6140 :Muutosloki… -STR_6141 :RCT1:n alapalkkityyli STR_6142 :{WINDOW_COLOUR_2}Radan nimi: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Laitteen tyyppi: {BLACK}{STRINGID} STR_6144 :Näytä likaiset grafiikat diff --git a/data/language/fr-FR.txt b/data/language/fr-FR.txt index e9a1a955b1..d035bcaab5 100644 --- a/data/language/fr-FR.txt +++ b/data/language/fr-FR.txt @@ -1159,7 +1159,6 @@ STR_1816 :Choisir le type d’informations à afficher dans la liste des visi STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Tous les visiteurs STR_1819 :{WINDOW_COLOUR_2}Tous les visiteurs (résumé) -STR_1820 :{WINDOW_COLOUR_2}Visiteurs {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Visiteurs pensant {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Visiteurs pensant à {POP16}{STRINGID} STR_1823 :Voir les opinions des visiteurs sur cette attraction @@ -2453,9 +2452,6 @@ STR_5242 :Ce nom de thème existe déjà STR_5243 :Caractère invalide utilisé STR_5244 :Thèmes STR_5245 :Barre d’outils du haut -STR_5246 :Barre d’outils du bas -STR_5247 :Barre d’outils du bas (éditeur de voies) -STR_5248 :Barre d’outils du bas (éditeur de scénarios) STR_5249 :Boutons de l’écran titre STR_5250 :Bouton Quitter de l’écran titre STR_5251 :Bouton Options de l’écran titre @@ -3184,7 +3180,6 @@ STR_6137 :OpenRCT2, une recréation et amélioration libre et open source de STR_6138 :OpenRCT2 est le fruit du travail de nombreuses personnes, une liste complète est disponible via le bouton {SMALLFONT}Contributions{MEDIUMFONT}. Pour plus d’informations, visitez {SMALLFONT}http://github.com/OpenRCT2/OpenRCT2{MEDIUMFONT} STR_6139 :Tous les noms des produits et entreprises appartiennent à leurs propriétaires respectifs. L’utilisation de ces derniers n’implique pas d’affiliation ou d’approbation par eux. STR_6140 :Journal des changements… -STR_6141 :Barre d’outils RCT1 du bas STR_6142 :{WINDOW_COLOUR_2}Nom du tracé : {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Type d’attraction : {BLACK}{STRINGID} STR_6144 :Afficher les visuels redessinés diff --git a/data/language/gl-ES.txt b/data/language/gl-ES.txt index da1cc0cab9..0c71690d4a 100644 --- a/data/language/gl-ES.txt +++ b/data/language/gl-ES.txt @@ -1158,7 +1158,6 @@ STR_1816 :Seleccione o tipo de información para mostrar na lista de visitant STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Todos os visitantes STR_1819 :{WINDOW_COLOUR_2}Todos os visitantes (resumido) -STR_1820  :{WINDOW_COLOUR_2}Visitantes {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Visitantes pensando {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Visitantes pensando en {POP16}{STRINGID} STR_1823 :Amosa os pensamentos dos visitantes sobre esta atracción @@ -2448,9 +2447,6 @@ STR_5242 :O nome de tema xa existe STR_5243 :Usáronse caracteres non válidos STR_5244 :Temas STR_5245 :Barra de ferramentas superior -STR_5246 :Barra de ferramentas inferior -STR_5247 :Barra de ferramentas inferior do editor de vías -STR_5248 :Barra de ferramentas inferior do editor de escenarios STR_5249 :Botóns do menú principal STR_5250 :Botón de saída do xogo STR_5251 :Botón de opcións do xogo @@ -3179,7 +3175,6 @@ STR_6137 :OpenRCT2, unha recreación libre e de código aberto, así como unh STR_6138 :OpenRCT2 é obra de moitos autores, pódese atopar unha lista completa a través do botón "Colaboradores". Para obter máis información, visite: http://github.com/OpenRCT2/OpenRCT2 STR_6139 :Todos os nomes de produtos e empresas son propiedade dos seus respectivos propietarios. O uso deles non implica ningunha afiliación nin aval por eles. STR_6140 :Rexistro de trocos… -STR_6141 :Barra de ferramentas inferior RCT1 STR_6142 :{WINDOW_COLOUR_2}Nome da vía: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Tipo de atracción: {BLACK}{STRINGID} STR_6144 :Amosar os gráficos sucios @@ -3825,3 +3820,8 @@ STR_7035 :Estilo de tenda STR_7036 :Estilo de vehículo STR_7037 :Modo de funcionamento STR_7038 :Agardar e cargar +STR_7039 :Tipo de atracción +STR_7040 :Adicións de camiños +STR_7041 :Panel de información do parque +STR_7042 :Panel de información da data +STR_7043 :Non se pode modificar a altura do terreo aquí… diff --git a/data/language/hu-HU.txt b/data/language/hu-HU.txt index 16ab1a0b22..7e14f95942 100644 --- a/data/language/hu-HU.txt +++ b/data/language/hu-HU.txt @@ -1157,7 +1157,6 @@ STR_1816 :A vendéglistában megjelenítendő információtípus kiválasztá STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Minden vendég STR_1819 :{WINDOW_COLOUR_2}Minden vendég (összegezve) -STR_1820 :{WINDOW_COLOUR_2}{STRINGID} STR_1821 :{WINDOW_COLOUR_2}Akik ezt gondolják: {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Akik erre gondolnak: {POP16}{STRINGID} STR_1823 :A vendégek gondolatai erről a játékról/épületről @@ -2447,9 +2446,6 @@ STR_5242 :Már létezik ilyen nevű téma STR_5243 :Érvénytelen karaktereket tartalmaz STR_5244 :Témák STR_5245 :Felső eszköztár -STR_5246 :Alsó eszköztár -STR_5247 :Játéktervező alsó eszköztára -STR_5248 :Pályaszerkesztő alsó eszköztára STR_5249 :Főcím menü gombok STR_5250 :Főcím kilépés gomb STR_5251 :Főcím beállítások gomb @@ -3178,7 +3174,6 @@ STR_6137 :OpenRCT2, a RollerCoaster Tycoon 2 ingyenes és nyílt forráskód STR_6138 :Az OpenRCT2 számos szerző munkája, a teljes lista a „Közreműködők” gomb alatt található. További információkért látogass el ide: http://github.com/OpenRCT2/OpenRCT2 STR_6139 :Minden termék- és vállalatnév a vonatkozó tulajdonosok birtokában van. A használatuk nem jelent semmiféle kapcsolatot vagy jóváhagyást a részükről. STR_6140 :Változási napló… -STR_6141 :RCT1 alsó eszköztár STR_6142 :{WINDOW_COLOUR_2}Pálya neve: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Játék típusa: {BLACK}{STRINGID} STR_6144 :Piszkos grafikák mutatása diff --git a/data/language/it-IT.txt b/data/language/it-IT.txt index a20a72bf30..2423e32998 100644 --- a/data/language/it-IT.txt +++ b/data/language/it-IT.txt @@ -1156,7 +1156,6 @@ STR_1816 :Scegli il tipo di informazioni da mostrare nella lista dei visitato STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Tutti i visitatori STR_1819 :{WINDOW_COLOUR_2}Tutti i visitatori (riassunto) -STR_1820 :{WINDOW_COLOUR_2}Visitatori {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Pensiero dei visitatori {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Pensiero dei visitatori su {POP16}{STRINGID} STR_1823 :Mostra i pensieri dei visitatori relativi a quest’attrazione @@ -2450,10 +2449,7 @@ STR_5242 :Un tema con questo nome esiste già STR_5243 :Caratteri non validi STR_5244 :Temi STR_5245 :Barra degli strumenti superiore -STR_5246 :Barra degli strumenti inferiore # TODO from here -STR_5247 :Track Editor Bottom Toolbar -STR_5248 :Scenario Editor Bottom Toolbar STR_5249 :Pulsante Menu Titolo STR_5250 :Pulsante Titolo Uscita STR_5251 :Pulsante Opzioni Titolo @@ -3182,7 +3178,6 @@ STR_6137 :OpenRCT2, un remake con aggiunte gratuito e open-source di Roller C STR_6138 :OpenRCT2 è frutto del lavoro di molti autori, una lista completa si può trovare cliccando il pulsante “Collaboratori”. Per ulteriori informazioni, visitare http://github.com/OpenRCT2/OpenRCT2 STR_6139 :Tutti i nomi di prodotti e aziende appartengono ai rispettivi proprietari. Il loro uso non implica alcuna affiliazione o approvazione da parte di essi. STR_6140 :Storico delle modifiche… -STR_6141 :Barra degli strumenti inferiore alla RCT1 STR_6142 :{WINDOW_COLOUR_2}Nome percorso: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Tipo attrazione: {BLACK}{STRINGID} STR_6144 :Mostra visuali sporche diff --git a/data/language/ja-JP.txt b/data/language/ja-JP.txt index 2018a0da73..8612bf37d0 100644 --- a/data/language/ja-JP.txt +++ b/data/language/ja-JP.txt @@ -1153,7 +1153,6 @@ STR_1816 :来園客のリストで表示したい情報の種類を選択 STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}全てのゲスト STR_1819 :{WINDOW_COLOUR_2}全てのゲスト (要約) -STR_1820 :{WINDOW_COLOUR_2}{STRINGID}のゲスト STR_1821 :{WINDOW_COLOUR_2}{SMALLFONT}{STRINGID}{MEDIUMFONT}を考えるのゲスト STR_1822 :{WINDOW_COLOUR_2}{POP16}{STRINGID}を考えるのゲスト STR_1823 :この乗物/施設についての来園客の感想を表示 @@ -2443,9 +2442,6 @@ STR_5242 :スタイルの名はもう存在します。 STR_5243 :無効な文字が使用されました STR_5244 :スタイル STR_5245 :上のツールバー -STR_5246 :下のツールバー -STR_5247 :トラックエディターの下のツールバー -STR_5248 :シナリオエディターの下のツールバー STR_5249 :タイトルメニューのボタン STR_5250 :タイトルの終了ボタン STR_5251 :タイトルの設定ボタン @@ -3174,7 +3170,6 @@ STR_6137 :OpenRCT2は、RollerCoaster Tycoon 2の無料かつオープンソ STR_6138 :OpenRCT2は多くの著者の作品であり、完全なリストは「contributors.md」にあります。詳細については、https://github.com/OpenRCT2/OpenRCT2 を訪れてください。 STR_6139 :すべての製品名および会社名はそれぞれの権利者に属します。これらの使用は、いかなる提携や承認を示すものではありません。 STR_6140 :変更履歴… -STR_6141 :RCT1の下のツールバー STR_6142 :{WINDOW_COLOUR_2}トラックの名: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}ラウドの名: {BLACK}{STRINGID} STR_6144 :汚いビジュアルを表示する diff --git a/data/language/ko-KR.txt b/data/language/ko-KR.txt index 54d0342f7e..56db254592 100644 --- a/data/language/ko-KR.txt +++ b/data/language/ko-KR.txt @@ -1159,7 +1159,6 @@ STR_1816 :손님 목록에서 보여줄 정보의 종류를 선택하세요 STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}모든 손님 STR_1819 :{WINDOW_COLOUR_2}모든 손님 (항목별 분류) -STR_1820 :{WINDOW_COLOUR_2}{STRINGID} 손님 STR_1821 :{WINDOW_COLOUR_2}{SMALLFONT}{STRINGID}{MEDIUMFONT} 손님 생각 STR_1822 :{WINDOW_COLOUR_2}{POP16}{STRINGID}에 대한 손님 생각 STR_1823 :이 놀이기구/시설에 대한 손님들의 생각을 보여줍니다 @@ -2451,9 +2450,6 @@ STR_5242 :테마 이름이 이미 존재합니다 STR_5243 :사용할 수 없는 문자가 있습니다 STR_5244 :테마 STR_5245 :상단 툴바 -STR_5246 :하단 툴바 -STR_5247 :트랙 에디터 하단 툴바 -STR_5248 :시나리오 에디터 하단 툴바 STR_5249 :타이틀 메뉴 버튼 STR_5250 :타이틀 종료 버튼 STR_5251 :타이틀 설정 버튼 @@ -3181,7 +3177,6 @@ STR_6137 :OpenRCT2 - 롤러코스터 타이쿤 2의 자유 오픈 소스 재 STR_6138 :OpenRCT2는 많은 분들이 참여한 작품입니다. 모든 참여자의 목록은 “기여자” 버튼에서 참고할 수 있습니다. 더 많은 정보를 원하시면 http://github.com/OpenRCT2/OpenRCT2 를 방문해주세요. STR_6139 :모든 제품과 회사 이름은 해당 소유자의 것입니다. 이러한 제품이나 이름의 사용은 그러한 것들에 대한 제휴나 지지를 뜻하지 않습니다. STR_6140 :변경 기록… -STR_6141 :RCT1 하단 툴바 STR_6142 :{WINDOW_COLOUR_2}트랙 이름: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}놀이기구 종류: {BLACK}{STRINGID} STR_6144 :시각적 업데이트 표시 diff --git a/data/language/nb-NO.txt b/data/language/nb-NO.txt index faab004425..bbe32843bd 100644 --- a/data/language/nb-NO.txt +++ b/data/language/nb-NO.txt @@ -1151,7 +1151,6 @@ STR_1816 :Velg type informasjon å vise i gjesteliste STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Alle gjester STR_1819 :{WINDOW_COLOUR_2}Alle gjester (totalt) -STR_1820 :{WINDOW_COLOUR_2}Gjester {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Gjester tenker {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Gjester tenker på {POP16}{STRINGID} STR_1823 :Vis gjesters tanker om denne attraksjonen @@ -2441,9 +2440,6 @@ STR_5242 :Temanavn eksisterer allerede STR_5243 :Ugyldige tegn brukt STR_5244 :Temaer STR_5245 :Øvre Verktøylinje -STR_5246 :Nedre Verktøylinje -STR_5247 :Spor-redigerer Nedre Verktøylinje -STR_5248 :Scenario-redigerer Nedre Verktøylinje STR_5249 :Startskjerm Meny Knapper STR_5250 :Startskjerm Avslutt Knapp STR_5251 :Startskjerm Alternativer Knapp @@ -3172,7 +3168,6 @@ STR_6137 :OpenRCT2, en gratis og åpen-kildekode-klone av RollerCoaster Tycoo STR_6138 :OpenRCT2 er et verk med flere bidragsytere; en full liste finnes i “contributors.md”. For mer informasjon, se https://github.com/OpenRCT2/OpenRCT2 STR_6139 :Alle produkt- og foretaksnavn tilhører deres respektive eiere. Bruk av disse impliserer hverken tilknytning til, eller anbefaling fra deres eiere. STR_6140 :Endringslogg… -STR_6141 :RCT1 nedre verktøylinje STR_6142 :{WINDOW_COLOUR_2}Banenavn: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Attraksjonstype: {BLACK}{STRINGID} STR_6144 :Vis blokkoppdateringer diff --git a/data/language/nl-NL.txt b/data/language/nl-NL.txt index 443f5cafbc..7fd03d929b 100644 --- a/data/language/nl-NL.txt +++ b/data/language/nl-NL.txt @@ -1156,7 +1156,6 @@ STR_1816 :Selecteer het type informatie dat je in de bezoekerslijst wilt zien STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Alle bezoekers STR_1819 :{WINDOW_COLOUR_2}Alle bezoekers (samengevat) -STR_1820 :{WINDOW_COLOUR_2}Bezoekers met status: {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Bezoekers met gedachte: {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Bezoekers met gedachten over {POP16}{STRINGID} STR_1823 :Toon de gedachten van bezoekers over deze attractie @@ -2448,9 +2447,6 @@ STR_5242 :Themanaam bestaat al. STR_5243 :Er zijn ongeldige tekens gebruikt. STR_5244 :Thema’s STR_5245 :Bovenste werkbalk -STR_5246 :Onderste werkbalk -STR_5247 :Onderste werkbalk baanontwerper/beheerder -STR_5248 :Onderste werkbalk scenariobewerker STR_5249 :Menuknoppen titelscherm STR_5250 :Afsluitknop titelscherm STR_5251 :Optiesknop titelscherm @@ -3177,7 +3173,6 @@ STR_6137 :OpenRCT2, een gratis en open source remake van Roller Coaster Tycoo STR_6138 :OpenRCT2 is het werk van velen, de volledige lijst kun je zien door op de knop ‘Deelnemers’ te klikken. Ga naar http://github.com/OpenRCT2/OpenRCT2 voor meer informatie. STR_6139 :Alle product- en bedrijfsnamen zijn eigendom van hun respectieve eigenaren. Het gebruik ervan impliceert geen overeenkomst of goedkeuring. STR_6140 :Wijzigingsoverzicht… -STR_6141 :Onderste werkbalk in RCT1-stijl STR_6142 :{WINDOW_COLOUR_2}Naam ontwerp: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Attractietype: {BLACK}{STRINGID} STR_6144 :Markeer opnieuw te tekenen blokken @@ -3828,3 +3823,23 @@ STR_7040 :Padmeubilair STR_7041 :Parkinfovak STR_7042 :Datum- en weerinfovak STR_7043 :Kan de hoogte van het landschap niet veranderen… +STR_7044 :Nieuwsberichten +STR_7045 :Statusbalk in RCT1-stijl +STR_7046 :Statusbalk (RCT1-stijl) +STR_7047 :Vorige/volgende (Baanontwerper) +STR_7048 :Vorige/volgende (Scenariobewerker) +STR_7049 :OpenRCT2 +STR_7050 :Bezoekers die rondlopen +STR_7051 :Bezoekers op weg naar {STRINGID} +STR_7052 :Bezoekers in de rij voor {STRINGID} +STR_7053 :Bezoekers die verdrinken +STR_7054 :Bezoekers op {STRINGID} +STR_7055 :Bezoekers in {STRINGID} +STR_7056 :Bezoekers bij {STRINGID} +STR_7057 :Bezoekers die zitten +STR_7058 :Bezoekers die zijn opgepakt +STR_7059 :Bezoekers die naar {STRINGID} kijken +STR_7060 :Bezoekers die naar de bouw van {STRINGID} kijken +STR_7061 :Bezoekers die naar het decor kijken +STR_7062 :Bezoekers op weg naar de uitgang +STR_7063 :Bezoekers die naar de bouw van een nieuwe attractie kijken diff --git a/data/language/pl-PL.txt b/data/language/pl-PL.txt index 2c7ec7ae14..f68cd874ed 100644 --- a/data/language/pl-PL.txt +++ b/data/language/pl-PL.txt @@ -1157,7 +1157,6 @@ STR_1816 :Wybierz typ informacji wyświetlany na liście gości STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Wszyscy goście STR_1819 :{WINDOW_COLOUR_2}Wszyscy goście (pogrupowani) -STR_1820 :{WINDOW_COLOUR_2}Goście {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Goście którzy myślą {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Goście myślący o {POP16}{STRINGID} STR_1823 :Pokaż gości myślących o tej atrakcji @@ -2447,9 +2446,6 @@ STR_5242 :Już istnieje taka nazwa motywu STR_5243 :Użyto nieprawidłowego znaku STR_5244 :Motywy STR_5245 :Górny pasek narzędzi -STR_5246 :Dolny pasek narzędzi -STR_5247 :Dolny pasek narzędzi generatora tras -STR_5248 :Dolny pasek narzędzi generatora scenariuszy STR_5249 :Tytuł przycisku menu STR_5250 :Tytuł przycisku wyjścia STR_5251 :Tytuł przycisku opcji @@ -3178,7 +3174,6 @@ STR_6137 :OpenRCT2, darmowe i open-source’owe odtworzenie oraz rozszerzenie STR_6138 :OpenRCT2 to wynik pracy wielu autorów, pełną listę można znaleźć wybierając opcję „Współautorzy”. Po więcej informacji odwiedź: http://github.com/OpenRCT2/OpenRCT2 STR_6139 :Wszystkie nazwy produktów i firm należą do ich właścicieli. Użycie ich nie oznacza powiązania z nimi ani ich poparcia. STR_6140 :Lista zmian… -STR_6141 :Dolny pasek narzędziowy z RCT1 STR_6142 :{WINDOW_COLOUR_2}Nazwa toru: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Typ przejażdżki: {BLACK}{STRINGID} STR_6144 :Pokaż odrysowane kafelki diff --git a/data/language/pt-BR.txt b/data/language/pt-BR.txt index 044b32405d..b815be1d49 100644 --- a/data/language/pt-BR.txt +++ b/data/language/pt-BR.txt @@ -1157,7 +1157,6 @@ STR_1816 :Selecione o tipo de informação para mostrar na lista de visitante STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Todos os visitantes STR_1819 :{WINDOW_COLOUR_2}Todos os visitantes (resumido) -STR_1820 :{WINDOW_COLOUR_2}Visitantes {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Pensamentos dos visitantes {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Visitantes pensam sobre {{POP16}{STRINGID} STR_1823 :Mostrar os pensamentos dos visitantes sobre essa atração @@ -2447,9 +2446,6 @@ STR_5242 :Já existe um tema com este nome STR_5243 :Caracteres inválidos usados STR_5244 :Temas STR_5245 :Barra de Ferramentas Superior -STR_5246 :Barra de Ferramentas Inferior -STR_5247 :Barra Inferior do Editor de Pista -STR_5248 :Barra Inferior do Editor de Cenário STR_5249 :Botões do Menu do Jogo STR_5250 :Botão de Saída do Jogo STR_5251 :Botão de Opções do Jogo @@ -3178,7 +3174,6 @@ STR_6137 :OpenRCT2, uma recriação e expansão grátis e com código aberto STR_6138 :OpenRCT2 é o trabalho de vários autores, a lista completa pode ser encontrada no botão “Contribuidores”. Para mais informações, visite http://github.com/OpenRCT2/OpenRCT2 STR_6139 :Todos os nomes de produtos e de empresas pertencem aos seus respectivos proprietários. O uso deles não implica qualquer afiliação ou aprovação por eles. STR_6140 :Relatório de alterações… -STR_6141 :Barra de ferramentas Inferior do RCT1 STR_6142 :{WINDOW_COLOUR_2}Nome da pista: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Tipo de atração: {BLACK}{STRINGID} STR_6144 :Mostrar sujeira visual diff --git a/data/language/ru-RU.txt b/data/language/ru-RU.txt index becd5555b9..ca7b24f134 100644 --- a/data/language/ru-RU.txt +++ b/data/language/ru-RU.txt @@ -1151,7 +1151,6 @@ STR_1816 :Выберите тип информации для отображ STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Все гости STR_1819 :{WINDOW_COLOUR_2}Гости (в общем) -STR_1820 :{WINDOW_COLOUR_2}Гости {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Гости думают {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Гости думают о {POP16}{STRINGID} STR_1823 :Показать мысли гостей по этому аттракциону @@ -2441,9 +2440,6 @@ STR_5242 :Такое имя парка уже существует STR_5243 :Использованы некорректные символы STR_5244 :Темы STR_5245 :Верхняя панель инструментов -STR_5246 :Нижняя панель инструментов -STR_5247 :Нижняя панель редактора треков -STR_5248 :Нижняя панель редактора сценариев STR_5249 :Кнопки меню на главном экране STR_5250 :Кнопка выхода на главном экране STR_5251 :Кнопка опций на главном экране @@ -3172,7 +3168,6 @@ STR_6137 :OpenRCT2, бесплатная open-source реимлпемента STR_6138 :OpenRCT2 является работой многих авторов, и полный список можно найти по кнопке "Участники". Для дополнительной информации, посетите http://github.com/OpenRCT2/OpenRCT2 STR_6139 :Все имена товаров и компаний принадлежат их обладателям. Их использование не подразумевает поддержку этих правообладателей или наличие каких-либо связей с ними. STR_6140 :Changelog… -STR_6141 :Нижняя панель инструментов RCT1 STR_6142 :{WINDOW_COLOUR_2}Имя трека: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Тип аттр.: {BLACK}{STRINGID} STR_6144 :Показывать грязную графику @@ -3817,3 +3812,23 @@ STR_7040 :Предметы на тропах STR_7041 :Инфо-панель парка STR_7042 :Инфо-панель дат STR_7043 :Нельзя изменить высоту земли здесь… +STR_7044 :Лента новостей +STR_7045 :Стаутсная полоса в стиле RCT1 +STR_7046 :Статусная полоса (стиль RCT1) +STR_7047 :Пошаговое управление (дизайнер треков) +STR_7048 :Пошаговое управление (редактор сценариев) +STR_7049 :OpenRCT2 +STR_7050 :Гуляющие гости +STR_7051 :Гости идущие на {STRINGID} +STR_7052 :Гости в очереди для {STRINGID} +STR_7053 :Тонущие гости +STR_7054 :Гости на {STRINGID} +STR_7055 :Гости в {STRINGID} +STR_7056 :Гости у {STRINGID} +STR_7057 :Сидящие гости +STR_7058 :Поднятые гости +STR_7059 :Гости смотрящие на {STRINGID} +STR_7060 :Гости смотрящие на стройку {STRINGID} +STR_7061 :Гости смотрящие на пейзаж +STR_7062 :Гости уходящие из парка +STR_7063 :Гости смотрящие на строительство новых аттракционов diff --git a/data/language/sv-SE.txt b/data/language/sv-SE.txt index 55793ba760..e2c10b2ea2 100644 --- a/data/language/sv-SE.txt +++ b/data/language/sv-SE.txt @@ -1158,7 +1158,6 @@ STR_1816 :Välj informationstyp som ska visas i besökarlistan STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Alla besökare STR_1819 :{WINDOW_COLOUR_2}Alla besökare (sammanfattat) -STR_1820 :{WINDOW_COLOUR_2}Besökare {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Besökare som tänker {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Besökare som tänker på {POP16}{STRINGID} STR_1823 :Visa besökares tankar om den här åkturen eller attraktionen @@ -2452,9 +2451,6 @@ STR_5242 :Temats namn finns redan STR_5243 :Ogiltiga tecken använda STR_5244 :Teman STR_5245 :Toppens verktygsfält -STR_5246 :Bottens verktygsfält -STR_5247 :Spårredigerarens verktygsfält -STR_5248 :Dekorationsredigerarens verktygsfält STR_5249 :Titelmenyns knappar STR_5250 :Titelradens avsluta-knapp STR_5251 :Titelradens inställningsknapp @@ -3183,7 +3179,6 @@ STR_6137 :OpenRCT2, en gratis klon av Roller Coaster Tycoon 2 med öppen käl STR_6138 :OpenRCT2 är ett samarbete med flera deltagare, en lista med alla deltagare kan hittas i ”contributors.md”. För mer information, besök http://github.com/OpenRCT2/OpenRCT2 STR_6139 :Alla produkter och företagsnamn tillhör deras respektive innehavare och ägare. Användningen av dem är ingen anknytning eller bekräftelse från respektive innehavare. STR_6140 :Ändringslogg… -STR_6141 :RCT1s nedre verktygsfält STR_6142 :{WINDOW_COLOUR_2}Namn: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Typ: {BLACK}{STRINGID} STR_6144 :Visa visuella uppdateringar diff --git a/data/language/tr-TR.txt b/data/language/tr-TR.txt index a1b48c8304..5c320e9de1 100644 --- a/data/language/tr-TR.txt +++ b/data/language/tr-TR.txt @@ -1145,7 +1145,6 @@ STR_1816 :Müşteri bilgisinde{NEWLINE}görmek istediğiniz{NEWLINE}bilgizi s STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Tüm müşteriler STR_1819 :{WINDOW_COLOUR_2}Tüm müşteriler (özetli) -STR_1820 :{WINDOW_COLOUR_2}Müşteri {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Düşünce: {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Müşterilerin {POP16}{STRINGID} hakkında düşündükleri STR_1823 :Müşterilerin bu alet{NEWLINE}üzerine düşünceleri @@ -2435,9 +2434,6 @@ STR_5242 :Bu tema ismi kullanılmakta STR_5243 :Olumsuz harfler/semboller içeriyor STR_5244 :Temalar STR_5245 :Üst araç çubuğu -STR_5246 :Alt araç çubuğu -STR_5247 :Alet Tasarımcısı üst araç çubuğu -STR_5248 :Senaryo Editörü üst araç çubuğu STR_5249 :Ana ekran seçenekleri STR_5250 :Ana ekran oyundan çıkış STR_5251 :Ana ekran seçenekler butonu @@ -3165,7 +3161,6 @@ STR_6137 :OpenRCT2, ücretsiz ve kaynağı açık olan Roller Coaster Tycoon STR_6138 :OpenRCT2 bir çok kişinin yardımı ile oluşturulan bir proje. Tüm kişiler listesi “contributors.md” dosyasında bulunmakta. Daha fazla bilgi için http://github.com/OpenRCT2/OpenRCT2 sayfasına giriniz STR_6139 :Tüm ürün ve şirket isimleri kendi sahiplerine aittir. Bunların kullanımı, onlar tarafından herhangi bir bağlılık veya onaylama anlamına gelmez. STR_6140 :Değişiklikler… -STR_6141 :RCT1 tarzı alt araç cubuğu STR_6142 :{WINDOW_COLOUR_2}Alet ismi: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Alet türü: {BLACK}{STRINGID} STR_6144 :Kullanılan bölümleri göster diff --git a/data/language/uk-UA.txt b/data/language/uk-UA.txt index 569a6e3ff7..7b2bd71b58 100644 --- a/data/language/uk-UA.txt +++ b/data/language/uk-UA.txt @@ -1151,7 +1151,6 @@ STR_1816 :Обрати тип інформації для показу у с STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Усі гості STR_1819 :{WINDOW_COLOUR_2}Усі гості (узагальнено) -STR_1820 :{WINDOW_COLOUR_2}Гості {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Гості думають {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Гості думають про {POP16}{STRINGID} STR_1823 :Показати думки гостей про цей атракціон @@ -2441,9 +2440,6 @@ STR_5242 :Назва теми вже існує STR_5243 :Використано недійсні символи STR_5244 :Теми STR_5245 :Верхня панель інструментів -STR_5246 :Нижня панель інструментів -STR_5247 :Track Editor Bottom Toolbar -STR_5248 :Scenario Editor Bottom Toolbar STR_5249 :Title Menu Buttons STR_5250 :Title Exit Button STR_5251 :Title Options Button @@ -3172,7 +3168,6 @@ STR_6137 :OpenRCT2, безплатне відтворення та розши STR_6138 :OpenRCT2 — це робота багатьох авторів, повний список можна знайти під кнопкою “Учасники”. Для отримання додаткової інформації відвідайте http://github.com/OpenRCT2/OpenRCT2 STR_6139 :Усі назви продуктів і компаній належать відповідним власникам. Їх використання не означає жодної приналежності до них або схвалення ними. STR_6140 :Список змін… -STR_6141 :Нижня панель інструментів RCT1 STR_6142 :{WINDOW_COLOUR_2}Назва доріжки: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Тип атракціона: {BLACK}{STRINGID} STR_6144 :Показувати візуальні ефекти забруднення diff --git a/data/language/vi-VN.txt b/data/language/vi-VN.txt index c884f0a5f0..b2010e282d 100644 --- a/data/language/vi-VN.txt +++ b/data/language/vi-VN.txt @@ -1107,7 +1107,6 @@ STR_1816 :Chọn loại thông tin để hiển thị trong danh sách khách STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}Tất cả khách STR_1819 :{WINDOW_COLOUR_2}Tất cả khách (tóm tắt) -STR_1820 :{WINDOW_COLOUR_2}Khách {STRINGID} STR_1821 :{WINDOW_COLOUR_2}Khách đang nghĩ {SMALLFONT}{STRINGID} STR_1822 :{WINDOW_COLOUR_2}Khách đang nghĩ về {POP16}{STRINGID} STR_1823 :Hiển thị suy nghĩ của khách về trò chơi/điểm tham quan này @@ -2393,9 +2392,6 @@ STR_5242 :Tên chủ đề đã tồn tại STR_5243 :Ký tự không hợp lệ đã sử dụng STR_5244 :Chủ đề STR_5245 :Thanh công cụ trên cùng -STR_5246 :Thanh công cụ dưới cùng -STR_5247 :Thanh công cụ dưới cùng của trình chỉnh sửa đường ray -STR_5248 :Thanh công cụ dưới cùng của trình chỉnh sửa kịch bản STR_5249 :Nút menu tiêu đề STR_5250 :Nút thoát tiêu đề STR_5251 :Nút tùy chọn tiêu đề @@ -3120,7 +3116,6 @@ STR_6137 :OpenRCT2, một bản tạo lại và mở rộng miễn phí và m STR_6138 :OpenRCT2 là tác phẩm của nhiều tác giả, danh sách đầy đủ có thể được tìm thấy dưới nút “Contributors”. Để biết thêm thông tin, hãy truy cập http://github.com/OpenRCT2/OpenRCT2 STR_6139 :Tất cả tên sản phẩm và công ty thuộc về chủ sở hữu tương ứng của họ. Việc sử dụng chúng không ngụ ý bất kỳ mối liên hệ hoặc chứng thực nào của họ. STR_6140 :Nhật ký thay đổi… -STR_6141 :Thanh công cụ dưới cùng của RCT1 STR_6142 :{WINDOW_COLOUR_2}Tên đường ray: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}Loại trò chơi: {BLACK}{STRINGID} STR_6144 :Hiển thị hình ảnh bẩn diff --git a/data/language/zh-CN.txt b/data/language/zh-CN.txt index 92c2312d24..c6e9a9f19c 100644 --- a/data/language/zh-CN.txt +++ b/data/language/zh-CN.txt @@ -1157,7 +1157,6 @@ STR_1816 :选择游客列表中要显示的信息类别 STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}所有游客 STR_1819 :{WINDOW_COLOUR_2}所有游客(汇总) -STR_1820 :{WINDOW_COLOUR_2}{STRINGID}的游客 STR_1821 :{WINDOW_COLOUR_2}在想{STRINGID}的游客 STR_1822 :{WINDOW_COLOUR_2}在想{POP16}{SMALLFONT}{STRINGID}{MEDIUMFONT}的游客 STR_1823 :显示游客对此游乐设施/店铺的想法 @@ -2447,9 +2446,6 @@ STR_5242 :主题名称已使用 STR_5243 :使用了无效字符 STR_5244 :主题 STR_5245 :顶部工具栏 -STR_5246 :底部工具栏 -STR_5247 :轨道编辑器底部工具栏 -STR_5248 :剧情编辑器底部工具栏 STR_5249 :主界面菜单按钮 STR_5250 :主界面退出按钮 STR_5251 :主界面选项按钮 @@ -3178,7 +3174,6 @@ STR_6137 :开源过山车大亨2(OpenRCT2),一款免费且开源的对 STR_6138 :开源过山车大亨2(OpenRCT2)是一款由许多作者共同开发的作品,完整的列表可在上方“贡献者”按钮找到。请访问 http://github.com/OpenRCT2/OpenRCT2 获取更多信息 STR_6139 :所有的产品及公司名称均属其拥有者所有。使用那些名称并不代表本项目与其有任何联系或认可。 STR_6140 :更新日志…… -STR_6141 :过山车大亨1样式的底部工具栏 STR_6142 :{WINDOW_COLOUR_2}轨道名称:{BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}游乐设施类型:{BLACK}{STRINGID} STR_6144 :显示无效块 diff --git a/data/language/zh-TW.txt b/data/language/zh-TW.txt index 28837f2007..44601faffc 100644 --- a/data/language/zh-TW.txt +++ b/data/language/zh-TW.txt @@ -1159,7 +1159,6 @@ STR_1816 :選擇遊客列表中要顯示的資訊類別 STR_1817 :({COMMA32}) STR_1818 :{WINDOW_COLOUR_2}所有遊客 STR_1819 :{WINDOW_COLOUR_2}所有遊客 (總匯) -STR_1820 :{WINDOW_COLOUR_2}{STRINGID}的遊客 STR_1821 :{WINDOW_COLOUR_2}在想{STRINGID}的遊客 STR_1822 :{WINDOW_COLOUR_2}在想{POP16}{SMALLFONT}{STRINGID}{MEDIUMFONT}的遊客 STR_1823 :顯示遊客對此遊樂設施/店面的想法 @@ -2453,9 +2452,6 @@ STR_5242 :主題名稱已經存在 STR_5243 :使用了不適合的字符 STR_5244 :主題 STR_5245 :頂部工具列 -STR_5246 :底部工具列 -STR_5247 :雲霄飛車設計工具的底部工具列 -STR_5248 :劇情編輯工具的底部工具列 STR_5249 :主選單的選單按鈕 STR_5250 :主選單的‘離開遊戲’按鈕 STR_5251 :主選單的‘選項’按鈕 @@ -3183,7 +3179,6 @@ STR_6137 :OpenRCT2, 一個免費及開放原始碼的模擬樂園2擴充及 STR_6138 :OpenRCT2由眾多志願者一起開發, 完整的列表可按下 “貢獻者” 按鈕找到. 請訪問 http://github.com/OpenRCT2/OpenRCT2 以便獲取更多資訊. STR_6139 :所有的產品及公司名稱皆屬其擁有者所有. 使用那些名稱並不暗示或代表本項目與他們有任何聯繫. STR_6140 :更新日誌… -STR_6141 :夢幻遊樂園(RCT1)式的底部工具列 STR_6142 :{WINDOW_COLOUR_2}軌道設計名稱: {BLACK}{STRING} STR_6143 :{WINDOW_COLOUR_2}遊樂設施種類: {BLACK}{STRINGID} STR_6144 :顥示沒有更新的畫面區域 From 612b3cb2aae32865fbcce2729ae9b638c37b548b Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 13 Sep 2026 00:32:48 +0200 Subject: [PATCH 045/142] Fix #27113: Chat button is shown in editor mode --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/TopToolbar.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index e31dd5f6f5..077ad93c06 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -14,6 +14,7 @@ - Fix: [#27087] The ‘Update available’ widget is offset incorrectly. - Fix: [#27093] Pause and fast forward buttons are shown in multiplayer. - Fix: [#27109] Some rides in RCT1 saves have a wrong number of cars per train. +- Fix: [#27113] Chat button is shown in editor mode. 0.5.5 (2026-09-06) ------------------------------------------------------------------------ diff --git a/src/openrct2-ui/windows/TopToolbar.cpp b/src/openrct2-ui/windows/TopToolbar.cpp index fd6944c806..e300d623a0 100644 --- a/src/openrct2-ui/windows/TopToolbar.cpp +++ b/src/openrct2-ui/windows/TopToolbar.cpp @@ -1087,7 +1087,7 @@ namespace OpenRCT2::Ui::Windows auto& config = Config::Get().interface; widgets[WIDX_MUTE].setVisible(config.toolbarShowMute); - widgets[WIDX_CHAT].setVisible(config.toolbarShowChat); + widgets[WIDX_CHAT].setVisible(config.toolbarShowChat && !isInEditorMode()); widgets[WIDX_RESEARCH].setVisible(config.toolbarShowResearch); widgets[WIDX_CHEATS].setVisible(config.toolbarShowCheats); widgets[WIDX_DEBUG].setVisible(Config::Get().general.debuggingTools); From d8345a4d533288967d689d6613c5719a2b637598 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 13 Sep 2026 11:24:59 +0200 Subject: [PATCH 046/142] Add #19754 to changelog --- distribution/changelog.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 077ad93c06..c9b62a12e3 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -4,6 +4,7 @@ - Improved: [#26947] Rain is now drawn next to the bottom info panels (in RCT2 style). - Change: [#27100] Negative G-forces no longer turn red in the stats window and graph when below -2.50. - Fix: [#1514] Wrong capitalisation for strings in the Guest List window. +- Fix: [#19754, #27109] Some rides in RCT1 saves have a wrong number of cars per train. - Fix: [#21320] RCT1 allows more cars per train on some rides than OpenRCT2. - Fix: [#21576] RCT1 Wooden wild mouse track designs with 2-car trains are not imported correctly. - Fix: [#24457] Yellow is always rendered as third remap in Ride window. @@ -13,7 +14,6 @@ - Fix: [#27084] [Plugin] `PermissionType` for `drag_path_area` is missing. - Fix: [#27087] The ‘Update available’ widget is offset incorrectly. - Fix: [#27093] Pause and fast forward buttons are shown in multiplayer. -- Fix: [#27109] Some rides in RCT1 saves have a wrong number of cars per train. - Fix: [#27113] Chat button is shown in editor mode. 0.5.5 (2026-09-06) From eb7b5feab9cbf52cae49059aa28e5871bdf1e10a Mon Sep 17 00:00:00 2001 From: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com> Date: Sun, 13 Sep 2026 14:23:30 +0200 Subject: [PATCH 047/142] Fix #17409: Game defaults to pounds in Canada (#27120) --- distribution/changelog.txt | 1 + src/openrct2/platform/Platform.Common.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index c9b62a12e3..94bfb2535f 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -4,6 +4,7 @@ - Improved: [#26947] Rain is now drawn next to the bottom info panels (in RCT2 style). - Change: [#27100] Negative G-forces no longer turn red in the stats window and graph when below -2.50. - Fix: [#1514] Wrong capitalisation for strings in the Guest List window. +- Fix: [#17409] When reading system settings, non-US dollar currencies are not recognised correctly. - Fix: [#19754, #27109] Some rides in RCT1 saves have a wrong number of cars per train. - Fix: [#21320] RCT1 allows more cars per train on some rides than OpenRCT2. - Fix: [#21576] RCT1 Wooden wild mouse track designs with 2-car trains are not imported correctly. diff --git a/src/openrct2/platform/Platform.Common.cpp b/src/openrct2/platform/Platform.Common.cpp index 45354c48d4..fe6a2ff1b2 100644 --- a/src/openrct2/platform/Platform.Common.cpp +++ b/src/openrct2/platform/Platform.Common.cpp @@ -44,6 +44,14 @@ static constexpr std::array _prohibitedCharacters = { '<', '>', '*', '\\', ':', static constexpr std::array _prohibitedCharacters = { '/' }; #endif +// A lot of countries use a dollar as their currency. Make sure these are mapped to the generic dollar currency +// instead of defaulting to pounds sterling. The US Dollar, Hong Kong Dollar and New Taiwan Dollar are omitted deliberately +// as they do exist in OpenRCT2. +static constexpr std::array kDollarCurrencies = { + "AUD", "BBD", "BMD", "BND", "BSD", "BZD", "CAD", "FJD", "GYD", "JMD", "KID", + "KYD", "LRD", "NAD", "NZD", "SBD", "SGD", "SRD", "TTD", "TVD", "XCD", +}; + namespace OpenRCT2::Platform { CurrencyType GetCurrencyValue(const char* currCode) @@ -61,6 +69,9 @@ namespace OpenRCT2::Platform } } + if (std::ranges::find(kDollarCurrencies, u8string_view(currCode, 3)) != kDollarCurrencies.end()) + return CurrencyType::dollars; + return CurrencyType::pounds; } From 75c12dbe7d091856872da26abb01547cc3a4a0e0 Mon Sep 17 00:00:00 2001 From: Sjoerd de Bruin Date: Sun, 13 Sep 2026 15:21:11 +0200 Subject: [PATCH 048/142] Fix #27070: Gate polled input on window focus (#27078) --- distribution/changelog.txt | 1 + src/openrct2-ui/input/InputManager.cpp | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 94bfb2535f..92b36913fd 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -12,6 +12,7 @@ - Fix: [#26754] Switching window tabs by touch could crash the game on some Linux builds. - Fix: [#27052] Unnamed rides in RCT2 base and Wacky Worlds scenarios have hardcoded English names. - Fix: [#27056] [Plugin] Loading water palettes from plugin does not update the palette correctly. +- Fix: [#27070] The game keeps responding to input while the window is not focused (primarily gamepads). - Fix: [#27084] [Plugin] `PermissionType` for `drag_path_area` is missing. - Fix: [#27087] The ‘Update available’ widget is offset incorrectly. - Fix: [#27093] Pause and fast forward buttons are shown in multiplayer. diff --git a/src/openrct2-ui/input/InputManager.cpp b/src/openrct2-ui/input/InputManager.cpp index 4ce8f86d99..a87e5f2b31 100644 --- a/src/openrct2-ui/input/InputManager.cpp +++ b/src/openrct2-ui/input/InputManager.cpp @@ -141,6 +141,9 @@ void InputManager::processAnalogueInput() _analogueScroll.x = 0; _analogueScroll.y = 0; + if (!ContextHasFocus()) + return; + const int32_t deadzone = Config::Get().general.gamepadDeadzone; const float sensitivity = Config::Get().general.gamepadSensitivity; @@ -448,6 +451,11 @@ void InputManager::processChat(const InputEvent& e) void InputManager::processHoldEvents() { + _viewScroll = { 0, 0 }; + + if (!ContextHasFocus()) + return; + // Get mouse state _mouseState = SDL_GetMouseState(nullptr, nullptr); @@ -458,9 +466,6 @@ void InputManager::processHoldEvents() std::memcpy(_keyboardState.data(), keys, numkeys); // Check view scroll shortcuts - _viewScroll.x = 0; - _viewScroll.y = 0; - if (!hasTextInputFocus()) { auto& shortcutManager = GetShortcutManager(); From 15d4b5e933555913d216f4548f673cd55cfb0579 Mon Sep 17 00:00:00 2001 From: Harry Hopkinson <63599884+Harry-Hopkinson@users.noreply.github.com> Date: Sun, 13 Sep 2026 15:34:55 +0200 Subject: [PATCH 049/142] Remove AddFuncs calls in ScWidget.hpp (#27044) * Remove AddFuncs calls in ScWidget.hpp * Reorder Unregister() --- src/openrct2-ui/scripting/ScWidget.hpp | 132 +++++++++++++-------- src/openrct2-ui/scripting/UiExtensions.cpp | 30 +++++ 2 files changed, 110 insertions(+), 52 deletions(-) diff --git a/src/openrct2-ui/scripting/ScWidget.hpp b/src/openrct2-ui/scripting/ScWidget.hpp index 56da95c5ca..9bef1551b0 100644 --- a/src/openrct2-ui/scripting/ScWidget.hpp +++ b/src/openrct2-ui/scripting/ScWidget.hpp @@ -44,9 +44,6 @@ namespace OpenRCT2::Scripting return img; } - class ScWidget; - extern ScWidget gScWidget; - struct WidgetData { WindowClass _class{}; @@ -54,6 +51,9 @@ namespace OpenRCT2::Scripting WidgetIndex _widgetIndex{}; }; + class ScWidget; + extern ScWidget gScWidget; + class ScWidget : public ScBase { private: @@ -446,7 +446,7 @@ namespace OpenRCT2::Scripting void Register(JSContext* ctx) { - static constexpr JSCFunctionListEntry funcs[] = { + static constexpr JSCFunctionListEntry kFuncs[] = { JS_CGETSET_DEF("window", ScWidget::window_get, nullptr), JS_CGETSET_DEF("name", ScWidget::name_get, ScWidget::name_set), JS_CGETSET_DEF("type", ScWidget::type_get, nullptr), @@ -458,11 +458,11 @@ namespace OpenRCT2::Scripting JS_CGETSET_DEF("isDisabled", ScWidget::isDisabled_get, &ScWidget::isDisabled_set), JS_CGETSET_DEF("isVisible", ScWidget::isVisible_get, &ScWidget::isVisible_set), }; - RegisterBase(ctx, "Widget", Finalize, funcs); + RegisterBase(ctx, "Widget", Finalise, kFuncs); } private: - static void Finalize(JSRuntime* rt, JSValue thisVal) + static void Finalise(JSRuntime* rt, JSValue thisVal) { WidgetData* data = gScWidget.GetOpaque(thisVal); if (data) @@ -541,20 +541,21 @@ namespace OpenRCT2::Scripting } }; + class ScButtonWidget; + extern ScButtonWidget gScButtonWidget; + class ScButtonWidget : public ScWidget { public: - static void AddFuncs(JSContext* ctx, JSValue obj) + void Register(JSContext* ctx) { - // In the future it might be worth properly subclassing the widget type here. - // Not just for this button class but also for all the other widget subclasses. - static constexpr JSCFunctionListEntry funcs[] = { + static constexpr JSCFunctionListEntry kFuncs[] = { JS_CGETSET_DEF("border", ScButtonWidget::border_get, ScButtonWidget::border_set), JS_CGETSET_DEF("isPressed", ScButtonWidget::isPressed_get, ScButtonWidget::isPressed_set), JS_CGETSET_DEF("image", ScButtonWidget::image_get, ScButtonWidget::image_set), JS_CGETSET_DEF("text", ScWidget::text_get, ScWidget::text_set), }; - JS_SetPropertyFunctionList(ctx, obj, funcs, std::size(funcs)); + RegisterDerived(ctx, gScWidget, kFuncs); } private: @@ -637,16 +638,19 @@ namespace OpenRCT2::Scripting } }; + class ScCheckBoxWidget; + extern ScCheckBoxWidget gScCheckBoxWidget; + class ScCheckBoxWidget : public ScWidget { public: - static void AddFuncs(JSContext* ctx, JSValue obj) + void Register(JSContext* ctx) { - static constexpr JSCFunctionListEntry funcs[] = { + static constexpr JSCFunctionListEntry kFuncs[] = { JS_CGETSET_DEF("isChecked", ScCheckBoxWidget::isChecked_get, ScCheckBoxWidget::isChecked_set), JS_CGETSET_DEF("text", ScWidget::text_get, ScWidget::text_set), }; - JS_SetPropertyFunctionList(ctx, obj, funcs, std::size(funcs)); + RegisterDerived(ctx, gScWidget, kFuncs); } private: @@ -675,15 +679,18 @@ namespace OpenRCT2::Scripting } }; + class ScColourPickerWidget; + extern ScColourPickerWidget gScColourPickerWidget; + class ScColourPickerWidget : public ScWidget { public: - static void AddFuncs(JSContext* ctx, JSValue obj) + void Register(JSContext* ctx) { - static constexpr JSCFunctionListEntry funcs[] = { + static constexpr JSCFunctionListEntry kFuncs[] = { JS_CGETSET_DEF("colour", ScColourPickerWidget::colour_get, ScColourPickerWidget::colour_set), }; - JS_SetPropertyFunctionList(ctx, obj, funcs, std::size(funcs)); + RegisterDerived(ctx, gScWidget, kFuncs); } private: @@ -712,17 +719,20 @@ namespace OpenRCT2::Scripting } }; + class ScDropdownWidget; + extern ScDropdownWidget gScDropdownWidget; + class ScDropdownWidget : public ScWidget { public: - static void AddFuncs(JSContext* ctx, JSValue obj) + void Register(JSContext* ctx) { - static constexpr JSCFunctionListEntry funcs[] = { + static constexpr JSCFunctionListEntry kFuncs[] = { JS_CGETSET_DEF("items", ScDropdownWidget::items_get, ScDropdownWidget::items_set), JS_CGETSET_DEF("selectedIndex", ScDropdownWidget::selectedIndex_get, ScDropdownWidget::selectedIndex_set), JS_CGETSET_DEF("text", ScWidget::text_get, ScWidget::text_set), }; - JS_SetPropertyFunctionList(ctx, obj, funcs, std::size(funcs)); + RegisterDerived(ctx, gScWidget, kFuncs); } private: @@ -786,28 +796,34 @@ namespace OpenRCT2::Scripting } }; + class ScGroupBoxWidget; + extern ScGroupBoxWidget gScGroupBoxWidget; + class ScGroupBoxWidget : public ScWidget { public: - static void AddFuncs(JSContext* ctx, JSValue obj) + void Register(JSContext* ctx) { - static constexpr JSCFunctionListEntry funcs[] = { + static constexpr JSCFunctionListEntry kFuncs[] = { JS_CGETSET_DEF("text", ScWidget::text_get, ScWidget::text_set), }; - JS_SetPropertyFunctionList(ctx, obj, funcs, std::size(funcs)); + RegisterDerived(ctx, gScWidget, kFuncs); } }; + class ScLabelWidget; + extern ScLabelWidget gScLabelWidget; + class ScLabelWidget : public ScWidget { public: - static void AddFuncs(JSContext* ctx, JSValue obj) + void Register(JSContext* ctx) { - static constexpr JSCFunctionListEntry funcs[] = { + static constexpr JSCFunctionListEntry kFuncs[] = { JS_CGETSET_DEF("text", ScWidget::text_get, ScWidget::text_set), JS_CGETSET_DEF("textAlign", ScLabelWidget::textAlign_get, ScLabelWidget::textAlign_set), }; - JS_SetPropertyFunctionList(ctx, obj, funcs, std::size(funcs)); + RegisterDerived(ctx, gScWidget, kFuncs); } private: @@ -839,12 +855,16 @@ namespace OpenRCT2::Scripting return JS_UNDEFINED; } }; + + class ScListViewWidget; + extern ScListViewWidget gScListViewWidget; + class ScListViewWidget : public ScWidget { public: - static void AddFuncs(JSContext* ctx, JSValue obj) + void Register(JSContext* ctx) { - static constexpr JSCFunctionListEntry funcs[] = { + static constexpr JSCFunctionListEntry kFuncs[] = { JS_CGETSET_DEF("canSelect", ScListViewWidget::canSelect_get, ScListViewWidget::canSelect_set), JS_CGETSET_DEF("isStriped", ScListViewWidget::isStriped_get, ScListViewWidget::isStriped_set), JS_CGETSET_DEF("scrollbars", ScListViewWidget::scrollbars_get, ScListViewWidget::scrollbars_set), @@ -855,7 +875,7 @@ namespace OpenRCT2::Scripting JS_CGETSET_DEF("columns", ScListViewWidget::columns_get, ScListViewWidget::columns_set), JS_CGETSET_DEF("items", ScListViewWidget::items_get, ScListViewWidget::items_set), }; - JS_SetPropertyFunctionList(ctx, obj, funcs, std::size(funcs)); + RegisterDerived(ctx, gScWidget, kFuncs); } private: @@ -1048,29 +1068,36 @@ namespace OpenRCT2::Scripting return nullptr; } }; + + class ScSpinnerWidget; + extern ScSpinnerWidget gScSpinnerWidget; + class ScSpinnerWidget : public ScWidget { public: - static void AddFuncs(JSContext* ctx, JSValue obj) + void Register(JSContext* ctx) { - static constexpr JSCFunctionListEntry funcs[] = { + static constexpr JSCFunctionListEntry kFuncs[] = { JS_CGETSET_DEF("text", ScWidget::text_get, ScWidget::text_set), }; - JS_SetPropertyFunctionList(ctx, obj, funcs, std::size(funcs)); + RegisterDerived(ctx, gScWidget, kFuncs); } }; + class ScTextBoxWidget; + extern ScTextBoxWidget gScTextBoxWidget; + class ScTextBoxWidget : public ScWidget { public: - static void AddFuncs(JSContext* ctx, JSValue obj) + void Register(JSContext* ctx) { - static constexpr JSCFunctionListEntry funcs[] = { + static constexpr JSCFunctionListEntry kFuncs[] = { JS_CGETSET_DEF("maxLength", ScTextBoxWidget::maxLength_get, ScTextBoxWidget::maxLength_set), JS_CGETSET_DEF("caret", ScTextBoxWidget::caret_get, ScTextBoxWidget::caret_set), JS_CGETSET_DEF("text", ScWidget::text_get, ScWidget::text_set), JS_CFUNC_DEF("focus", 0, ScTextBoxWidget::focus) }; - JS_SetPropertyFunctionList(ctx, obj, funcs, std::size(funcs)); + RegisterDerived(ctx, gScWidget, kFuncs); } private: @@ -1146,15 +1173,18 @@ namespace OpenRCT2::Scripting } }; + class ScViewportWidget; + extern ScViewportWidget gScViewportWidget; + class ScViewportWidget : public ScWidget { public: - static void AddFuncs(JSContext* ctx, JSValue obj) + void Register(JSContext* ctx) { - static constexpr JSCFunctionListEntry funcs[] = { + static constexpr JSCFunctionListEntry kFuncs[] = { JS_CGETSET_DEF("viewport", ScViewportWidget::viewport_get, nullptr), }; - JS_SetPropertyFunctionList(ctx, obj, funcs, std::size(funcs)); + RegisterDerived(ctx, gScWidget, kFuncs); } private: @@ -1176,49 +1206,47 @@ namespace OpenRCT2::Scripting inline JSValue ScWidget::New(JSContext* ctx, WindowBase* w, WidgetIndex widgetIndex) { - JSValue newObj = MakeWithOpaque(ctx, new WidgetData{ w->classification, w->number, widgetIndex }); - // TODO: Adding these functions like this in New() is probably slower than creating a proto for each type in Register() - // and using that. + JSValue widgetProto = GetProto(); switch (w->widgets[widgetIndex].type) { case WidgetType::button: case WidgetType::flatBtn: case WidgetType::imgBtn: case WidgetType::hiddenButton: - ScButtonWidget::AddFuncs(ctx, newObj); + widgetProto = gScButtonWidget.GetProto(); break; case WidgetType::checkbox: - ScCheckBoxWidget::AddFuncs(ctx, newObj); + widgetProto = gScCheckBoxWidget.GetProto(); break; case WidgetType::colourBtn: - ScColourPickerWidget::AddFuncs(ctx, newObj); + widgetProto = gScColourPickerWidget.GetProto(); break; case WidgetType::dropdownMenu: - ScDropdownWidget::AddFuncs(ctx, newObj); + widgetProto = gScDropdownWidget.GetProto(); break; case WidgetType::groupbox: - ScGroupBoxWidget::AddFuncs(ctx, newObj); + widgetProto = gScGroupBoxWidget.GetProto(); break; case WidgetType::label: case WidgetType::labelCentred: - ScLabelWidget::AddFuncs(ctx, newObj); + widgetProto = gScLabelWidget.GetProto(); break; case WidgetType::scroll: - ScListViewWidget::AddFuncs(ctx, newObj); + widgetProto = gScListViewWidget.GetProto(); break; case WidgetType::spinner: - ScSpinnerWidget::AddFuncs(ctx, newObj); + widgetProto = gScSpinnerWidget.GetProto(); break; case WidgetType::textBox: - ScTextBoxWidget::AddFuncs(ctx, newObj); + widgetProto = gScTextBoxWidget.GetProto(); break; case WidgetType::viewport: - ScViewportWidget::AddFuncs(ctx, newObj); + widgetProto = gScViewportWidget.GetProto(); break; default: break; } - return newObj; + return MakeWithOpaqueAndProto(ctx, new WidgetData{ w->classification, w->number, widgetIndex }, widgetProto); } } // namespace OpenRCT2::Scripting diff --git a/src/openrct2-ui/scripting/UiExtensions.cpp b/src/openrct2-ui/scripting/UiExtensions.cpp index 07014b2582..0f6272ed20 100644 --- a/src/openrct2-ui/scripting/UiExtensions.cpp +++ b/src/openrct2-ui/scripting/UiExtensions.cpp @@ -33,6 +33,16 @@ ScUi OpenRCT2::Scripting::gScUi; ScViewport OpenRCT2::Scripting::gScViewport; ScWidget OpenRCT2::Scripting::gScWidget; +ScButtonWidget OpenRCT2::Scripting::gScButtonWidget; +ScCheckBoxWidget OpenRCT2::Scripting::gScCheckBoxWidget; +ScColourPickerWidget OpenRCT2::Scripting::gScColourPickerWidget; +ScDropdownWidget OpenRCT2::Scripting::gScDropdownWidget; +ScGroupBoxWidget OpenRCT2::Scripting::gScGroupBoxWidget; +ScLabelWidget OpenRCT2::Scripting::gScLabelWidget; +ScListViewWidget OpenRCT2::Scripting::gScListViewWidget; +ScSpinnerWidget OpenRCT2::Scripting::gScSpinnerWidget; +ScTextBoxWidget OpenRCT2::Scripting::gScTextBoxWidget; +ScViewportWidget OpenRCT2::Scripting::gScViewportWidget; ScTitleSequence OpenRCT2::Scripting::gScTitleSequence; ScTitleSequenceManager OpenRCT2::Scripting::gScTitleSequenceManager; @@ -59,6 +69,16 @@ void UiScriptExtensions::Extend(ScriptEngine& scriptEngine) gScViewport.Register(ctx); gScWidget.Register(ctx); + gScButtonWidget.Register(ctx); + gScCheckBoxWidget.Register(ctx); + gScColourPickerWidget.Register(ctx); + gScDropdownWidget.Register(ctx); + gScGroupBoxWidget.Register(ctx); + gScLabelWidget.Register(ctx); + gScListViewWidget.Register(ctx); + gScSpinnerWidget.Register(ctx); + gScTextBoxWidget.Register(ctx); + gScViewportWidget.Register(ctx); gScTitleSequence.Register(ctx); gScTitleSequenceManager.Register(ctx); @@ -85,6 +105,16 @@ void UiScriptExtensions::Unregister() gScViewport.Unregister(); gScWidget.Unregister(); + gScButtonWidget.Unregister(); + gScCheckBoxWidget.Unregister(); + gScColourPickerWidget.Unregister(); + gScDropdownWidget.Unregister(); + gScGroupBoxWidget.Unregister(); + gScLabelWidget.Unregister(); + gScListViewWidget.Unregister(); + gScSpinnerWidget.Unregister(); + gScTextBoxWidget.Unregister(); + gScViewportWidget.Unregister(); gScTitleSequence.Unregister(); gScTitleSequenceManager.Unregister(); From 6e73162371abee63aa3169b45f512e1314543dcb Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Mon, 14 Sep 2026 12:42:43 +0000 Subject: [PATCH 050/142] IniReader.hpp: include cstdint /usr/bin/powerpc64le-unknown-linux-musl-g++ -DDOCDIR=\"/usr//usr/share/doc/openrct2-0.5.5\" -DUSE_MMAP -D_FILE_OFFSET_BITS=64 -D__WARN_SUGGEST_FINAL_METHODS__ -D__WARN_SUGGEST_FINAL_TYPES__ -Dlibopenrct2_EXPORTS -I/var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/libopenrct2 -isystem /usr/include/freetype2 -isystem /usr/include/libpng16 -isystem /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2/../thirdparty -O2 -pipe -mcpu=power9 -fgraphite-identity -floop-nest-optimize -ftrivial-auto-var-init=zero -flto=auto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-semantic-interposition -fstrict-overflow -fstrict-aliasing -Wundef -Wmissing-declarations -Winit-self -Wall -Wextra -Wshadow -Wno-unknown-pragmas -Wno-missing-braces -Wno-comment -Wnonnull -Wno-unused-parameter -Wno-attributes -DDEBUG=0 -fno-char8_t -Wno-deprecated-declarations -std=gnu++20 -fPIC -Wsuggest-override -Wduplicated-cond -Wnon-virtual-dtor -Wduplicated-branches -Wrestrict -Wmissing-field-initializers -Wlogical-op -Wold-style-cast -Wunused-const-variable=1 -Wno-clobbered -Wredundant-decls -Wnull-dereference -Wsuggest-final-types -Wsuggest-final-methods -Wignored-qualifiers -Wstrict-overflow=1 -MD -MT CMakeFiles/libopenrct2.dir/src/openrct2/config/IniReader.cpp.o -MF CMakeFiles/libopenrct2.dir/src/openrct2/config/IniReader.cpp.o.d -o CMakeFiles/libopenrct2.dir/src/openrct2/config/IniReader.cpp.o -c /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2/config/IniReader.cpp In file included from /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2/config/IniReader.cpp:10: /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2/config/IniReader.hpp:31:13: error: 'int32_t' does not name a type 31 | virtual int32_t GetInt32(const std::string& name, int32_t defaultValue) const = 0; | ^~~~~~~ /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2/config/IniReader.hpp:14:1: note: 'int32_t' is defined in header ''; this is probably fixable by adding '#include ' 13 | #include +++ |+#include 14 | #include /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2/config/IniReader.hpp:32:13: error: 'int64_t' does not name a type 32 | virtual int64_t GetInt64(const std::string& name, int64_t defaultValue) const = 0; | ^~~~~~~ /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2/config/IniReader.hpp:32:13: note: 'int64_t' is defined in header ''; this is probably fixable by adding '#include ' /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2/config/IniReader.cpp:141:13: error: 'int32_t IniReader::GetInt32(const std::string&, int32_t) const' marked 'override', but does not override 141 | int32_t GetInt32(const std::string& name, int32_t defaultValue) const override | ^~~~~~~~ /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2/config/IniReader.cpp:158:13: error: 'int64_t IniReader::GetInt64(const std::string&, int64_t) const' marked 'override', but does not override 158 | int64_t GetInt64(const std::string& name, int64_t defaultValue) const override | ^~~~~~~~ /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2/config/IniReader.cpp:404:13: error: 'int32_t DefaultIniReader::GetInt32(const std::string&, int32_t) const' marked 'override', but does not override 404 | int32_t GetInt32([[maybe_unused]] const std::string& name, int32_t defaultValue) const override | ^~~~~~~~ /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2/config/IniReader.cpp:409:13: error: 'int64_t DefaultIniReader::GetInt64(const std::string&, int64_t) const' marked 'override', but does not override 409 | int64_t GetInt64([[maybe_unused]] const std::string& name, int64_t defaultValue) const override | ^~~~~~~~ --- src/openrct2/config/IniReader.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openrct2/config/IniReader.hpp b/src/openrct2/config/IniReader.hpp index be1057f050..485f9f4e49 100644 --- a/src/openrct2/config/IniReader.hpp +++ b/src/openrct2/config/IniReader.hpp @@ -9,6 +9,7 @@ #pragma once +#include #include #include From 763603ee68b50026893062009d0c43c6c0fd8ec2 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Mon, 14 Sep 2026 14:55:28 +0200 Subject: [PATCH 051/142] UiContext.h: add missing cstdint /usr/bin/powerpc64le-unknown-linux-musl-g++ -DDOCDIR=\"/usr//usr/share/doc/openrct2-0.5.5\" -DOPENGL_NO_LINK -DUSE_MMAP -D_FILE_OFFSET_BITS=64 -D__WARN_SUGGEST_FINAL_METHODS__ -D__WARN_SUGGEST_FINAL_TYPES__ -I/var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/libopenrct2 -I/var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2-ui/.. -isystem /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2/../thirdparty -isystem /usr/include/SDL2 -isystem /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2-ui/../thirdparty -isystem /usr/include/libpng16 -isystem /usr/include/freetype2 -O2 -pipe -mcpu=power9 -fgraphite-identity -floop-nest-optimize -ftrivial-auto-var-init=zero -flto=auto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-semantic-interposition -fstrict-overflow -fstrict-aliasing -Wundef -Wmissing-declarations -Winit-self -Wall -Wextra -Wshadow -Wno-unknown-pragmas -Wno-missing-braces -Wno-comment -Wnonnull -Wno-unused-parameter -Wno-attributes -DDEBUG=0 -fno-char8_t -Wno-deprecated-declarations -std=gnu++20 -fPIE -Wsuggest-override -Wduplicated-cond -Wnon-virtual-dtor -Wduplicated-branches -Wrestrict -Wmissing-field-initializers -Wlogical-op -Wold-style-cast -Wunused-const-variable=1 -Wno-clobbered -Wredundant-decls -Wnull-dereference -Wsuggest-final-types -Wsuggest-final-methods -Wignored-qualifiers -Wstrict-overflow=1 -D_REENTRANT -MD -MT CMakeFiles/openrct2.dir/src/openrct2-ui/windows/Scenery.cpp.o -MF CMakeFiles/openrct2.dir/src/openrct2-ui/windows/Scenery.cpp.o.d -o CMakeFiles/openrct2.dir/src/openrct2-ui/windows/Scenery.cpp.o -c /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2-ui/windows/Scenery.cpp In file included from /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2-ui/windows/Scenery.cpp:11: /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2-ui/../openrct2-ui/UiContext.h:41:17: error: 'int32_t' does not name a type 41 | virtual int32_t ShowMenuDialog( | ^~~~~~~ /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2-ui/../openrct2-ui/UiContext.h:16:1: note: 'int32_t' is defined in header ''; this is probably fixable by adding '#include ' 15 | #include +++ |+#include 16 | --- src/openrct2-ui/UiContext.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openrct2-ui/UiContext.h b/src/openrct2-ui/UiContext.h index 53e2ac0610..fe5138d505 100644 --- a/src/openrct2-ui/UiContext.h +++ b/src/openrct2-ui/UiContext.h @@ -9,6 +9,7 @@ #pragma once +#include #include #include #include From d4a22a1cbca743ef8f68efe61b2ce75b83cc87a8 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com> Date: Mon, 14 Sep 2026 17:08:13 +0200 Subject: [PATCH 052/142] =?UTF-8?q?Fix=20#20882:=20=E2=80=98Rides=20with?= =?UTF-8?q?=20preservation=20status=E2=80=99=20tab=20does=20not=20show=20a?= =?UTF-8?q?ll=20rides=20(#27123)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/EditorScenarioOptions.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 92b36913fd..a471cd51ff 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -6,6 +6,7 @@ - Fix: [#1514] Wrong capitalisation for strings in the Guest List window. - Fix: [#17409] When reading system settings, non-US dollar currencies are not recognised correctly. - Fix: [#19754, #27109] Some rides in RCT1 saves have a wrong number of cars per train. +- Fix: [#20882] When setting rides with preservation status in the Scenario Editor, some rides are not shown. - Fix: [#21320] RCT1 allows more cars per train on some rides than OpenRCT2. - Fix: [#21576] RCT1 Wooden wild mouse track designs with 2-car trains are not imported correctly. - Fix: [#24457] Yellow is always rendered as third remap in Ride window. diff --git a/src/openrct2-ui/windows/EditorScenarioOptions.cpp b/src/openrct2-ui/windows/EditorScenarioOptions.cpp index 2ad69486fe..a065c0ef9c 100644 --- a/src/openrct2-ui/windows/EditorScenarioOptions.cpp +++ b/src/openrct2-ui/windows/EditorScenarioOptions.cpp @@ -493,7 +493,7 @@ namespace OpenRCT2::Ui::Windows { if (page == WINDOW_EDITOR_SCENARIO_OPTIONS_PAGE_RIDES) { - return RidesOnScrollGetSize(scrollIndex); + return RidesOnScrollGetSize(); } return {}; @@ -2219,10 +2219,10 @@ namespace OpenRCT2::Ui::Windows * * rct2: 0x006724BF */ - ScreenSize RidesOnScrollGetSize(int32_t scrollIndex) + ScreenSize RidesOnScrollGetSize() { - ScreenSize newSize; - newSize.height = static_cast(_rideableRides.size()) * 10; + ScreenSize newSize{}; + newSize.height = static_cast(_rideableRides.size()) * kScrollableRowHeight; return newSize; } @@ -2296,9 +2296,9 @@ namespace OpenRCT2::Ui::Windows for (int32_t i = 0; i < static_cast(_rideableRides.size()); i++) { - int32_t y = i * 12; + int32_t y = i * kScrollableRowHeight; - if (y + 12 < rt.y || y >= rt.y + rt.height) + if (y + kScrollableRowHeight < rt.y || y >= rt.y + rt.height) continue; // Checkbox From 3097225a7182a047c6f801930de97f320f747f00 Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Tue, 15 Sep 2026 04:05:49 +0000 Subject: [PATCH 053/142] Merge Localisation/master into OpenRCT2/develop --- data/language/ko-KR.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/data/language/ko-KR.txt b/data/language/ko-KR.txt index 56db254592..686d6ede2a 100644 --- a/data/language/ko-KR.txt +++ b/data/language/ko-KR.txt @@ -3827,3 +3827,23 @@ STR_7040 :보도 부착물 STR_7041 :공원 정보 패널 STR_7042 :날짜 정보 패널 STR_7043 :이곳의 지형 높이를 변경할 수 없습니다… +STR_7044 :알림 +STR_7045 :RCT1 스타일 상태 표시줄 +STR_7046 :상태 표시줄 (RCT1 스타일) +STR_7047 :단계 이전/다음 (트랙 디자이너) +STR_7048 :단계 이전/다음 (시나리오 편집기) +STR_7049 :OpenRCT2 +STR_7050 :걷는 중인 손님 +STR_7051 :{STRINGID}(으)로 향하는 손님 +STR_7052 :{STRINGID}에서 대기 중인 손님 +STR_7053 :물에 빠진 손님 +STR_7054 :{STRINGID}에 탑승 중인 손님 +STR_7055 :{STRINGID}에 타고 있는 손님 +STR_7056 :{STRINGID}에 있는 손님 +STR_7057 :앉아 있는 손님 +STR_7058 :집게로 집어진 손님 +STR_7059 :{STRINGID}(을)를 보고 있는 손님 +STR_7060 :{STRINGID} 건설을 보고 있는 손님 +STR_7061 :풍경을 보고 있는 손님 +STR_7062 :공원을 떠나는 손님 +STR_7063 :새 놀이기구 건설을 보고 있는 손님 From 955fe5b92a60682a05c3d51215f51733b383058b Mon Sep 17 00:00:00 2001 From: Harry Hopkinson <63599884+Harry-Hopkinson@users.noreply.github.com> Date: Tue, 15 Sep 2026 17:02:47 +0200 Subject: [PATCH 054/142] Refactor activeAwardTypes to FlagHolder (#27145) --- src/openrct2/management/Award.cpp | 97 ++++++++++++++++--------------- 1 file changed, 50 insertions(+), 47 deletions(-) diff --git a/src/openrct2/management/Award.cpp b/src/openrct2/management/Award.cpp index 59cb9c5cc8..75dbdb7ad7 100644 --- a/src/openrct2/management/Award.cpp +++ b/src/openrct2/management/Award.cpp @@ -27,6 +27,8 @@ using namespace OpenRCT2; +using AwardTypes = FlagHolder; + enum class AwardEffect : uint8_t { negative, @@ -42,7 +44,7 @@ struct AwardData_t }; // clang-format off -static constexpr AwardData_t AwardData[] = { +static constexpr AwardData_t kAwardData[] = { { STR_AWARD_MOST_UNTIDY, STR_NEWS_ITEM_AWARD_MOST_UNTIDY, SPR_AWARD_MOST_UNTIDY, AwardEffect::negative }, { STR_AWARD_MOST_TIDY, STR_NEWS_ITEM_MOST_TIDY, SPR_AWARD_MOST_TIDY, AwardEffect::positive }, { STR_AWARD_BEST_ROLLERCOASTERS, STR_NEWS_ITEM_BEST_ROLLERCOASTERS, SPR_AWARD_BEST_ROLLERCOASTERS, AwardEffect::positive }, @@ -65,34 +67,34 @@ static constexpr AwardData_t AwardData[] = { bool AwardIsPositive(AwardType type) { - return AwardData[EnumValue(type)].effect == AwardEffect::positive; + return kAwardData[EnumValue(type)].effect == AwardEffect::positive; } ImageIndex AwardGetSprite(AwardType type) { - return AwardData[EnumValue(type)].sprite; + return kAwardData[EnumValue(type)].sprite; } StringId AwardGetText(AwardType type) { - return AwardData[EnumValue(type)].text; + return kAwardData[EnumValue(type)].text; } StringId AwardGetNews(AwardType type) { - return AwardData[EnumValue(type)].news; + return kAwardData[EnumValue(type)].news; } #pragma region Award checks /** More than 1/16 of the total guests must be thinking untidy thoughts. */ -static bool AwardIsDeservedMostUntidy(GameState_t& gameState, Park::ParkData& park, int32_t activeAwardTypes) +static bool AwardIsDeservedMostUntidy(GameState_t& gameState, Park::ParkData& park, AwardTypes activeAwardTypes) { - if (activeAwardTypes & EnumToFlag(AwardType::mostBeautiful)) + if (activeAwardTypes.has(AwardType::mostBeautiful)) return false; - if (activeAwardTypes & EnumToFlag(AwardType::bestStaff)) + if (activeAwardTypes.has(AwardType::bestStaff)) return false; - if (activeAwardTypes & EnumToFlag(AwardType::mostTidy)) + if (activeAwardTypes.has(AwardType::mostTidy)) return false; uint32_t negativeCount = 0; @@ -116,11 +118,11 @@ static bool AwardIsDeservedMostUntidy(GameState_t& gameState, Park::ParkData& pa } /** More than 1/64 of the total guests must be thinking tidy thoughts and less than 6 guests thinking untidy thoughts. */ -static bool AwardIsDeservedMostTidy(GameState_t& gameState, Park::ParkData& park, int32_t activeAwardTypes) +static bool AwardIsDeservedMostTidy(GameState_t& gameState, Park::ParkData& park, AwardTypes activeAwardTypes) { - if (activeAwardTypes & EnumToFlag(AwardType::mostUntidy)) + if (activeAwardTypes.has(AwardType::mostUntidy)) return false; - if (activeAwardTypes & EnumToFlag(AwardType::mostDisappointing)) + if (activeAwardTypes.has(AwardType::mostDisappointing)) return false; uint32_t positiveCount = 0; @@ -149,7 +151,7 @@ static bool AwardIsDeservedMostTidy(GameState_t& gameState, Park::ParkData& park /** At least 6 open roller coasters. */ static bool AwardIsDeservedBestRollercoasters( - GameState_t& gameState, Park::ParkData& park, [[maybe_unused]] int32_t activeAwardTypes) + GameState_t& gameState, Park::ParkData& park, [[maybe_unused]] AwardTypes activeAwardTypes) { auto rollerCoasters = 0; for (const auto& ride : RideManager(gameState)) @@ -176,12 +178,12 @@ static bool AwardIsDeservedBestRollercoasters( } /** Entrance fee is 0.10 less than half of the total ride value. */ -static bool AwardIsDeservedBestValue(GameState_t& gameState, Park::ParkData& park, int32_t activeAwardTypes) +static bool AwardIsDeservedBestValue(GameState_t& gameState, Park::ParkData& park, AwardTypes activeAwardTypes) { - if (activeAwardTypes & EnumToFlag(AwardType::worstValue)) + if (activeAwardTypes.has(AwardType::worstValue)) return false; - if (activeAwardTypes & EnumToFlag(AwardType::mostDisappointing)) + if (activeAwardTypes.has(AwardType::mostDisappointing)) return false; if (park.flags.has(ParkFlag::noMoney) || !Park::EntranceFeeUnlocked(park)) @@ -197,11 +199,11 @@ static bool AwardIsDeservedBestValue(GameState_t& gameState, Park::ParkData& par } /** More than 1/128 of the total guests must be thinking scenic thoughts and fewer than 16 untidy thoughts. */ -static bool AwardIsDeservedMostBeautiful(GameState_t& gameState, Park::ParkData& park, int32_t activeAwardTypes) +static bool AwardIsDeservedMostBeautiful(GameState_t& gameState, Park::ParkData& park, AwardTypes activeAwardTypes) { - if (activeAwardTypes & EnumToFlag(AwardType::mostUntidy)) + if (activeAwardTypes.has(AwardType::mostUntidy)) return false; - if (activeAwardTypes & EnumToFlag(AwardType::mostDisappointing)) + if (activeAwardTypes.has(AwardType::mostDisappointing)) return false; uint32_t positiveCount = 0; @@ -230,9 +232,9 @@ static bool AwardIsDeservedMostBeautiful(GameState_t& gameState, Park::ParkData& } /** Entrance fee is more than total ride value. */ -static bool AwardIsDeservedWorstValue(GameState_t& gameState, Park::ParkData& park, int32_t activeAwardTypes) +static bool AwardIsDeservedWorstValue(GameState_t& gameState, Park::ParkData& park, AwardTypes activeAwardTypes) { - if (activeAwardTypes & EnumToFlag(AwardType::bestValue)) + if (activeAwardTypes.has(AwardType::bestValue)) return false; if (park.flags.has(ParkFlag::noMoney)) return false; @@ -246,7 +248,7 @@ static bool AwardIsDeservedWorstValue(GameState_t& gameState, Park::ParkData& pa } /** No more than 2 people who think the vandalism is bad and no crashes. */ -static bool AwardIsDeservedSafest(GameState_t& gameState, Park::ParkData& park, [[maybe_unused]] int32_t activeAwardTypes) +static bool AwardIsDeservedSafest(GameState_t& gameState, Park::ParkData& park, [[maybe_unused]] AwardTypes activeAwardTypes) { auto peepsWhoDislikeVandalism = 0; for (auto peep : EntityList()) @@ -275,9 +277,9 @@ static bool AwardIsDeservedSafest(GameState_t& gameState, Park::ParkData& park, } /** All staff types, at least 20 staff, one staff per 32 peeps. */ -static bool AwardIsDeservedBestStaff(GameState_t& gameState, Park::ParkData& park, int32_t activeAwardTypes) +static bool AwardIsDeservedBestStaff(GameState_t& gameState, Park::ParkData& park, AwardTypes activeAwardTypes) { - if (activeAwardTypes & EnumToFlag(AwardType::mostUntidy)) + if (activeAwardTypes.has(AwardType::mostUntidy)) return false; auto staffCount = gameState.entities.getEntityListCount(EntityType::staff); @@ -295,9 +297,9 @@ static bool AwardIsDeservedBestStaff(GameState_t& gameState, Park::ParkData& par } /** At least 7 shops, 4 unique, one shop per 128 guests and no more than 12 hungry guests. */ -static bool AwardIsDeservedBestFood(GameState_t& gameState, Park::ParkData& park, int32_t activeAwardTypes) +static bool AwardIsDeservedBestFood(GameState_t& gameState, Park::ParkData& park, AwardTypes activeAwardTypes) { - if (activeAwardTypes & EnumToFlag(AwardType::worstFood)) + if (activeAwardTypes.has(AwardType::worstFood)) return false; uint32_t shops = 0; @@ -340,9 +342,9 @@ static bool AwardIsDeservedBestFood(GameState_t& gameState, Park::ParkData& park } /** No more than 2 unique shops, less than one shop per 256 guests and more than 15 hungry guests. */ -static bool AwardIsDeservedWorstFood(GameState_t& gameState, Park::ParkData& park, int32_t activeAwardTypes) +static bool AwardIsDeservedWorstFood(GameState_t& gameState, Park::ParkData& park, AwardTypes activeAwardTypes) { - if (activeAwardTypes & EnumToFlag(AwardType::bestFood)) + if (activeAwardTypes.has(AwardType::bestFood)) return false; uint32_t shops = 0; @@ -385,7 +387,8 @@ static bool AwardIsDeservedWorstFood(GameState_t& gameState, Park::ParkData& par } /** At least 4 toilets, 1 toilet per 128 guests and no more than 16 guests who think they need the toilet. */ -static bool AwardIsDeservedBestToilets(GameState_t& gameState, Park::ParkData& park, [[maybe_unused]] int32_t activeAwardTypes) +static bool AwardIsDeservedBestToilets( + GameState_t& gameState, Park::ParkData& park, [[maybe_unused]] AwardTypes activeAwardTypes) { // Count open toilets const auto& rideManager = RideManager(gameState); @@ -417,9 +420,9 @@ static bool AwardIsDeservedBestToilets(GameState_t& gameState, Park::ParkData& p } /** More than half of the rides have satisfaction <= 6 and park rating <= 650. */ -static bool AwardIsDeservedMostDisappointing(GameState_t& gameState, Park::ParkData& park, int32_t activeAwardTypes) +static bool AwardIsDeservedMostDisappointing(GameState_t& gameState, Park::ParkData& park, AwardTypes activeAwardTypes) { - if (activeAwardTypes & EnumToFlag(AwardType::bestValue)) + if (activeAwardTypes.has(AwardType::bestValue)) return false; if (park.rating > 650) return false; @@ -445,7 +448,7 @@ static bool AwardIsDeservedMostDisappointing(GameState_t& gameState, Park::ParkD /** At least 6 open water rides. */ static bool AwardIsDeservedBestWaterRides( - GameState_t& gameState, Park::ParkData& park, [[maybe_unused]] int32_t activeAwardTypes) + GameState_t& gameState, Park::ParkData& park, [[maybe_unused]] AwardTypes activeAwardTypes) { auto waterRides = 0; for (const auto& ride : RideManager(gameState)) @@ -473,9 +476,9 @@ static bool AwardIsDeservedBestWaterRides( } /** At least 6 custom designed rides. */ -static bool AwardIsDeservedBestCustomDesignedRides(GameState_t& gameState, Park::ParkData& park, int32_t activeAwardTypes) +static bool AwardIsDeservedBestCustomDesignedRides(GameState_t& gameState, Park::ParkData& park, AwardTypes activeAwardTypes) { - if (activeAwardTypes & EnumToFlag(AwardType::mostDisappointing)) + if (activeAwardTypes.has(AwardType::mostDisappointing)) return false; auto customDesignedRides = 0; @@ -496,17 +499,17 @@ static bool AwardIsDeservedBestCustomDesignedRides(GameState_t& gameState, Park: return (customDesignedRides >= 6); } -static bool AwardIsDeservedMostDazzlingRideColours(GameState_t& gameState, Park::ParkData& park, int32_t activeAwardTypes) +static bool AwardIsDeservedMostDazzlingRideColours(GameState_t& gameState, Park::ParkData& park, AwardTypes activeAwardTypes) { /** At least 5 colourful rides and more than half of the rides are colourful. */ - static constexpr OpenRCT2::Drawing::Colour dazzling_ride_colours[] = { + static constexpr OpenRCT2::Drawing::Colour kDazzlingRideColours[] = { OpenRCT2::Drawing::Colour::brightPurple, OpenRCT2::Drawing::Colour::brightGreen, OpenRCT2::Drawing::Colour::lightOrange, OpenRCT2::Drawing::Colour::brightPink, }; - if (activeAwardTypes & EnumToFlag(AwardType::mostDisappointing)) + if (activeAwardTypes.has(AwardType::mostDisappointing)) return false; auto countedRides = 0; @@ -519,7 +522,7 @@ static bool AwardIsDeservedMostDazzlingRideColours(GameState_t& gameState, Park: countedRides++; auto mainTrackColour = ride.trackColours[0].main; - for (auto dazzling_ride_colour : dazzling_ride_colours) + for (auto dazzling_ride_colour : kDazzlingRideColours) { if (mainTrackColour == dazzling_ride_colour) { @@ -534,7 +537,7 @@ static bool AwardIsDeservedMostDazzlingRideColours(GameState_t& gameState, Park: /** At least 10 peeps and more than 1/64 of total guests are lost or can't find something. */ static bool AwardIsDeservedMostConfusingLayout( - GameState_t& gameState, Park::ParkData& park, [[maybe_unused]] int32_t activeAwardTypes) + GameState_t& gameState, Park::ParkData& park, [[maybe_unused]] AwardTypes activeAwardTypes) { uint32_t peepsCounted = 0; uint32_t peepsLost = 0; @@ -554,7 +557,7 @@ static bool AwardIsDeservedMostConfusingLayout( /** At least 10 open gentle rides. */ static bool AwardIsDeservedBestGentleRides( - GameState_t& gameState, Park::ParkData& park, [[maybe_unused]] int32_t activeAwardTypes) + GameState_t& gameState, Park::ParkData& park, [[maybe_unused]] AwardTypes activeAwardTypes) { auto gentleRides = 0; for (const auto& ride : RideManager(gameState)) @@ -581,9 +584,9 @@ static bool AwardIsDeservedBestGentleRides( return (gentleRides >= 10); } -using award_deserved_check = bool (*)(GameState_t& gameState, Park::ParkData& park, int32_t); +using award_deserved_check = bool (*)(GameState_t& gameState, Park::ParkData& park, AwardTypes); -static constexpr award_deserved_check _awardChecks[] = { +static constexpr award_deserved_check kAwardChecks[] = { AwardIsDeservedMostUntidy, AwardIsDeservedMostTidy, AwardIsDeservedBestRollercoasters, @@ -603,9 +606,9 @@ static constexpr award_deserved_check _awardChecks[] = { AwardIsDeservedBestGentleRides, }; -static bool AwardIsDeserved(GameState_t& gameState, Park::ParkData& park, AwardType awardType, int32_t activeAwardTypes) +static bool AwardIsDeserved(GameState_t& gameState, Park::ParkData& park, AwardType awardType, AwardTypes activeAwardTypes) { - return _awardChecks[EnumValue(awardType)](gameState, park, activeAwardTypes); + return kAwardChecks[EnumValue(awardType)](gameState, park, activeAwardTypes); } #pragma endregion @@ -658,10 +661,10 @@ void AwardUpdateAll() if (park.flags.has(ParkFlag::parkOpen)) { // Set active award types as flags - int32_t activeAwardTypes = 0; + AwardTypes activeAwardTypes = {}; for (auto& award : currentAwards) { - activeAwardTypes |= (1 << EnumValue(award.type)); + activeAwardTypes.set(award.type); } // Check if there was a free award entry @@ -672,7 +675,7 @@ void AwardUpdateAll() do { awardType = static_cast((((ScenarioRand() & 0xFF) * EnumValue(AwardType::count)) >> 8) & 0xFF); - } while (activeAwardTypes & (1 << EnumValue(awardType))); + } while (activeAwardTypes.has(awardType)); // Check if award is deserved if (AwardIsDeserved(gameState, park, awardType, activeAwardTypes)) From 20b2aad29a8fe870c2d40e89ad96b2e9599b44de Mon Sep 17 00:00:00 2001 From: Harry Hopkinson <63599884+Harry-Hopkinson@users.noreply.github.com> Date: Tue, 15 Sep 2026 17:05:40 +0200 Subject: [PATCH 055/142] Fix #27133: Dropdown and spinner not hidden on creation (#27137) --- distribution/changelog.txt | 1 + src/openrct2-ui/scripting/CustomWindow.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index a471cd51ff..d3fc0f21e8 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -18,6 +18,7 @@ - Fix: [#27087] The ‘Update available’ widget is offset incorrectly. - Fix: [#27093] Pause and fast forward buttons are shown in multiplayer. - Fix: [#27113] Chat button is shown in editor mode. +- Fix: [#27133] [Plugin] Dropdown and spinner are not fully hidden with isVisible on creation. 0.5.5 (2026-09-06) ------------------------------------------------------------------------ diff --git a/src/openrct2-ui/scripting/CustomWindow.cpp b/src/openrct2-ui/scripting/CustomWindow.cpp index b2d774f27a..d1dda74edc 100644 --- a/src/openrct2-ui/scripting/CustomWindow.cpp +++ b/src/openrct2-ui/scripting/CustomWindow.cpp @@ -1041,6 +1041,8 @@ namespace OpenRCT2::Ui::Windows widget.tooltip = kStringIdNone; if (desc.IsDisabled) widget.flags.set(WidgetFlag::isDisabled); + if (!desc.IsVisible) + widget.flags.set(WidgetFlag::isHidden); widgetList.push_back(widget); } else if (desc.Type == "groupbox") @@ -1091,6 +1093,8 @@ namespace OpenRCT2::Ui::Windows widget.tooltip = kStringIdNone; if (desc.IsDisabled) widget.flags.set(WidgetFlag::isDisabled); + if (!desc.IsVisible) + widget.flags.set(WidgetFlag::isHidden); widget.flags.set(WidgetFlag::isHoldable); widgetList.push_back(widget); From cb105f66dd2a71da4226ab6c4be5da1f8a6b30ff Mon Sep 17 00:00:00 2001 From: Harry Hopkinson <63599884+Harry-Hopkinson@users.noreply.github.com> Date: Tue, 15 Sep 2026 19:52:38 +0200 Subject: [PATCH 056/142] Refactor BANNER_ENTRY_FLAG_* to enum class + FlagHolder (#27146) --- src/openrct2-ui/windows/Banner.cpp | 2 +- src/openrct2-ui/windows/Scenery.cpp | 4 ++-- src/openrct2/object/BannerObject.cpp | 6 +++--- src/openrct2/object/BannerSceneryEntry.h | 8 +++++--- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/openrct2-ui/windows/Banner.cpp b/src/openrct2-ui/windows/Banner.cpp index 269c612453..ab43ef83a0 100644 --- a/src/openrct2-ui/windows/Banner.cpp +++ b/src/openrct2-ui/windows/Banner.cpp @@ -276,7 +276,7 @@ namespace OpenRCT2::Ui::Windows } auto* bannerEntry = OpenRCT2::ObjectEntryManager::GetObjectEntry(banner->type); - const bool visible = bannerEntry != nullptr && (bannerEntry->flags & BANNER_ENTRY_FLAG_HAS_PRIMARY_COLOUR); + const bool visible = bannerEntry != nullptr && (bannerEntry->flags.has(BannerEntryFlag::hasPrimaryColour)); widgets[WIDX_MAIN_COLOUR].setVisible(visible); const bool noEntry = banner->flags.has(BannerFlag::noEntry); diff --git a/src/openrct2-ui/windows/Scenery.cpp b/src/openrct2-ui/windows/Scenery.cpp index cc7572df05..7cf1635ab7 100644 --- a/src/openrct2-ui/windows/Scenery.cpp +++ b/src/openrct2-ui/windows/Scenery.cpp @@ -771,7 +771,7 @@ namespace OpenRCT2::Ui::Windows if (tabSelectedScenery.SceneryType == SCENERY_TYPE_BANNER) { auto* bannerEntry = ObjectEntryManager::GetObjectEntry(tabSelectedScenery.EntryIndex); - if (bannerEntry != nullptr && bannerEntry->flags & BANNER_ENTRY_FLAG_HAS_PRIMARY_COLOUR) + if (bannerEntry != nullptr && bannerEntry->flags.has(BannerEntryFlag::hasPrimaryColour)) { widgets[WIDX_SCENERY_PRIMARY_COLOUR_BUTTON].setVisible(); } @@ -2294,7 +2294,7 @@ namespace OpenRCT2::Ui::Windows if (banner != nullptr) { auto* bannerEntry = ObjectEntryManager::GetObjectEntry(banner->type); - if (bannerEntry->flags & BANNER_ENTRY_FLAG_HAS_PRIMARY_COLOUR) + if (bannerEntry->flags.has(BannerEntryFlag::hasPrimaryColour)) { auto repaintScenery = GameActions::BannerSetColourAction( { info.Loc, info.Element->getBaseZ(), info.Element->asBanner()->getPosition() }, diff --git a/src/openrct2/object/BannerObject.cpp b/src/openrct2/object/BannerObject.cpp index 702cd65575..2f82ff07c6 100644 --- a/src/openrct2/object/BannerObject.cpp +++ b/src/openrct2/object/BannerObject.cpp @@ -23,7 +23,7 @@ namespace OpenRCT2 { stream->Seek(6, STREAM_SEEK_CURRENT); _legacyType.scrolling_mode = stream->ReadValue(); - _legacyType.flags = stream->ReadValue(); + _legacyType.flags = stream->ReadValue(); _legacyType.price = stream->ReadValue(); _legacyType.scenery_tab_id = kObjectEntryIndexNull; stream->Seek(2, STREAM_SEEK_CURRENT); @@ -87,10 +87,10 @@ namespace OpenRCT2 { _legacyType.scrolling_mode = Json::GetNumber(properties["scrollingMode"]); _legacyType.price = Json::GetNumber(properties["price"]); - _legacyType.flags = Json::GetFlags( + _legacyType.flags = Json::GetFlagHolder( properties, { - { "hasPrimaryColour", BANNER_ENTRY_FLAG_HAS_PRIMARY_COLOUR }, + { "hasPrimaryColour", BannerEntryFlag::hasPrimaryColour }, }); SetPrimarySceneryGroup(ObjectEntryDescriptor(Json::GetString(properties["sceneryGroup"]))); diff --git a/src/openrct2/object/BannerSceneryEntry.h b/src/openrct2/object/BannerSceneryEntry.h index 520aed1097..3774217da0 100644 --- a/src/openrct2/object/BannerSceneryEntry.h +++ b/src/openrct2/object/BannerSceneryEntry.h @@ -9,16 +9,18 @@ #pragma once +#include "../core/FlagHolder.hpp" #include "../core/Money.hpp" #include "../localisation/StringIdType.h" #include "ObjectTypes.h" namespace OpenRCT2 { - enum + enum class BannerEntryFlag : uint8_t { - BANNER_ENTRY_FLAG_HAS_PRIMARY_COLOUR = (1 << 0), + hasPrimaryColour, }; + using BannerEntryFlags = FlagHolder; struct BannerSceneryEntry { @@ -27,7 +29,7 @@ namespace OpenRCT2 StringId name; uint32_t image; uint8_t scrolling_mode; - uint8_t flags; + BannerEntryFlags flags; money64 price; ObjectEntryIndex scenery_tab_id; }; From d4c2c10f07f811c8a52d201e88b1ad9e4bd10b47 Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Wed, 16 Sep 2026 04:06:00 +0000 Subject: [PATCH 057/142] Merge Localisation/master into OpenRCT2/develop --- data/language/es-ES.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/data/language/es-ES.txt b/data/language/es-ES.txt index 2e3c4f00be..12177f5f86 100644 --- a/data/language/es-ES.txt +++ b/data/language/es-ES.txt @@ -262,7 +262,7 @@ STR_0882 :Cargar Partida STR_0883 :Guardar Partida STR_0884 :Cargar Paisaje STR_0885 :Guardar Paisaje -STR_0887 :Salir del Editor de escenarios +STR_0887 :Salir del Editor de Escenarios STR_0888 :Salir del Diseñador de Vías STR_0889 :Salir del Gestor de Diseños de vías STR_0891 :Tomar captura de pantalla @@ -2286,7 +2286,7 @@ STR_3338 :{BLACK}Recorrido personalizado STR_3339 :{BLACK}{COMMA16} diseño disponible, o recorrido personalizado STR_3340 :{BLACK}{COMMA16} diseños disponibles, o recorrido personalizado STR_3341 :Herramientas de juego -STR_3342 :Editor de escenarios +STR_3342 :Editor de Escenarios STR_3343 :Convertir partida guardada en escenario STR_3344 :Diseñador de Vías STR_3345 :Gestor de Diseños de Vías @@ -3833,3 +3833,9 @@ STR_7040 :Adiciones de los senderos STR_7041 :Panel de información del parque STR_7042 :Panel de información de la fecha STR_7043 :No se puede cambiar la altura del terreno aquí… +STR_7044 :Barra de noticias +STR_7045 :Barra de estado al estilo RCT1 +STR_7046 :Barra de estado (estilo RCT1) +STR_7047 :Control paso a paso (Diseñador de Vías) +STR_7048 :Control paso a paso (Editor de Escenarios) +STR_7049 :OpenRCT2 From d9b55076f40c6debe887368a561dc1db3039a63b Mon Sep 17 00:00:00 2001 From: QwertyChouskie Date: Wed, 16 Sep 2026 08:33:14 -0700 Subject: [PATCH 058/142] [debian/rules] Disable error on another faulty warning (#27150) Should fix https://github.com/OpenRCT2/OpenRCT2/issues/24509 --- debian/rules | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index c8b0f385e2..d78774b4f2 100755 --- a/debian/rules +++ b/debian/rules @@ -13,8 +13,9 @@ BUILDDIR=build_dir # Reference OpenRCT2 bug reports: # https://github.com/OpenRCT2/OpenRCT2/issues/16691 (-Wno-stringop-overflow) # https://github.com/OpenRCT2/OpenRCT2/issues/17371 (-Wno-maybe-uninitialized -Wno-error=null-dereference) -export DEB_CFLAGS_MAINT_APPEND = -Wno-stringop-overflow -Wno-maybe-uninitialized -Wno-error=null-dereference -export DEB_CXXFLAGS_MAINT_APPEND = -Wno-stringop-overflow -Wno-maybe-uninitialized -Wno-error=null-dereference +# https://github.com/OpenRCT2/OpenRCT2/issues/24509 (-Wno-error=free-nonheap-object) +export DEB_CFLAGS_MAINT_APPEND = -Wno-stringop-overflow -Wno-maybe-uninitialized -Wno-error=null-dereference -Wno-error=free-nonheap-object +export DEB_CXXFLAGS_MAINT_APPEND = -Wno-stringop-overflow -Wno-maybe-uninitialized -Wno-error=null-dereference -Wno-error=free-nonheap-object # https://manpages.debian.org/testing/dpkg-dev/dpkg-architecture.1.en.html#Usage_in_debian/rules DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) From d1aa48a12fca7afa1982d16f90a6a4646965a687 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Wed, 16 Sep 2026 17:26:22 +0000 Subject: [PATCH 059/142] MapChangeSizeAction+EditorStepController: properly guard scripting (#27139) /usr/bin/powerpc64le-unknown-linux-musl-g++ -DDOCDIR=\"/usr//usr/share/doc/openrct2-0.5.5\" -DOPENGL_NO_LINK -DUSE_MMAP -D_FILE_OFFSET_BITS=64 -D__WARN_SUGGEST_FINAL_METHODS__ -D__WARN_SUGGEST_FINAL_TYPES__ -I/var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/libopenrct2 -I/var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2-ui/.. -isystem /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2/../thirdparty -isystem /usr/include/SDL2 -isystem /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2-ui/../thirdparty -isystem /usr/include/libpng16 -isystem /usr/include/freetype2 -O2 -pipe -mcpu=power9 -fgraphite-identity -floop-nest-optimize -ftrivial-auto-var-init=zero -flto=auto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-semantic-interposition -fstrict-overflow -fstrict-aliasing -Wundef -Wmissing-declarations -Winit-self -Wall -Wextra -Wshadow -Wno-unknown-pragmas -Wno-missing-braces -Wno-comment -Wnonnull -Wno-unused-parameter -Wno-attributes -DDEBUG=0 -fno-char8_t -Wno-deprecated-declarations -std=gnu++20 -fPIE -Wsuggest-override -Wduplicated-cond -Wnon-virtual-dtor -Wduplicated-branches -Wrestrict -Wmissing-field-initializers -Wlogical-op -Wold-style-cast -Wunused-const-variable=1 -Wno-clobbered -Wredundant-decls -Wnull-dereference -Wsuggest-final-types -Wsuggest-final-methods -Wignored-qualifiers -Wstrict-overflow=1 -D_REENTRANT -MD -MT CMakeFiles/openrct2.dir/src/openrct2-ui/windows/EditorStepController.cpp.o -MF CMakeFiles/openrct2.dir/src/openrct2-ui/windows/EditorStepController.cpp.o.d -o CMakeFiles/openrct2.dir/src/openrct2-ui/windows/EditorStepController.cpp.o -c /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2-ui/windows/EditorStepController.cpp /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2-ui/windows/EditorStepController.cpp: In member function 'void OpenRCT2::Ui::Windows::EditorStepController::drawButtonCaption(OpenRCT2::Drawing::RenderTarget&)': /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2-ui/windows/EditorStepController.cpp:339:28: error: 'STR_EDITOR_STEP_OBJECT_SELECTION' was not declared in this scope 339 | stringId = STR_EDITOR_STEP_OBJECT_SELECTION; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/games-simulation/openrct2-0.5.5/work/OpenRCT2-0.5.5/src/openrct2-ui/windows/EditorStepController.cpp:341:28: error: 'STR_EDITOR_STEP_ROLLERCOASTER_DESIGNER' was not declared in this scope; did you mean 'STR_QUIT_ROLLERCOASTER_DESIGNER'? 341 | stringId = STR_EDITOR_STEP_ROLLERCOASTER_DESIGNER; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | STR_QUIT_ROLLERCOASTER_DESIGNER ninja: build stopped: subcommand failed. --- src/openrct2-ui/windows/EditorStepController.cpp | 1 + src/openrct2/actions/general/MapChangeSizeAction.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/openrct2-ui/windows/EditorStepController.cpp b/src/openrct2-ui/windows/EditorStepController.cpp index 620b3dcd47..9b13c80979 100644 --- a/src/openrct2-ui/windows/EditorStepController.cpp +++ b/src/openrct2-ui/windows/EditorStepController.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include diff --git a/src/openrct2/actions/general/MapChangeSizeAction.cpp b/src/openrct2/actions/general/MapChangeSizeAction.cpp index 5e11e5986c..17de58e49d 100644 --- a/src/openrct2/actions/general/MapChangeSizeAction.cpp +++ b/src/openrct2/actions/general/MapChangeSizeAction.cpp @@ -90,6 +90,7 @@ namespace OpenRCT2::GameActions windowManager->BroadcastIntent(Intent(INTENT_ACTION_MAP)); Drawing::GfxInvalidateScreen(); +#ifdef ENABLE_SCRIPTING auto& hookEngine = ctx->GetScriptEngine().GetHookEngine(); if (hookEngine.HasSubscriptions(OpenRCT2::Scripting::HookType::mapResize)) { @@ -103,6 +104,7 @@ namespace OpenRCT2::GameActions hookEngine.Call(OpenRCT2::Scripting::HookType::mapResize, obj, true); } +#endif return Result(); } From a8f6922e117249584d3c674656110386bfd74be5 Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Thu, 17 Sep 2026 04:05:43 +0000 Subject: [PATCH 060/142] Merge Localisation/master into OpenRCT2/develop --- data/language/pt-BR.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/data/language/pt-BR.txt b/data/language/pt-BR.txt index b815be1d49..aed2a10c89 100644 --- a/data/language/pt-BR.txt +++ b/data/language/pt-BR.txt @@ -3824,3 +3824,23 @@ STR_7040 :Acréscimos dos caminhos STR_7041 :Painel de informações do parque STR_7042 :Painel de informações da data STR_7043 :Não é possível mudar a altura do terreno aqui… +STR_7044 :Rodapé de notícias +STR_7045 :Barra de status ao estilo RCT1 +STR_7046 :Barra de status (estilo RCT1) +STR_7047 :Controle de passo (Construtor de Pista) +STR_7048 :Controle de passo (Editor de Cenário) +STR_7049 :OpenRCT2 +STR_7050 :Visitantes andando +STR_7051 :Visitantes indo à {STRINGID} +STR_7052 :Visitantes em fila para {STRINGID} +STR_7053 :Visitantes afogando +STR_7054 :Visitantes em {STRINGID} +STR_7055 :Visitantes em {STRINGID} +STR_7056 :Visitantes na {STRINGID} +STR_7057 :Visitantes sentados +STR_7058 :Visitantes apanhados +STR_7059 :Visitantes observando {STRINGID} +STR_7060 :Visitantes observando a construção de {STRINGID} +STR_7061 :Visitantes observando a paisagem +STR_7062 :Visitantes saindo do parque +STR_7063 :Visitantes observando uma nova atração ser construída From 5024df12f73de301aec40f51b813380c5d338ed8 Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Fri, 18 Sep 2026 04:05:33 +0000 Subject: [PATCH 061/142] Merge Localisation/master into OpenRCT2/develop --- data/language/gl-ES.txt | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/data/language/gl-ES.txt b/data/language/gl-ES.txt index 0c71690d4a..22d664e17e 100644 --- a/data/language/gl-ES.txt +++ b/data/language/gl-ES.txt @@ -1038,7 +1038,6 @@ STR_1671 :{WINDOW_COLOUR_2}Beneficio total: {BLACK}{CURRENCY2DP} STR_1672 :Freos STR_1673 :Vía conmutadora de control xiratorio STR_1674 :Velocidade do freo -  :{POP16}{VELOCITY} STR_1676 :Establecer límite de velocidade para os freos STR_1677 :{WINDOW_COLOUR_2}Popularidade: {BLACK}Descoñecida STR_1678 :{WINDOW_COLOUR_2}Popularidade: {BLACK}{COMMA16}% @@ -3825,3 +3824,23 @@ STR_7040 :Adicións de camiños STR_7041 :Panel de información do parque STR_7042 :Panel de información da data STR_7043 :Non se pode modificar a altura do terreo aquí… +STR_7044 :Fío de novas +STR_7045 :Barra de estado estilo RCT1 +STR_7046 :Barra de estado (estilo RCT1) +STR_7047 :Control de pasos (Deseñador de trazados) +STR_7048 :Control de pasos (Editor de escenarios) +STR_7049 :OpenRCT2 +STR_7050 :Visitantes camiñando +STR_7051 :Visitantes dirixíndose a {STRINGID} +STR_7052 :Visitantes na cola de {STRINGID} +STR_7053 :Visitantes afogandose +STR_7054 :Visitantes en {STRINGID} +STR_7055 :Visitantes en {STRINGID} +STR_7056 :Visitantes en {STRINGID} +STR_7057 :Visitantes sentados +STR_7058 :Visitantes recollidos +STR_7059 :Visitantes mirando {STRINGID} +STR_7060 :Visitantes mirando a construción de {STRINGID} +STR_7061 :Visitantes mirando a decoración +STR_7062 :Visitantes saíndo do parque +STR_7063 :Visitantes mirando a construción dunha nova atracción From f67271b57b014604ea2eddc8726c298be2cb66e6 Mon Sep 17 00:00:00 2001 From: Harry Hopkinson <63599884+Harry-Hopkinson@users.noreply.github.com> Date: Fri, 18 Sep 2026 07:58:50 +0200 Subject: [PATCH 062/142] Refactor RAILING_ENTRY_FLAG_* to enum class + FlagHolder (#27154) --- src/openrct2/object/FootpathObject.cpp | 2 +- src/openrct2/object/FootpathRailingsObject.cpp | 8 ++++---- src/openrct2/object/FootpathRailingsObject.h | 2 +- src/openrct2/paint/support/MetalSupports.cpp | 2 +- src/openrct2/paint/tile_element/Paint.Path.cpp | 8 ++++---- src/openrct2/world/Footpath.h | 18 ++++++++++-------- .../world/tile_element/PathElement.cpp | 2 +- 7 files changed, 22 insertions(+), 20 deletions(-) diff --git a/src/openrct2/object/FootpathObject.cpp b/src/openrct2/object/FootpathObject.cpp index 3863da65c2..f89dbcb7b0 100644 --- a/src/openrct2/object/FootpathObject.cpp +++ b/src/openrct2/object/FootpathObject.cpp @@ -56,7 +56,7 @@ namespace OpenRCT2 _pathRailingsDescriptor.name = _legacyType.string_idx; _pathRailingsDescriptor.bridgeImage = _legacyType.bridge_image; _pathRailingsDescriptor.previewImage = _legacyType.GetPreviewImage(); - _pathRailingsDescriptor.flags = _legacyType.flags; + _pathRailingsDescriptor.flags.holder = _legacyType.flags; _pathRailingsDescriptor.scrollingMode = _legacyType.scrolling_mode; _pathRailingsDescriptor.supportType = _legacyType.support_type; _pathRailingsDescriptor.railingsImage = _legacyType.GetRailingsImage(); diff --git a/src/openrct2/object/FootpathRailingsObject.cpp b/src/openrct2/object/FootpathRailingsObject.cpp index 54ac1efed7..d1cc942f0f 100644 --- a/src/openrct2/object/FootpathRailingsObject.cpp +++ b/src/openrct2/object/FootpathRailingsObject.cpp @@ -91,12 +91,12 @@ namespace OpenRCT2 SupportType = ParseSupportType(Json::GetString(properties["supportType"])); ScrollingMode = Json::GetNumber(properties["scrollingMode"]); Colour = Drawing::colourFromString(Json::GetString(properties["colour"]), Drawing::kColourNull); - Flags = Json::GetFlags( + Flags = Json::GetFlagHolder( properties, { - { "hasSupportImages", RAILING_ENTRY_FLAG_HAS_SUPPORT_BASE_SPRITE }, - { "hasElevatedPathImages", RAILING_ENTRY_FLAG_DRAW_PATH_OVER_SUPPORTS }, - { "noQueueBanner", RAILING_ENTRY_FLAG_NO_QUEUE_BANNER }, + { "hasSupportImages", RailingEntryFlag::hasSupportBaseSprite }, + { "hasElevatedPathImages", RailingEntryFlag::drawPathOverSupports }, + { "noQueueBanner", RailingEntryFlag::noQueueBanner }, }); } diff --git a/src/openrct2/object/FootpathRailingsObject.h b/src/openrct2/object/FootpathRailingsObject.h index e8b1842c7a..84c0ef53a9 100644 --- a/src/openrct2/object/FootpathRailingsObject.h +++ b/src/openrct2/object/FootpathRailingsObject.h @@ -22,7 +22,7 @@ namespace OpenRCT2 uint32_t BridgeImageId{}; uint32_t RailingsImageId{}; RailingEntrySupportType SupportType{}; - uint8_t Flags{}; + RailingEntryFlags Flags{}; uint8_t ScrollingMode{}; Drawing::Colour Colour{}; PathRailingsDescriptor _descriptor = {}; diff --git a/src/openrct2/paint/support/MetalSupports.cpp b/src/openrct2/paint/support/MetalSupports.cpp index 38e301c1f6..d097cb0988 100644 --- a/src/openrct2/paint/support/MetalSupports.cpp +++ b/src/openrct2/paint/support/MetalSupports.cpp @@ -603,7 +603,7 @@ bool PathPoleSupportsPaintSetup( uint16_t baseHeight; if ((supportSegments[segment].slope & kTileSlopeAboveTrackOrScenery) || (height - supportSegments[segment].height < 6) - || !(railings.flags & RAILING_ENTRY_FLAG_HAS_SUPPORT_BASE_SPRITE)) + || !railings.flags.has(RailingEntryFlag::hasSupportBaseSprite)) { baseHeight = supportSegments[segment].height; } diff --git a/src/openrct2/paint/tile_element/Paint.Path.cpp b/src/openrct2/paint/tile_element/Paint.Path.cpp index efd9d06543..74e58f9d2f 100644 --- a/src/openrct2/paint/tile_element/Paint.Path.cpp +++ b/src/openrct2/paint/tile_element/Paint.Path.cpp @@ -345,7 +345,7 @@ static void PathPaintFencesAndQueueBannersQueue( } } - if (pathElement.hasQueueBanner() && !(railings.flags & RAILING_ENTRY_FLAG_NO_QUEUE_BANNER)) + if (pathElement.hasQueueBanner() && !railings.flags.has(RailingEntryFlag::noQueueBanner)) { PathPaintQueueBanner(session, pathElement, height, railings, imageTemplate); } @@ -360,7 +360,7 @@ static void PathPaintFencesAndQueueBannersNonQueue( uint32_t drawnCorners = 0; // If the path is not drawn over the supports, then no corner sprites will be drawn (making double-width paths // look like connected series of intersections). - if (pathPaintInfo.railings.flags & RAILING_ENTRY_FLAG_DRAW_PATH_OVER_SUPPORTS) + if (pathPaintInfo.railings.flags.has(RailingEntryFlag::drawPathOverSupports)) { drawnCorners = (connectedEdges & FOOTPATH_PROPERTIES_EDGES_CORNERS_MASK) >> 4; } @@ -945,7 +945,7 @@ static void PathPaintBoxSupport( PaintAddImageAsParent(session, imageTemplate.WithIndex(bridgeBaseImageIndex), { 0, 0, height }, boundbox); - if (pathElement.isQueue() || (pathPaintInfo.railings.flags & RAILING_ENTRY_FLAG_DRAW_PATH_OVER_SUPPORTS)) + if (pathElement.isQueue() || pathPaintInfo.railings.flags.has(RailingEntryFlag::drawPathOverSupports)) { PaintAddImageAsChild(session, imageTemplate.WithIndex(surfaceBaseImageIndex), { 0, 0, height }, boundbox); } @@ -1000,7 +1000,7 @@ static void PathPaintPoleSupport( PaintAddImageAsParent(session, imageTemplate.WithIndex(bridgeBaseImageIndex), { 0, 0, height }, boundbox); - if (pathElement.isQueue() || (pathPaintInfo.railings.flags & RAILING_ENTRY_FLAG_DRAW_PATH_OVER_SUPPORTS)) + if (pathElement.isQueue() || pathPaintInfo.railings.flags.has(RailingEntryFlag::drawPathOverSupports)) { PaintAddImageAsChild(session, imageTemplate.WithIndex(surfaceBaseImageIndex), { 0, 0, height }, boundbox); } diff --git a/src/openrct2/world/Footpath.h b/src/openrct2/world/Footpath.h index 3ab9c89fa9..a1bde622ab 100644 --- a/src/openrct2/world/Footpath.h +++ b/src/openrct2/world/Footpath.h @@ -11,6 +11,7 @@ #include "../Identifiers.h" #include "../actions/CommandFlag.h" +#include "../core/FlagHolder.hpp" #include "../drawing/Colour.h" #include "../drawing/ImageIndexType.h" #include "../drawing/ScrollingText.h" @@ -42,6 +43,14 @@ namespace OpenRCT2 count }; + enum class RailingEntryFlag : uint8_t + { + hasSupportBaseSprite, + drawPathOverSupports, // When elevated + noQueueBanner, + }; + using RailingEntryFlags = FlagHolder; + struct PathSurfaceDescriptor { StringId name = kStringIdNone; @@ -58,7 +67,7 @@ namespace OpenRCT2 ImageIndex railingsImage{}; RailingEntrySupportType supportType{}; Drawing::Colour supportColour = Drawing::kColourNull; - uint8_t flags{}; + RailingEntryFlags flags{}; uint8_t scrollingMode = kScrollingModeNone; }; @@ -120,13 +129,6 @@ namespace OpenRCT2 } }; - enum - { - RAILING_ENTRY_FLAG_HAS_SUPPORT_BASE_SPRITE = (1 << 0), - RAILING_ENTRY_FLAG_DRAW_PATH_OVER_SUPPORTS = (1 << 1), // When elevated - RAILING_ENTRY_FLAG_NO_QUEUE_BANNER = (1 << 2), - }; - enum { FOOTPATH_SEARCH_SUCCESS, diff --git a/src/openrct2/world/tile_element/PathElement.cpp b/src/openrct2/world/tile_element/PathElement.cpp index 26ee6c2f2a..f8cec96084 100644 --- a/src/openrct2/world/tile_element/PathElement.cpp +++ b/src/openrct2/world/tile_element/PathElement.cpp @@ -278,7 +278,7 @@ namespace OpenRCT2 { // TODO: make this an actual decision of the tile element. const auto* const railings = getRailingsDescriptor(); - return railings != nullptr ? railings->flags & RAILING_ENTRY_FLAG_DRAW_PATH_OVER_SUPPORTS : false; + return railings != nullptr ? railings->flags.has(RailingEntryFlag::drawPathOverSupports) : false; } void PathElement::setShouldDrawPathOverSupports(bool on) From 6fb525e90616fc7fafcf576d88f16995dc026e76 Mon Sep 17 00:00:00 2001 From: Richard Fine Date: Fri, 18 Sep 2026 15:10:26 -0400 Subject: [PATCH 063/142] Close #27126: Refactor PATH_ADDITION_FLAG_* to enum class + FlagHolder (#27149) --- .../actions/cheats/CheatSetAction.cpp | 2 +- .../footpath/FootpathAdditionPlaceAction.cpp | 12 ++++---- .../actions/footpath/FootpathPlaceAction.cpp | 4 +-- src/openrct2/entity/Guest.cpp | 16 +++++----- src/openrct2/entity/JumpingFountain.cpp | 7 +++-- src/openrct2/entity/Staff.cpp | 4 +-- src/openrct2/object/PathAdditionEntry.h | 16 ++-------- src/openrct2/object/PathAdditionFlags.h | 29 +++++++++++++++++++ src/openrct2/object/PathAdditionObject.cpp | 22 +++++++------- .../paint/tile_element/Paint.PathAddition.cpp | 2 +- .../bindings/world/ScTileElement.cpp | 2 +- src/openrct2/world/Scenery.cpp | 4 +-- 12 files changed, 69 insertions(+), 51 deletions(-) create mode 100644 src/openrct2/object/PathAdditionFlags.h diff --git a/src/openrct2/actions/cheats/CheatSetAction.cpp b/src/openrct2/actions/cheats/CheatSetAction.cpp index caf94687b3..c50ccb6f49 100644 --- a/src/openrct2/actions/cheats/CheatSetAction.cpp +++ b/src/openrct2/actions/cheats/CheatSetAction.cpp @@ -514,7 +514,7 @@ namespace OpenRCT2::GameActions continue; auto* pathAdditionEntry = path->getAdditionEntry(); - if (pathAdditionEntry != nullptr && pathAdditionEntry->flags & PATH_ADDITION_FLAG_IS_BIN) + if (pathAdditionEntry != nullptr && pathAdditionEntry->flags.has(PathAdditionFlag::isBin)) path->setAdditionStatus(0xFF); } while (TileElementIteratorNext(&it)); diff --git a/src/openrct2/actions/footpath/FootpathAdditionPlaceAction.cpp b/src/openrct2/actions/footpath/FootpathAdditionPlaceAction.cpp index 322139cea8..2bb698c527 100644 --- a/src/openrct2/actions/footpath/FootpathAdditionPlaceAction.cpp +++ b/src/openrct2/actions/footpath/FootpathAdditionPlaceAction.cpp @@ -100,25 +100,25 @@ namespace OpenRCT2::GameActions LOG_ERROR("Unknown footpath addition entry for entryIndex %d", _entryIndex); return Result(Status::invalidParameters, STR_CANT_POSITION_THIS_HERE, STR_UNKNOWN_OBJECT_TYPE); } - uint16_t sceneryFlags = pathAdditionEntry->flags; + PathAdditionFlags sceneryFlags = pathAdditionEntry->flags; - if ((sceneryFlags & PATH_ADDITION_FLAG_DONT_ALLOW_ON_SLOPE) && pathElement->isSloped()) + if (sceneryFlags.has(PathAdditionFlag::dontAllowOnSlope) && pathElement->isSloped()) { return Result(Status::invalidParameters, STR_CANT_POSITION_THIS_HERE, STR_CANT_BUILD_THIS_ON_SLOPED_FOOTPATH); } - if ((sceneryFlags & PATH_ADDITION_FLAG_DONT_ALLOW_ON_QUEUE) && pathElement->isQueue()) + if (sceneryFlags.has(PathAdditionFlag::dontAllowOnQueue) && pathElement->isQueue()) { return Result(Status::invalidParameters, STR_CANT_POSITION_THIS_HERE, STR_CANNOT_PLACE_THESE_ON_QUEUE_LINE_AREA); } - if (!(sceneryFlags & (PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_WATER | PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_SNOW)) + if (!sceneryFlags.hasAny(PathAdditionFlag::jumpingFountainWater, PathAdditionFlag::jumpingFountainSnow) && (pathElement->getEdges()) == 0x0F) { return Result(Status::invalidParameters, STR_CANT_POSITION_THIS_HERE, STR_CAN_ONLY_BE_PLACED_ON_PATH_EDGES); } - if ((sceneryFlags & PATH_ADDITION_FLAG_IS_QUEUE_SCREEN) && !pathElement->isQueue()) + if (sceneryFlags.has(PathAdditionFlag::isQueueScreen) && !pathElement->isQueue()) { return Result(Status::invalidParameters, STR_CANT_POSITION_THIS_HERE, STR_CAN_ONLY_PLACE_THESE_ON_QUEUE_AREA); } @@ -180,7 +180,7 @@ namespace OpenRCT2::GameActions pathElement->setAdditionEntryIndex(_entryIndex); pathElement->setIsBroken(false); - if (pathAdditionEntry->flags & PATH_ADDITION_FLAG_IS_BIN) + if (pathAdditionEntry->flags.has(PathAdditionFlag::isBin)) { pathElement->setAdditionStatus(255); } diff --git a/src/openrct2/actions/footpath/FootpathPlaceAction.cpp b/src/openrct2/actions/footpath/FootpathPlaceAction.cpp index c9f4fe186f..e18245fc04 100644 --- a/src/openrct2/actions/footpath/FootpathPlaceAction.cpp +++ b/src/openrct2/actions/footpath/FootpathPlaceAction.cpp @@ -258,7 +258,7 @@ namespace OpenRCT2::GameActions if (_constructFlags & PathConstructFlag::IsQueue) { // remove any addition that isn't a TV or a lamp - if ((elem->flags & PATH_ADDITION_FLAG_IS_QUEUE_SCREEN) == 0 && (elem->flags & PATH_ADDITION_FLAG_LAMP) == 0) + if (!elem->flags.hasAny(PathAdditionFlag::isQueueScreen, PathAdditionFlag::lamp)) { pathElement->setIsBroken(false); pathElement->setAddition(0); @@ -267,7 +267,7 @@ namespace OpenRCT2::GameActions else { // remove all TVs - if ((elem->flags & PATH_ADDITION_FLAG_IS_QUEUE_SCREEN) != 0) + if (elem->flags.has(PathAdditionFlag::isQueueScreen)) { pathElement->setIsBroken(false); pathElement->setAddition(0); diff --git a/src/openrct2/entity/Guest.cpp b/src/openrct2/entity/Guest.cpp index a0b4e19890..e6530acc4e 100644 --- a/src/openrct2/entity/Guest.cpp +++ b/src/openrct2/entity/Guest.cpp @@ -1120,7 +1120,7 @@ namespace OpenRCT2 if (pathElement->hasAddition() && !pathElement->additionIsGhost()) { auto* pathAddEntry = pathElement->getAdditionEntry(); - if (pathAddEntry != nullptr && (pathAddEntry->flags & PATH_ADDITION_FLAG_IS_QUEUE_SCREEN)) + if (pathAddEntry != nullptr && pathAddEntry->flags.has(PathAdditionFlag::isQueueScreen)) { found = true; } @@ -2909,8 +2909,8 @@ namespace OpenRCT2 if (tileElement->asPath()->additionIsGhost()) break; - if (pathAddEntry->flags - & (PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_WATER | PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_SNOW)) + if (pathAddEntry->flags.hasAny( + PathAdditionFlag::jumpingFountainWater, PathAdditionFlag::jumpingFountainSnow)) { num_fountains++; break; @@ -5556,7 +5556,7 @@ namespace OpenRCT2 return; } - if ((pathAddEntry->flags & PATH_ADDITION_FLAG_IS_BENCH)) + if (pathAddEntry->flags.has(PathAdditionFlag::isBench)) positions_free = 9; } } @@ -5939,7 +5939,7 @@ namespace OpenRCT2 break; auto* pathAddEntry = pathElement->getAdditionEntry(); - if (!(pathAddEntry->flags & PATH_ADDITION_FLAG_IS_BIN)) + if (!pathAddEntry->flags.has(PathAdditionFlag::isBin)) break; if (pathElement->isBroken()) @@ -6051,7 +6051,7 @@ namespace OpenRCT2 continue; auto* pathAddEntry = pathElement->getAdditionEntry(); - if (pathAddEntry == nullptr || !(pathAddEntry->flags & PATH_ADDITION_FLAG_IS_BENCH)) + if (pathAddEntry == nullptr || !pathAddEntry->flags.has(PathAdditionFlag::isBench)) continue; if (pathElement->isBroken()) @@ -6140,7 +6140,7 @@ namespace OpenRCT2 continue; auto* pathAddEntry = pathElement->getAdditionEntry(); - if (pathAddEntry == nullptr || !(pathAddEntry->flags & PATH_ADDITION_FLAG_IS_BIN)) + if (pathAddEntry == nullptr || !pathAddEntry->flags.has(PathAdditionFlag::isBin)) continue; if (pathElement->isBroken()) @@ -6218,7 +6218,7 @@ namespace OpenRCT2 continue; auto* pathAddEntry = pathElement->getAdditionEntry(); - if (pathAddEntry == nullptr || !(pathAddEntry->flags & PATH_ADDITION_FLAG_BREAKABLE)) + if (pathAddEntry == nullptr || !pathAddEntry->flags.has(PathAdditionFlag::breakable)) continue; if (pathElement->isBroken()) diff --git a/src/openrct2/entity/JumpingFountain.cpp b/src/openrct2/entity/JumpingFountain.cpp index 65424f5d9f..43fbf85cd2 100644 --- a/src/openrct2/entity/JumpingFountain.cpp +++ b/src/openrct2/entity/JumpingFountain.cpp @@ -252,8 +252,9 @@ namespace OpenRCT2 bool JumpingFountain::isJumpingFountain(const JumpingFountainType newType, const CoordsXYZ& newLoc) { - const int32_t pathAdditionFlagMask = newType == JumpingFountainType::snow ? PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_SNOW - : PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_WATER; + const PathAdditionFlag jumpingFountainFlag = newType == JumpingFountainType::snow + ? PathAdditionFlag::jumpingFountainSnow + : PathAdditionFlag::jumpingFountainWater; TileElement* tileElement = MapGetFirstElementAt(newLoc); if (tileElement == nullptr) @@ -270,7 +271,7 @@ namespace OpenRCT2 continue; auto* pathAdditionEntry = tileElement->asPath()->getAdditionEntry(); - if (pathAdditionEntry != nullptr && pathAdditionEntry->flags & pathAdditionFlagMask) + if (pathAdditionEntry != nullptr && pathAdditionEntry->flags.has(jumpingFountainFlag)) { return true; } diff --git a/src/openrct2/entity/Staff.cpp b/src/openrct2/entity/Staff.cpp index 8a520b3f63..732d73db52 100644 --- a/src/openrct2/entity/Staff.cpp +++ b/src/openrct2/entity/Staff.cpp @@ -1204,7 +1204,7 @@ namespace OpenRCT2 } auto* pathAddEntry = tile_element->asPath()->getAdditionEntry(); - if (!(pathAddEntry->flags & PATH_ADDITION_FLAG_IS_BIN) || tile_element->asPath()->isBroken() + if (!pathAddEntry->flags.has(PathAdditionFlag::isBin) || tile_element->asPath()->isBroken() || tile_element->asPath()->additionIsGhost()) { stateReset(); @@ -1574,7 +1574,7 @@ namespace OpenRCT2 if (pathAddEntry == nullptr) return false; - if (!(pathAddEntry->flags & PATH_ADDITION_FLAG_IS_BIN)) + if (!pathAddEntry->flags.has(PathAdditionFlag::isBin)) return false; if (tileElement->asPath()->isBroken()) diff --git a/src/openrct2/object/PathAdditionEntry.h b/src/openrct2/object/PathAdditionEntry.h index 0a8af8a5aa..ac6dd3c564 100644 --- a/src/openrct2/object/PathAdditionEntry.h +++ b/src/openrct2/object/PathAdditionEntry.h @@ -11,6 +11,7 @@ #include "../core/Money.hpp" #include "../localisation/StringIdType.h" +#include "../object/PathAdditionFlags.h" #include "ObjectTypes.h" enum class CursorID : uint8_t; @@ -25,26 +26,13 @@ namespace OpenRCT2 jumpingFountain, }; - enum - { - PATH_ADDITION_FLAG_IS_BIN = 1 << 0, - PATH_ADDITION_FLAG_IS_BENCH = 1 << 1, - PATH_ADDITION_FLAG_BREAKABLE = 1 << 2, - PATH_ADDITION_FLAG_LAMP = 1 << 3, - PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_WATER = 1 << 4, - PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_SNOW = 1 << 5, - PATH_ADDITION_FLAG_DONT_ALLOW_ON_QUEUE = 1 << 6, - PATH_ADDITION_FLAG_DONT_ALLOW_ON_SLOPE = 1 << 7, - PATH_ADDITION_FLAG_IS_QUEUE_SCREEN = 1 << 8 - }; - struct PathAdditionEntry { static constexpr auto kObjectType = ObjectType::pathAdditions; StringId name; uint32_t image; - uint16_t flags; + PathAdditionFlags flags; PathAdditionDrawType draw_type; CursorID tool_id; money64 price; diff --git a/src/openrct2/object/PathAdditionFlags.h b/src/openrct2/object/PathAdditionFlags.h new file mode 100644 index 0000000000..882e567082 --- /dev/null +++ b/src/openrct2/object/PathAdditionFlags.h @@ -0,0 +1,29 @@ +/***************************************************************************** + * Copyright (c) 2014-2026 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#include "../core/FlagHolder.hpp" + +namespace OpenRCT2 +{ + enum class PathAdditionFlag + { + isBin = 0, + isBench = 1, + breakable = 2, + lamp = 3, + jumpingFountainWater = 4, + jumpingFountainSnow = 5, + dontAllowOnQueue = 6, + dontAllowOnSlope = 7, + isQueueScreen = 8 + }; + using PathAdditionFlags = FlagHolder; +} // namespace OpenRCT2 diff --git a/src/openrct2/object/PathAdditionObject.cpp b/src/openrct2/object/PathAdditionObject.cpp index ef7ab4261c..f0c7acd2e5 100644 --- a/src/openrct2/object/PathAdditionObject.cpp +++ b/src/openrct2/object/PathAdditionObject.cpp @@ -21,7 +21,7 @@ namespace OpenRCT2 void PathAdditionObject::ReadLegacy(IReadObjectContext* context, IStream* stream) { stream->Seek(6, STREAM_SEEK_CURRENT); - _legacyType.flags = stream->ReadValue(); + _legacyType.flags = stream->ReadValue(); _legacyType.draw_type = static_cast(stream->ReadValue()); _legacyType.tool_id = static_cast(stream->ReadValue()); _legacyType.price = stream->ReadValue(); @@ -103,18 +103,18 @@ namespace OpenRCT2 SetPrimarySceneryGroup(ObjectEntryDescriptor(Json::GetString(properties["sceneryGroup"]))); // clang-format off - _legacyType.flags = Json::GetFlags( + _legacyType.flags = Json::GetFlagHolder( properties, { - { "isBin", PATH_ADDITION_FLAG_IS_BIN, Json::FlagType::normal }, - { "isBench", PATH_ADDITION_FLAG_IS_BENCH, Json::FlagType::normal }, - { "isBreakable", PATH_ADDITION_FLAG_BREAKABLE, Json::FlagType::normal }, - { "isLamp", PATH_ADDITION_FLAG_LAMP, Json::FlagType::normal }, - { "isJumpingFountainWater", PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_WATER, Json::FlagType::normal }, - { "isJumpingFountainSnow", PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_SNOW, Json::FlagType::normal }, - { "isAllowedOnQueue", PATH_ADDITION_FLAG_DONT_ALLOW_ON_QUEUE, Json::FlagType::inverted }, - { "isAllowedOnSlope", PATH_ADDITION_FLAG_DONT_ALLOW_ON_SLOPE, Json::FlagType::inverted }, - { "isTelevision", PATH_ADDITION_FLAG_IS_QUEUE_SCREEN, Json::FlagType::normal }, + { "isBin", PathAdditionFlag::isBin, Json::FlagType::normal }, + { "isBench", PathAdditionFlag::isBench, Json::FlagType::normal }, + { "isBreakable", PathAdditionFlag::breakable, Json::FlagType::normal }, + { "isLamp", PathAdditionFlag::lamp, Json::FlagType::normal }, + { "isJumpingFountainWater", PathAdditionFlag::jumpingFountainWater, Json::FlagType::normal }, + { "isJumpingFountainSnow", PathAdditionFlag::jumpingFountainSnow, Json::FlagType::normal }, + { "isAllowedOnQueue", PathAdditionFlag::dontAllowOnQueue, Json::FlagType::inverted }, + { "isAllowedOnSlope", PathAdditionFlag::dontAllowOnSlope, Json::FlagType::inverted }, + { "isTelevision", PathAdditionFlag::isQueueScreen, Json::FlagType::normal }, }); // clang-format on } diff --git a/src/openrct2/paint/tile_element/Paint.PathAddition.cpp b/src/openrct2/paint/tile_element/Paint.PathAddition.cpp index 06eb7eba97..e9b15a67e5 100644 --- a/src/openrct2/paint/tile_element/Paint.PathAddition.cpp +++ b/src/openrct2/paint/tile_element/Paint.PathAddition.cpp @@ -278,7 +278,7 @@ void PaintLampLightEffects(PaintSession& session, const PathElement& pathEl, uin if (pathEl.hasAddition() && !(pathEl.isBroken())) { auto* pathAddEntry = pathEl.getAdditionEntry(); - if (pathAddEntry != nullptr && pathAddEntry->flags & PATH_ADDITION_FLAG_LAMP) + if (pathAddEntry != nullptr && pathAddEntry->flags.has(PathAdditionFlag::lamp)) { if (!(pathEl.getEdges() & EDGE_NE)) { diff --git a/src/openrct2/scripting/bindings/world/ScTileElement.cpp b/src/openrct2/scripting/bindings/world/ScTileElement.cpp index 2803d4d870..d38955c468 100644 --- a/src/openrct2/scripting/bindings/world/ScTileElement.cpp +++ b/src/openrct2/scripting/bindings/world/ScTileElement.cpp @@ -2092,7 +2092,7 @@ namespace OpenRCT2::Scripting return JS_NULL; const auto* additionEntry = el->getAdditionEntry(); - if (additionEntry == nullptr || !(additionEntry->flags & PATH_ADDITION_FLAG_IS_BIN)) + if (additionEntry == nullptr || !additionEntry->flags.has(PathAdditionFlag::isBin)) return JS_NULL; // Each path edge has a 2-bit slot (0 = full, 3 = empty); a bin is only "full" once a diff --git a/src/openrct2/world/Scenery.cpp b/src/openrct2/world/Scenery.cpp index 1f3d7b2010..9036872469 100644 --- a/src/openrct2/world/Scenery.cpp +++ b/src/openrct2/world/Scenery.cpp @@ -145,11 +145,11 @@ void SceneryUpdateTile(const CoordsXY& sceneryPos) auto* pathAddEntry = tileElement->asPath()->getAdditionEntry(); if (pathAddEntry != nullptr) { - if (pathAddEntry->flags & PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_WATER) + if (pathAddEntry->flags.has(PathAdditionFlag::jumpingFountainWater)) { JumpingFountain::startAnimation(JumpingFountainType::water, sceneryPos, tileElement); } - else if (pathAddEntry->flags & PATH_ADDITION_FLAG_JUMPING_FOUNTAIN_SNOW) + else if (pathAddEntry->flags.has(PathAdditionFlag::jumpingFountainSnow)) { JumpingFountain::startAnimation(JumpingFountainType::snow, sceneryPos, tileElement); } From bb3ae6384778899a59965bd9d001635822549f44 Mon Sep 17 00:00:00 2001 From: Sjoerd de Bruin Date: Sat, 19 Sep 2026 12:25:20 +0200 Subject: [PATCH 064/142] Fix #27136: Guests keep waiting at a level crossing (#27142) --- distribution/changelog.txt | 1 + src/openrct2/ride/Vehicle.cpp | 13 +++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index d3fc0f21e8..0d17ca147d 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -19,6 +19,7 @@ - Fix: [#27093] Pause and fast forward buttons are shown in multiplayer. - Fix: [#27113] Chat button is shown in editor mode. - Fix: [#27133] [Plugin] Dropdown and spinner are not fully hidden with isVisible on creation. +- Fix: [#27136] Guests keep waiting at a level crossing after the train has passed, due to faulty iteration over the track the train has vacated. 0.5.5 (2026-09-06) ------------------------------------------------------------------------ diff --git a/src/openrct2/ride/Vehicle.cpp b/src/openrct2/ride/Vehicle.cpp index 7119df9e56..f9f5453852 100644 --- a/src/openrct2/ride/Vehicle.cpp +++ b/src/openrct2/ride/Vehicle.cpp @@ -1396,8 +1396,11 @@ namespace OpenRCT2 { break; } - xyElement.x = output.begin_x; - xyElement.y = output.begin_y; + + // Working backwards, begin_element is the section at the end of a piece of track, whereas begin_x and + // begin_y are the coordinates at its start, so the element has to be paired with end_x and end_y + xyElement.x = output.end_x; + xyElement.y = output.end_y; xyElement.element = output.begin_element; } @@ -1426,8 +1429,10 @@ namespace OpenRCT2 { if (trackBlockGetPrevious(xyElement, &output)) { - xyElement.x = output.begin_x; - xyElement.y = output.begin_y; + // Working backwards, begin_element is the section at the end of a piece of track, whereas begin_x and + // begin_y are the coordinates at its start, so the element has to be paired with end_x and end_y + xyElement.x = output.end_x; + xyElement.y = output.end_y; xyElement.element = output.begin_element; } } From 9620d2edc481a5fe76b6da2d8251aa32c7110d05 Mon Sep 17 00:00:00 2001 From: Sjoerd de Bruin Date: Sat, 19 Sep 2026 17:25:55 +0200 Subject: [PATCH 065/142] Fix #15423: Crash when a peep uses an invalid bin (#27158) --- distribution/changelog.txt | 1 + src/openrct2/entity/Guest.cpp | 2 +- src/openrct2/entity/Staff.cpp | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 0d17ca147d..d8658879fd 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -4,6 +4,7 @@ - Improved: [#26947] Rain is now drawn next to the bottom info panels (in RCT2 style). - Change: [#27100] Negative G-forces no longer turn red in the stats window and graph when below -2.50. - Fix: [#1514] Wrong capitalisation for strings in the Guest List window. +- Fix: [#15423] Crash when a guest or handyman uses a bin whose path addition object is not loaded. - Fix: [#17409] When reading system settings, non-US dollar currencies are not recognised correctly. - Fix: [#19754, #27109] Some rides in RCT1 saves have a wrong number of cars per train. - Fix: [#20882] When setting rides with preservation status in the Scenario Editor, some rides are not shown. diff --git a/src/openrct2/entity/Guest.cpp b/src/openrct2/entity/Guest.cpp index e6530acc4e..42efecbedd 100644 --- a/src/openrct2/entity/Guest.cpp +++ b/src/openrct2/entity/Guest.cpp @@ -5939,7 +5939,7 @@ namespace OpenRCT2 break; auto* pathAddEntry = pathElement->getAdditionEntry(); - if (!pathAddEntry->flags.has(PathAdditionFlag::isBin)) + if (pathAddEntry == nullptr || !pathAddEntry->flags.has(PathAdditionFlag::isBin)) break; if (pathElement->isBroken()) diff --git a/src/openrct2/entity/Staff.cpp b/src/openrct2/entity/Staff.cpp index 732d73db52..1ada3f9175 100644 --- a/src/openrct2/entity/Staff.cpp +++ b/src/openrct2/entity/Staff.cpp @@ -1204,8 +1204,8 @@ namespace OpenRCT2 } auto* pathAddEntry = tile_element->asPath()->getAdditionEntry(); - if (!pathAddEntry->flags.has(PathAdditionFlag::isBin) || tile_element->asPath()->isBroken() - || tile_element->asPath()->additionIsGhost()) + if (pathAddEntry == nullptr || !pathAddEntry->flags.has(PathAdditionFlag::isBin) + || tile_element->asPath()->isBroken() || tile_element->asPath()->additionIsGhost()) { stateReset(); return; From cc89ca136a54d1aabbd2318ebc6b9f076deca37f Mon Sep 17 00:00:00 2001 From: Harry Hopkinson <63599884+Harry-Hopkinson@users.noreply.github.com> Date: Sat, 19 Sep 2026 17:26:56 +0200 Subject: [PATCH 066/142] Refactor S6_SAVE_FLAG_* to enum class + FlagHolder (#27156) --- src/openrct2-ui/interface/FileBrowser.cpp | 16 ++++++++++++---- src/openrct2/Game.cpp | 8 +++++--- src/openrct2/park/ParkFile.cpp | 19 ++++++------------- src/openrct2/scenario/Scenario.h | 11 ++++++++++- 4 files changed, 33 insertions(+), 21 deletions(-) diff --git a/src/openrct2-ui/interface/FileBrowser.cpp b/src/openrct2-ui/interface/FileBrowser.cpp index 4a08fbb937..fc9c791560 100644 --- a/src/openrct2-ui/interface/FileBrowser.cpp +++ b/src/openrct2-ui/interface/FileBrowser.cpp @@ -328,7 +328,9 @@ namespace OpenRCT2::Ui::FileBrowser gameState.park.flags.unset(ParkFlag::spritesInitialised); gameState.editorStep = Editor::Step::invalid; gameState.scenarioFileName = std::string(String::toStringView(pathBuffer, std::size(pathBuffer))); - int32_t success = ScenarioSave(gameState, pathBuffer, Config::Get().general.savePluginData ? 3 : 2); + SaveFlags saveFlags = { SaveFlag::scenario }; + saveFlags.set(SaveFlag::exportObjects, Config::Get().general.savePluginData); + int32_t success = ScenarioSave(gameState, pathBuffer, saveFlags); gameState.park.flags = parkFlagsBackup; if (success) @@ -373,7 +375,9 @@ namespace OpenRCT2::Ui::FileBrowser case LoadSaveType::park: { SetAndSaveConfigPath(Config::Get().general.lastSaveGameDirectory, pathBuffer); - if (ScenarioSave(gameState, pathBuffer, Config::Get().general.savePluginData ? 1 : 0)) + SaveFlags saveFlags{}; + saveFlags.set(SaveFlag::exportObjects, Config::Get().general.savePluginData); + if (ScenarioSave(gameState, pathBuffer, saveFlags)) { gScenarioSavePath = pathBuffer; gCurrentLoadedPath = pathBuffer; @@ -396,7 +400,9 @@ namespace OpenRCT2::Ui::FileBrowser { SetAndSaveConfigPath(Config::Get().general.lastSaveLandscapeDirectory, pathBuffer); gameState.scenarioFileName = std::string(String::toStringView(pathBuffer, std::size(pathBuffer))); - if (ScenarioSave(gameState, pathBuffer, Config::Get().general.savePluginData ? 3 : 2)) + SaveFlags saveFlags = { SaveFlag::scenario }; + saveFlags.set(SaveFlag::exportObjects, Config::Get().general.savePluginData); + if (ScenarioSave(gameState, pathBuffer, saveFlags)) { gCurrentLoadedPath = pathBuffer; windowMgr->CloseByClass(WindowClass::loadsave); @@ -417,7 +423,9 @@ namespace OpenRCT2::Ui::FileBrowser gameState.park.flags.unset(ParkFlag::spritesInitialised); gameState.editorStep = Editor::Step::invalid; gameState.scenarioFileName = std::string(String::toStringView(pathBuffer, std::size(pathBuffer))); - int32_t success = ScenarioSave(gameState, pathBuffer, Config::Get().general.savePluginData ? 3 : 2); + SaveFlags saveFlags = { SaveFlag::scenario }; + saveFlags.set(SaveFlag::exportObjects, Config::Get().general.savePluginData); + int32_t success = ScenarioSave(gameState, pathBuffer, saveFlags); gameState.park.flags = parkFlagsBackup; if (success) diff --git a/src/openrct2/Game.cpp b/src/openrct2/Game.cpp index 77dabe57d1..077842bd33 100644 --- a/src/openrct2/Game.cpp +++ b/src/openrct2/Game.cpp @@ -500,7 +500,9 @@ void SaveGameWithName(u8string_view name) LOG_VERBOSE("Saving to %s", u8string(name).c_str()); auto& gameState = getGameState(); - if (ScenarioSave(gameState, name, Config::Get().general.savePluginData ? 1 : 0)) + SaveFlags saveFlags{}; + saveFlags.set(SaveFlag::exportObjects, Config::Get().general.savePluginData); + if (ScenarioSave(gameState, name, saveFlags)) { LOG_VERBOSE("Saved to %s", u8string(name).c_str()); gCurrentLoadedPath = name; @@ -594,12 +596,12 @@ void GameAutosave() { auto subDirectory = DirId::saves; const char* fileExtension = ".park"; - uint32_t saveFlags = 0x80000000; + SaveFlags saveFlags = { SaveFlag::automatic }; if (isInEditorMode()) { subDirectory = DirId::landscapes; fileExtension = ".park"; - saveFlags |= 2; + saveFlags.set(SaveFlag::scenario); } // Retrieve current time diff --git a/src/openrct2/park/ParkFile.cpp b/src/openrct2/park/ParkFile.cpp index f1a7002a72..46bf563a76 100644 --- a/src/openrct2/park/ParkFile.cpp +++ b/src/openrct2/park/ParkFile.cpp @@ -2721,16 +2721,9 @@ namespace OpenRCT2 } } // namespace OpenRCT2 -enum : uint32_t +int32_t ScenarioSave(GameState_t& gameState, u8string_view path, SaveFlags flags) { - S6_SAVE_FLAG_EXPORT = 1 << 0, - S6_SAVE_FLAG_SCENARIO = 1 << 1, - S6_SAVE_FLAG_AUTOMATIC = 1u << 31, -}; - -int32_t ScenarioSave(GameState_t& gameState, u8string_view path, int32_t flags) -{ - if (flags & S6_SAVE_FLAG_SCENARIO) + if (flags.has(SaveFlag::scenario)) { LOG_VERBOSE("saving scenario"); } @@ -2739,7 +2732,7 @@ int32_t ScenarioSave(GameState_t& gameState, u8string_view path, int32_t flags) LOG_VERBOSE("saving game"); } - gIsAutosave = flags & S6_SAVE_FLAG_AUTOMATIC; + gIsAutosave = flags.has(SaveFlag::automatic); if (!gIsAutosave) { auto* windowMgr = Ui::GetWindowManager(); @@ -2752,13 +2745,13 @@ int32_t ScenarioSave(GameState_t& gameState, u8string_view path, int32_t flags) auto parkFile = std::make_unique(); try { - if (flags & S6_SAVE_FLAG_EXPORT) + if (flags.has(SaveFlag::exportObjects)) { auto& objManager = GetContext()->GetObjectManager(); parkFile->ExportObjectsList = objManager.GetPackableObjects(); } parkFile->OmitTracklessRides = true; - if (flags & S6_SAVE_FLAG_SCENARIO) + if (flags.has(SaveFlag::scenario)) { // s6exporter->SaveScenario(path); } @@ -2781,7 +2774,7 @@ int32_t ScenarioSave(GameState_t& gameState, u8string_view path, int32_t flags) Drawing::GfxInvalidateScreen(); - if (result && !(flags & S6_SAVE_FLAG_AUTOMATIC)) + if (result && !flags.has(SaveFlag::automatic)) { gScreenAge = 0; } diff --git a/src/openrct2/scenario/Scenario.h b/src/openrct2/scenario/Scenario.h index 1fc246bde0..5d14b22e50 100644 --- a/src/openrct2/scenario/Scenario.h +++ b/src/openrct2/scenario/Scenario.h @@ -9,6 +9,7 @@ #pragma once +#include "../core/FlagHolder.hpp" #include "../core/Money.hpp" #include "../core/Random.hpp" #include "../core/StringTypes.h" @@ -30,6 +31,14 @@ enum AUTOSAVE_NEVER }; +enum class SaveFlag : uint8_t +{ + exportObjects, + scenario, + automatic = 31, +}; +using SaveFlags = FlagHolder; + constexpr uint8_t kAutosavePause = 0; constexpr uint8_t kDefaultNumAutosavesToKeep = 10; @@ -53,7 +62,7 @@ random_engine_t::result_type ScenarioRand(); uint32_t ScenarioRandMax(uint32_t max); ResultWithMessage ScenarioPrepareForSave(OpenRCT2::GameState_t& gameState); -int32_t ScenarioSave(OpenRCT2::GameState_t& gameState, u8string_view path, int32_t flags); +int32_t ScenarioSave(OpenRCT2::GameState_t& gameState, u8string_view path, SaveFlags flags); void ScenarioFailure(OpenRCT2::GameState_t& gameState); void ScenarioSuccess(OpenRCT2::GameState_t& gameState); void ScenarioSuccessSubmitName(OpenRCT2::GameState_t& gameState, const char* name); From 5fe7c12c6fd6aa024b06381bfa141038ac91b129 Mon Sep 17 00:00:00 2001 From: Arjan van Dijk <71702374+Manticore-007@users.noreply.github.com> Date: Sat, 19 Sep 2026 23:55:43 +0200 Subject: [PATCH 067/142] Add missing "guestsEntertained" to Entertainer interface in plugin API (#27153) --- contributors.md | 1 + distribution/changelog.txt | 1 + distribution/scripting/openrct2.d.ts | 5 ++++ src/openrct2/scripting/ScriptEngine.cpp | 2 ++ src/openrct2/scripting/ScriptEngine.h | 2 +- .../scripting/bindings/entity/ScStaff.cpp | 28 +++++++++++++++++++ .../scripting/bindings/entity/ScStaff.hpp | 13 +++++++++ .../scripting/bindings/world/ScMap.cpp | 8 ++++++ 8 files changed, 59 insertions(+), 1 deletion(-) diff --git a/contributors.md b/contributors.md index ce18fba336..6f2d005825 100644 --- a/contributors.md +++ b/contributors.md @@ -131,6 +131,7 @@ Appreciation for contributors who have provided substantial work, but are no lon * Marino Rottier (rinode) - Plugin API & UI * Ben Spurlock (BenDaSpur) - Plugin API automation helpers * (frozensnowy) - Draggable path slopes, self-intersecting track designs, refactors, bug fixes, misc. +* Arjan van Dijk (Manticore-007) - Added guests entertained to API. ## Bug fixes & Refactors * Claudio Tiecher (janclod) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index d8658879fd..c11602cc42 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,5 +1,6 @@ 0.5.6 (in development) ------------------------------------------------------------------------ +- Feature: [#27153] [Plugin] Add `guestsEntertained` to `Entertainer` interface. - Improved: [#21400] The selector for setting staff patrol areas is now drawn on the water as well as on the surface under water. - Improved: [#26947] Rain is now drawn next to the bottom info panels (in RCT2 style). - Change: [#27100] Negative G-forces no longer turn red in the stats window and graph when below -2.50. diff --git a/distribution/scripting/openrct2.d.ts b/distribution/scripting/openrct2.d.ts index 8c7105dfd2..8483c784f9 100644 --- a/distribution/scripting/openrct2.d.ts +++ b/distribution/scripting/openrct2.d.ts @@ -3990,6 +3990,11 @@ declare global { interface Entertainer extends BaseStaff { staffType: "entertainer"; + + /** + * The number of guests entertained by the entertainer. + */ + readonly guestsEntertained: number; } interface PatrolArea { diff --git a/src/openrct2/scripting/ScriptEngine.cpp b/src/openrct2/scripting/ScriptEngine.cpp index a7af61d4d9..bb88d980ee 100644 --- a/src/openrct2/scripting/ScriptEngine.cpp +++ b/src/openrct2/scripting/ScriptEngine.cpp @@ -599,6 +599,7 @@ void ScriptEngine::RegisterClasses(JSContext* ctx) gScHandyman.Register(ctx); gScMechanic.Register(ctx); gScSecurity.Register(ctx); + gScEntertainer.Register(ctx); gScBalloon.Register(ctx); gScLitter.Register(ctx); gScMoneyEffect.Register(ctx); @@ -660,6 +661,7 @@ void ScriptEngine::UnregisterClasses() gScHandyman.Unregister(); gScMechanic.Unregister(); gScSecurity.Unregister(); + gScEntertainer.Unregister(); gScBalloon.Unregister(); gScLitter.Unregister(); gScMoneyEffect.Unregister(); diff --git a/src/openrct2/scripting/ScriptEngine.h b/src/openrct2/scripting/ScriptEngine.h index 5b80de7de1..9942168c20 100644 --- a/src/openrct2/scripting/ScriptEngine.h +++ b/src/openrct2/scripting/ScriptEngine.h @@ -43,7 +43,7 @@ namespace OpenRCT2 namespace OpenRCT2::Scripting { // Grepped from CI (.github/workflows/publish-plugin-types.yml); keep the format `kPluginApiVersion = N`. - static constexpr int32_t kPluginApiVersion = 122; + static constexpr int32_t kPluginApiVersion = 123; // Versions marking breaking changes. static constexpr int32_t kApiVersionPeepDeprecation = 33; diff --git a/src/openrct2/scripting/bindings/entity/ScStaff.cpp b/src/openrct2/scripting/bindings/entity/ScStaff.cpp index 6bfdb83ed6..f353e7011a 100644 --- a/src/openrct2/scripting/bindings/entity/ScStaff.cpp +++ b/src/openrct2/scripting/bindings/entity/ScStaff.cpp @@ -574,6 +574,34 @@ namespace OpenRCT2::Scripting } } + ScEntertainer gScEntertainer; + + JSValue ScEntertainer::New(JSContext* ctx, EntityId entityId) + { + return gScEntity.NewDerivedInstance(ctx, entityId, gScEntertainer.GetProto()); + } + + void ScEntertainer::Register(JSContext* ctx) + { + static constexpr JSCFunctionListEntry kFuncs[] = { + JS_CGETSET_DEF("guestsEntertained", &ScEntertainer::guestsEntertained_get, nullptr), + }; + gScEntertainer.RegisterDerived(ctx, gScStaff, kFuncs); + } + + JSValue ScEntertainer::guestsEntertained_get(JSContext* ctx, JSValue thisVal) + { + auto peep = GetStaff(thisVal); + if (peep != nullptr && peep->isEntertainer()) + { + return JS_NewUint32(ctx, peep->staffGuestsEntertained); + } + else + { + return JS_NULL; + } + } + using OpaquePatrolAreaData = struct { EntityId staffId; diff --git a/src/openrct2/scripting/bindings/entity/ScStaff.hpp b/src/openrct2/scripting/bindings/entity/ScStaff.hpp index 9aa16d0ea7..e389d1b8bb 100644 --- a/src/openrct2/scripting/bindings/entity/ScStaff.hpp +++ b/src/openrct2/scripting/bindings/entity/ScStaff.hpp @@ -129,6 +129,19 @@ namespace OpenRCT2::Scripting class ScSecurity; extern ScSecurity gScSecurity; + class ScEntertainer final : public ScStaff + { + public: + static JSValue New(JSContext* ctx, EntityId entityId); + void Register(JSContext* ctx); + + private: + static JSValue guestsEntertained_get(JSContext* ctx, JSValue thisVal); + }; + + class ScEntertainer; + extern ScEntertainer gScEntertainer; + } // namespace OpenRCT2::Scripting #endif diff --git a/src/openrct2/scripting/bindings/world/ScMap.cpp b/src/openrct2/scripting/bindings/world/ScMap.cpp index 59b6510e4d..7eed729fc5 100644 --- a/src/openrct2/scripting/bindings/world/ScMap.cpp +++ b/src/openrct2/scripting/bindings/world/ScMap.cpp @@ -200,6 +200,9 @@ namespace OpenRCT2::Scripting case StaffType::security: JS_SetPropertyInt64(ctx, result, idx++, ScSecurity::New(ctx, sprite->id)); break; + case StaffType::entertainer: + JS_SetPropertyInt64(ctx, result, idx++, ScEntertainer::New(ctx, sprite->id)); + break; default: JS_SetPropertyInt64(ctx, result, idx++, ScStaff::New(ctx, sprite->id)); break; @@ -300,6 +303,9 @@ namespace OpenRCT2::Scripting case StaffType::security: JS_SetPropertyInt64(ctx, result, idx++, ScSecurity::New(ctx, sprite->id)); break; + case StaffType::entertainer: + JS_SetPropertyInt64(ctx, result, idx++, ScEntertainer::New(ctx, sprite->id)); + break; default: JS_SetPropertyInt64(ctx, result, idx++, ScStaff::New(ctx, sprite->id)); break; @@ -542,6 +548,8 @@ namespace OpenRCT2::Scripting return ScMechanic::New(ctx, spriteId); case StaffType::security: return ScSecurity::New(ctx, spriteId); + case StaffType::entertainer: + return ScEntertainer::New(ctx, spriteId); default: return ScStaff::New(ctx, spriteId); } From 252987e921fa07587f8192d3a72ac17719938c20 Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Sun, 20 Sep 2026 04:05:13 +0000 Subject: [PATCH 068/142] Merge Localisation/master into OpenRCT2/develop --- data/language/fr-FR.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/data/language/fr-FR.txt b/data/language/fr-FR.txt index d035bcaab5..2693ed9a61 100644 --- a/data/language/fr-FR.txt +++ b/data/language/fr-FR.txt @@ -3830,3 +3830,24 @@ STR_7039 :Type d’attraction STR_7040 :Éléments de chemin STR_7041 :Panneau d’information du parc STR_7042 :Panneau d’information du temps +STR_7043 :Impossible de changer la hauteur du terrain ici… +STR_7044 :Ruban d’informations +STR_7045 :Barre d’état façon RCT1 +STR_7046 :Barre d’état (façon RCT1) +STR_7047 :Bouton d’étape (concepteur de voie) +STR_7048 :Bouton d’étape (éditeur de scénario) +STR_7049 :OpenRCT2 +STR_7050 :Visiteurs en train de marcher +STR_7051 :Visiteurs se dirigeant vers {STRINGID} +STR_7052 :Visiteurs patientant pour {STRINGID} +STR_7053 :Visiteurs se noyant +STR_7054 :Visiteurs sur {STRINGID} +STR_7055 :Visiteurs dans {STRINGID} +STR_7056 :Visiteurs à {STRINGID} +STR_7057 :Visiteurs assis +STR_7058 :Visiteurs étant déplacé +STR_7059 :Visiteurs regardant {STRINGID} +STR_7060 :Visiteurs regardant la construction de {STRINGID} +STR_7061 :Visiteurs regardant le décor +STR_7062 :Visiteurs quittant le parc +STR_7063 :Visiteurs regardant la construction d’une nouvelle attraction From 31c487713557057f7860a2be85d66c14c0dcb5b1 Mon Sep 17 00:00:00 2001 From: Richard Fine Date: Sun, 20 Sep 2026 06:01:51 -0400 Subject: [PATCH 069/142] Refactor VIEWPORT_FLAG_* into enum class + FlagHolder type (#27135) Refactor the VIEWPORT_FLAG_* enum values into a proper `enum class ViewportFlag` and accompanying `ViewportFlags` FlagHolder type. Bitwise math has been replaced with `.has()`, `.set()`, `.unset()`, `.flip()`, etc as appropriate. I also introduced another overload for `FlagHolder.unset()` which takes another `FlagHolder` instance. This was to support the situation in `Viewport.cpp` lines 1260-1267 where we want to pass a large group of flags to both `hasAny()` and `unset()`, ideally without repeating them. --- src/openrct2-ui/input/Shortcuts.cpp | 36 +++--- .../interface/ViewportInteraction.cpp | 4 +- src/openrct2-ui/interface/ViewportQuery.cpp | 4 +- src/openrct2-ui/interface/Window.cpp | 2 +- src/openrct2-ui/scripting/ScViewport.hpp | 7 +- src/openrct2-ui/title/TitleSequencePlayer.cpp | 8 +- src/openrct2-ui/windows/Banner.cpp | 2 - src/openrct2-ui/windows/Guest.cpp | 10 +- src/openrct2-ui/windows/Main.cpp | 14 +-- src/openrct2-ui/windows/Options.cpp | 7 +- src/openrct2-ui/windows/Park.cpp | 13 +- src/openrct2-ui/windows/Ride.cpp | 16 +-- src/openrct2-ui/windows/RideConstruction.cpp | 2 +- src/openrct2-ui/windows/Sign.cpp | 3 - src/openrct2-ui/windows/Staff.cpp | 14 +-- src/openrct2-ui/windows/TopToolbar.cpp | 64 +++++----- src/openrct2-ui/windows/TrackDesignPlace.cpp | 4 +- src/openrct2-ui/windows/Transparency.cpp | 82 ++++++------- src/openrct2-ui/windows/ViewClipping.cpp | 12 +- src/openrct2-ui/windows/Viewport.cpp | 6 +- src/openrct2/Context.cpp | 6 +- src/openrct2/audio/Audio.cpp | 2 +- src/openrct2/core/FlagHolder.hpp | 5 + src/openrct2/drawing/LightFX.cpp | 4 +- src/openrct2/drawing/WeatherDrawer.cpp | 4 +- src/openrct2/interface/Screenshot.cpp | 14 +-- src/openrct2/interface/Viewport.cpp | 113 +++++++++--------- src/openrct2/interface/Viewport.h | 51 +------- src/openrct2/interface/ViewportFlags.h | 58 +++++++++ src/openrct2/interface/Window.cpp | 17 ++- src/openrct2/interface/Window.h | 3 +- src/openrct2/paint/Paint.Entity.cpp | 8 +- src/openrct2/paint/Paint.cpp | 8 +- src/openrct2/paint/Paint.h | 5 +- src/openrct2/paint/Painter.cpp | 2 +- src/openrct2/paint/Painter.h | 2 +- src/openrct2/paint/support/MetalSupports.cpp | 8 +- src/openrct2/paint/support/WoodenSupports.cpp | 4 +- .../paint/tile_element/Paint.Banner.cpp | 2 +- .../paint/tile_element/Paint.Entrance.cpp | 6 +- .../paint/tile_element/Paint.LargeScenery.cpp | 2 +- .../paint/tile_element/Paint.Path.cpp | 4 +- .../paint/tile_element/Paint.PathAddition.cpp | 6 +- .../paint/tile_element/Paint.SmallScenery.cpp | 2 +- .../paint/tile_element/Paint.Surface.cpp | 36 +++--- .../paint/tile_element/Paint.TileElement.cpp | 15 ++- .../paint/tile_element/Paint.TileElement.h | 7 +- .../paint/tile_element/Paint.Wall.cpp | 2 +- .../track/coaster/WoodenRollerCoaster.cpp | 2 +- src/openrct2/park/ParkPreview.cpp | 2 +- src/openrct2/ride/Ride.cpp | 2 +- src/openrct2/ride/TrackDesign.cpp | 2 +- src/openrct2/ride/TrackPaint.cpp | 4 +- .../scenes/preloader/PreloaderScene.cpp | 2 +- 54 files changed, 367 insertions(+), 353 deletions(-) create mode 100644 src/openrct2/interface/ViewportFlags.h diff --git a/src/openrct2-ui/input/Shortcuts.cpp b/src/openrct2-ui/input/Shortcuts.cpp index 14f79e184a..ef4cb066b4 100644 --- a/src/openrct2-ui/input/Shortcuts.cpp +++ b/src/openrct2-ui/input/Shortcuts.cpp @@ -66,14 +66,14 @@ static void RotateCamera(int32_t direction) } } -static void ToggleViewFlag(int32_t viewportFlag) +static void ToggleViewFlag(ViewportFlag viewportFlag) { if (gLegacyScene != LegacyScene::titleSequence) { auto window = WindowGetMain(); if (window != nullptr) { - window->viewport->flags ^= viewportFlag; + window->viewport->flags.flip(viewportFlag); window->invalidate(); } } @@ -849,24 +849,24 @@ void ShortcutManager::registerDefaultShortcuts() registerShortcut(ShortcutId::kViewScrollLeft, STR_SHORTCUT_SCROLL_MAP_LEFT, "LEFT", []() {}); registerShortcut(ShortcutId::kViewScrollRight, STR_SHORTCUT_SCROLL_MAP_RIGHT, "RIGHT", []() {}); registerShortcut(ShortcutId::kViewScrollDown, STR_SHORTCUT_SCROLL_MAP_DOWN, "DOWN", []() {}); - registerShortcut(ShortcutId::kViewToggleUnderground, STR_SHORTCUT_UNDERGROUND_VIEW_TOGGLE, "1", std::bind(ToggleViewFlag, VIEWPORT_FLAG_UNDERGROUND_INSIDE)); + registerShortcut(ShortcutId::kViewToggleUnderground, STR_SHORTCUT_UNDERGROUND_VIEW_TOGGLE, "1", std::bind(ToggleViewFlag, ViewportFlag::undergroundInside)); registerShortcut(ShortcutId::kViewToggleTransparentWater, STR_VIEWPORT_TRANSPARENT_WATER, "2", ShortcutToggleTransparentWater); - registerShortcut(ShortcutId::kViewToggleBaseLand, STR_SHORTCUT_REMOVE_BASE_LAND_TOGGLE, "H", std::bind(ToggleViewFlag, VIEWPORT_FLAG_HIDE_BASE)); - registerShortcut(ShortcutId::kViewToggleVerticalLand, STR_SHORTCUT_REMOVE_VERTICAL_LAND_TOGGLE, "V", std::bind(ToggleViewFlag, VIEWPORT_FLAG_HIDE_VERTICAL)); - registerShortcut(ShortcutId::kViewToggleRides, STR_SHORTCUT_SEE_THROUGH_RIDES_TOGGLE, "3", std::bind(ToggleViewFlag, VIEWPORT_FLAG_HIDE_RIDES)); - registerShortcut(ShortcutId::kViewToggleVehicles, STR_SHORTCUT_SEE_THROUGH_VEHICLES_TOGGLE, std::bind(ToggleViewFlag, VIEWPORT_FLAG_HIDE_VEHICLES)); - registerShortcut(ShortcutId::kViewToggleVegetation, STR_SHORTCUT_SEE_THROUGH_VEGETATION_TOGGLE, std::bind(ToggleViewFlag, VIEWPORT_FLAG_HIDE_VEGETATION)); - registerShortcut(ShortcutId::kViewToggleScenery, STR_SHORTCUT_SEE_THROUGH_SCENERY_TOGGLE, "4", std::bind(ToggleViewFlag, VIEWPORT_FLAG_HIDE_SCENERY)); - registerShortcut(ShortcutId::kViewToggleFootpaths, STR_SHORTCUT_SEE_THROUGH_PATHS_TOGGLE, std::bind(ToggleViewFlag, VIEWPORT_FLAG_HIDE_PATHS)); - registerShortcut(ShortcutId::kViewToggleSupports, STR_SHORTCUT_INVISIBLE_SUPPORTS_TOGGLE, "5", std::bind(ToggleViewFlag, VIEWPORT_FLAG_HIDE_SUPPORTS)); - registerShortcut(ShortcutId::kViewToggleGuests, STR_SHORTCUT_SEE_THROUGH_GUESTS_TOGGLE, "6", std::bind(ToggleViewFlag, VIEWPORT_FLAG_HIDE_GUESTS)); - registerShortcut(ShortcutId::kViewToggleStaff, STR_SHORTCUT_SEE_THROUGH_STAFF_TOGGLE, std::bind(ToggleViewFlag, VIEWPORT_FLAG_HIDE_STAFF)); - registerShortcut(ShortcutId::kViewToggleLandHeightMarkers, STR_SHORTCUT_HEIGHT_MARKS_ON_LAND_TOGGLE, "8", std::bind(ToggleViewFlag, VIEWPORT_FLAG_LAND_HEIGHTS)); - registerShortcut(ShortcutId::kViewToggleTrackHeightMarkers, STR_SHORTCUT_HEIGHT_MARKS_ON_RIDE_TRACKS_TOGGLE, "9", std::bind(ToggleViewFlag, VIEWPORT_FLAG_TRACK_HEIGHTS)); - registerShortcut(ShortcutId::kViewToggleFootpathHeightMarkers, STR_SHORTCUT_HEIGHT_MARKS_ON_PATHS_TOGGLE, "0", std::bind(ToggleViewFlag, VIEWPORT_FLAG_PATH_HEIGHTS)); - registerShortcut(ShortcutId::kViewToggleGridlines, STR_SHORTCUT_GRIDLINES_DISPLAY_TOGGLE, "7", std::bind(ToggleViewFlag, VIEWPORT_FLAG_GRIDLINES)); + registerShortcut(ShortcutId::kViewToggleBaseLand, STR_SHORTCUT_REMOVE_BASE_LAND_TOGGLE, "H", std::bind(ToggleViewFlag, ViewportFlag::hideBase)); + registerShortcut(ShortcutId::kViewToggleVerticalLand, STR_SHORTCUT_REMOVE_VERTICAL_LAND_TOGGLE, "V", std::bind(ToggleViewFlag, ViewportFlag::hideVertical)); + registerShortcut(ShortcutId::kViewToggleRides, STR_SHORTCUT_SEE_THROUGH_RIDES_TOGGLE, "3", std::bind(ToggleViewFlag, ViewportFlag::hideRides)); + registerShortcut(ShortcutId::kViewToggleVehicles, STR_SHORTCUT_SEE_THROUGH_VEHICLES_TOGGLE, std::bind(ToggleViewFlag, ViewportFlag::hideVehicles)); + registerShortcut(ShortcutId::kViewToggleVegetation, STR_SHORTCUT_SEE_THROUGH_VEGETATION_TOGGLE, std::bind(ToggleViewFlag, ViewportFlag::hideVegetation)); + registerShortcut(ShortcutId::kViewToggleScenery, STR_SHORTCUT_SEE_THROUGH_SCENERY_TOGGLE, "4", std::bind(ToggleViewFlag, ViewportFlag::hideScenery)); + registerShortcut(ShortcutId::kViewToggleFootpaths, STR_SHORTCUT_SEE_THROUGH_PATHS_TOGGLE, std::bind(ToggleViewFlag, ViewportFlag::hidePaths)); + registerShortcut(ShortcutId::kViewToggleSupports, STR_SHORTCUT_INVISIBLE_SUPPORTS_TOGGLE, "5", std::bind(ToggleViewFlag, ViewportFlag::hideSupports)); + registerShortcut(ShortcutId::kViewToggleGuests, STR_SHORTCUT_SEE_THROUGH_GUESTS_TOGGLE, "6", std::bind(ToggleViewFlag, ViewportFlag::hideGuests)); + registerShortcut(ShortcutId::kViewToggleStaff, STR_SHORTCUT_SEE_THROUGH_STAFF_TOGGLE, std::bind(ToggleViewFlag, ViewportFlag::hideStaff)); + registerShortcut(ShortcutId::kViewToggleLandHeightMarkers, STR_SHORTCUT_HEIGHT_MARKS_ON_LAND_TOGGLE, "8", std::bind(ToggleViewFlag, ViewportFlag::landHeights)); + registerShortcut(ShortcutId::kViewToggleTrackHeightMarkers, STR_SHORTCUT_HEIGHT_MARKS_ON_RIDE_TRACKS_TOGGLE, "9", std::bind(ToggleViewFlag, ViewportFlag::trackHeights)); + registerShortcut(ShortcutId::kViewToggleFootpathHeightMarkers, STR_SHORTCUT_HEIGHT_MARKS_ON_PATHS_TOGGLE, "0", std::bind(ToggleViewFlag, ViewportFlag::pathHeights)); + registerShortcut(ShortcutId::kViewToggleGridlines, STR_SHORTCUT_GRIDLINES_DISPLAY_TOGGLE, "7", std::bind(ToggleViewFlag, ViewportFlag::gridlines)); registerShortcut(ShortcutId::kViewToggleCutAway, STR_SHORTCUT_VIEW_CLIPPING, std::bind(OpenWindow, WindowClass::viewClipping)); - registerShortcut(ShortcutId::kViewToggleFootpathIssues, STR_SHORTCUT_HIGHLIGHT_PATH_ISSUES_TOGGLE, "I", std::bind(ToggleViewFlag, VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES)); + registerShortcut(ShortcutId::kViewToggleFootpathIssues, STR_SHORTCUT_HIGHLIGHT_PATH_ISSUES_TOGGLE, "I", std::bind(ToggleViewFlag, ViewportFlag::highlightPathIssues)); // Window registerShortcut(ShortcutId::kWindowRideConstructionTurnLeft, STR_SHORTCUT_CONSTRUCTION_TURN_LEFT, "NUMPAD 4", ShortcutConstructionTurnLeft); diff --git a/src/openrct2-ui/interface/ViewportInteraction.cpp b/src/openrct2-ui/interface/ViewportInteraction.cpp index ef8c2e057f..92db04525d 100644 --- a/src/openrct2-ui/interface/ViewportInteraction.cpp +++ b/src/openrct2-ui/interface/ViewportInteraction.cpp @@ -777,9 +777,9 @@ namespace OpenRCT2::Ui auto viewportCoords = viewport->ScreenToViewportCoord(screenCoords); PeepDistance goal; - if (!(viewport->flags & VIEWPORT_FLAG_HIDE_GUESTS)) + if (!viewport->flags.has(ViewportFlag::hideGuests)) goal = GetClosestPeep(viewportCoords, viewport->rotation, maxDistance, goal); - if (!(viewport->flags & VIEWPORT_FLAG_HIDE_STAFF)) + if (!viewport->flags.has(ViewportFlag::hideStaff)) goal = GetClosestPeep(viewportCoords, viewport->rotation, maxDistance, goal); return goal.peep; } diff --git a/src/openrct2-ui/interface/ViewportQuery.cpp b/src/openrct2-ui/interface/ViewportQuery.cpp index e394f6b88f..29eae32f75 100644 --- a/src/openrct2-ui/interface/ViewportQuery.cpp +++ b/src/openrct2-ui/interface/ViewportQuery.cpp @@ -47,7 +47,7 @@ namespace OpenRCT2::Ui auto viewport = window->viewport; auto info = GetMapCoordinatesFromPosWindow(window, screenCoords, { ViewportInteractionItem::footpath }); if (info.interactionType != ViewportInteractionItem::footpath - || !(viewport->flags & (VIEWPORT_FLAG_UNDERGROUND_INSIDE | VIEWPORT_FLAG_HIDE_BASE | VIEWPORT_FLAG_HIDE_VERTICAL))) + || !viewport->flags.hasAny(ViewportFlag::undergroundInside, ViewportFlag::hideBase, ViewportFlag::hideVertical)) { info = GetMapCoordinatesFromPosWindow( window, screenCoords, { ViewportInteractionItem::terrain, ViewportInteractionItem::footpath }); @@ -147,7 +147,7 @@ namespace OpenRCT2::Ui auto info = GetMapCoordinatesFromPosWindow(window, screenCoords, ViewportInteractionItem::ride); *tileElement = info.Element; if (info.interactionType == ViewportInteractionItem::ride - && viewport->flags & (VIEWPORT_FLAG_UNDERGROUND_INSIDE | VIEWPORT_FLAG_HIDE_BASE | VIEWPORT_FLAG_HIDE_VERTICAL) + && viewport->flags.hasAny(ViewportFlag::undergroundInside, ViewportFlag::hideBase, ViewportFlag::hideVertical) && (*tileElement)->getType() == TileElementType::entrance) { uint32_t directions = (*tileElement)->asEntrance()->getDirections(); diff --git a/src/openrct2-ui/interface/Window.cpp b/src/openrct2-ui/interface/Window.cpp index 252fb006f4..ca11b470f5 100644 --- a/src/openrct2-ui/interface/Window.cpp +++ b/src/openrct2-ui/interface/Window.cpp @@ -540,7 +540,7 @@ namespace OpenRCT2::Ui::Windows auto viewport = w.viewport; if (viewport != nullptr) { - if (viewport->flags & VIEWPORT_FLAG_SOUND_ON) + if (viewport->flags.has(ViewportFlag::soundOn)) { return &w; } diff --git a/src/openrct2-ui/scripting/ScViewport.hpp b/src/openrct2-ui/scripting/ScViewport.hpp index d826ea4097..0e4ee53cd7 100644 --- a/src/openrct2-ui/scripting/ScViewport.hpp +++ b/src/openrct2-ui/scripting/ScViewport.hpp @@ -174,7 +174,7 @@ namespace OpenRCT2::Scripting auto viewport = GetViewport(thisVal); if (viewport != nullptr) { - return JS_NewInt64(ctx, viewport->flags); + return JS_NewInt64(ctx, viewport->flags.holder); } return JS_NewInt32(ctx, 0); } @@ -188,9 +188,10 @@ namespace OpenRCT2::Scripting auto viewport = w->viewport; if (viewport != nullptr) { - if (viewport->flags != valueUint) + auto newValue = ViewportFlags(valueUint); + if (viewport->flags != newValue) { - viewport->flags = valueUint; + viewport->flags = newValue; w->invalidate(); } } diff --git a/src/openrct2-ui/title/TitleSequencePlayer.cpp b/src/openrct2-ui/title/TitleSequencePlayer.cpp index 58d4f1cf16..11cb6db63d 100644 --- a/src/openrct2-ui/title/TitleSequencePlayer.cpp +++ b/src/openrct2-ui/title/TitleSequencePlayer.cpp @@ -308,7 +308,7 @@ namespace OpenRCT2::Title else { // Inhibit viewport rendering while we're loading - WindowSetFlagForAllViewports(VIEWPORT_FLAG_RENDERING_INHIBITED, true); + WindowSetFlagForAllViewports(ViewportFlag::renderingInhibited, true); ReportProgress(0); auto parkImporter = ParkImporter::Create(path); @@ -341,7 +341,7 @@ namespace OpenRCT2::Title } // Reset viewport rendering inhibition - WindowSetFlagForAllViewports(VIEWPORT_FLAG_RENDERING_INHIBITED, false); + WindowSetFlagForAllViewports(ViewportFlag::renderingInhibited, false); gLoadKeepWindowsOpen = false; return success; @@ -366,7 +366,7 @@ namespace OpenRCT2::Title else { // Inhibit viewport rendering while we're loading - WindowSetFlagForAllViewports(VIEWPORT_FLAG_RENDERING_INHIBITED, true); + WindowSetFlagForAllViewports(ViewportFlag::renderingInhibited, true); ReportProgress(0); bool isScenario = ParkImporter::ExtensionIsScenario(hintPath); @@ -397,7 +397,7 @@ namespace OpenRCT2::Title } // Reset viewport rendering inhibition - WindowSetFlagForAllViewports(VIEWPORT_FLAG_RENDERING_INHIBITED, false); + WindowSetFlagForAllViewports(ViewportFlag::renderingInhibited, false); gLoadKeepWindowsOpen = false; return success; diff --git a/src/openrct2-ui/windows/Banner.cpp b/src/openrct2-ui/windows/Banner.cpp index ab43ef83a0..7b52c8093a 100644 --- a/src/openrct2-ui/windows/Banner.cpp +++ b/src/openrct2-ui/windows/Banner.cpp @@ -89,8 +89,6 @@ namespace OpenRCT2::Ui::Windows *this, windowPos + ScreenCoordsXY{ viewportWidget.left + 1, viewportWidget.top + 1 }, viewportWidget.width() - 2, viewportWidget.height() - 2, Focus(_bannerViewPos)); - if (viewport != nullptr) - viewport->flags = Config::Get().general.alwaysShowGridlines ? VIEWPORT_FLAG_GRIDLINES : VIEWPORT_FLAG_NONE; invalidate(); } diff --git a/src/openrct2-ui/windows/Guest.cpp b/src/openrct2-ui/windows/Guest.cpp index 46341ee11d..9933554e74 100644 --- a/src/openrct2-ui/windows/Guest.cpp +++ b/src/openrct2-ui/windows/Guest.cpp @@ -508,8 +508,8 @@ namespace OpenRCT2::Ui::Windows bool listen = false; if (newPage == WINDOW_GUEST_OVERVIEW && page == WINDOW_GUEST_OVERVIEW && viewport != nullptr) { - viewport->flags ^= VIEWPORT_FLAG_SOUND_ON; - listen = (viewport->flags & VIEWPORT_FLAG_SOUND_ON) != 0; + viewport->flags.flip(ViewportFlag::soundOn); + listen = viewport->flags.has(ViewportFlag::soundOn); } // Skip setting page if we're already on this page, unless we're initialising the window @@ -532,7 +532,7 @@ namespace OpenRCT2::Ui::Windows invalidate(); if (listen && viewport != nullptr) - viewport->flags |= VIEWPORT_FLAG_SOUND_ON; + viewport->flags.set(ViewportFlag::soundOn); } #pragma region Overview @@ -743,7 +743,7 @@ namespace OpenRCT2::Ui::Windows ViewportUpdateSmartFollowGuest(this, *peep); bool reCreateViewport = false; - uint16_t origViewportFlags{}; + ViewportFlags origViewportFlags{}; if (viewport != nullptr) { if (focus.has_value()) @@ -790,7 +790,7 @@ namespace OpenRCT2::Ui::Windows if (viewport != nullptr) { WindowDrawViewport(rt, *this); - if (viewport->flags & VIEWPORT_FLAG_SOUND_ON) + if (viewport->flags.has(ViewportFlag::soundOn)) { GfxDrawSprite(rt, ImageId(SPR_HEARING_VIEWPORT), WindowGetViewportSoundIconPos(*this)); } diff --git a/src/openrct2-ui/windows/Main.cpp b/src/openrct2-ui/windows/Main.cpp index 633f3be2d7..72f744493f 100644 --- a/src/openrct2-ui/windows/Main.cpp +++ b/src/openrct2-ui/windows/Main.cpp @@ -52,19 +52,19 @@ namespace OpenRCT2::Ui::Windows private: void SetViewportFlags() { - viewport->flags |= VIEWPORT_FLAG_SOUND_ON; + viewport->flags.set(ViewportFlag::soundOn); if (Config::Get().general.invisibleRides) - viewport->flags |= VIEWPORT_FLAG_INVISIBLE_RIDES; + viewport->flags.set(ViewportFlag::invisibleRides); if (Config::Get().general.invisibleVehicles) - viewport->flags |= VIEWPORT_FLAG_INVISIBLE_VEHICLES; + viewport->flags.set(ViewportFlag::invisibleVehicles); if (Config::Get().general.invisibleTrees) - viewport->flags |= VIEWPORT_FLAG_INVISIBLE_VEGETATION; + viewport->flags.set(ViewportFlag::invisibleVegetation); if (Config::Get().general.invisibleScenery) - viewport->flags |= VIEWPORT_FLAG_INVISIBLE_SCENERY; + viewport->flags.set(ViewportFlag::invisibleScenery); if (Config::Get().general.invisiblePaths) - viewport->flags |= VIEWPORT_FLAG_INVISIBLE_PATHS; + viewport->flags.set(ViewportFlag::invisiblePaths); if (Config::Get().general.invisibleSupports) - viewport->flags |= VIEWPORT_FLAG_INVISIBLE_SUPPORTS; + viewport->flags.set(ViewportFlag::invisibleSupports); } }; diff --git a/src/openrct2-ui/windows/Options.cpp b/src/openrct2-ui/windows/Options.cpp index 3f6a209b2a..6d9f9e0ac0 100644 --- a/src/openrct2-ui/windows/Options.cpp +++ b/src/openrct2-ui/windows/Options.cpp @@ -1044,12 +1044,7 @@ namespace OpenRCT2::Ui::Windows GfxInvalidateScreen(); WindowBase* mainWindow = WindowGetMain(); if (mainWindow != nullptr) - { - if (Config::Get().general.alwaysShowGridlines) - mainWindow->viewport->flags |= VIEWPORT_FLAG_GRIDLINES; - else - mainWindow->viewport->flags &= ~VIEWPORT_FLAG_GRIDLINES; - } + mainWindow->viewport->flags.set(ViewportFlag::gridlines, Config::Get().general.alwaysShowGridlines); break; } case WIDX_DAY_NIGHT_CHECKBOX: diff --git a/src/openrct2-ui/windows/Park.cpp b/src/openrct2-ui/windows/Park.cpp index 2146ccfa98..14770fcd64 100644 --- a/src/openrct2-ui/windows/Park.cpp +++ b/src/openrct2-ui/windows/Park.cpp @@ -575,7 +575,7 @@ namespace OpenRCT2::Ui::Windows if (viewport != nullptr) { WindowDrawViewport(rt, *this); - if (viewport->flags & VIEWPORT_FLAG_SOUND_ON) + if (viewport->flags.has(ViewportFlag::soundOn)) GfxDrawSprite(rt, ImageId(SPR_HEARING_VIEWPORT), WindowGetViewportSoundIconPos(*this)); } @@ -601,10 +601,11 @@ namespace OpenRCT2::Ui::Windows newFocus = Focus(CoordsXYZ{ entrance.x + 16, entrance.y + 16, entrance.z + 32 }); } - int32_t viewportFlags{}; + ViewportFlags viewportFlags{}; if (viewport == nullptr) { - viewportFlags = Config::Get().general.alwaysShowGridlines ? VIEWPORT_FLAG_GRIDLINES : VIEWPORT_FLAG_NONE; + if (Config::Get().general.alwaysShowGridlines) + viewportFlags.set(ViewportFlag::gridlines); } else { @@ -1150,8 +1151,8 @@ namespace OpenRCT2::Ui::Windows bool listen = false; if (newPage == WINDOW_PARK_PAGE_ENTRANCE && page == WINDOW_PARK_PAGE_ENTRANCE && viewport != nullptr) { - viewport->flags ^= VIEWPORT_FLAG_SOUND_ON; - listen = (viewport->flags & VIEWPORT_FLAG_SOUND_ON) != 0; + viewport->flags.flip(ViewportFlag::soundOn); + listen = viewport->flags.has(ViewportFlag::soundOn); } // Skip setting page if we're already on this page, unless we're initialising the window @@ -1180,7 +1181,7 @@ namespace OpenRCT2::Ui::Windows resizeFrame(); if (listen && viewport != nullptr) - viewport->flags |= VIEWPORT_FLAG_SOUND_ON; + viewport->flags.set(ViewportFlag::soundOn); } void SetPressedTab() diff --git a/src/openrct2-ui/windows/Ride.cpp b/src/openrct2-ui/windows/Ride.cpp index 471b241e37..c23c74f79e 100644 --- a/src/openrct2-ui/windows/Ride.cpp +++ b/src/openrct2-ui/windows/Ride.cpp @@ -1186,8 +1186,8 @@ namespace OpenRCT2::Ui::Windows bool listen = false; if (newPage == WINDOW_RIDE_PAGE_MAIN && page == WINDOW_RIDE_PAGE_MAIN && viewport != nullptr) { - viewport->flags ^= VIEWPORT_FLAG_SOUND_ON; - listen = (viewport->flags & VIEWPORT_FLAG_SOUND_ON) != 0; + viewport->flags.flip(ViewportFlag::soundOn); + listen = viewport->flags.has(ViewportFlag::soundOn); } // Skip setting page if we're already on this page, unless we're initialising the window @@ -1219,7 +1219,7 @@ namespace OpenRCT2::Ui::Windows invalidate(); if (listen && viewport != nullptr) - viewport->flags |= VIEWPORT_FLAG_SOUND_ON; + viewport->flags.set(ViewportFlag::soundOn); } void setViewIndex(int16_t newIndex) @@ -1592,7 +1592,7 @@ namespace OpenRCT2::Ui::Windows } } - uint16_t newViewportFlags = 0; + ViewportFlags newViewportFlags; if (viewport != nullptr) { if (focus == newFocus) @@ -1604,7 +1604,7 @@ namespace OpenRCT2::Ui::Windows } else if (Config::Get().general.alwaysShowGridlines) { - newViewportFlags |= VIEWPORT_FLAG_GRIDLINES; + newViewportFlags.set(ViewportFlag::gridlines); } onPrepareDraw(); @@ -2614,7 +2614,7 @@ namespace OpenRCT2::Ui::Windows if (viewport != nullptr) { WindowDrawViewport(rt, *this); - if (viewport->flags & VIEWPORT_FLAG_SOUND_ON) + if (viewport->flags.has(ViewportFlag::soundOn)) GfxDrawSprite(rt, ImageId(SPR_HEARING_VIEWPORT), WindowGetViewportSoundIconPos(*this)); } @@ -5669,7 +5669,7 @@ namespace OpenRCT2::Ui::Windows WindowBase* w_main = WindowGetMain(); if (w_main != nullptr) { - w_main->viewport->flags |= (VIEWPORT_FLAG_HIDE_VERTICAL | VIEWPORT_FLAG_HIDE_BASE); + w_main->viewport->flags.set(ViewportFlag::hideVertical, ViewportFlag::hideBase); } GfxInvalidateScreen(); @@ -7454,7 +7454,7 @@ namespace OpenRCT2::Ui::Windows WindowBase* main_w = WindowGetMain(); if (main_w != nullptr) { - main_w->viewport->flags &= ~(VIEWPORT_FLAG_HIDE_VERTICAL | VIEWPORT_FLAG_HIDE_BASE); + main_w->viewport->flags.unset(ViewportFlag::hideVertical, ViewportFlag::hideBase); } GfxInvalidateScreen(); diff --git a/src/openrct2-ui/windows/RideConstruction.cpp b/src/openrct2-ui/windows/RideConstruction.cpp index 85627b45ba..1fb7511be5 100644 --- a/src/openrct2-ui/windows/RideConstruction.cpp +++ b/src/openrct2-ui/windows/RideConstruction.cpp @@ -2693,7 +2693,7 @@ namespace OpenRCT2::Ui::Windows TileElement tempSideTrackTileElement{ 0x80, 0x8F, 128, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; TileElement tempTrackTileElement{}; TileElement* backupTileElementArrays[5]{}; - PaintSession* session = PaintSessionAlloc(rt, 0, GetCurrentRotation()); + PaintSession* session = PaintSessionAlloc(rt, ViewportFlags(), GetCurrentRotation()); trackDirection &= 3; auto currentRide = GetRide(rideIndex); diff --git a/src/openrct2-ui/windows/Sign.cpp b/src/openrct2-ui/windows/Sign.cpp index 2c7ddf2da7..1e1bcd2e12 100644 --- a/src/openrct2-ui/windows/Sign.cpp +++ b/src/openrct2-ui/windows/Sign.cpp @@ -137,7 +137,6 @@ namespace OpenRCT2::Ui::Windows *this, windowPos + ScreenCoordsXY{ viewportWidget.left + 1, viewportWidget.top + 1 }, viewportWidget.width() - 2, viewportWidget.height() - 2, Focus(CoordsXYZ{ signViewPosition, viewZ })); - viewport->flags = Config::Get().general.alwaysShowGridlines ? VIEWPORT_FLAG_GRIDLINES : VIEWPORT_FLAG_NONE; invalidate(); return true; @@ -319,8 +318,6 @@ namespace OpenRCT2::Ui::Windows ViewportCreate( *this, windowPos + ScreenCoordsXY{ viewportWidget->left + 1, viewportWidget->top + 1 }, viewportWidget->width() - 2, viewportWidget->height() - 2, Focus(CoordsXYZ{ signViewPos })); - if (viewport != nullptr) - viewport->flags = Config::Get().general.alwaysShowGridlines ? VIEWPORT_FLAG_GRIDLINES : VIEWPORT_FLAG_NONE; invalidate(); } }; diff --git a/src/openrct2-ui/windows/Staff.cpp b/src/openrct2-ui/windows/Staff.cpp index 44586af2a4..3fdf76dba2 100644 --- a/src/openrct2-ui/windows/Staff.cpp +++ b/src/openrct2-ui/windows/Staff.cpp @@ -547,7 +547,7 @@ namespace OpenRCT2::Ui::Windows { WindowDrawViewport(rt, *this); - if (viewport->flags & VIEWPORT_FLAG_SOUND_ON) + if (viewport->flags.has(ViewportFlag::soundOn)) { GfxDrawSprite(rt, ImageId(SPR_HEARING_VIEWPORT), WindowGetViewportSoundIconPos(*this)); } @@ -1064,8 +1064,8 @@ namespace OpenRCT2::Ui::Windows bool listen = false; if (page == WINDOW_STAFF_OVERVIEW && newPage == WINDOW_STAFF_OVERVIEW && viewport != nullptr) { - viewport->flags ^= VIEWPORT_FLAG_SOUND_ON; - listen = (viewport->flags & VIEWPORT_FLAG_SOUND_ON) != 0; + viewport->flags.flip(ViewportFlag::soundOn); + listen = viewport->flags.has(ViewportFlag::soundOn); } // Skip setting page if we're already on this page, unless we're initialising the window @@ -1087,7 +1087,7 @@ namespace OpenRCT2::Ui::Windows invalidate(); if (listen && viewport != nullptr) - viewport->flags |= VIEWPORT_FLAG_SOUND_ON; + viewport->flags.set(ViewportFlag::soundOn); } void SetPressedTab() @@ -1127,7 +1127,7 @@ namespace OpenRCT2::Ui::Windows tempFocus = Focus(staff->id); } - uint16_t viewport_flags; + ViewportFlags viewport_flags; if (viewport != nullptr) { @@ -1139,9 +1139,9 @@ namespace OpenRCT2::Ui::Windows } else { - viewport_flags = 0; + viewport_flags.clearAll(); if (Config::Get().general.alwaysShowGridlines) - viewport_flags |= VIEWPORT_FLAG_GRIDLINES; + viewport_flags.set(ViewportFlag::gridlines); } onPrepareDraw(); diff --git a/src/openrct2-ui/windows/TopToolbar.cpp b/src/openrct2-ui/windows/TopToolbar.cpp index e300d623a0..cb36436a5e 100644 --- a/src/openrct2-ui/windows/TopToolbar.cpp +++ b/src/openrct2-ui/windows/TopToolbar.cpp @@ -311,23 +311,23 @@ namespace OpenRCT2::Ui::Windows colours[1].withFlag(ColourFlag::translucent, true), {}, TOP_TOOLBAR_VIEW_MENU_COUNT); auto mvpFlags = WindowGetMain()->viewport->flags; - gDropdown.items[DDIDX_UNDERGROUND_INSIDE].setChecked(mvpFlags & VIEWPORT_FLAG_UNDERGROUND_INSIDE); + gDropdown.items[DDIDX_UNDERGROUND_INSIDE].setChecked(mvpFlags.has(ViewportFlag::undergroundInside)); gDropdown.items[DDIDX_TRANSPARENT_WATER].setChecked(Config::Get().general.transparentWater); - gDropdown.items[DDIDX_HIDE_BASE].setChecked(mvpFlags & VIEWPORT_FLAG_HIDE_BASE); - gDropdown.items[DDIDX_HIDE_VERTICAL].setChecked(mvpFlags & VIEWPORT_FLAG_HIDE_VERTICAL); - gDropdown.items[DDIDX_HIDE_RIDES].setChecked(mvpFlags & VIEWPORT_FLAG_HIDE_RIDES); - gDropdown.items[DDIDX_HIDE_VEHICLES].setChecked(mvpFlags & VIEWPORT_FLAG_HIDE_VEHICLES); - gDropdown.items[DDIDX_HIDE_VEGETATION].setChecked(mvpFlags & VIEWPORT_FLAG_HIDE_VEGETATION); - gDropdown.items[DDIDX_HIDE_SCENERY].setChecked(mvpFlags & VIEWPORT_FLAG_HIDE_SCENERY); - gDropdown.items[DDIDX_HIDE_PATHS].setChecked(mvpFlags & VIEWPORT_FLAG_HIDE_PATHS); - gDropdown.items[DDIDX_HIDE_SUPPORTS].setChecked(mvpFlags & VIEWPORT_FLAG_HIDE_SUPPORTS); - gDropdown.items[DDIDX_HIDE_GUESTS].setChecked(mvpFlags & VIEWPORT_FLAG_HIDE_GUESTS); - gDropdown.items[DDIDX_HIDE_STAFF].setChecked(mvpFlags & VIEWPORT_FLAG_HIDE_STAFF); - gDropdown.items[DDIDX_LAND_HEIGHTS].setChecked(mvpFlags & VIEWPORT_FLAG_LAND_HEIGHTS); - gDropdown.items[DDIDX_TRACK_HEIGHTS].setChecked(mvpFlags & VIEWPORT_FLAG_TRACK_HEIGHTS); - gDropdown.items[DDIDX_PATH_HEIGHTS].setChecked(mvpFlags & VIEWPORT_FLAG_PATH_HEIGHTS); - gDropdown.items[DDIDX_VIEW_CLIPPING].setChecked(mvpFlags & VIEWPORT_FLAG_CLIP_VIEW); - gDropdown.items[DDIDX_HIGHLIGHT_PATH_ISSUES].setChecked(mvpFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES); + gDropdown.items[DDIDX_HIDE_BASE].setChecked(mvpFlags.has(ViewportFlag::hideBase)); + gDropdown.items[DDIDX_HIDE_VERTICAL].setChecked(mvpFlags.has(ViewportFlag::hideVertical)); + gDropdown.items[DDIDX_HIDE_RIDES].setChecked(mvpFlags.has(ViewportFlag::hideRides)); + gDropdown.items[DDIDX_HIDE_VEHICLES].setChecked(mvpFlags.has(ViewportFlag::hideVehicles)); + gDropdown.items[DDIDX_HIDE_VEGETATION].setChecked(mvpFlags.has(ViewportFlag::hideVegetation)); + gDropdown.items[DDIDX_HIDE_SCENERY].setChecked(mvpFlags.has(ViewportFlag::hideScenery)); + gDropdown.items[DDIDX_HIDE_PATHS].setChecked(mvpFlags.has(ViewportFlag::hidePaths)); + gDropdown.items[DDIDX_HIDE_SUPPORTS].setChecked(mvpFlags.has(ViewportFlag::hideSupports)); + gDropdown.items[DDIDX_HIDE_GUESTS].setChecked(mvpFlags.has(ViewportFlag::hideGuests)); + gDropdown.items[DDIDX_HIDE_STAFF].setChecked(mvpFlags.has(ViewportFlag::hideStaff)); + gDropdown.items[DDIDX_LAND_HEIGHTS].setChecked(mvpFlags.has(ViewportFlag::landHeights)); + gDropdown.items[DDIDX_TRACK_HEIGHTS].setChecked(mvpFlags.has(ViewportFlag::trackHeights)); + gDropdown.items[DDIDX_PATH_HEIGHTS].setChecked(mvpFlags.has(ViewportFlag::pathHeights)); + gDropdown.items[DDIDX_VIEW_CLIPPING].setChecked(mvpFlags.has(ViewportFlag::clipView)); + gDropdown.items[DDIDX_HIGHLIGHT_PATH_ISSUES].setChecked(mvpFlags.has(ViewportFlag::highlightPathIssues)); gDropdown.defaultIndex = DDIDX_UNDERGROUND_INSIDE; } @@ -340,50 +340,50 @@ namespace OpenRCT2::Ui::Windows switch (dropdownIndex) { case DDIDX_UNDERGROUND_INSIDE: - w->viewport->flags ^= VIEWPORT_FLAG_UNDERGROUND_INSIDE; + w->viewport->flags.flip(ViewportFlag::undergroundInside); break; case DDIDX_TRANSPARENT_WATER: Config::Get().general.transparentWater ^= 1; Config::Save(); break; case DDIDX_HIDE_BASE: - w->viewport->flags ^= VIEWPORT_FLAG_HIDE_BASE; + w->viewport->flags.flip(ViewportFlag::hideBase); break; case DDIDX_HIDE_VERTICAL: - w->viewport->flags ^= VIEWPORT_FLAG_HIDE_VERTICAL; + w->viewport->flags.flip(ViewportFlag::hideVertical); break; case DDIDX_HIDE_RIDES: - w->viewport->flags ^= VIEWPORT_FLAG_HIDE_RIDES; + w->viewport->flags.flip(ViewportFlag::hideRides); break; case DDIDX_HIDE_VEHICLES: - w->viewport->flags ^= VIEWPORT_FLAG_HIDE_VEHICLES; + w->viewport->flags.flip(ViewportFlag::hideVehicles); break; case DDIDX_HIDE_VEGETATION: - w->viewport->flags ^= VIEWPORT_FLAG_HIDE_VEGETATION; + w->viewport->flags.flip(ViewportFlag::hideVegetation); break; case DDIDX_HIDE_SCENERY: - w->viewport->flags ^= VIEWPORT_FLAG_HIDE_SCENERY; + w->viewport->flags.flip(ViewportFlag::hideScenery); break; case DDIDX_HIDE_PATHS: - w->viewport->flags ^= VIEWPORT_FLAG_HIDE_PATHS; + w->viewport->flags.flip(ViewportFlag::hidePaths); break; case DDIDX_HIDE_SUPPORTS: - w->viewport->flags ^= VIEWPORT_FLAG_HIDE_SUPPORTS; + w->viewport->flags.flip(ViewportFlag::hideSupports); break; case DDIDX_HIDE_GUESTS: - w->viewport->flags ^= VIEWPORT_FLAG_HIDE_GUESTS; + w->viewport->flags.flip(ViewportFlag::hideGuests); break; case DDIDX_HIDE_STAFF: - w->viewport->flags ^= VIEWPORT_FLAG_HIDE_STAFF; + w->viewport->flags.flip(ViewportFlag::hideStaff); break; case DDIDX_LAND_HEIGHTS: - w->viewport->flags ^= VIEWPORT_FLAG_LAND_HEIGHTS; + w->viewport->flags.flip(ViewportFlag::landHeights); break; case DDIDX_TRACK_HEIGHTS: - w->viewport->flags ^= VIEWPORT_FLAG_TRACK_HEIGHTS; + w->viewport->flags.flip(ViewportFlag::trackHeights); break; case DDIDX_PATH_HEIGHTS: - w->viewport->flags ^= VIEWPORT_FLAG_PATH_HEIGHTS; + w->viewport->flags.flip(ViewportFlag::pathHeights); break; case DDIDX_VIEW_CLIPPING: { @@ -395,12 +395,12 @@ namespace OpenRCT2::Ui::Windows else { // If window is already open, toggle the view clipping on/off - w->viewport->flags ^= VIEWPORT_FLAG_CLIP_VIEW; + w->viewport->flags.flip(ViewportFlag::clipView); } break; } case DDIDX_HIGHLIGHT_PATH_ISSUES: - w->viewport->flags ^= VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES; + w->viewport->flags.flip(ViewportFlag::highlightPathIssues); break; case DDIDX_TRANSPARENCY: ContextOpenWindow(WindowClass::transparency); diff --git a/src/openrct2-ui/windows/TrackDesignPlace.cpp b/src/openrct2-ui/windows/TrackDesignPlace.cpp index 0b514a436b..2cb47a27da 100644 --- a/src/openrct2-ui/windows/TrackDesignPlace.cpp +++ b/src/openrct2-ui/windows/TrackDesignPlace.cpp @@ -579,12 +579,12 @@ namespace OpenRCT2::Ui::Windows { if (_trackPlaceZ < surfaceElement->getBaseZ() && !_triggeredUndergroundView) { - mainWnd->viewport->flags |= VIEWPORT_FLAG_UNDERGROUND_INSIDE; + mainWnd->viewport->flags.set(ViewportFlag::undergroundInside); _triggeredUndergroundView = true; } else if (_trackPlaceZ >= surfaceElement->getBaseZ() && _triggeredUndergroundView) { - mainWnd->viewport->flags &= ~VIEWPORT_FLAG_UNDERGROUND_INSIDE; + mainWnd->viewport->flags.unset(ViewportFlag::undergroundInside); _triggeredUndergroundView = false; } } diff --git a/src/openrct2-ui/windows/Transparency.cpp b/src/openrct2-ui/windows/Transparency.cpp index 2c25cc001c..f5ddcd9f05 100644 --- a/src/openrct2-ui/windows/Transparency.cpp +++ b/src/openrct2-ui/windows/Transparency.cpp @@ -102,26 +102,26 @@ namespace OpenRCT2::Ui::Windows void onPrepareDraw() override { - uint32_t wflags = 0; + ViewportFlags wflags; WindowBase* w = WindowGetMain(); if (w != nullptr) wflags = w->viewport->flags; - setWidgetPressed(WIDX_HIDE_VEGETATION, (wflags & VIEWPORT_FLAG_HIDE_VEGETATION)); - setWidgetPressed(WIDX_HIDE_SCENERY, (wflags & VIEWPORT_FLAG_HIDE_SCENERY)); - setWidgetPressed(WIDX_HIDE_PATHS, (wflags & VIEWPORT_FLAG_HIDE_PATHS)); - setWidgetPressed(WIDX_HIDE_RIDES, (wflags & VIEWPORT_FLAG_HIDE_RIDES)); - setWidgetPressed(WIDX_HIDE_VEHICLES, (wflags & VIEWPORT_FLAG_HIDE_VEHICLES)); - setWidgetPressed(WIDX_HIDE_SUPPORTS, (wflags & VIEWPORT_FLAG_HIDE_SUPPORTS)); - setWidgetPressed(WIDX_HIDE_GUESTS, (wflags & VIEWPORT_FLAG_HIDE_GUESTS)); - setWidgetPressed(WIDX_HIDE_STAFF, (wflags & VIEWPORT_FLAG_HIDE_STAFF)); - setWidgetPressed(WIDX_INVISIBLE_VEGETATION, (wflags & VIEWPORT_FLAG_INVISIBLE_VEGETATION)); - setWidgetPressed(WIDX_INVISIBLE_SCENERY, (wflags & VIEWPORT_FLAG_INVISIBLE_SCENERY)); - setWidgetPressed(WIDX_INVISIBLE_PATHS, (wflags & VIEWPORT_FLAG_INVISIBLE_PATHS)); - setWidgetPressed(WIDX_INVISIBLE_RIDES, (wflags & VIEWPORT_FLAG_INVISIBLE_RIDES)); - setWidgetPressed(WIDX_INVISIBLE_VEHICLES, (wflags & VIEWPORT_FLAG_INVISIBLE_VEHICLES)); - setWidgetPressed(WIDX_INVISIBLE_SUPPORTS, (wflags & VIEWPORT_FLAG_INVISIBLE_SUPPORTS)); + setWidgetPressed(WIDX_HIDE_VEGETATION, wflags.has(ViewportFlag::hideVegetation)); + setWidgetPressed(WIDX_HIDE_SCENERY, wflags.has(ViewportFlag::hideScenery)); + setWidgetPressed(WIDX_HIDE_PATHS, wflags.has(ViewportFlag::hidePaths)); + setWidgetPressed(WIDX_HIDE_RIDES, wflags.has(ViewportFlag::hideRides)); + setWidgetPressed(WIDX_HIDE_VEHICLES, wflags.has(ViewportFlag::hideVehicles)); + setWidgetPressed(WIDX_HIDE_SUPPORTS, wflags.has(ViewportFlag::hideSupports)); + setWidgetPressed(WIDX_HIDE_GUESTS, wflags.has(ViewportFlag::hideGuests)); + setWidgetPressed(WIDX_HIDE_STAFF, wflags.has(ViewportFlag::hideStaff)); + setWidgetPressed(WIDX_INVISIBLE_VEGETATION, wflags.has(ViewportFlag::invisibleVegetation)); + setWidgetPressed(WIDX_INVISIBLE_SCENERY, wflags.has(ViewportFlag::invisibleScenery)); + setWidgetPressed(WIDX_INVISIBLE_PATHS, wflags.has(ViewportFlag::invisiblePaths)); + setWidgetPressed(WIDX_INVISIBLE_RIDES, wflags.has(ViewportFlag::invisibleRides)); + setWidgetPressed(WIDX_INVISIBLE_VEHICLES, wflags.has(ViewportFlag::invisibleVehicles)); + setWidgetPressed(WIDX_INVISIBLE_SUPPORTS, wflags.has(ViewportFlag::invisibleSupports)); for (WidgetIndex i = WIDX_INVISIBLE_VEGETATION; i <= WIDX_INVISIBLE_SUPPORTS; i++) { @@ -140,12 +140,12 @@ namespace OpenRCT2::Ui::Windows } private: - uint32_t ToggleTransparency(uint32_t wflags, uint32_t transparencyFlag, uint32_t seeThroughFlag) + ViewportFlags ToggleTransparency(ViewportFlags wflags, ViewportFlag transparencyFlag, ViewportFlag seeThroughFlag) { - wflags ^= transparencyFlag; - if (wflags & transparencyFlag) + wflags.flip(transparencyFlag); + if (wflags.has(transparencyFlag)) { - wflags |= seeThroughFlag; + wflags.set(seeThroughFlag); } SaveInConfig(wflags); return wflags; @@ -153,7 +153,7 @@ namespace OpenRCT2::Ui::Windows void ToggleViewportFlag(WidgetIndex widgetIndex) { - uint32_t wflags = 0; + ViewportFlags wflags{}; WindowBase* w = WindowGetMain(); if (w == nullptr) @@ -164,46 +164,46 @@ namespace OpenRCT2::Ui::Windows switch (widgetIndex) { case WIDX_HIDE_RIDES: - wflags ^= VIEWPORT_FLAG_HIDE_RIDES; + wflags.flip(ViewportFlag::hideRides); break; case WIDX_HIDE_VEHICLES: - wflags ^= VIEWPORT_FLAG_HIDE_VEHICLES; + wflags.flip(ViewportFlag::hideVehicles); break; case WIDX_HIDE_SCENERY: - wflags ^= VIEWPORT_FLAG_HIDE_SCENERY; + wflags.flip(ViewportFlag::hideScenery); break; case WIDX_HIDE_VEGETATION: - wflags ^= VIEWPORT_FLAG_HIDE_VEGETATION; + wflags.flip(ViewportFlag::hideVegetation); break; case WIDX_HIDE_PATHS: - wflags ^= VIEWPORT_FLAG_HIDE_PATHS; + wflags.flip(ViewportFlag::hidePaths); break; case WIDX_HIDE_SUPPORTS: - wflags ^= VIEWPORT_FLAG_HIDE_SUPPORTS; + wflags.flip(ViewportFlag::hideSupports); break; case WIDX_INVISIBLE_RIDES: - wflags = ToggleTransparency(wflags, VIEWPORT_FLAG_INVISIBLE_RIDES, VIEWPORT_FLAG_HIDE_RIDES); + wflags = ToggleTransparency(wflags, ViewportFlag::invisibleRides, ViewportFlag::hideRides); break; case WIDX_INVISIBLE_VEHICLES: - wflags = ToggleTransparency(wflags, VIEWPORT_FLAG_INVISIBLE_VEHICLES, VIEWPORT_FLAG_HIDE_VEHICLES); + wflags = ToggleTransparency(wflags, ViewportFlag::invisibleVehicles, ViewportFlag::hideVehicles); break; case WIDX_INVISIBLE_SCENERY: - wflags = ToggleTransparency(wflags, VIEWPORT_FLAG_INVISIBLE_SCENERY, VIEWPORT_FLAG_HIDE_SCENERY); + wflags = ToggleTransparency(wflags, ViewportFlag::invisibleScenery, ViewportFlag::hideScenery); break; case WIDX_INVISIBLE_VEGETATION: - wflags = ToggleTransparency(wflags, VIEWPORT_FLAG_INVISIBLE_VEGETATION, VIEWPORT_FLAG_HIDE_VEGETATION); + wflags = ToggleTransparency(wflags, ViewportFlag::invisibleVegetation, ViewportFlag::hideVegetation); break; case WIDX_INVISIBLE_PATHS: - wflags = ToggleTransparency(wflags, VIEWPORT_FLAG_INVISIBLE_PATHS, VIEWPORT_FLAG_HIDE_PATHS); + wflags = ToggleTransparency(wflags, ViewportFlag::invisiblePaths, ViewportFlag::hidePaths); break; case WIDX_INVISIBLE_SUPPORTS: - wflags = ToggleTransparency(wflags, VIEWPORT_FLAG_INVISIBLE_SUPPORTS, VIEWPORT_FLAG_HIDE_SUPPORTS); + wflags = ToggleTransparency(wflags, ViewportFlag::invisibleSupports, ViewportFlag::hideSupports); break; case WIDX_HIDE_GUESTS: - wflags ^= VIEWPORT_FLAG_HIDE_GUESTS; + wflags.flip(ViewportFlag::hideGuests); break; case WIDX_HIDE_STAFF: - wflags ^= VIEWPORT_FLAG_HIDE_STAFF; + wflags.flip(ViewportFlag::hideStaff); break; default: return; @@ -216,14 +216,14 @@ namespace OpenRCT2::Ui::Windows w->invalidate(); } - void SaveInConfig(uint32_t wflags) + void SaveInConfig(ViewportFlags wflags) { - Config::Get().general.invisibleRides = wflags & VIEWPORT_FLAG_INVISIBLE_RIDES; - Config::Get().general.invisibleVehicles = wflags & VIEWPORT_FLAG_INVISIBLE_VEHICLES; - Config::Get().general.invisibleScenery = wflags & VIEWPORT_FLAG_INVISIBLE_SCENERY; - Config::Get().general.invisibleTrees = wflags & VIEWPORT_FLAG_INVISIBLE_VEGETATION; - Config::Get().general.invisiblePaths = wflags & VIEWPORT_FLAG_INVISIBLE_PATHS; - Config::Get().general.invisibleSupports = wflags & VIEWPORT_FLAG_INVISIBLE_SUPPORTS; + Config::Get().general.invisibleRides = wflags.has(ViewportFlag::invisibleRides); + Config::Get().general.invisibleVehicles = wflags.has(ViewportFlag::invisibleVehicles); + Config::Get().general.invisibleScenery = wflags.has(ViewportFlag::invisibleScenery); + Config::Get().general.invisibleTrees = wflags.has(ViewportFlag::invisibleVegetation); + Config::Get().general.invisiblePaths = wflags.has(ViewportFlag::invisiblePaths); + Config::Get().general.invisibleSupports = wflags.has(ViewportFlag::invisibleSupports); Config::Save(); } }; diff --git a/src/openrct2-ui/windows/ViewClipping.cpp b/src/openrct2-ui/windows/ViewClipping.cpp index 07e3b9f31b..0cd2df21d7 100644 --- a/src/openrct2-ui/windows/ViewClipping.cpp +++ b/src/openrct2-ui/windows/ViewClipping.cpp @@ -100,7 +100,7 @@ namespace OpenRCT2::Ui::Windows WindowBase* mainWindow = WindowGetMain(); if (mainWindow != nullptr) { - mainWindow->viewport->flags ^= VIEWPORT_FLAG_CLIP_VIEW; + mainWindow->viewport->flags.flip(ViewportFlag::clipView); mainWindow->invalidate(); } this->invalidate(); @@ -146,7 +146,7 @@ namespace OpenRCT2::Ui::Windows // Toggle height clipping see-through. if (auto mainWindow = WindowGetMain(); mainWindow != nullptr) { - mainWindow->viewport->flags ^= VIEWPORT_FLAG_CLIP_VIEW_SEE_THROUGH; + mainWindow->viewport->flags.flip(ViewportFlag::clipViewSeeThrough); mainWindow->invalidate(); } invalidate(); @@ -274,9 +274,9 @@ namespace OpenRCT2::Ui::Windows WindowBase* mainWindow = WindowGetMain(); if (mainWindow != nullptr) { - setCheckboxValue(WIDX_CLIP_CHECKBOX_ENABLE, mainWindow->viewport->flags & VIEWPORT_FLAG_CLIP_VIEW); + setCheckboxValue(WIDX_CLIP_CHECKBOX_ENABLE, mainWindow->viewport->flags.has(ViewportFlag::clipView)); setCheckboxValue( - WIDX_CLIP_SEE_THROUGH_CHECKBOX_ENABLE, mainWindow->viewport->flags & VIEWPORT_FLAG_CLIP_VIEW_SEE_THROUGH); + WIDX_CLIP_SEE_THROUGH_CHECKBOX_ENABLE, mainWindow->viewport->flags.has(ViewportFlag::clipViewSeeThrough)); } setWidgetPressed(WIDX_CLIP_SELECTOR, IsActive()); @@ -376,7 +376,7 @@ namespace OpenRCT2::Ui::Windows // Turn on view clipping when the window is opened. if (mainWindow != nullptr) { - mainWindow->viewport->flags |= VIEWPORT_FLAG_CLIP_VIEW; + mainWindow->viewport->flags.set(ViewportFlag::clipView); mainWindow->invalidate(); } } @@ -388,7 +388,7 @@ namespace OpenRCT2::Ui::Windows WindowBase* mainWindow = WindowGetMain(); if (mainWindow != nullptr) { - mainWindow->viewport->flags &= ~VIEWPORT_FLAG_CLIP_VIEW; + mainWindow->viewport->flags.unset(ViewportFlag::clipView); mainWindow->invalidate(); } } diff --git a/src/openrct2-ui/windows/Viewport.cpp b/src/openrct2-ui/windows/Viewport.cpp index 644bb6ab8b..9417abc636 100644 --- a/src/openrct2-ui/windows/Viewport.cpp +++ b/src/openrct2-ui/windows/Viewport.cpp @@ -95,7 +95,7 @@ namespace OpenRCT2::Ui::Windows savedViewPos = { x - (viewport->ViewWidth() / 2), y - (viewport->ViewHeight() / 2) }; } - viewport->flags |= VIEWPORT_FLAG_SOUND_ON | VIEWPORT_FLAG_INDEPENDENT_ROTATION; + viewport->flags.set(ViewportFlag::soundOn, ViewportFlag::independentRotation); WindowSetResize(*this, kWindowSize, { (ContextGetWidth() * 4) / 5, (ContextGetHeight() * 4) / 5 }); } @@ -106,9 +106,9 @@ namespace OpenRCT2::Ui::Windows if (mainWindow == nullptr) return; - if (viewport != nullptr && viewport->flags != (mainWindow->viewport->flags | VIEWPORT_FLAG_INDEPENDENT_ROTATION)) + if (viewport != nullptr && viewport->flags != mainWindow->viewport->flags.with(ViewportFlag::independentRotation)) { - viewport->flags = mainWindow->viewport->flags | VIEWPORT_FLAG_INDEPENDENT_ROTATION; + viewport->flags = mainWindow->viewport->flags.with(ViewportFlag::independentRotation); invalidateWidget(WIDX_VIEWPORT); } } diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 748e4b5d1a..916c7f7df5 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -764,7 +764,7 @@ namespace OpenRCT2 } // Inhibit viewport rendering while we're loading - WindowSetFlagForAllViewports(VIEWPORT_FLAG_RENDERING_INHIBITED, true); + WindowSetFlagForAllViewports(ViewportFlag::renderingInhibited, true); OpenProgress(asScenario ? STR_LOADING_SCENARIO : STR_LOADING_SAVED_GAME); SetProgress(0, 100, STR_STRING_M_PERCENT); @@ -787,7 +787,7 @@ namespace OpenRCT2 SetProgress(100, 100, STR_STRING_M_PERCENT); // Reset viewport rendering inhibition - WindowSetFlagForAllViewports(VIEWPORT_FLAG_RENDERING_INHIBITED, false); + WindowSetFlagForAllViewports(ViewportFlag::renderingInhibited, false); gScenarioSavePath = path; gCurrentLoadedPath = path; @@ -939,7 +939,7 @@ namespace OpenRCT2 } CloseProgress(); - WindowSetFlagForAllViewports(VIEWPORT_FLAG_RENDERING_INHIBITED, false); + WindowSetFlagForAllViewports(ViewportFlag::renderingInhibited, false); return false; } diff --git a/src/openrct2/audio/Audio.cpp b/src/openrct2/audio/Audio.cpp index ca84b5ab8a..e9b59144e3 100644 --- a/src/openrct2/audio/Audio.cpp +++ b/src/openrct2/audio/Audio.cpp @@ -163,7 +163,7 @@ namespace OpenRCT2::Audio const auto& activeViewports = GetAllViewports(); for (const auto& viewport : activeViewports) { - if (viewport.flags & VIEWPORT_FLAG_SOUND_ON) + if (viewport.flags.has(ViewportFlag::soundOn)) { int16_t vx = pos2.x - viewport.viewPos.x; params.pan = viewport.pos.x + viewport.zoom.ApplyInversedTo(vx); diff --git a/src/openrct2/core/FlagHolder.hpp b/src/openrct2/core/FlagHolder.hpp index 4334d4ff65..212381fb3e 100644 --- a/src/openrct2/core/FlagHolder.hpp +++ b/src/openrct2/core/FlagHolder.hpp @@ -107,6 +107,11 @@ struct FlagHolder holder &= ~EnumsToFlags(types...); } + constexpr void unset(const FlagHolder& other) + { + holder &= ~other.holder; + } + constexpr void flip(TEnumType flag) { holder ^= EnumToFlag(flag); diff --git a/src/openrct2/drawing/LightFX.cpp b/src/openrct2/drawing/LightFX.cpp index f20450100e..08e1a52a23 100644 --- a/src/openrct2/drawing/LightFX.cpp +++ b/src/openrct2/drawing/LightFX.cpp @@ -299,8 +299,8 @@ namespace OpenRCT2::Drawing::LightFx ViewportInteractionItem interactionType = ViewportInteractionItem::none; - // NOTE: When the flag VIEWPORT_FLAG_RENDERING_INHIBITED is set we can not create a paint graph. - if ((vp.flags & VIEWPORT_FLAG_RENDERING_INHIBITED) == 0) + // NOTE: When ViewportFlag::renderingInhibited is set we cannot create a paint graph. + if (!vp.flags.has(ViewportFlag::renderingInhibited)) { // based on GetMapCoordinatesFromPosWindow RenderTarget rt; diff --git a/src/openrct2/drawing/WeatherDrawer.cpp b/src/openrct2/drawing/WeatherDrawer.cpp index 88c1821a00..6a77f9dfe5 100644 --- a/src/openrct2/drawing/WeatherDrawer.cpp +++ b/src/openrct2/drawing/WeatherDrawer.cpp @@ -54,14 +54,14 @@ void DrawWeather(RenderTarget& rt, IWeatherDrawer* weatherDrawer) if (!Config::Get().general.renderWeatherEffects) return; - uint32_t viewFlags = 0; + ViewportFlags viewFlags; const auto* viewport = WindowGetViewport(WindowGetMain()); if (viewport != nullptr) viewFlags = viewport->flags; auto weatherLevel = getGameState().weatherCurrent.level; - if (weatherLevel == Weather::Level::none || gTrackDesignSaveMode || (viewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES)) + if (weatherLevel == Weather::Level::none || gTrackDesignSaveMode || viewFlags.has(ViewportFlag::highlightPathIssues)) return; // Get weather draw function and draw weather diff --git a/src/openrct2/interface/Screenshot.cpp b/src/openrct2/interface/Screenshot.cpp index 2d4b96f109..89f733c0ee 100644 --- a/src/openrct2/interface/Screenshot.cpp +++ b/src/openrct2/interface/Screenshot.cpp @@ -240,7 +240,7 @@ static RenderTarget CreateRT(const Viewport& viewport) throw std::runtime_error("Giant screenshot failed, unable to allocate memory for image."); } - if (viewport.flags & VIEWPORT_FLAG_TRANSPARENT_BACKGROUND) + if (viewport.flags.has(ViewportFlag::transparentBackground)) { std::memset(rt.bits, EnumValue(PaletteIndex::transparent), static_cast(rt.width) * rt.height); } @@ -283,7 +283,7 @@ static Viewport GetGiantViewport(int32_t rotation, ZoomLevel zoom) auto* const mainWindow = WindowGetMain(); const auto* const mainViewport = WindowGetViewport(mainWindow); - const bool useViewClipping = (mainViewport != nullptr && mainViewport->flags & VIEWPORT_FLAG_CLIP_VIEW); + const bool useViewClipping = (mainViewport != nullptr && mainViewport->flags.has(ViewportFlag::clipView)); // Calculate the viewport bounds auto corners = cornerCoords[useViewClipping ? 1 : 0]; @@ -354,7 +354,7 @@ void ScreenshotGiant() } if (Config::Get().general.transparentScreenshot) { - viewport.flags |= VIEWPORT_FLAG_TRANSPARENT_BACKGROUND; + viewport.flags.set(ViewportFlag::transparentBackground); } rt = CreateRT(viewport); @@ -387,12 +387,12 @@ static void ApplyOptions(const ScreenshotOptions* options, Viewport& viewport) if (options->hide_guests) { - viewport.flags |= VIEWPORT_FLAG_HIDE_GUESTS | VIEWPORT_FLAG_HIDE_STAFF; + viewport.flags.set(ViewportFlag::hideGuests, ViewportFlag::hideStaff); } if (options->hide_sprites) { - viewport.flags |= VIEWPORT_FLAG_HIDE_ENTITIES; + viewport.flags.set(ViewportFlag::hideEntities); } if (options->mowed_grass) @@ -422,7 +422,7 @@ static void ApplyOptions(const ScreenshotOptions* options, Viewport& viewport) if (options->transparent || Config::Get().general.transparentScreenshot) { - viewport.flags |= VIEWPORT_FLAG_TRANSPARENT_BACKGROUND; + viewport.flags.set(ViewportFlag::transparentBackground); } if (options->draw_bounding_boxes) @@ -650,7 +650,7 @@ void CaptureImage(const CaptureOptions& options) if (options.Transparent) { - viewport.flags |= VIEWPORT_FLAG_TRANSPARENT_BACKGROUND; + viewport.flags.set(ViewportFlag::transparentBackground); } auto outputPath = ResolveFilenameForCapture(options.Filename); diff --git a/src/openrct2/interface/Viewport.cpp b/src/openrct2/interface/Viewport.cpp index 0742cbc438..310c28f8ec 100644 --- a/src/openrct2/interface/Viewport.cpp +++ b/src/openrct2/interface/Viewport.cpp @@ -171,11 +171,11 @@ namespace OpenRCT2 const auto zoom = focus.zoom; viewport->zoom = zoom; - viewport->flags = 0; + viewport->flags.clearAll(); viewport->rotation = GetCurrentRotation(); if (Config::Get().general.alwaysShowGridlines) - viewport->flags |= VIEWPORT_FLAG_GRIDLINES; + viewport->flags.set(ViewportFlag::gridlines); w.viewport = viewport; viewport->isVisible = w.isVisible; @@ -485,15 +485,15 @@ namespace OpenRCT2 { if (!underground) { - int32_t bit = viewport->flags & VIEWPORT_FLAG_UNDERGROUND_INSIDE; - viewport->flags &= ~VIEWPORT_FLAG_UNDERGROUND_INSIDE; + int32_t bit = viewport->flags.has(ViewportFlag::undergroundInside); + viewport->flags.unset(ViewportFlag::undergroundInside); if (!bit) return; } else { - int32_t bit = viewport->flags & VIEWPORT_FLAG_UNDERGROUND_INSIDE; - viewport->flags |= VIEWPORT_FLAG_UNDERGROUND_INSIDE; + int32_t bit = viewport->flags.has(ViewportFlag::undergroundInside); + viewport->flags.set(ViewportFlag::undergroundInside); if (bit) return; } @@ -802,7 +802,7 @@ namespace OpenRCT2 auto* viewport = w->viewport; if (viewport == nullptr) return; - if (viewport->flags & VIEWPORT_FLAG_INDEPENDENT_ROTATION) + if (viewport->flags.has(ViewportFlag::independentRotation)) return; ViewportRotateSingleInternal(*w, direction); }); @@ -820,7 +820,7 @@ namespace OpenRCT2 */ void ViewportRender(RenderTarget& rt, const Viewport* viewport) { - if (viewport->flags & VIEWPORT_FLAG_RENDERING_INHIBITED) + if (viewport->flags.has(ViewportFlag::renderingInhibited)) return; if (rt.x + rt.width <= viewport->pos.x) @@ -847,13 +847,12 @@ namespace OpenRCT2 { PROFILED_FUNCTION(); - if (session.ViewFlags - & (VIEWPORT_FLAG_HIDE_VERTICAL | VIEWPORT_FLAG_HIDE_BASE | VIEWPORT_FLAG_UNDERGROUND_INSIDE - | VIEWPORT_FLAG_CLIP_VIEW) - && (~session.ViewFlags & VIEWPORT_FLAG_TRANSPARENT_BACKGROUND)) + if (session.ViewFlags.hasAny( + ViewportFlag::hideVertical, ViewportFlag::hideBase, ViewportFlag::undergroundInside, ViewportFlag::clipView) + && !session.ViewFlags.has(ViewportFlag::transparentBackground)) { PaletteIndex colour = PaletteIndex::pi10; - if (session.ViewFlags & VIEWPORT_FLAG_HIDE_ENTITIES) + if (session.ViewFlags.has(ViewportFlag::hideEntities)) { colour = PaletteIndex::transparent; } @@ -863,7 +862,7 @@ namespace OpenRCT2 PaintDrawStructs(session); if (Config::Get().general.renderWeatherGloom && !gTrackDesignSaveMode - && !(session.ViewFlags & VIEWPORT_FLAG_HIDE_ENTITIES) && !(session.ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES)) + && !session.ViewFlags.hasAny(ViewportFlag::hideEntities, ViewportFlag::highlightPathIssues)) { ViewportPaintWeatherGloom(session.rt); } @@ -1121,9 +1120,9 @@ namespace OpenRCT2 WindowBase* mainWindow = WindowGetMain(); if (mainWindow != nullptr) { - if (!(mainWindow->viewport->flags & VIEWPORT_FLAG_GRIDLINES)) + if (!mainWindow->viewport->flags.has(ViewportFlag::gridlines)) { - mainWindow->viewport->flags |= VIEWPORT_FLAG_GRIDLINES; + mainWindow->viewport->flags.set(ViewportFlag::gridlines); mainWindow->invalidate(); } } @@ -1147,7 +1146,7 @@ namespace OpenRCT2 { if (!Config::Get().general.alwaysShowGridlines) { - mainWindow->viewport->flags &= ~VIEWPORT_FLAG_GRIDLINES; + mainWindow->viewport->flags.unset(ViewportFlag::gridlines); mainWindow->invalidate(); } } @@ -1165,9 +1164,9 @@ namespace OpenRCT2 WindowBase* mainWindow = WindowGetMain(); if (mainWindow != nullptr) { - if (!(mainWindow->viewport->flags & VIEWPORT_FLAG_LAND_OWNERSHIP)) + if (!mainWindow->viewport->flags.has(ViewportFlag::landOwnership)) { - mainWindow->viewport->flags |= VIEWPORT_FLAG_LAND_OWNERSHIP; + mainWindow->viewport->flags.set(ViewportFlag::landOwnership); mainWindow->invalidate(); } } @@ -1189,9 +1188,9 @@ namespace OpenRCT2 WindowBase* mainWindow = WindowGetMain(); if (mainWindow != nullptr) { - if (mainWindow->viewport->flags & VIEWPORT_FLAG_LAND_OWNERSHIP) + if (mainWindow->viewport->flags.has(ViewportFlag::landOwnership)) { - mainWindow->viewport->flags &= ~VIEWPORT_FLAG_LAND_OWNERSHIP; + mainWindow->viewport->flags.unset(ViewportFlag::landOwnership); mainWindow->invalidate(); } } @@ -1209,9 +1208,9 @@ namespace OpenRCT2 WindowBase* mainWindow = WindowGetMain(); if (mainWindow != nullptr) { - if (!(mainWindow->viewport->flags & VIEWPORT_FLAG_CONSTRUCTION_RIGHTS)) + if (!mainWindow->viewport->flags.has(ViewportFlag::constructionRights)) { - mainWindow->viewport->flags |= VIEWPORT_FLAG_CONSTRUCTION_RIGHTS; + mainWindow->viewport->flags.set(ViewportFlag::constructionRights); mainWindow->invalidate(); } } @@ -1233,9 +1232,9 @@ namespace OpenRCT2 WindowBase* mainWindow = WindowGetMain(); if (mainWindow != nullptr) { - if (mainWindow->viewport->flags & VIEWPORT_FLAG_CONSTRUCTION_RIGHTS) + if (mainWindow->viewport->flags.has(ViewportFlag::constructionRights)) { - mainWindow->viewport->flags &= ~VIEWPORT_FLAG_CONSTRUCTION_RIGHTS; + mainWindow->viewport->flags.unset(ViewportFlag::constructionRights); mainWindow->invalidate(); } } @@ -1259,32 +1258,33 @@ namespace OpenRCT2 { case ViewportVisibility::standard: { // Set all these flags to 0, and invalidate if any were active - uint32_t mask = VIEWPORT_FLAG_UNDERGROUND_INSIDE | VIEWPORT_FLAG_HIDE_RIDES | VIEWPORT_FLAG_HIDE_SCENERY - | VIEWPORT_FLAG_HIDE_PATHS | VIEWPORT_FLAG_LAND_HEIGHTS | VIEWPORT_FLAG_TRACK_HEIGHTS - | VIEWPORT_FLAG_PATH_HEIGHTS | VIEWPORT_FLAG_HIDE_GUESTS | VIEWPORT_FLAG_HIDE_STAFF - | VIEWPORT_FLAG_HIDE_BASE | VIEWPORT_FLAG_HIDE_VERTICAL | VIEWPORT_FLAG_HIDE_VEHICLES - | VIEWPORT_FLAG_HIDE_SUPPORTS | VIEWPORT_FLAG_HIDE_VEGETATION; + ViewportFlags flags = ViewportFlags( + ViewportFlag::undergroundInside, ViewportFlag::hideRides, ViewportFlag::hideScenery, + ViewportFlag::hidePaths, ViewportFlag::landHeights, ViewportFlag::trackHeights, + ViewportFlag::pathHeights, ViewportFlag::hideGuests, ViewportFlag::hideStaff, ViewportFlag::hideBase, + ViewportFlag::hideVertical, ViewportFlag::hideVehicles, ViewportFlag::hideSupports, + ViewportFlag::hideVegetation); - invalidate += vp->flags & mask; - vp->flags &= ~mask; + invalidate += vp->flags.hasAny(flags); + vp->flags.unset(flags); break; } case ViewportVisibility::undergroundViewOn: // 6CB79D case ViewportVisibility::undergroundViewGhostOn: // 6CB7C4 // Set underground on, invalidate if it was off - invalidate += !(vp->flags & VIEWPORT_FLAG_UNDERGROUND_INSIDE); - vp->flags |= VIEWPORT_FLAG_UNDERGROUND_INSIDE; + invalidate += !(vp->flags.has(ViewportFlag::undergroundInside)); + vp->flags.set(ViewportFlag::undergroundInside); break; case ViewportVisibility::trackHeights: // 6CB7EB // Set track heights on, invalidate if off - invalidate += !(vp->flags & VIEWPORT_FLAG_TRACK_HEIGHTS); - vp->flags |= VIEWPORT_FLAG_TRACK_HEIGHTS; + invalidate += !(vp->flags.has(ViewportFlag::trackHeights)); + vp->flags.set(ViewportFlag::trackHeights); break; case ViewportVisibility::undergroundViewOff: // 6CB7B1 case ViewportVisibility::undergroundViewGhostOff: // 6CB7D8 // Set underground off, invalidate if it was on - invalidate += vp->flags & VIEWPORT_FLAG_UNDERGROUND_INSIDE; - vp->flags &= ~(static_cast(VIEWPORT_FLAG_UNDERGROUND_INSIDE)); + invalidate += vp->flags.has(ViewportFlag::undergroundInside); + vp->flags.unset(ViewportFlag::undergroundInside); break; } if (invalidate != 0) @@ -1345,11 +1345,10 @@ namespace OpenRCT2 return false; } - VisibilityKind GetPaintStructVisibility(const PaintStruct* ps, uint32_t viewFlags) + VisibilityKind GetPaintStructVisibility(const PaintStruct* ps, ViewportFlags viewFlags) { // the cut-away view is active and see-through is activated - auto cutAwayViewWithTransparency = (viewFlags & VIEWPORT_FLAG_CLIP_VIEW) - && (viewFlags & VIEWPORT_FLAG_CLIP_VIEW_SEE_THROUGH); + auto cutAwayViewWithTransparency = viewFlags.hasAll(ViewportFlag::clipView, ViewportFlag::clipViewSeeThrough); // the element is above the cut-off height auto clipped = cutAwayViewWithTransparency && ps->Element == nullptr && ps->Entity != nullptr @@ -1368,14 +1367,14 @@ namespace OpenRCT2 { case EntityType::vehicle: { - if (viewFlags & VIEWPORT_FLAG_HIDE_VEHICLES || clipped) + if (viewFlags.has(ViewportFlag::hideVehicles) || clipped) { - return (viewFlags & VIEWPORT_FLAG_INVISIBLE_VEHICLES) ? VisibilityKind::hidden + return viewFlags.has(ViewportFlag::invisibleVehicles) ? VisibilityKind::hidden : VisibilityKind::partial; } // Rides without track can technically have a 'vehicle': // these should be hidden if 'hide rides' is enabled - if (viewFlags & VIEWPORT_FLAG_HIDE_RIDES || clipped) + if (viewFlags.has(ViewportFlag::hideRides) || clipped) { auto vehicle = ps->Entity->as(); if (vehicle == nullptr) @@ -1384,14 +1383,14 @@ namespace OpenRCT2 auto ride = vehicle->GetRide(); if (ride != nullptr && !ride->getRideTypeDescriptor().flags.has(RtdFlag::hasTrack)) { - return (viewFlags & VIEWPORT_FLAG_INVISIBLE_RIDES) ? VisibilityKind::hidden + return viewFlags.has(ViewportFlag::invisibleRides) ? VisibilityKind::hidden : VisibilityKind::partial; } } break; } case EntityType::guest: - if (viewFlags & VIEWPORT_FLAG_HIDE_GUESTS) + if (viewFlags.has(ViewportFlag::hideGuests)) { return VisibilityKind::hidden; } @@ -1401,7 +1400,7 @@ namespace OpenRCT2 } break; case EntityType::staff: - if (viewFlags & VIEWPORT_FLAG_HIDE_STAFF) + if (viewFlags.has(ViewportFlag::hideStaff)) { return VisibilityKind::hidden; } @@ -1420,17 +1419,17 @@ namespace OpenRCT2 } break; case ViewportInteractionItem::ride: - if (viewFlags & VIEWPORT_FLAG_HIDE_RIDES || clipped) + if (viewFlags.has(ViewportFlag::hideRides) || clipped) { - return (viewFlags & VIEWPORT_FLAG_INVISIBLE_RIDES) ? VisibilityKind::hidden : VisibilityKind::partial; + return viewFlags.has(ViewportFlag::invisibleRides) ? VisibilityKind::hidden : VisibilityKind::partial; } break; case ViewportInteractionItem::footpath: case ViewportInteractionItem::pathAddition: case ViewportInteractionItem::banner: - if (viewFlags & VIEWPORT_FLAG_HIDE_PATHS || clipped) + if (viewFlags.has(ViewportFlag::hidePaths) || clipped) { - return (viewFlags & VIEWPORT_FLAG_INVISIBLE_PATHS) ? VisibilityKind::hidden : VisibilityKind::partial; + return viewFlags.has(ViewportFlag::invisiblePaths) ? VisibilityKind::hidden : VisibilityKind::partial; } break; case ViewportInteractionItem::scenery: @@ -1440,23 +1439,23 @@ namespace OpenRCT2 { if (IsTileElementVegetation(ps->Element)) { - if (viewFlags & VIEWPORT_FLAG_HIDE_VEGETATION || clipped) + if (viewFlags.has(ViewportFlag::hideVegetation) || clipped) { - return (viewFlags & VIEWPORT_FLAG_INVISIBLE_VEGETATION) ? VisibilityKind::hidden + return viewFlags.has(ViewportFlag::invisibleVegetation) ? VisibilityKind::hidden : VisibilityKind::partial; } } else { - if (viewFlags & VIEWPORT_FLAG_HIDE_SCENERY || clipped) + if (viewFlags.has(ViewportFlag::hideScenery) || clipped) { - return (viewFlags & VIEWPORT_FLAG_INVISIBLE_SCENERY) ? VisibilityKind::hidden + return viewFlags.has(ViewportFlag::invisibleScenery) ? VisibilityKind::hidden : VisibilityKind::partial; } } } if (ps->InteractionItem == ViewportInteractionItem::wall - && (viewFlags & VIEWPORT_FLAG_UNDERGROUND_INSIDE || clipped)) + && (viewFlags.has(ViewportFlag::undergroundInside) || clipped)) { return VisibilityKind::partial; } @@ -1642,7 +1641,7 @@ namespace OpenRCT2 * rct2: 0x0068862C */ InteractionInfo SetInteractionInfoFromPaintSession( - PaintSession* session, uint32_t viewFlags, ViewportInteractionItems filter) + PaintSession* session, ViewportFlags viewFlags, ViewportInteractionItems filter) { PROFILED_FUNCTION(); diff --git a/src/openrct2/interface/Viewport.h b/src/openrct2/interface/Viewport.h index 02d7aa2639..4c33d82aba 100644 --- a/src/openrct2/interface/Viewport.h +++ b/src/openrct2/interface/Viewport.h @@ -11,6 +11,7 @@ #include "../core/FlagHolder.hpp" #include "../interface/ScreenCoords.hpp" +#include "../interface/ViewportFlags.h" #include "../interface/ZoomLevel.h" #include "../world/Location.hpp" #include "Window.h" @@ -40,7 +41,7 @@ namespace OpenRCT2 int32_t height{}; ScreenCoordsXY pos{}; ScreenCoordsXY viewPos{}; - uint32_t flags{}; + ViewportFlags flags{}; ZoomLevel zoom{}; uint8_t rotation{}; bool isVisible = false; @@ -80,50 +81,6 @@ namespace OpenRCT2 }; struct Focus; - - // Flags must currenly retain their values to avoid breaking plugins. - // Values can be changed when plugins move to using named constants. - enum : uint32_t - { - VIEWPORT_FLAG_NONE = 0u, - - VIEWPORT_FLAG_GRIDLINES = (1u << 7), - VIEWPORT_FLAG_UNDERGROUND_INSIDE = (1u << 0), - VIEWPORT_FLAG_HIDE_BASE = (1u << 12), - VIEWPORT_FLAG_HIDE_VERTICAL = (1u << 13), - - VIEWPORT_FLAG_SOUND_ON = (1u << 10), - VIEWPORT_FLAG_LAND_OWNERSHIP = (1u << 8), - VIEWPORT_FLAG_CONSTRUCTION_RIGHTS = (1u << 9), - VIEWPORT_FLAG_HIDE_ENTITIES = (1u << 14), - VIEWPORT_FLAG_CLIP_VIEW = (1u << 15), - VIEWPORT_FLAG_CLIP_VIEW_SEE_THROUGH = (1u << 17), - VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES = (1u << 18), - VIEWPORT_FLAG_TRANSPARENT_BACKGROUND = (1u << 19), - - VIEWPORT_FLAG_LAND_HEIGHTS = (1u << 4), - VIEWPORT_FLAG_TRACK_HEIGHTS = (1u << 5), - VIEWPORT_FLAG_PATH_HEIGHTS = (1u << 6), - - VIEWPORT_FLAG_HIDE_RIDES = (1u << 1), - VIEWPORT_FLAG_HIDE_VEHICLES = (1u << 20), - VIEWPORT_FLAG_HIDE_VEGETATION = (1u << 21), - VIEWPORT_FLAG_HIDE_SCENERY = (1u << 2), - VIEWPORT_FLAG_HIDE_PATHS = (1u << 16), - VIEWPORT_FLAG_HIDE_SUPPORTS = (1u << 3), - VIEWPORT_FLAG_HIDE_GUESTS = (1u << 11), - VIEWPORT_FLAG_HIDE_STAFF = (1u << 23), - - VIEWPORT_FLAG_INVISIBLE_RIDES = (1u << 24), - VIEWPORT_FLAG_INVISIBLE_VEHICLES = (1u << 25), - VIEWPORT_FLAG_INVISIBLE_VEGETATION = (1u << 26), - VIEWPORT_FLAG_INVISIBLE_SCENERY = (1u << 27), - VIEWPORT_FLAG_INVISIBLE_PATHS = (1u << 28), - VIEWPORT_FLAG_INVISIBLE_SUPPORTS = (1u << 29), - - VIEWPORT_FLAG_INDEPENDENT_ROTATION = (1u << 30), - VIEWPORT_FLAG_RENDERING_INHIBITED = (1u << 31), - }; } // namespace OpenRCT2 enum class VisibilityKind @@ -226,7 +183,7 @@ namespace OpenRCT2 WindowBase* window, const ScreenCoordsXY& screenCoords, ViewportInteractionItems flags); InteractionInfo SetInteractionInfoFromPaintSession( - PaintSession* session, uint32_t viewFlags, ViewportInteractionItems filter); + PaintSession* session, ViewportFlags viewFlags, ViewportInteractionItems filter); std::optional ScreenGetMapXY(const ScreenCoordsXY& screenCoords, Viewport** viewport); std::optional ScreenGetMapXYWithZ(const ScreenCoordsXY& screenCoords, int32_t z); @@ -243,7 +200,7 @@ namespace OpenRCT2 void ViewportSetSavedView(); - VisibilityKind GetPaintStructVisibility(const PaintStruct* ps, uint32_t viewFlags); + VisibilityKind GetPaintStructVisibility(const PaintStruct* ps, ViewportFlags viewFlags); using ViewportList = sfl::static_vector; diff --git a/src/openrct2/interface/ViewportFlags.h b/src/openrct2/interface/ViewportFlags.h new file mode 100644 index 0000000000..9d1c9e70d6 --- /dev/null +++ b/src/openrct2/interface/ViewportFlags.h @@ -0,0 +1,58 @@ +/***************************************************************************** + * Copyright (c) 2014-2026 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#include "../core/FlagHolder.hpp" + +namespace OpenRCT2 +{ + // Flags must currenly retain their values to avoid breaking plugins. + // Values can be changed when plugins move to using named constants. + enum class ViewportFlag : uint32_t + { + gridlines = 7, + undergroundInside = 0, + hideBase = 12, + hideVertical = 13, + + soundOn = 10, + landOwnership = 8, + constructionRights = 9, + hideEntities = 14, + clipView = 15, + clipViewSeeThrough = 17, + highlightPathIssues = 18, + transparentBackground = 19, + + landHeights = 4, + trackHeights = 5, + pathHeights = 6, + + hideRides = 1, + hideVehicles = 20, + hideVegetation = 21, + hideScenery = 2, + hidePaths = 16, + hideSupports = 3, + hideGuests = 11, + hideStaff = 23, + + invisibleRides = 24, + invisibleVehicles = 25, + invisibleVegetation = 26, + invisibleScenery = 27, + invisiblePaths = 28, + invisibleSupports = 29, + + independentRotation = 30, + renderingInhibited = 31, + }; + using ViewportFlags = FlagHolder; +} // namespace OpenRCT2 \ No newline at end of file diff --git a/src/openrct2/interface/Window.cpp b/src/openrct2/interface/Window.cpp index e411c86366..74e14b1d07 100644 --- a/src/openrct2/interface/Window.cpp +++ b/src/openrct2/interface/Window.cpp @@ -91,15 +91,12 @@ static constexpr float kWindowScrollLocations[][2] = { } } - void WindowSetFlagForAllViewports(uint32_t viewportFlag, bool enabled) + void WindowSetFlagForAllViewports(ViewportFlag viewportFlag, bool enabled) { WindowVisitEach([&](WindowBase* w) { if (w->viewport != nullptr) { - if (enabled) - w->viewport->flags |= viewportFlag; - else - w->viewport->flags &= ~viewportFlag; + w->viewport->flags.set(viewportFlag, enabled); } }); } @@ -346,17 +343,17 @@ static constexpr float kWindowScrollLocations[][2] = { int16_t height = TileElementHeight(coords); if (coords.z < height - 16) { - if (!(w.viewport->flags & VIEWPORT_FLAG_UNDERGROUND_INSIDE)) + if (!w.viewport->flags.has(ViewportFlag::undergroundInside)) { - w.viewport->flags |= VIEWPORT_FLAG_UNDERGROUND_INSIDE; + w.viewport->flags.set(ViewportFlag::undergroundInside); w.invalidate(); } } else { - if (w.viewport->flags & VIEWPORT_FLAG_UNDERGROUND_INSIDE) + if (w.viewport->flags.has(ViewportFlag::undergroundInside)) { - w.viewport->flags &= ~VIEWPORT_FLAG_UNDERGROUND_INSIDE; + w.viewport->flags.unset(ViewportFlag::undergroundInside); w.invalidate(); } } @@ -896,7 +893,7 @@ static constexpr float kWindowScrollLocations[][2] = { { auto w = it->get(); auto viewport = w->viewport; - if (viewport == nullptr || !(viewport->flags & VIEWPORT_FLAG_SOUND_ON)) + if (viewport == nullptr || !(viewport->flags.has(ViewportFlag::soundOn))) continue; gMusicTrackingViewport = viewport; diff --git a/src/openrct2/interface/Window.h b/src/openrct2/interface/Window.h index 4aeaea35ce..fdb6921ba3 100644 --- a/src/openrct2/interface/Window.h +++ b/src/openrct2/interface/Window.h @@ -34,6 +34,7 @@ namespace OpenRCT2 enum class Tool; enum class WindowClass : uint8_t; + enum class ViewportFlag : uint32_t; extern WindowCloseModifier gLastCloseModifier; extern Tool gCurrentToolId; @@ -50,7 +51,7 @@ namespace OpenRCT2 std::vector>::iterator WindowGetIterator(const WindowBase* w); void WindowVisitEach(std::function func); - void WindowSetFlagForAllViewports(uint32_t viewportFlag, bool enabled); + void WindowSetFlagForAllViewports(OpenRCT2::ViewportFlag viewportFlag, bool enabled); void WindowDispatchUpdateAll(); void WindowUpdateAllViewports(); diff --git a/src/openrct2/paint/Paint.Entity.cpp b/src/openrct2/paint/Paint.Entity.cpp index d8fe47dcdf..7fd474f1fe 100644 --- a/src/openrct2/paint/Paint.Entity.cpp +++ b/src/openrct2/paint/Paint.Entity.cpp @@ -48,7 +48,7 @@ void EntityPaintSetup(PaintSession& session, const CoordsXY& pos) { return; } - if (gTrackDesignSaveMode || (session.ViewFlags & VIEWPORT_FLAG_HIDE_ENTITIES)) + if (gTrackDesignSaveMode || session.ViewFlags.has(ViewportFlag::hideEntities)) { return; } @@ -58,7 +58,7 @@ void EntityPaintSetup(PaintSession& session, const CoordsXY& pos) return; } - const bool highlightPathIssues = (session.ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES); + const bool highlightPathIssues = session.ViewFlags.has(ViewportFlag::highlightPathIssues); for (auto* entity : EntityTileList(pos)) { @@ -84,13 +84,13 @@ void EntityPaintSetup(PaintSession& session, const CoordsXY& pos) // Here converting from land/path/etc height scale to pixel height scale. // Note: peeps/scenery on slopes will be above the base // height of the slope element, and consequently clipped. - if (session.ViewFlags & VIEWPORT_FLAG_CLIP_VIEW) + if (session.ViewFlags.has(ViewportFlag::clipView)) { if (entityPos.z > (gClipHeight * kCoordsZStep)) { // see-through off: don't paint this entity at all // see-through on: paint this entity as partial or hidden later on - if ((session.ViewFlags & VIEWPORT_FLAG_CLIP_VIEW_SEE_THROUGH) == 0) + if (!session.ViewFlags.has(ViewportFlag::clipViewSeeThrough)) { continue; } diff --git a/src/openrct2/paint/Paint.cpp b/src/openrct2/paint/Paint.cpp index 2299a5a595..7aea6d1fe0 100644 --- a/src/openrct2/paint/Paint.cpp +++ b/src/openrct2/paint/Paint.cpp @@ -62,7 +62,7 @@ bool gPaintBlockedTiles; bool gPaintStableSort; static void PaintPSImageWithBoundingBoxes(PaintSession& session, PaintStruct* ps, ImageId imageId, int32_t x, int32_t y); -static ImageId PaintPSColourifyImage(const PaintStruct* ps, ImageId imageId, uint32_t viewFlags); +static ImageId PaintPSColourifyImage(const PaintStruct* ps, ImageId imageId, ViewportFlags viewFlags); static int32_t RemapPositionToQuadrant(const PaintStruct& ps, uint8_t rotation) { @@ -676,7 +676,7 @@ void PaintSessionArrange(PaintSessionCore& session) return _paintArrangeFuncsLegacy[session.CurrentRotation](session); } -static inline void PaintAttachedPS(RenderTarget& rt, PaintStruct* ps, uint32_t viewFlags) +static inline void PaintAttachedPS(RenderTarget& rt, PaintStruct* ps, ViewportFlags viewFlags) { AttachedPaintStruct* attached_ps = ps->Attached; for (; attached_ps != nullptr; attached_ps = attached_ps->NextEntry) @@ -833,7 +833,7 @@ static void PaintPSImageWithBoundingBoxes(PaintSession& session, PaintStruct* ps GfxDrawLine(rt, { screenCoordFrontTop, screenCoordRightTop }, colour); } -static ImageId PaintPSColourifyImage(const PaintStruct* ps, ImageId imageId, uint32_t viewFlags) +static ImageId PaintPSColourifyImage(const PaintStruct* ps, ImageId imageId, ViewportFlags viewFlags) { auto visibility = GetPaintStructVisibility(ps, viewFlags); switch (visibility) @@ -847,7 +847,7 @@ static ImageId PaintPSColourifyImage(const PaintStruct* ps, ImageId imageId, uin } } -PaintSession* PaintSessionAlloc(RenderTarget& rt, uint32_t viewFlags, uint8_t rotation) +PaintSession* PaintSessionAlloc(RenderTarget& rt, ViewportFlags viewFlags, uint8_t rotation) { return GetContext()->GetPainter()->CreateSession(rt, viewFlags, rotation); } diff --git a/src/openrct2/paint/Paint.h b/src/openrct2/paint/Paint.h index ecb2ed2019..e291bce8af 100644 --- a/src/openrct2/paint/Paint.h +++ b/src/openrct2/paint/Paint.h @@ -13,6 +13,7 @@ #include "../drawing/FilterPaletteIds.h" #include "../drawing/ImageId.hpp" #include "../drawing/RenderTarget.h" +#include "../interface/ViewportFlags.h" #include "../localisation/StringIdType.h" #include "../world/Location.hpp" #include "../world/MapLimits.h" @@ -147,7 +148,7 @@ struct PaintSessionCore PaintStruct* WoodenSupportsPrependTo; CoordsXY SpritePosition; CoordsXY MapPosition; - uint32_t ViewFlags; + OpenRCT2::ViewportFlags ViewFlags; uint32_t QuadrantBackIndex; uint32_t QuadrantFrontIndex; ImageId TrackColours; @@ -297,7 +298,7 @@ void PaintFloatingMoneyEffect( PaintSession& session, money64 amount, StringId string_id, int32_t y, int32_t z, int8_t y_offsets[], int32_t offset_x, uint32_t rotation); -PaintSession* PaintSessionAlloc(OpenRCT2::Drawing::RenderTarget& rt, uint32_t viewFlags, uint8_t rotation); +PaintSession* PaintSessionAlloc(OpenRCT2::Drawing::RenderTarget& rt, OpenRCT2::ViewportFlags viewFlags, uint8_t rotation); void PaintSessionFree(PaintSession* session); void PaintSessionGenerate(PaintSession& session); void PaintSessionArrange(PaintSessionCore& session); diff --git a/src/openrct2/paint/Painter.cpp b/src/openrct2/paint/Painter.cpp index 5b159f3a34..eb3d59ff09 100644 --- a/src/openrct2/paint/Painter.cpp +++ b/src/openrct2/paint/Painter.cpp @@ -155,7 +155,7 @@ void Painter::MeasureFPS() _lastSecond = currentTime; } -PaintSession* Painter::CreateSession(RenderTarget& rt, uint32_t viewFlags, uint8_t rotation) +PaintSession* Painter::CreateSession(RenderTarget& rt, ViewportFlags viewFlags, uint8_t rotation) { PROFILED_FUNCTION(); diff --git a/src/openrct2/paint/Painter.h b/src/openrct2/paint/Painter.h index 40d928d699..75afac5fbe 100644 --- a/src/openrct2/paint/Painter.h +++ b/src/openrct2/paint/Painter.h @@ -44,7 +44,7 @@ namespace OpenRCT2 explicit Painter(Ui::IUiContext& uiContext); void Paint(Drawing::IDrawingEngine& de); - PaintSession* CreateSession(Drawing::RenderTarget& rt, uint32_t viewFlags, uint8_t rotation); + PaintSession* CreateSession(Drawing::RenderTarget& rt, ViewportFlags viewFlags, uint8_t rotation); void ReleaseSession(PaintSession* session); ~Painter(); diff --git a/src/openrct2/paint/support/MetalSupports.cpp b/src/openrct2/paint/support/MetalSupports.cpp index d097cb0988..2da40c1058 100644 --- a/src/openrct2/paint/support/MetalSupports.cpp +++ b/src/openrct2/paint/support/MetalSupports.cpp @@ -368,9 +368,9 @@ static bool MetalSupportsPaintSetupCommon( return false; } - if (session.ViewFlags & VIEWPORT_FLAG_HIDE_SUPPORTS) + if (session.ViewFlags.has(ViewportFlag::hideSupports)) { - if (session.ViewFlags & VIEWPORT_FLAG_INVISIBLE_SUPPORTS) + if (session.ViewFlags.has(ViewportFlag::invisibleSupports)) { return false; } @@ -586,9 +586,9 @@ bool PathPoleSupportsPaintSetup( return false; } - if (session.ViewFlags & VIEWPORT_FLAG_HIDE_SUPPORTS) + if (session.ViewFlags.has(ViewportFlag::hideSupports)) { - if (session.ViewFlags & VIEWPORT_FLAG_INVISIBLE_SUPPORTS) + if (session.ViewFlags.has(ViewportFlag::invisibleSupports)) { return false; } diff --git a/src/openrct2/paint/support/WoodenSupports.cpp b/src/openrct2/paint/support/WoodenSupports.cpp index 996e7809b5..36c90e3f38 100644 --- a/src/openrct2/paint/support/WoodenSupports.cpp +++ b/src/openrct2/paint/support/WoodenSupports.cpp @@ -429,9 +429,9 @@ static inline bool WoodenSupportsPaintSetupCommon( return false; } - if (session.ViewFlags & VIEWPORT_FLAG_HIDE_SUPPORTS) + if (session.ViewFlags.has(ViewportFlag::hideSupports)) { - if (session.ViewFlags & VIEWPORT_FLAG_INVISIBLE_SUPPORTS) + if (session.ViewFlags.has(ViewportFlag::invisibleSupports)) { return false; } diff --git a/src/openrct2/paint/tile_element/Paint.Banner.cpp b/src/openrct2/paint/tile_element/Paint.Banner.cpp index bb84614438..25c0974b20 100644 --- a/src/openrct2/paint/tile_element/Paint.Banner.cpp +++ b/src/openrct2/paint/tile_element/Paint.Banner.cpp @@ -60,7 +60,7 @@ void PaintBanner(PaintSession& session, uint8_t direction, int32_t height, const PROFILED_FUNCTION(); if (session.rt.zoom_level > ZoomLevel{ 1 } || gTrackDesignSaveMode - || (session.ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES)) + || session.ViewFlags.has(ViewportFlag::highlightPathIssues)) return; auto banner = bannerElement.getBanner(); diff --git a/src/openrct2/paint/tile_element/Paint.Entrance.cpp b/src/openrct2/paint/tile_element/Paint.Entrance.cpp index 1c2bdd0163..9a012967e8 100644 --- a/src/openrct2/paint/tile_element/Paint.Entrance.cpp +++ b/src/openrct2/paint/tile_element/Paint.Entrance.cpp @@ -99,7 +99,7 @@ static void PaintRideEntranceExit(PaintSession& session, uint8_t direction, int3 PROFILED_FUNCTION(); auto rideIndex = entranceEl.getRideIndex(); - if ((session.ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES) + if (session.ViewFlags.has(ViewportFlag::highlightPathIssues) || (gTrackDesignSaveMode && rideIndex != gTrackDesignSaveRideIndex)) { return; @@ -248,7 +248,7 @@ static void PaintParkEntrance(PaintSession& session, uint8_t direction, int32_t { PROFILED_FUNCTION(); - if (gTrackDesignSaveMode || (session.ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES)) + if (gTrackDesignSaveMode || session.ViewFlags.has(ViewportFlag::highlightPathIssues)) return; PaintParkEntranceLightEffects(session); @@ -321,7 +321,7 @@ static void PaintHeightMarkers(PaintSession& session, const EntranceElement& ent { PROFILED_FUNCTION(); - if (PaintShouldShowHeightMarkers(session, VIEWPORT_FLAG_PATH_HEIGHTS)) + if (PaintShouldShowHeightMarkers(session, ViewportFlag::pathHeights)) { if (entranceEl.getDirections() & 0xF) { diff --git a/src/openrct2/paint/tile_element/Paint.LargeScenery.cpp b/src/openrct2/paint/tile_element/Paint.LargeScenery.cpp index dceb9f2968..a5a52e52e3 100644 --- a/src/openrct2/paint/tile_element/Paint.LargeScenery.cpp +++ b/src/openrct2/paint/tile_element/Paint.LargeScenery.cpp @@ -321,7 +321,7 @@ void PaintLargeScenery(PaintSession& session, uint8_t direction, uint16_t height { PROFILED_FUNCTION(); - if (session.ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES) + if (session.ViewFlags.has(ViewportFlag::highlightPathIssues)) return; auto sequenceNum = tileElement.getSequenceIndex(); diff --git a/src/openrct2/paint/tile_element/Paint.Path.cpp b/src/openrct2/paint/tile_element/Paint.Path.cpp index 74e58f9d2f..08604c1814 100644 --- a/src/openrct2/paint/tile_element/Paint.Path.cpp +++ b/src/openrct2/paint/tile_element/Paint.Path.cpp @@ -708,7 +708,7 @@ static void PaintHeightMarkers(PaintSession& session, const PathElement& pathEl) { PROFILED_FUNCTION(); - if (PaintShouldShowHeightMarkers(session, VIEWPORT_FLAG_PATH_HEIGHTS)) + if (PaintShouldShowHeightMarkers(session, ViewportFlag::pathHeights)) { uint16_t heightMarkerBaseZ = pathEl.getBaseZ() + 3; if (pathEl.isSloped()) @@ -749,7 +749,7 @@ void PaintPath(PaintSession& session, uint16_t height, const PathElement& tileEl } } - if (session.ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES) + if (session.ViewFlags.has(ViewportFlag::highlightPathIssues)) { imageTemplate = ImageId().WithRemap(FilterPaletteID::palette46); } diff --git a/src/openrct2/paint/tile_element/Paint.PathAddition.cpp b/src/openrct2/paint/tile_element/Paint.PathAddition.cpp index e9b15a67e5..5db436d44d 100644 --- a/src/openrct2/paint/tile_element/Paint.PathAddition.cpp +++ b/src/openrct2/paint/tile_element/Paint.PathAddition.cpp @@ -127,7 +127,7 @@ static void PathAdditionBinsPaint( height += 8; bool binsAreVandalised = pathElement.isBroken(); - auto highlightPathIssues = (session.ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES) != 0; + auto highlightPathIssues = session.ViewFlags.has(ViewportFlag::highlightPathIssues); if (edges & EDGE_NE) { @@ -211,9 +211,9 @@ static void PathAdditionJumpingFountainsPaint( PaintAddImageAsParent(session, imageId.WithIndexOffset(4), { 0, 0, height }, { { 8, 6, height + 2 }, { 1, 1, 2 } }); } -inline bool PathAdditionIsVisible(uint32_t viewFlags, const PathAdditionEntry& pathAdditionEntry, bool isBroken) +inline bool PathAdditionIsVisible(ViewportFlags viewFlags, const PathAdditionEntry& pathAdditionEntry, bool isBroken) { - if (!(viewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES)) + if (!viewFlags.has(ViewportFlag::highlightPathIssues)) return true; if (isBroken) diff --git a/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp b/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp index a514a41211..16486a1e30 100644 --- a/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp +++ b/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp @@ -328,7 +328,7 @@ void PaintSmallScenery(PaintSession& session, uint8_t direction, int32_t height, { PROFILED_FUNCTION(); - if (session.ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES) + if (session.ViewFlags.has(ViewportFlag::highlightPathIssues)) { return; } diff --git a/src/openrct2/paint/tile_element/Paint.Surface.cpp b/src/openrct2/paint/tile_element/Paint.Surface.cpp index d68914ffc6..88af928ea0 100644 --- a/src/openrct2/paint/tile_element/Paint.Surface.cpp +++ b/src/openrct2/paint/tile_element/Paint.Surface.cpp @@ -492,7 +492,7 @@ static void ViewportSurfaceDrawTileSideBottom( return; } - bool neighbourIsClippedAway = (session.ViewFlags & VIEWPORT_FLAG_CLIP_VIEW) && !TileIsInsideClipView(neighbour); + bool neighbourIsClippedAway = session.ViewFlags.has(ViewportFlag::clipView) && !TileIsInsideClipView(neighbour); if (neighbour.tile_element == nullptr || neighbourIsClippedAway) { @@ -525,7 +525,7 @@ static void ViewportSurfaceDrawTileSideBottom( } auto baseImageId = GetEdgeImage(edgeObject, 0); - if (session.ViewFlags & VIEWPORT_FLAG_UNDERGROUND_INSIDE) + if (session.ViewFlags.has(ViewportFlag::undergroundInside)) { baseImageId = GetEdgeImage(edgeObject, 1); } @@ -712,7 +712,7 @@ static void ViewportSurfaceDrawTileSideTop( if (isWater) { baseImageId = GetEdgeImage(edgeObject, 2); // var_08 - if (session.ViewFlags & VIEWPORT_FLAG_UNDERGROUND_INSIDE) + if (session.ViewFlags.has(ViewportFlag::undergroundInside)) { baseImageId = GetEdgeImage(edgeObject, 1); // var_04 } @@ -723,7 +723,7 @@ static void ViewportSurfaceDrawTileSideTop( } else { - if (!(session.ViewFlags & VIEWPORT_FLAG_UNDERGROUND_INSIDE)) + if (!(session.ViewFlags.has(ViewportFlag::undergroundInside))) { const uint8_t incline = (cornerHeight2 - cornerHeight1) + 1; const auto imageId = GetEdgeImage(edgeObject, 3).WithIndexOffset((edge == EDGE_TOPLEFT ? 3 : 0) + incline); @@ -992,7 +992,7 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con descriptor.corner_heights.left = baseHeight + ch.left; } - if (PaintShouldShowHeightMarkers(session, VIEWPORT_FLAG_LAND_HEIGHTS)) + if (PaintShouldShowHeightMarkers(session, ViewportFlag::landHeights)) { const int16_t x = session.MapPosition.x; const int16_t y = session.MapPosition.y; @@ -1019,7 +1019,7 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con } else { - const bool showGridlines = (session.ViewFlags & VIEWPORT_FLAG_GRIDLINES); + const bool showGridlines = session.ViewFlags.has(ViewportFlag::gridlines); assert(surfaceShape < std::size(Byte97B444)); const uint8_t image_offset = Byte97B444[surfaceShape]; @@ -1034,14 +1034,14 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con uint8_t grassLength = TerrainSurfaceObject::kNoValue; if (zoomLevel <= ZoomLevel{ 0 }) { - if ((session.ViewFlags & (VIEWPORT_FLAG_HIDE_BASE | VIEWPORT_FLAG_UNDERGROUND_INSIDE)) == 0) + if (!session.ViewFlags.hasAny(ViewportFlag::hideBase, ViewportFlag::undergroundInside)) { grassLength = tileElement.getGrassLength() & 0x7; } } imageId = surfaceObject->GetImageId(session.MapPosition, grassLength, rotation, image_offset, showGridlines, false); } - if (session.ViewFlags & (VIEWPORT_FLAG_UNDERGROUND_INSIDE | VIEWPORT_FLAG_HIDE_BASE)) + if (session.ViewFlags.hasAny(ViewportFlag::undergroundInside, ViewportFlag::hideBase)) { imageId = imageId.WithTransparency(FilterPaletteID::paletteDarken1); } @@ -1060,7 +1060,7 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con auto& gameState = getGameState(); // Draw Peep Spawns if ((gLegacyScene == LegacyScene::scenarioEditor || gameState.cheats.sandboxMode) - && session.ViewFlags & VIEWPORT_FLAG_LAND_OWNERSHIP) + && session.ViewFlags.has(ViewportFlag::landOwnership)) { const CoordsXY& pos = session.MapPosition; for (auto& spawn : gameState.peepSpawns) @@ -1076,12 +1076,12 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con } } - if (session.ViewFlags & VIEWPORT_FLAG_LAND_OWNERSHIP) + if (session.ViewFlags.has(ViewportFlag::landOwnership)) { PaintSurfaceLandOwnership(session, tileElement, height, surfaceShape); } - if (session.ViewFlags & VIEWPORT_FLAG_CONSTRUCTION_RIGHTS && !(tileElement.hasOwnership(OwnershipFlag::landOwned))) + if (session.ViewFlags.has(ViewportFlag::constructionRights) && !(tileElement.hasOwnership(OwnershipFlag::landOwned))) { PaintSurfaceConstructionRights(session, tileElement, height, surfaceShape); } @@ -1198,8 +1198,8 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con } } - if (zoomLevel <= ZoomLevel{ 0 } && has_surface && !(session.ViewFlags & VIEWPORT_FLAG_UNDERGROUND_INSIDE) - && !(session.ViewFlags & VIEWPORT_FLAG_HIDE_BASE) && Config::Get().general.landscapeSmoothing) + if (zoomLevel <= ZoomLevel{ 0 } && has_surface && !session.ViewFlags.has(ViewportFlag::undergroundInside) + && !session.ViewFlags.has(ViewportFlag::hideBase) && Config::Get().general.landscapeSmoothing) { ViewportSurfaceSmoothenEdge(session, EDGE_TOPLEFT, selfDescriptor, tileDescriptors[2]); ViewportSurfaceSmoothenEdge(session, EDGE_TOPRIGHT, selfDescriptor, tileDescriptors[3]); @@ -1207,7 +1207,7 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con ViewportSurfaceSmoothenEdge(session, EDGE_BOTTOMRIGHT, selfDescriptor, tileDescriptors[1]); } - if ((session.ViewFlags & VIEWPORT_FLAG_UNDERGROUND_INSIDE) && !(session.ViewFlags & VIEWPORT_FLAG_HIDE_BASE) + if (session.ViewFlags.has(ViewportFlag::undergroundInside) && !session.ViewFlags.has(ViewportFlag::hideBase) && !(isInTrackDesignerOrManager())) { const uint8_t image_offset = Byte97B444[surfaceShape]; @@ -1217,7 +1217,7 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con PaintAttachToPreviousPS(session, imageId, 0, 0); } - if (!(session.ViewFlags & VIEWPORT_FLAG_HIDE_VERTICAL)) + if (!session.ViewFlags.has(ViewportFlag::hideVertical)) { ViewportSurfaceDrawTileSideTop(session, EDGE_TOPLEFT, height, edgeObject, selfDescriptor, tileDescriptors[2], false); ViewportSurfaceDrawTileSideTop(session, EDGE_TOPRIGHT, height, edgeObject, selfDescriptor, tileDescriptors[3], false); @@ -1228,9 +1228,9 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con } const uint16_t waterHeight = tileElement.getWaterHeight(); - const bool waterGetsClipped = (session.ViewFlags & VIEWPORT_FLAG_CLIP_VIEW) && (waterHeight > gClipHeight * kCoordsZStep); + const bool waterGetsClipped = session.ViewFlags.has(ViewportFlag::clipView) && (waterHeight > gClipHeight * kCoordsZStep); const bool waterIsTransparent = Config::Get().general.transparentWater - || (session.ViewFlags & VIEWPORT_FLAG_UNDERGROUND_INSIDE); + || session.ViewFlags.has(ViewportFlag::undergroundInside); if (waterHeight > 0 && !gTrackDesignSaveMode && !waterGetsClipped) { @@ -1254,7 +1254,7 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con : EnumValue(SPR_G2_OPAQUE_WATER_OVERLAY); PaintAttachToPreviousPS(session, ImageId(overlayStart + image_offset), 0, 0); - if (!(session.ViewFlags & VIEWPORT_FLAG_HIDE_VERTICAL)) + if (!session.ViewFlags.has(ViewportFlag::hideVertical)) { ViewportSurfaceDrawTileSideBottom( session, EDGE_BOTTOMLEFT, waterHeight, edgeObject, selfDescriptor, tileDescriptors[0], true); diff --git a/src/openrct2/paint/tile_element/Paint.TileElement.cpp b/src/openrct2/paint/tile_element/Paint.TileElement.cpp index 7a78c3fa3b..f4e8e0b71e 100644 --- a/src/openrct2/paint/tile_element/Paint.TileElement.cpp +++ b/src/openrct2/paint/tile_element/Paint.TileElement.cpp @@ -55,7 +55,7 @@ void TileElementPaintSetup(PaintSession& session, const CoordsXY& mapCoords, boo PaintTileElementBase(session, mapCoords); } - else if (!(session.ViewFlags & VIEWPORT_FLAG_TRANSPARENT_BACKGROUND)) + else if (!session.ViewFlags.has(ViewportFlag::transparentBackground)) { BlankTilesPaint(session, mapCoords.x, mapCoords.y); } @@ -116,7 +116,7 @@ static void PaintTileElementBase(PaintSession& session, const CoordsXY& origCoor CoordsXY coords = origCoords; - if ((session.ViewFlags & VIEWPORT_FLAG_CLIP_VIEW)) + if (session.ViewFlags.has(ViewportFlag::clipView)) { if (coords.x < gClipSelectionA.x || coords.x > gClipSelectionB.x) return; @@ -215,13 +215,12 @@ static void PaintTileElementBase(PaintSession& session, const CoordsXY& origCoor } // Only paint tile_elements below the clip height. - if ((session.ViewFlags & VIEWPORT_FLAG_CLIP_VIEW) && (tile_element->getBaseZ() > gClipHeight * kCoordsZStep)) + if (session.ViewFlags.has(ViewportFlag::clipView) && (tile_element->getBaseZ() > gClipHeight * kCoordsZStep)) { // see-through off: don't paint this tile_element at all // see-through on: paint this tile_element as partial or hidden later on // note: surface elements are not painted even with see-through turned on - if ((session.ViewFlags & VIEWPORT_FLAG_CLIP_VIEW_SEE_THROUGH) == 0 - || tile_element->getType() == TileElementType::surface) + if (!session.ViewFlags.has(ViewportFlag::clipViewSeeThrough) || tile_element->getType() == TileElementType::surface) { continue; } @@ -326,7 +325,7 @@ static void PaintTileElementBase(PaintSession& session, const CoordsXY& origCoor } // Only draw supports below the clipping height. - if ((session.ViewFlags & VIEWPORT_FLAG_CLIP_VIEW) && (segmentHeight > gClipHeight)) + if (session.ViewFlags.has(ViewportFlag::clipView) && (segmentHeight > gClipHeight)) continue; int32_t xOffset = static_cast(sy) * 10; @@ -385,8 +384,8 @@ uint16_t PaintUtilRotateSegments(uint16_t segments, uint8_t rotation) return (segments & 0xFF00) | temp; } -bool PaintShouldShowHeightMarkers(const PaintSession& session, const uint32_t viewportFlag) +bool PaintShouldShowHeightMarkers(const PaintSession& session, const ViewportFlag viewportFlag) { auto rt = &session.rt; - return (session.ViewFlags & viewportFlag) && (rt->zoom_level <= ZoomLevel{ 0 }); + return session.ViewFlags.has(viewportFlag) && (rt->zoom_level <= ZoomLevel{ 0 }); } diff --git a/src/openrct2/paint/tile_element/Paint.TileElement.h b/src/openrct2/paint/tile_element/Paint.TileElement.h index a506e0c223..d084cf304b 100644 --- a/src/openrct2/paint/tile_element/Paint.TileElement.h +++ b/src/openrct2/paint/tile_element/Paint.TileElement.h @@ -34,6 +34,11 @@ extern const CoordsXY kBannerBoundBoxes[][2]; extern const uint8_t kPathSlopeToLandSlope[4]; +namespace OpenRCT2 +{ + enum class ViewportFlag : uint32_t; +} + void PaintUtilSetGeneralSupportHeight(PaintSession& session, int16_t height); void PaintUtilForceSetGeneralSupportHeight(PaintSession& session, int16_t height, uint8_t slope); void PaintUtilSetSegmentSupportHeight(PaintSession& session, int32_t segments, uint16_t height, uint8_t slope); @@ -41,4 +46,4 @@ uint16_t PaintUtilRotateSegments(uint16_t segments, uint8_t rotation); void TileElementPaintSetup(PaintSession& session, const CoordsXY& mapCoords, bool isTrackPiecePreview = false); -bool PaintShouldShowHeightMarkers(const PaintSession& session, uint32_t viewportFlag); +bool PaintShouldShowHeightMarkers(const PaintSession& session, OpenRCT2::ViewportFlag viewportFlag); diff --git a/src/openrct2/paint/tile_element/Paint.Wall.cpp b/src/openrct2/paint/tile_element/Paint.Wall.cpp index ff094117d0..8a06ec0a67 100644 --- a/src/openrct2/paint/tile_element/Paint.Wall.cpp +++ b/src/openrct2/paint/tile_element/Paint.Wall.cpp @@ -285,7 +285,7 @@ void PaintWall(PaintSession& session, uint8_t direction, int32_t height, const W { PROFILED_FUNCTION(); - if (session.ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES) + if (session.ViewFlags.has(ViewportFlag::highlightPathIssues)) { return; } diff --git a/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp b/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp index 20ddc0b0b3..2674a4da42 100644 --- a/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp @@ -6575,7 +6575,7 @@ static void WoodenRCTrackWaterSplash( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement, SupportType supportType) { - const bool transparent = Config::Get().general.transparentWater || (session.ViewFlags & VIEWPORT_FLAG_UNDERGROUND_INSIDE); + const bool transparent = Config::Get().general.transparentWater || session.ViewFlags.has(ViewportFlag::undergroundInside); const auto waterMask = ImageId(SPR_WATER_MASK).WithRemap(FilterPaletteID::paletteWater).WithBlended(true); const auto waterOverlay = ImageId(transparent ? EnumValue(SPR_WATER_OVERLAY) : EnumValue(SPR_G2_OPAQUE_WATER_OVERLAY)); diff --git a/src/openrct2/park/ParkPreview.cpp b/src/openrct2/park/ParkPreview.cpp index 1f672b8389..71859c5877 100644 --- a/src/openrct2/park/ParkPreview.cpp +++ b/src/openrct2/park/ParkPreview.cpp @@ -215,7 +215,7 @@ namespace OpenRCT2 Viewport saveVp{ .width = image.width, .height = image.height, - .flags = 0, + .flags = {}, .zoom = ZoomLevel{ 1 }, .rotation = mapPosXYZD.direction, }; diff --git a/src/openrct2/ride/Ride.cpp b/src/openrct2/ride/Ride.cpp index dad75f0ed2..d01d883947 100644 --- a/src/openrct2/ride/Ride.cpp +++ b/src/openrct2/ride/Ride.cpp @@ -5031,7 +5031,7 @@ namespace OpenRCT2 Viewport* viewport = WindowGetViewport(w); if (w != nullptr && viewport != nullptr) { - viewport->flags |= VIEWPORT_FLAG_SOUND_ON; + viewport->flags.set(ViewportFlag::soundOn); } } diff --git a/src/openrct2/ride/TrackDesign.cpp b/src/openrct2/ride/TrackDesign.cpp index 10df58760a..b02e9eca1b 100644 --- a/src/openrct2/ride/TrackDesign.cpp +++ b/src/openrct2/ride/TrackDesign.cpp @@ -2146,7 +2146,7 @@ void TrackDesignDrawPreview(TrackDesign& td, TrackDesignPreviewBuffer& pixels, b view.height = 217; view.pos = { 0, 0 }; view.zoom = zoom_level; - view.flags = VIEWPORT_FLAG_HIDE_BASE | VIEWPORT_FLAG_HIDE_ENTITIES; + view.flags = ViewportFlags(ViewportFlag::hideBase, ViewportFlag::hideEntities); RenderTarget rt; rt.x = 0; diff --git a/src/openrct2/ride/TrackPaint.cpp b/src/openrct2/ride/TrackPaint.cpp index a3980b5e4a..50d0db1a9d 100644 --- a/src/openrct2/ride/TrackPaint.cpp +++ b/src/openrct2/ride/TrackPaint.cpp @@ -1965,13 +1965,13 @@ void PaintTrack(PaintSession& session, Direction direction, int32_t height, cons } if ((!gTrackDesignSaveMode || rideIndex == gTrackDesignSaveRideIndex) - && !(session.ViewFlags & VIEWPORT_FLAG_HIGHLIGHT_PATH_ISSUES)) + && !session.ViewFlags.has(ViewportFlag::highlightPathIssues)) { auto trackType = trackElement.getTrackType(); int32_t trackSequence = trackElement.getSequenceIndex(); int32_t trackColourScheme = trackElement.getColourScheme(); - if (PaintShouldShowHeightMarkers(session, VIEWPORT_FLAG_TRACK_HEIGHTS)) + if (PaintShouldShowHeightMarkers(session, ViewportFlag::trackHeights)) { session.InteractionType = ViewportInteractionItem::none; const auto& ted = GetTrackElementDescriptor(trackType); diff --git a/src/openrct2/scenes/preloader/PreloaderScene.cpp b/src/openrct2/scenes/preloader/PreloaderScene.cpp index 5a7eb383f6..fec5994d09 100644 --- a/src/openrct2/scenes/preloader/PreloaderScene.cpp +++ b/src/openrct2/scenes/preloader/PreloaderScene.cpp @@ -35,7 +35,7 @@ void PreloaderScene::Load() gameStateInitAll(getGameState(), kDefaultMapSize); ContextResetSubsystems(); ContextOpenWindow(WindowClass::mainWindow); - WindowSetFlagForAllViewports(VIEWPORT_FLAG_RENDERING_INHIBITED, true); + WindowSetFlagForAllViewports(ViewportFlag::renderingInhibited, true); WindowResizeGui(ContextGetWidth(), ContextGetHeight()); LOG_VERBOSE("PreloaderScene::Load() finished"); From 282218d3062f6bb9346d7b7a1e8d93f881e16078 Mon Sep 17 00:00:00 2001 From: Sjoerd de Bruin Date: Sun, 20 Sep 2026 13:02:25 +0200 Subject: [PATCH 070/142] Fix #22298: Crash when a plugin changes unloaded large scenery (#27159) --- distribution/changelog.txt | 1 + .../scripting/bindings/world/ScTileElement.cpp | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index c11602cc42..66b6cf7483 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -11,6 +11,7 @@ - Fix: [#20882] When setting rides with preservation status in the Scenario Editor, some rides are not shown. - Fix: [#21320] RCT1 allows more cars per train on some rides than OpenRCT2. - Fix: [#21576] RCT1 Wooden wild mouse track designs with 2-car trains are not imported correctly. +- Fix: [#22298] [Plugin] Crash when changing a large scenery element whose object is not loaded. - Fix: [#24457] Yellow is always rendered as third remap in Ride window. - Fix: [#26754] Switching window tabs by touch could crash the game on some Linux builds. - Fix: [#27052] Unnamed rides in RCT2 base and Wacky Worlds scenarios have hardcoded English names. diff --git a/src/openrct2/scripting/bindings/world/ScTileElement.cpp b/src/openrct2/scripting/bindings/world/ScTileElement.cpp index d38955c468..ce1b29b8c7 100644 --- a/src/openrct2/scripting/bindings/world/ScTileElement.cpp +++ b/src/openrct2/scripting/bindings/world/ScTileElement.cpp @@ -2309,9 +2309,15 @@ namespace OpenRCT2::Scripting const CoordsXY& loc, const LargeSceneryElement* const largeScenery) { const auto* const largeEntry = largeScenery->getEntry(); + if (largeEntry == nullptr) + return nullptr; + const auto direction = largeScenery->getDirection(); const auto sequenceIndex = largeScenery->getSequenceIndex(); const auto& tiles = largeEntry->tiles; + if (sequenceIndex >= tiles.size()) + return nullptr; + const auto& initialTile = tiles[sequenceIndex]; const auto rotatedFirstTile = CoordsXYZ{ CoordsXY{ initialTile.offset }.rotate(direction), @@ -2354,8 +2360,10 @@ namespace OpenRCT2::Scripting void ScTileElement::RemoveBannerEntryIfNeeded(TileElement* element, CoordsXY& coords) { // check if other element still uses the banner entry - if (element->getType() == TileElementType::largeScenery - && element->asLargeScenery()->getEntry()->scrolling_mode != kScrollingModeNone + const auto* largeSceneryEntry = element->getType() == TileElementType::largeScenery + ? element->asLargeScenery()->getEntry() + : nullptr; + if (largeSceneryEntry != nullptr && largeSceneryEntry->scrolling_mode != kScrollingModeNone && GetOtherLargeSceneryElement(coords, element->asLargeScenery()) != nullptr) return; // remove banner entry (if one exists) From c5550ef4aeff60e0bd68c242a744b99c93fd0e1d Mon Sep 17 00:00:00 2001 From: itu-itis24-iyigun24 Date: Sun, 20 Sep 2026 16:29:16 +0300 Subject: [PATCH 071/142] Close #27129: Refactor WATER_FLAGS_* to enum class + FlagHolder (#27141) Replace the unscoped WATER_FLAGS_ALLOW_DUCKS constant with the WaterObjectFlag enum class and a WaterObjectFlags FlagHolder, as part of the ongoing move away from unscoped flag enums. No functional change is intended. --- contributors.md | 1 + src/openrct2/object/WaterEntry.cpp | 2 +- src/openrct2/object/WaterEntry.h | 8 +++++--- src/openrct2/object/WaterObject.cpp | 6 +++--- src/openrct2/scenario/Scenario.cpp | 2 +- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/contributors.md b/contributors.md index 6f2d005825..32f8478da6 100644 --- a/contributors.md +++ b/contributors.md @@ -269,6 +269,7 @@ Appreciation for contributors who have provided substantial work, but are no lon * Michael Hlas (mhlas7) * (byteraidhost) * Ray (RayKoopa) +* (itu-itis24-iyigun24) ## Toolchain * (Balletie) - macOS diff --git a/src/openrct2/object/WaterEntry.cpp b/src/openrct2/object/WaterEntry.cpp index 79873fe1c5..ed2ed54f91 100644 --- a/src/openrct2/object/WaterEntry.cpp +++ b/src/openrct2/object/WaterEntry.cpp @@ -19,7 +19,7 @@ namespace OpenRCT2 .mainPalette = SPR_GAME_DEFAULT_PALETTE, .waterWavesPalette = SPR_GAME_PALETTE_WATER, .waterSparklesPalette = SPR_GAME_PALETTE_3, - .flags = 0, + .flags = {}, }; const WaterObjectEntry& getActiveWaterEntry() diff --git a/src/openrct2/object/WaterEntry.h b/src/openrct2/object/WaterEntry.h index cc7ea845c4..816ca2d2a5 100644 --- a/src/openrct2/object/WaterEntry.h +++ b/src/openrct2/object/WaterEntry.h @@ -9,16 +9,18 @@ #pragma once +#include "../core/FlagHolder.hpp" #include "../drawing/ImageIndexType.h" #include "../localisation/StringIdType.h" #include "ObjectTypes.h" namespace OpenRCT2 { - enum + enum class WaterObjectFlag : uint8_t { - WATER_FLAGS_ALLOW_DUCKS = (1 << 0) + allowDucks, }; + using WaterObjectFlags = FlagHolder; struct WaterObjectEntry { @@ -28,7 +30,7 @@ namespace OpenRCT2 ImageIndex mainPalette; ImageIndex waterWavesPalette; ImageIndex waterSparklesPalette; - uint16_t flags; + WaterObjectFlags flags; }; const WaterObjectEntry& getActiveWaterEntry(); diff --git a/src/openrct2/object/WaterObject.cpp b/src/openrct2/object/WaterObject.cpp index be593e4c14..92ac9476be 100644 --- a/src/openrct2/object/WaterObject.cpp +++ b/src/openrct2/object/WaterObject.cpp @@ -24,7 +24,7 @@ namespace OpenRCT2 void WaterObject::ReadLegacy(IReadObjectContext* context, IStream* stream) { stream->Seek(14, STREAM_SEEK_CURRENT); - _legacyType.flags = stream->ReadValue(); + _legacyType.flags = stream->ReadValue(); GetStringTable().Read(context, stream, ObjectStringID::name); GetImageTable().Read(context, stream); @@ -69,10 +69,10 @@ namespace OpenRCT2 if (properties.is_object()) { - _legacyType.flags = Json::GetFlags( + _legacyType.flags = Json::GetFlagHolder( properties, { - { "allowDucks", WATER_FLAGS_ALLOW_DUCKS }, + { "allowDucks", WaterObjectFlag::allowDucks }, }); auto jPalettes = properties["palettes"]; diff --git a/src/openrct2/scenario/Scenario.cpp b/src/openrct2/scenario/Scenario.cpp index b18129216c..d7373eef53 100644 --- a/src/openrct2/scenario/Scenario.cpp +++ b/src/openrct2/scenario/Scenario.cpp @@ -306,7 +306,7 @@ static void ScenarioWeekUpdate() RideUpdateFavouritedStat(); const auto& waterEntry = getActiveWaterEntry(); - if (month <= MONTH_APRIL && waterEntry.flags & WATER_FLAGS_ALLOW_DUCKS) + if (month <= MONTH_APRIL && waterEntry.flags.has(WaterObjectFlag::allowDucks)) { // 100 attempts at finding some water to create a few ducks at for (int32_t i = 0; i < 100; i++) From 806386cd20bdf35eae959d41971ecc93c0ff8e80 Mon Sep 17 00:00:00 2001 From: Harry Hopkinson <63599884+Harry-Hopkinson@users.noreply.github.com> Date: Sun, 20 Sep 2026 15:31:50 +0200 Subject: [PATCH 072/142] Create FlagHolder for PaintSegments (#27131) --- src/openrct2/core/FlagHolder.hpp | 11 +- .../paint/tile_element/Paint.Path.cpp | 13 +- .../paint/tile_element/Paint.SmallScenery.cpp | 15 +- .../paint/tile_element/Paint.Surface.cpp | 165 +- .../paint/tile_element/Paint.TileElement.cpp | 18 +- .../paint/tile_element/Paint.TileElement.h | 8 +- src/openrct2/paint/tile_element/Segment.h | 36 +- src/openrct2/paint/track/Segment.h | 14 +- .../coaster/AirPoweredVerticalCoaster.cpp | 42 +- .../paint/track/coaster/AlpineCoaster.cpp | 583 +++--- .../paint/track/coaster/BobsleighCoaster.cpp | 223 +-- .../coaster/ClassicStandUpRollerCoaster.cpp | 86 +- .../coaster/ClassicWoodenRollerCoaster.cpp | 29 +- .../track/coaster/CompactInvertedCoaster.cpp | 814 ++++----- .../track/coaster/CorkscrewRollerCoaster.cpp | 1591 +++++++--------- .../track/coaster/FlyingRollerCoaster.cpp | 51 +- .../coaster/FlyingRollerCoasterInverted.cpp | 789 ++++---- .../paint/track/coaster/HybridCoaster.cpp | 252 ++- .../track/coaster/InvertedHairpinCoaster.cpp | 35 +- .../track/coaster/InvertedRollerCoaster.cpp | 1604 +++++++---------- .../track/coaster/JuniorRollerCoaster.cpp | 456 ++--- .../track/coaster/LatticeTriangleTrack.cpp | 1477 ++++++--------- .../coaster/LayDownRollerCoasterInverted.cpp | 730 +++----- .../coaster/LimLaunchedRollerCoaster.cpp | 375 ++-- .../track/coaster/LoopingRollerCoaster.cpp | 710 +++----- src/openrct2/paint/track/coaster/MineRide.cpp | 515 ++---- .../paint/track/coaster/MineTrainCoaster.cpp | 359 ++-- .../paint/track/coaster/MiniRollerCoaster.cpp | 686 +++---- .../track/coaster/MiniSuspendedCoaster.cpp | 173 +- .../coaster/MultiDimensionRollerCoaster.cpp | 483 ++--- .../MultiDimensionRollerCoasterInverted.cpp | 571 +++--- .../track/coaster/ReverserRollerCoaster.cpp | 44 +- .../coaster/SideFrictionRollerCoaster.cpp | 44 +- .../track/coaster/SingleRailRollerCoaster.cpp | 1469 ++++++--------- .../track/coaster/StandUpRollerCoaster.cpp | 1288 +++++-------- .../paint/track/coaster/Steeplechase.cpp | 160 +- .../coaster/SuspendedSwingingCoaster.cpp | 394 ++-- .../track/coaster/TwisterRollerCoaster.cpp | 1571 ++++++---------- .../paint/track/coaster/VirginiaReel.cpp | 3 +- .../paint/track/coaster/WildMouse.cpp | 30 +- .../track/coaster/WoodenRollerCoaster.cpp | 254 +-- .../track/coaster/WoodenRollerCoaster.hpp | 250 +-- .../paint/track/coaster/WoodenWildMouse.cpp | 11 +- src/openrct2/paint/track/gentle/CarRide.cpp | 44 +- src/openrct2/paint/track/gentle/Circus.cpp | 12 +- .../paint/track/gentle/CrookedHouse.cpp | 12 +- .../paint/track/gentle/GhostTrain.cpp | 32 +- .../paint/track/gentle/HauntedHouse.cpp | 12 +- src/openrct2/paint/track/gentle/Maze.cpp | 4 +- .../paint/track/gentle/MerryGoRound.cpp | 12 +- src/openrct2/paint/track/gentle/MiniGolf.cpp | 18 +- .../paint/track/gentle/MiniHelicopters.cpp | 26 +- .../paint/track/gentle/MonorailCycles.cpp | 59 +- .../paint/track/gentle/ObservationTower.cpp | 30 +- .../paint/track/gentle/SpaceRings.cpp | 33 +- src/openrct2/paint/track/thrill/3dCinema.cpp | 12 +- .../paint/track/thrill/Enterprise.cpp | 12 +- src/openrct2/paint/track/thrill/GoKarts.cpp | 105 +- .../paint/track/thrill/LaunchedFreefall.cpp | 30 +- src/openrct2/paint/track/thrill/RotoDrop.cpp | 30 +- src/openrct2/paint/track/thrill/TopSpin.cpp | 12 +- src/openrct2/paint/track/thrill/Twist.cpp | 12 +- .../paint/track/transport/Chairlift.cpp | 14 +- src/openrct2/paint/track/transport/Lift.cpp | 30 +- .../track/transport/MiniatureRailway.cpp | 52 +- .../paint/track/transport/Monorail.cpp | 141 +- .../track/transport/SuspendedMonorail.cpp | 168 +- src/openrct2/paint/track/water/BoatHire.cpp | 7 +- .../paint/track/water/DinghySlide.cpp | 90 +- .../paint/track/water/DinghySlideCovered.cpp | 90 +- src/openrct2/paint/track/water/LogFlume.cpp | 48 +- .../paint/track/water/SplashBoats.cpp | 62 +- .../paint/track/water/SubmarineRide.cpp | 14 +- src/openrct2/ride/TrackData.cpp | 1074 ++++++----- src/openrct2/ride/TrackPaint.cpp | 45 +- src/openrct2/ride/ted/TED.Corkscrew.h | 66 +- src/openrct2/ride/ted/TED.DiveLoop.h | 36 +- src/openrct2/ride/ted/TED.HalfHelix.h | 124 +- src/openrct2/ride/ted/TED.LongBase.h | 120 +- src/openrct2/ride/ted/TED.Loop.h | 382 ++-- src/openrct2/ride/ted/TED.SBend.h | 16 +- src/openrct2/ride/ted/TED.ZeroG.h | 42 +- .../ride/ted/TrackElementDescriptor.h | 8 +- 83 files changed, 8518 insertions(+), 13050 deletions(-) diff --git a/src/openrct2/core/FlagHolder.hpp b/src/openrct2/core/FlagHolder.hpp index 212381fb3e..52c63941b5 100644 --- a/src/openrct2/core/FlagHolder.hpp +++ b/src/openrct2/core/FlagHolder.hpp @@ -68,7 +68,7 @@ struct FlagHolder } template - [[nodiscard]] constexpr FlagHolder with(TTypes... types) + [[nodiscard]] constexpr FlagHolder with(TTypes... types) const { FlagHolder res = *this; res.set(types...); @@ -76,13 +76,20 @@ struct FlagHolder } template - [[nodiscard]] constexpr FlagHolder without(TTypes... types) + [[nodiscard]] constexpr FlagHolder without(TTypes... types) const { FlagHolder res = *this; res.unset(types...); return res; } + [[nodiscard]] constexpr FlagHolder without(const FlagHolder& other) const + { + FlagHolder res = *this; + res.holder &= ~other.holder; + return res; + } + /** * For situations where you don’t know upfront whether to set or unset the flag, * e.g. in game actions where this is passed as a variable. diff --git a/src/openrct2/paint/tile_element/Paint.Path.cpp b/src/openrct2/paint/tile_element/Paint.Path.cpp index 08604c1814..e17448e6c1 100644 --- a/src/openrct2/paint/tile_element/Paint.Path.cpp +++ b/src/openrct2/paint/tile_element/Paint.Path.cpp @@ -884,32 +884,31 @@ static void PathPaintSegmentSupportHeight( if (pathElement.getEdgesAndCorners() == 0xFF) { PaintUtilSetSegmentSupportHeight( - session, - EnumsToFlags(PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + session, { PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, 0xFFFF, 0); return; } - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::centre), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::centre, 0xFFFF, 0); if (edges & EDGE_NE) { - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::topRight), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::topRight, 0xFFFF, 0); } if (edges & EDGE_SE) { - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::bottomRight), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::bottomRight, 0xFFFF, 0); } if (edges & EDGE_SW) { - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::bottomLeft), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::bottomLeft, 0xFFFF, 0); } if (edges & EDGE_NW) { - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::topLeft), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::topLeft, 0xFFFF, 0); } } diff --git a/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp b/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp index 16486a1e30..27c2591832 100644 --- a/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp +++ b/src/openrct2/paint/tile_element/Paint.SmallScenery.cpp @@ -10,7 +10,6 @@ #include "../Paint.h" #include "../../GameState.h" -#include "../../core/EnumUtils.hpp" #include "../../interface/Viewport.h" #include "../../object/SmallSceneryEntry.h" #include "../../profiling/Profiling.h" @@ -78,10 +77,10 @@ static void SetSupportHeights( { if (sceneryEntry.flags.has(SmallSceneryFlag::occupiesFullTile)) { - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::centre), height, 0x20); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::centre, height, 0x20); if (sceneryEntry.flags.has(SmallSceneryFlag::vOffsetCentre)) { - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~EnumToFlag(PaintSegment::centre), height, 0x20); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(PaintSegment::centre), height, 0x20); } } else if (sceneryEntry.flags.has(SmallSceneryFlag::vOffsetCentre)) @@ -89,25 +88,23 @@ static void SetSupportHeights( auto direction = (sceneryElement.getSceneryQuadrant() + session.CurrentRotation) % 4; PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), height, 0x20); } } else if (sceneryEntry.flags.hasAny(SmallSceneryFlag::flag27, SmallSceneryFlag::occupiesFullTile)) { - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::centre), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::centre, 0xFFFF, 0); if (sceneryEntry.flags.has(SmallSceneryFlag::vOffsetCentre)) { - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~EnumToFlag(PaintSegment::centre), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(PaintSegment::centre), 0xFFFF, 0); } } else if (sceneryEntry.flags.has(SmallSceneryFlag::vOffsetCentre)) { auto direction = (sceneryElement.getSceneryQuadrant() + session.CurrentRotation) % 4; PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); } } diff --git a/src/openrct2/paint/tile_element/Paint.Surface.cpp b/src/openrct2/paint/tile_element/Paint.Surface.cpp index 88af928ea0..ae8ef6812e 100644 --- a/src/openrct2/paint/tile_element/Paint.Surface.cpp +++ b/src/openrct2/paint/tile_element/Paint.Surface.cpp @@ -1356,12 +1356,12 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con // 1B 1B // 1B PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), height, 0); + session, { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, height, 0); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::right), height, 1); + session, { PaintSegment::left, PaintSegment::centre, PaintSegment::right }, height, 1); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottomRight), height + 6, 0x1B); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::bottom), height + 6 + 6, 0x1B); + session, { PaintSegment::bottomLeft, PaintSegment::bottomRight }, height + 6, 0x1B); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::bottom, height + 6 + 6, 0x1B); PaintUtilForceSetGeneralSupportHeight(session, height, 1); break; @@ -1373,12 +1373,11 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con // 17 00 // 02 PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), height, 0); + session, { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, height, 0); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::bottom), height, 2); - PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::bottomLeft), height + 6, 0x17); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::left), height + 6 + 6, 0x17); + session, { PaintSegment::top, PaintSegment::centre, PaintSegment::bottom }, height, 2); + PaintUtilSetSegmentSupportHeight(session, { PaintSegment::topLeft, PaintSegment::bottomLeft }, height + 6, 0x17); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::left, height + 6 + 6, 0x17); PaintUtilForceSetGeneralSupportHeight(session, height, 2); break; @@ -1390,13 +1389,11 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con // 03 03 // 03 PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::topRight, PaintSegment::right), height + 2, 3); + session, { PaintSegment::top, PaintSegment::topRight, PaintSegment::right }, height + 2, 3); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight), height + 2 + 6, - 3); + session, { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight }, height + 2 + 6, 3); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom), height + 2 + 6 + 6, - 3); + session, { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom }, height + 2 + 6 + 6, 3); PaintUtilForceSetGeneralSupportHeight(session, height, 3); break; @@ -1408,12 +1405,11 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con // 00 00 // 00 PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottom, PaintSegment::bottomLeft, PaintSegment::bottomRight), height, 0); + session, { PaintSegment::bottom, PaintSegment::bottomLeft, PaintSegment::bottomRight }, height, 0); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::right), height, 4); - PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::topRight), height + 6, 0x1E); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::top), height + 6 + 6, 0x1E); + session, { PaintSegment::left, PaintSegment::centre, PaintSegment::right }, height, 4); + PaintUtilSetSegmentSupportHeight(session, { PaintSegment::topLeft, PaintSegment::topRight }, height + 6, 0x1E); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::top, height + 6 + 6, 0x1E); PaintUtilForceSetGeneralSupportHeight(session, height, 4); break; @@ -1424,14 +1420,13 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con // 05 05 05 ░░ ░░ ░░ // 1B 1B ▒▒ ▒▒ // 1B ▓▓ - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::top), height + 6 + 6, 0x1E); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::top, height + 6 + 6, 0x1E); + PaintUtilSetSegmentSupportHeight(session, { PaintSegment::topLeft, PaintSegment::topRight }, height + 6, 0x1E); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::topRight), height + 6, 0x1E); + session, { PaintSegment::left, PaintSegment::centre, PaintSegment::right }, height, 5); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::right), height, 5); - PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottomRight), height + 6, 0x1B); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::bottom), height + 6 + 6, 0x1B); + session, { PaintSegment::bottomLeft, PaintSegment::bottomRight }, height + 6, 0x1B); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::bottom, height + 6 + 6, 0x1B); PaintUtilForceSetGeneralSupportHeight(session, height, 5); break; @@ -1443,12 +1438,11 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con // 06 06 ▒▒ ░░ // 06 ░░ PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom), height + 2, 6); + session, { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom }, height + 2, 6); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), height + 2 + 6, - 6); + session, { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, height + 2 + 6, 6); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::top), height + 2 + 6 + 6, 6); + session, { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }, height + 2 + 6 + 6, 6); PaintUtilForceSetGeneralSupportHeight(session, height, 6); break; @@ -1459,26 +1453,24 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con // 00 07 17 ▓▓ ▓▓ ░░ // 00 17 ▓▓ ▒▒ // 07 ▓▓ - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::right), height + 4, 0x17); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::right, height + 4, 0x17); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topRight, PaintSegment::bottomRight), height + 4 + 6, 0x17); + session, { PaintSegment::topRight, PaintSegment::bottomRight }, height + 4 + 6, 0x17); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::bottom), height + 4 + 6 + 6, 7); + session, { PaintSegment::top, PaintSegment::centre, PaintSegment::bottom }, height + 4 + 6 + 6, 7); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::left), height + 4 + 6 + 6, - 0); + session, { PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::left }, height + 4 + 6 + 6, 0); PaintUtilForceSetGeneralSupportHeight(session, height, 7); break; case 8: // Loc6620D8 PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft), height, 0); + session, { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft }, height, 0); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::bottom), height, 8); - PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topRight, PaintSegment::bottomRight), height + 6, 0x1D); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::right), height + 6 + 6, 0x1D); + session, { PaintSegment::top, PaintSegment::centre, PaintSegment::bottom }, height, 8); + PaintUtilSetSegmentSupportHeight(session, { PaintSegment::topRight, PaintSegment::bottomRight }, height + 6, 0x1D); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::right, height + 6 + 6, 0x1D); PaintUtilForceSetGeneralSupportHeight(session, height, 8); break; @@ -1486,128 +1478,119 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con // Loc66216D PaintUtilForceSetGeneralSupportHeight(session, height, 9); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::left), height + 2, 9); + session, { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left }, height + 2, 9); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), height + 2 + 6, - 9); + session, { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, height + 2 + 6, 9); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right), height + 2 + 6 + 6, - 9); + session, { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }, height + 2 + 6 + 6, 9); break; case 10: // Loc662206 PaintUtilForceSetGeneralSupportHeight(session, height, 0xA); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::left), height + 6 + 6, 0x17); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::left, height + 6 + 6, 0x17); + PaintUtilSetSegmentSupportHeight(session, { PaintSegment::topLeft, PaintSegment::bottomLeft }, height + 6, 0x17); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::bottomLeft), height + 6, 0x17); - PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::bottom), height, 0xA); - PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topRight, PaintSegment::bottomRight), height + 6, 0x1D); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::right), height + 6 + 6, 0x1D); + session, { PaintSegment::top, PaintSegment::centre, PaintSegment::bottom }, height, 0xA); + PaintUtilSetSegmentSupportHeight(session, { PaintSegment::topRight, PaintSegment::bottomRight }, height + 6, 0x1D); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::right, height + 6 + 6, 0x1D); break; case 11: // Loc66229B PaintUtilForceSetGeneralSupportHeight(session, height, 0xB); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::top), height + 4, 0x1B); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::top, height + 4, 0x1B); + PaintUtilSetSegmentSupportHeight(session, { PaintSegment::topLeft, PaintSegment::topRight }, height + 4 + 6, 0x1B); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::topRight), height + 4 + 6, 0x1B); + session, { PaintSegment::left, PaintSegment::centre, PaintSegment::right }, height + 4 + 6 + 6, 0xB); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::right), height + 4 + 6 + 6, 0xB); - PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::bottom), - height + 4 + 6 + 6, 0); + session, { PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::bottom }, height + 4 + 6 + 6, 0); break; case 12: // Loc662334 PaintUtilForceSetGeneralSupportHeight(session, height, 0xC); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom), height + 2, 0xC); + session, { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom }, height + 2, 0xC); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight), height + 2 + 6, - 0xC); + session, { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight }, height + 2 + 6, 0xC); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::topRight, PaintSegment::right), height + 2 + 6 + 6, 0xC); + session, { PaintSegment::top, PaintSegment::topRight, PaintSegment::right }, height + 2 + 6 + 6, 0xC); break; case 13: // Loc6623CD PaintUtilForceSetGeneralSupportHeight(session, height, 0xD); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::left), height + 4, 0x1D); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::left, height + 4, 0x1D); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::bottomLeft), height + 4 + 6, 0x1D); + session, { PaintSegment::topLeft, PaintSegment::bottomLeft }, height + 4 + 6, 0x1D); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::bottom), height + 4 + 6 + 6, 0xD); + session, { PaintSegment::top, PaintSegment::centre, PaintSegment::bottom }, height + 4 + 6 + 6, 0xD); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), - height + 4 + 6 + 6, 0); + session, { PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, height + 4 + 6 + 6, 0); break; case 14: // Loc662466 PaintUtilForceSetGeneralSupportHeight(session, height, 0xE); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::bottom), height + 4, 0x1E); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::bottom, height + 4, 0x1E); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottomRight), height + 4 + 6, 0x1E); + session, { PaintSegment::bottomLeft, PaintSegment::bottomRight }, height + 4 + 6, 0x1E); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::right), height + 4 + 6 + 6, 0xE); + session, { PaintSegment::left, PaintSegment::centre, PaintSegment::right }, height + 4 + 6 + 6, 0xE); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::top), height + 4 + 6 + 6, 0); + session, { PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::top }, height + 4 + 6 + 6, 0); break; case 23: // Loc6624FF PaintUtilForceSetGeneralSupportHeight(session, height, 0x17); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::right), height + 4, 0x17); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::right, height + 4, 0x17); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topRight, PaintSegment::bottomRight), height + 4 + 6, 0x17); + session, { PaintSegment::topRight, PaintSegment::bottomRight }, height + 4 + 6, 0x17); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::bottom), height + 4 + 6 + 6, 0x17); + session, { PaintSegment::top, PaintSegment::centre, PaintSegment::bottom }, height + 4 + 6 + 6, 0x17); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::bottomLeft), height + 4 + 6 + 6 + 6, 0x17); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::left), height + 4 + 6 + 6 + 6 + 6, 0x17); + session, { PaintSegment::topLeft, PaintSegment::bottomLeft }, height + 4 + 6 + 6 + 6, 0x17); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::left, height + 4 + 6 + 6 + 6 + 6, 0x17); break; case 27: // Loc6625A0 PaintUtilForceSetGeneralSupportHeight(session, height, 0x1B); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::top), height + 4, 0x1B); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::top, height + 4, 0x1B); + PaintUtilSetSegmentSupportHeight(session, { PaintSegment::topLeft, PaintSegment::topRight }, height + 4 + 6, 0x1B); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::topRight), height + 4 + 6, 0x1B); + session, { PaintSegment::left, PaintSegment::centre, PaintSegment::right }, height + 4 + 6 + 6, 0x1B); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::right), height + 4 + 6 + 6, 0x1B); - PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottomRight), height + 4 + 6 + 6 + 6, 0x1B); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::bottom), height + 4 + 6 + 6 + 6 + 6, 0x1B); + session, { PaintSegment::bottomLeft, PaintSegment::bottomRight }, height + 4 + 6 + 6 + 6, 0x1B); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::bottom, height + 4 + 6 + 6 + 6 + 6, 0x1B); break; case 29: // Loc662641 PaintUtilForceSetGeneralSupportHeight(session, height, 0x1D); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::left), height + 4, 0x1D); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::left, height + 4, 0x1D); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::bottomLeft), height + 4 + 6, 0x1D); + session, { PaintSegment::topLeft, PaintSegment::bottomLeft }, height + 4 + 6, 0x1D); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::bottom), height + 4 + 6 + 6, 0x1D); + session, { PaintSegment::top, PaintSegment::centre, PaintSegment::bottom }, height + 4 + 6 + 6, 0x1D); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topRight, PaintSegment::bottomRight), height + 4 + 6 + 6 + 6, 0x1D); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::right), height + 4 + 6 + 6 + 6 + 6, 0x1D); + session, { PaintSegment::topRight, PaintSegment::bottomRight }, height + 4 + 6 + 6 + 6, 0x1D); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::right, height + 4 + 6 + 6 + 6 + 6, 0x1D); break; case 30: // Loc6626E2 PaintUtilForceSetGeneralSupportHeight(session, height, 0x1E); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::bottom), height + 4, 0x1E); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::bottom, height + 4, 0x1E); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottomRight), height + 4 + 6, 0x1E); + session, { PaintSegment::bottomLeft, PaintSegment::bottomRight }, height + 4 + 6, 0x1E); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::right), height + 4 + 6 + 6, 0x1E); + session, { PaintSegment::left, PaintSegment::centre, PaintSegment::right }, height + 4 + 6 + 6, 0x1E); PaintUtilSetSegmentSupportHeight( - session, EnumsToFlags(PaintSegment::topLeft, PaintSegment::topRight), height + 4 + 6 + 6 + 6, 0x1E); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::top), height + 4 + 6 + 6 + 6 + 6, 0x1E); + session, { PaintSegment::topLeft, PaintSegment::topRight }, height + 4 + 6 + 6 + 6, 0x1E); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::top, height + 4 + 6 + 6 + 6 + 6, 0x1E); break; } } diff --git a/src/openrct2/paint/tile_element/Paint.TileElement.cpp b/src/openrct2/paint/tile_element/Paint.TileElement.cpp index f4e8e0b71e..9df4d66757 100644 --- a/src/openrct2/paint/tile_element/Paint.TileElement.cpp +++ b/src/openrct2/paint/tile_element/Paint.TileElement.cpp @@ -353,18 +353,16 @@ void PaintUtilForceSetGeneralSupportHeight(PaintSession& session, int16_t height session.Support.slope = slope; } -const uint16_t kSegmentOffsets[9] = { - EnumToFlag(PaintSegment::top), EnumToFlag(PaintSegment::left), EnumToFlag(PaintSegment::right), - EnumToFlag(PaintSegment::bottom), EnumToFlag(PaintSegment::centre), EnumToFlag(PaintSegment::topLeft), - EnumToFlag(PaintSegment::topRight), EnumToFlag(PaintSegment::bottomLeft), EnumToFlag(PaintSegment::bottomRight), -}; +const PaintSegment kSegmentOffsets[9] = { PaintSegment::top, PaintSegment::left, PaintSegment::right, + PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }; -void PaintUtilSetSegmentSupportHeight(PaintSession& session, int32_t segments, uint16_t height, uint8_t slope) +void PaintUtilSetSegmentSupportHeight(PaintSession& session, PaintSegments segments, uint16_t height, uint8_t slope) { SupportHeight* supportSegments = session.SupportSegments; for (std::size_t s = 0; s < std::size(kSegmentOffsets); s++) { - if (segments & kSegmentOffsets[s]) + if (segments.has(kSegmentOffsets[s])) { supportSegments[s].height = height; if (height != 0xFFFF) @@ -375,13 +373,13 @@ void PaintUtilSetSegmentSupportHeight(PaintSession& session, int32_t segments, u } } -uint16_t PaintUtilRotateSegments(uint16_t segments, uint8_t rotation) +PaintSegments PaintUtilRotateSegments(PaintSegments segments, uint8_t rotation) { // Only the value representing PaintSegment::centre falls beyond 0xFF, so this will be kept in place. - uint8_t temp = segments & 0xFF; + uint8_t temp = segments.holder & 0xFF; temp = Numerics::rol8(temp, rotation * 2); - return (segments & 0xFF00) | temp; + return PaintSegments(static_cast((segments.holder & 0xFF00) | temp)); } bool PaintShouldShowHeightMarkers(const PaintSession& session, const ViewportFlag viewportFlag) diff --git a/src/openrct2/paint/tile_element/Paint.TileElement.h b/src/openrct2/paint/tile_element/Paint.TileElement.h index d084cf304b..e09434a760 100644 --- a/src/openrct2/paint/tile_element/Paint.TileElement.h +++ b/src/openrct2/paint/tile_element/Paint.TileElement.h @@ -9,6 +9,8 @@ #pragma once +#include "Segment.h" + #include struct CoordsXY; @@ -26,7 +28,7 @@ enum edge_t EDGE_TOPRIGHT = EDGE_NE }; -extern const uint16_t kSegmentOffsets[9]; +extern const OpenRCT2::PaintSegment kSegmentOffsets[9]; extern bool gShowSupportSegmentHeights; @@ -41,8 +43,8 @@ namespace OpenRCT2 void PaintUtilSetGeneralSupportHeight(PaintSession& session, int16_t height); void PaintUtilForceSetGeneralSupportHeight(PaintSession& session, int16_t height, uint8_t slope); -void PaintUtilSetSegmentSupportHeight(PaintSession& session, int32_t segments, uint16_t height, uint8_t slope); -uint16_t PaintUtilRotateSegments(uint16_t segments, uint8_t rotation); +void PaintUtilSetSegmentSupportHeight(PaintSession& session, OpenRCT2::PaintSegments segments, uint16_t height, uint8_t slope); +OpenRCT2::PaintSegments PaintUtilRotateSegments(OpenRCT2::PaintSegments segments, uint8_t rotation); void TileElementPaintSetup(PaintSession& session, const CoordsXY& mapCoords, bool isTrackPiecePreview = false); diff --git a/src/openrct2/paint/tile_element/Segment.h b/src/openrct2/paint/tile_element/Segment.h index 3f3490b7f2..25748b149f 100644 --- a/src/openrct2/paint/tile_element/Segment.h +++ b/src/openrct2/paint/tile_element/Segment.h @@ -10,6 +10,7 @@ #pragma once #include "../../core/EnumUtils.hpp" +#include "../../core/FlagHolder.hpp" #include "../../core/Numerics.hpp" #include @@ -31,25 +32,28 @@ namespace OpenRCT2 topLeft = 7, centre = 8, }; - constexpr uint16_t kSegmentsNone = 0; - constexpr int32_t kSegmentsAll = EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight); - constexpr uint16_t kSegmentsUnimplemented = kSegmentsNone; + using PaintSegments = FlagHolder; + constexpr PaintSegments kSegmentsNone{}; + constexpr PaintSegments kSegmentsAll = { PaintSegment::top, PaintSegment::left, PaintSegment::right, + PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }; + constexpr PaintSegments kSegmentsUnimplemented = kSegmentsNone; - constexpr uint16_t paintSegmentsRotate(const uint16_t segments, const uint8_t rotation) + constexpr PaintSegments paintSegmentsRotate(PaintSegments segments, const uint8_t rotation) { - uint8_t outerSegments = segments & 0xFF; + uint8_t outerSegments = segments.holder & 0xFF; outerSegments = Numerics::rol8(outerSegments, rotation * 2); - return (segments & EnumToFlag(PaintSegment::centre)) | outerSegments; + segments.holder = static_cast((segments.holder & EnumToFlag(PaintSegment::centre)) | outerSegments); + return segments; } - constexpr uint16_t paintSegmentsFlipXAxis(const uint16_t segments) + constexpr PaintSegments paintSegmentsFlipXAxis(PaintSegments segments) { - uint8_t outerSegments = segments & 0xFF; + uint8_t outerSegments = segments.holder & 0xFF; outerSegments = (outerSegments * 0x0202020202 & 0x010884422010) % 1023; // reverse the bits, std::byteswap is c++23 outerSegments = Numerics::rol8(outerSegments, 3); - return (segments & EnumToFlag(PaintSegment::centre)) | outerSegments; + segments.holder = static_cast((segments.holder & EnumToFlag(PaintSegment::centre)) | outerSegments); + return segments; } enum class BlockedSegmentsType : uint8_t @@ -60,13 +64,13 @@ namespace OpenRCT2 }; constexpr uint32_t kBlockedSegmentsTypeCount = 3; - constexpr std::array blockedSegmentsAllTypes(const uint16_t segments) + constexpr std::array blockedSegmentsAllTypes(const PaintSegments segments) { return { segments, segments, segments }; } - constexpr std::array blockedSegmentsRotate( - std::array blockedSegments, const uint8_t rotation) + constexpr std::array blockedSegmentsRotate( + std::array blockedSegments, const uint8_t rotation) { for (auto& segments : blockedSegments) { @@ -75,8 +79,8 @@ namespace OpenRCT2 return blockedSegments; } - constexpr std::array blockedSegmentsFlipXAxis( - std::array blockedSegments) + constexpr std::array blockedSegmentsFlipXAxis( + std::array blockedSegments) { for (auto& segments : blockedSegments) { diff --git a/src/openrct2/paint/track/Segment.h b/src/openrct2/paint/track/Segment.h index 043a884079..a73ccd9edc 100644 --- a/src/openrct2/paint/track/Segment.h +++ b/src/openrct2/paint/track/Segment.h @@ -11,15 +11,13 @@ #include "../tile_element/Segment.h" -#include - namespace OpenRCT2::BlockedSegments { - constexpr uint16_t kStraightFlat = EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft); - constexpr uint16_t kDiagStraightFlat[] = { - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, PaintSegment::top), - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::left, PaintSegment::topLeft), + constexpr PaintSegments kStraightFlat = { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }; + constexpr PaintSegments kDiagStraightFlat[] = { + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, PaintSegment::top }, + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::left, PaintSegment::topLeft }, }; } // namespace OpenRCT2::BlockedSegments diff --git a/src/openrct2/paint/track/coaster/AirPoweredVerticalCoaster.cpp b/src/openrct2/paint/track/coaster/AirPoweredVerticalCoaster.cpp index 1fcd020fb7..4f9258a6ba 100644 --- a/src/openrct2/paint/track/coaster/AirPoweredVerticalCoaster.cpp +++ b/src/openrct2/paint/track/coaster/AirPoweredVerticalCoaster.cpp @@ -260,17 +260,15 @@ static void AirPoweredVerticalRCTrackRightQuarterTurn5( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -278,26 +276,23 @@ static void AirPoweredVerticalRCTrackRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre, - PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre, + PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -455,17 +450,15 @@ static void AirPoweredVerticalRCTrackBankedRightQuarterTurn5( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -473,26 +466,23 @@ static void AirPoweredVerticalRCTrackBankedRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre, - PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre, + PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; diff --git a/src/openrct2/paint/track/coaster/AlpineCoaster.cpp b/src/openrct2/paint/track/coaster/AlpineCoaster.cpp index 64004e8cee..a22684ad32 100644 --- a/src/openrct2/paint/track/coaster/AlpineCoaster.cpp +++ b/src/openrct2/paint/track/coaster/AlpineCoaster.cpp @@ -464,7 +464,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -499,7 +499,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -543,8 +543,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -599,7 +598,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -634,9 +633,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -668,8 +666,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -704,9 +701,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -750,8 +746,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -834,9 +829,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -868,9 +862,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -879,7 +872,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -915,9 +908,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -992,9 +984,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1026,9 +1017,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1037,8 +1027,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1073,9 +1062,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1148,8 +1136,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1182,8 +1169,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1215,8 +1201,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1251,7 +1236,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1293,8 +1278,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1327,8 +1311,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1360,8 +1343,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1396,7 +1378,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1438,8 +1420,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1472,8 +1453,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -1505,8 +1485,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1545,7 +1524,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1587,8 +1566,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1621,8 +1599,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1654,8 +1631,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1690,7 +1666,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1732,8 +1708,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1765,8 +1740,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -1797,8 +1771,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1832,7 +1805,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -1875,8 +1848,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1909,8 +1881,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -1942,8 +1913,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1978,7 +1948,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2384,8 +2354,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2407,8 +2376,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2425,8 +2393,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2446,7 +2413,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2473,8 +2440,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2492,8 +2458,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2514,8 +2479,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2535,7 +2499,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2562,8 +2526,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2585,8 +2548,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2603,8 +2565,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2624,7 +2585,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2651,8 +2612,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2670,8 +2630,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2692,8 +2651,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2713,7 +2671,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2740,8 +2698,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2763,8 +2720,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -2781,8 +2737,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2802,7 +2757,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2829,8 +2784,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2848,8 +2802,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -2870,8 +2823,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2891,7 +2843,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2918,8 +2870,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2941,8 +2892,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -2959,8 +2909,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2980,7 +2929,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3007,8 +2956,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3026,8 +2974,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -3048,8 +2995,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3069,7 +3015,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3096,8 +3042,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -3118,8 +3063,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -3135,8 +3079,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -3155,7 +3098,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -3183,8 +3126,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -3201,8 +3143,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -3222,8 +3163,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -3242,7 +3182,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -3270,8 +3210,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3293,8 +3232,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3311,8 +3249,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3332,7 +3269,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3359,8 +3296,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3378,8 +3314,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3400,8 +3335,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3421,7 +3355,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3448,8 +3382,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3467,8 +3400,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3485,8 +3417,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3506,7 +3437,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3533,8 +3464,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3552,8 +3482,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3570,8 +3499,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3591,7 +3519,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3646,7 +3574,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3685,7 +3613,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3737,8 +3665,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3801,7 +3728,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3840,9 +3767,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3878,8 +3804,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3918,9 +3843,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3972,8 +3896,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4064,9 +3987,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4102,9 +4024,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4113,7 +4034,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4152,9 +4073,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4237,9 +4157,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4275,9 +4194,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4286,8 +4204,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4326,9 +4243,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4395,7 +4311,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4449,8 +4365,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4501,8 +4416,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4556,8 +4470,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4624,7 +4537,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4663,9 +4576,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4701,8 +4613,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4741,9 +4652,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4791,8 +4701,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4843,8 +4752,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4883,9 +4791,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4921,8 +4828,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -4960,9 +4866,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5010,8 +4915,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5073,7 +4977,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5107,9 +5011,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5143,9 +5046,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5187,8 +5089,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5234,8 +5135,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5268,9 +5168,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5303,9 +5202,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5347,8 +5245,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5398,9 +5295,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5435,7 +5331,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5482,9 +5378,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5531,9 +5426,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5568,8 +5462,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5610,9 +5503,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5662,9 +5554,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5699,8 +5590,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5747,9 +5637,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5796,9 +5685,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5833,7 +5721,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5874,9 +5762,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5952,9 +5839,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5989,9 +5875,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6023,8 +5908,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6059,9 +5943,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6108,9 +5991,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6157,9 +6039,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6194,9 +6075,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6228,8 +6108,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6263,9 +6142,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6306,9 +6184,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6357,9 +6234,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6394,9 +6270,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6428,8 +6303,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6463,9 +6337,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6512,9 +6385,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6561,9 +6433,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6598,9 +6469,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6632,8 +6502,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6668,9 +6537,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6712,9 +6580,8 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6825,7 +6692,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -6879,8 +6746,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -6935,8 +6801,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -6990,8 +6855,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7042,7 +6906,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7100,8 +6964,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7152,8 +7015,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7211,8 +7073,7 @@ namespace OpenRCT2::AlpineRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); diff --git a/src/openrct2/paint/track/coaster/BobsleighCoaster.cpp b/src/openrct2/paint/track/coaster/BobsleighCoaster.cpp index 2bd71a6408..b058e004a8 100644 --- a/src/openrct2/paint/track/coaster/BobsleighCoaster.cpp +++ b/src/openrct2/paint/track/coaster/BobsleighCoaster.cpp @@ -504,8 +504,7 @@ static void BobsleighRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -551,9 +550,8 @@ static void BobsleighRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -597,7 +595,7 @@ static void BobsleighRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -644,9 +642,8 @@ static void BobsleighRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -700,7 +697,7 @@ static void BobsleighRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -964,8 +961,7 @@ static void BobsleighRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1011,9 +1007,8 @@ static void BobsleighRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1057,7 +1052,7 @@ static void BobsleighRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1104,9 +1099,8 @@ static void BobsleighRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1160,7 +1154,7 @@ static void BobsleighRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1542,8 +1536,7 @@ static void BobsleighRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1587,9 +1580,8 @@ static void BobsleighRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1634,9 +1626,8 @@ static void BobsleighRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1690,7 +1681,7 @@ static void BobsleighRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1749,8 +1740,7 @@ static void BobsleighRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1794,9 +1784,8 @@ static void BobsleighRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1841,9 +1830,8 @@ static void BobsleighRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1897,8 +1885,7 @@ static void BobsleighRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1956,8 +1943,7 @@ static void BobsleighRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2003,8 +1989,7 @@ static void BobsleighRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2057,7 +2042,7 @@ static void BobsleighRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2125,8 +2110,7 @@ static void BobsleighRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2172,8 +2156,7 @@ static void BobsleighRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2226,7 +2209,7 @@ static void BobsleighRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2294,9 +2277,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2343,8 +2325,7 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2397,9 +2378,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2453,9 +2433,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2502,8 +2481,7 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2552,9 +2530,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2613,9 +2590,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2662,8 +2638,7 @@ static void BobsleighRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2717,9 +2692,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2773,9 +2747,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2822,8 +2795,7 @@ static void BobsleighRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2871,9 +2843,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2962,9 +2933,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3011,9 +2981,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3057,7 +3026,7 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3104,9 +3073,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3160,9 +3128,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3216,9 +3183,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3265,9 +3231,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3311,8 +3276,7 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3358,9 +3322,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3409,9 +3372,8 @@ static void BobsleighRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3470,9 +3432,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3519,9 +3480,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3565,8 +3525,7 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3612,9 +3571,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3668,9 +3626,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3724,9 +3681,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3773,9 +3729,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3819,7 +3774,7 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3866,9 +3821,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3917,9 +3871,8 @@ static void BobsleighRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); diff --git a/src/openrct2/paint/track/coaster/ClassicStandUpRollerCoaster.cpp b/src/openrct2/paint/track/coaster/ClassicStandUpRollerCoaster.cpp index d7c15fe463..d8dac962df 100644 --- a/src/openrct2/paint/track/coaster/ClassicStandUpRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/ClassicStandUpRollerCoaster.cpp @@ -244,8 +244,7 @@ static void classicStandUpRCTrackBankedRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; } @@ -279,9 +278,8 @@ static void classicStandUpRCTrackBankedRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::right, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::right, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -313,8 +311,7 @@ static void classicStandUpRCTrackBankedRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -348,9 +345,8 @@ static void classicStandUpRCTrackBankedRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -376,8 +372,7 @@ static void classicStandUpRCTrackBankedRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; } @@ -651,9 +646,8 @@ static void classicStandUpRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -685,9 +679,8 @@ static void classicStandUpRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -696,8 +689,7 @@ static void classicStandUpRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -731,9 +723,8 @@ static void classicStandUpRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -803,9 +794,8 @@ static void classicStandUpRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -837,9 +827,8 @@ static void classicStandUpRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -848,8 +837,7 @@ static void classicStandUpRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -884,9 +872,8 @@ static void classicStandUpRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -949,8 +936,7 @@ static void classicStandUpRCTrackRightBankedQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 1: @@ -978,8 +964,7 @@ static void classicStandUpRCTrackRightBankedQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -996,8 +981,7 @@ static void classicStandUpRCTrackRightBankedQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; } @@ -1146,7 +1130,7 @@ static void classicStandUpRCTrackDiagFlatTo25DegUpBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1162,8 +1146,7 @@ static void classicStandUpRCTrackDiagFlatTo25DegUpBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -1178,8 +1161,7 @@ static void classicStandUpRCTrackDiagFlatTo25DegUpBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1198,8 +1180,7 @@ static void classicStandUpRCTrackDiagFlatTo25DegUpBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -1263,7 +1244,7 @@ static void classicStandUpRCTrackDiag25DegUpToFlatBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1279,8 +1260,7 @@ static void classicStandUpRCTrackDiag25DegUpToFlatBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -1295,8 +1275,7 @@ static void classicStandUpRCTrackDiag25DegUpToFlatBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1315,8 +1294,7 @@ static void classicStandUpRCTrackDiag25DegUpToFlatBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } diff --git a/src/openrct2/paint/track/coaster/ClassicWoodenRollerCoaster.cpp b/src/openrct2/paint/track/coaster/ClassicWoodenRollerCoaster.cpp index 79c0831bf2..c04c643a99 100644 --- a/src/openrct2/paint/track/coaster/ClassicWoodenRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/ClassicWoodenRollerCoaster.cpp @@ -895,19 +895,16 @@ static void ClassicWoodenRCTrackBankedRightQuarterTurn5( }, }; - static constexpr int blockedSegments[7] = { + static constexpr PaintSegments kBlockedSegments[7] = { kSegmentsAll, - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, kSegmentsAll, }; @@ -917,7 +914,7 @@ static void ClassicWoodenRCTrackBankedRightQuarterTurn5( DrawSupportForSequenceA( session, supportType.wooden, trackSequence, direction, height, session.SupportColours); - PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(kBlockedSegments[trackSequence], direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -1063,10 +1060,10 @@ static void ClassicWoodenRCTrackRightQuarterTurn3Bank( }, }; - static constexpr int blockedSegments[4] = { + static constexpr PaintSegments kBlockedSegments[4] = { kSegmentsAll, kSegmentsNone, - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, kSegmentsAll, }; @@ -1077,7 +1074,7 @@ static void ClassicWoodenRCTrackRightQuarterTurn3Bank( DrawSupportForSequenceA( session, supportType.wooden, trackSequence, direction, height, session.SupportColours); - PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(kBlockedSegments[trackSequence], direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/coaster/CompactInvertedCoaster.cpp b/src/openrct2/paint/track/coaster/CompactInvertedCoaster.cpp index ae72c56f0d..e84ecf14bd 100644 --- a/src/openrct2/paint/track/coaster/CompactInvertedCoaster.cpp +++ b/src/openrct2/paint/track/coaster/CompactInvertedCoaster.cpp @@ -750,9 +750,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -792,9 +791,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -825,7 +823,7 @@ static void CompactInvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -858,9 +856,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -893,9 +890,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -957,9 +953,8 @@ static void CompactInvertedRCTrackFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1004,9 +999,8 @@ static void CompactInvertedRCTrackFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1051,9 +1045,8 @@ static void CompactInvertedRCTrackLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1098,9 +1091,8 @@ static void CompactInvertedRCTrackRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1148,9 +1140,8 @@ static void CompactInvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1190,9 +1181,8 @@ static void CompactInvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1223,7 +1213,7 @@ static void CompactInvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1256,9 +1246,8 @@ static void CompactInvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1291,9 +1280,8 @@ static void CompactInvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1355,9 +1343,8 @@ static void CompactInvertedRCTrackLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1426,9 +1413,8 @@ static void CompactInvertedRCTrackRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1497,9 +1483,8 @@ static void CompactInvertedRCTrack25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1568,9 +1553,8 @@ static void CompactInvertedRCTrack25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1675,9 +1659,8 @@ static void CompactInvertedRCTrackLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1729,9 +1712,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1769,9 +1751,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -1799,7 +1780,7 @@ static void CompactInvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -1830,9 +1811,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -1861,9 +1841,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1914,9 +1893,8 @@ static void CompactInvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1954,9 +1932,8 @@ static void CompactInvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -1984,8 +1961,7 @@ static void CompactInvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -2015,9 +1991,8 @@ static void CompactInvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -2046,9 +2021,8 @@ static void CompactInvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2123,8 +2097,7 @@ static void CompactInvertedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2160,9 +2133,8 @@ static void CompactInvertedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2195,9 +2167,8 @@ static void CompactInvertedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2232,7 +2203,7 @@ static void CompactInvertedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2286,8 +2257,7 @@ static void CompactInvertedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2323,9 +2293,8 @@ static void CompactInvertedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2358,9 +2327,8 @@ static void CompactInvertedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2395,8 +2363,7 @@ static void CompactInvertedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2449,9 +2416,8 @@ static void CompactInvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2534,8 +2500,7 @@ static void CompactInvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -2566,9 +2531,8 @@ static void CompactInvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2606,9 +2570,8 @@ static void CompactInvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2640,7 +2603,7 @@ static void CompactInvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -2700,9 +2663,8 @@ static void CompactInvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2774,9 +2736,8 @@ static void CompactInvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2859,8 +2820,7 @@ static void CompactInvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -2892,9 +2852,8 @@ static void CompactInvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2932,9 +2891,8 @@ static void CompactInvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2966,8 +2924,7 @@ static void CompactInvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -3026,9 +2983,8 @@ static void CompactInvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3100,9 +3056,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3143,8 +3098,7 @@ static void CompactInvertedRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3176,9 +3130,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3243,9 +3196,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3287,8 +3239,7 @@ static void CompactInvertedRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3320,9 +3271,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3383,9 +3333,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3427,9 +3376,8 @@ static void CompactInvertedRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3480,9 +3428,8 @@ static void CompactInvertedRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3524,9 +3471,8 @@ static void CompactInvertedRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3597,9 +3543,8 @@ static void CompactInvertedRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3634,9 +3579,8 @@ static void CompactInvertedRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3674,9 +3618,8 @@ static void CompactInvertedRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3715,9 +3658,8 @@ static void CompactInvertedRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3752,9 +3694,8 @@ static void CompactInvertedRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3792,9 +3733,8 @@ static void CompactInvertedRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3837,9 +3777,8 @@ static void CompactInvertedRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3867,9 +3806,8 @@ static void CompactInvertedRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3898,9 +3836,8 @@ static void CompactInvertedRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3955,9 +3892,8 @@ static void CompactInvertedRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3985,9 +3921,8 @@ static void CompactInvertedRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4016,9 +3951,8 @@ static void CompactInvertedRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4152,9 +4086,8 @@ static void CompactInvertedRCTrackHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -4237,9 +4170,8 @@ static void CompactInvertedRCTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4316,9 +4248,8 @@ static void CompactInvertedRCTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4361,9 +4292,8 @@ static void CompactInvertedRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4440,9 +4370,8 @@ static void CompactInvertedRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4645,9 +4574,8 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4689,9 +4617,8 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4723,7 +4650,7 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4758,9 +4685,8 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4793,9 +4719,8 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4850,9 +4775,8 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4894,9 +4818,8 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4928,8 +4851,7 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4963,9 +4885,8 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4998,9 +4919,8 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -5055,9 +4975,8 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -5099,9 +5018,8 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5133,7 +5051,7 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5168,9 +5086,8 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5203,9 +5120,8 @@ static void CompactInvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -5260,9 +5176,8 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -5304,9 +5219,8 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5338,8 +5252,7 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5373,9 +5286,8 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5408,9 +5320,8 @@ static void CompactInvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -5838,9 +5749,8 @@ static void CompactInvertedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5872,9 +5782,8 @@ static void CompactInvertedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5883,8 +5792,7 @@ static void CompactInvertedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5916,9 +5824,8 @@ static void CompactInvertedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -6020,9 +5927,8 @@ static void CompactInvertedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6054,9 +5960,8 @@ static void CompactInvertedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6065,8 +5970,7 @@ static void CompactInvertedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6099,9 +6003,8 @@ static void CompactInvertedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -6188,8 +6091,7 @@ static void CompactInvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -6228,9 +6130,8 @@ static void CompactInvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6262,9 +6163,8 @@ static void CompactInvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6273,8 +6173,7 @@ static void CompactInvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6306,9 +6205,8 @@ static void CompactInvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -6375,7 +6273,7 @@ static void CompactInvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -6414,9 +6312,8 @@ static void CompactInvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6448,9 +6345,8 @@ static void CompactInvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6459,8 +6355,7 @@ static void CompactInvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6493,9 +6388,8 @@ static void CompactInvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -6554,7 +6448,7 @@ inline void CompactInvertedRCTrackDiagFlatBase( TrackPaintUtilDiagTilesPaint( session, 3, height + 29, direction, trackSequence, images, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); if (trackSequence == 3) @@ -6622,7 +6516,7 @@ static void CompactInvertedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6653,8 +6547,7 @@ static void CompactInvertedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6684,8 +6577,7 @@ static void CompactInvertedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6717,8 +6609,7 @@ static void CompactInvertedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6764,7 +6655,7 @@ static void CompactInvertedRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -6781,8 +6672,7 @@ static void CompactInvertedRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -6798,8 +6688,7 @@ static void CompactInvertedRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -6817,8 +6706,7 @@ static void CompactInvertedRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6882,7 +6770,7 @@ static void CompactInvertedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -6913,8 +6801,7 @@ static void CompactInvertedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -6944,8 +6831,7 @@ static void CompactInvertedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -6977,8 +6863,7 @@ static void CompactInvertedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7024,7 +6909,7 @@ static void CompactInvertedRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7041,8 +6926,7 @@ static void CompactInvertedRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -7058,8 +6942,7 @@ static void CompactInvertedRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7077,8 +6960,7 @@ static void CompactInvertedRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7128,7 +7010,7 @@ static void CompactInvertedRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7145,8 +7027,7 @@ static void CompactInvertedRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -7162,8 +7043,7 @@ static void CompactInvertedRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7181,8 +7061,7 @@ static void CompactInvertedRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7246,7 +7125,7 @@ static void CompactInvertedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7277,8 +7156,7 @@ static void CompactInvertedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7308,8 +7186,7 @@ static void CompactInvertedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7341,8 +7218,7 @@ static void CompactInvertedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7402,7 +7278,7 @@ static void CompactInvertedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7433,8 +7309,7 @@ static void CompactInvertedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7464,8 +7339,7 @@ static void CompactInvertedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7497,8 +7371,7 @@ static void CompactInvertedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7544,7 +7417,7 @@ static void CompactInvertedRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -7561,8 +7434,7 @@ static void CompactInvertedRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -7578,8 +7450,7 @@ static void CompactInvertedRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -7597,8 +7468,7 @@ static void CompactInvertedRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7662,7 +7532,7 @@ static void CompactInvertedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7692,8 +7562,7 @@ static void CompactInvertedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -7722,8 +7591,7 @@ static void CompactInvertedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7754,8 +7622,7 @@ static void CompactInvertedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7801,7 +7668,7 @@ static void CompactInvertedRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7818,8 +7685,7 @@ static void CompactInvertedRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -7835,8 +7701,7 @@ static void CompactInvertedRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7854,8 +7719,7 @@ static void CompactInvertedRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7905,7 +7769,7 @@ static void CompactInvertedRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7922,8 +7786,7 @@ static void CompactInvertedRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -7939,8 +7802,7 @@ static void CompactInvertedRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7958,8 +7820,7 @@ static void CompactInvertedRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8023,7 +7884,7 @@ static void CompactInvertedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8054,8 +7915,7 @@ static void CompactInvertedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8085,8 +7945,7 @@ static void CompactInvertedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8118,8 +7977,7 @@ static void CompactInvertedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8165,7 +8023,7 @@ static void CompactInvertedRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8182,8 +8040,7 @@ static void CompactInvertedRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8199,8 +8056,7 @@ static void CompactInvertedRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8218,9 +8074,8 @@ static void CompactInvertedRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -8271,7 +8126,7 @@ static void CompactInvertedRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8288,8 +8143,7 @@ static void CompactInvertedRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8305,8 +8159,7 @@ static void CompactInvertedRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8324,9 +8177,8 @@ static void CompactInvertedRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -8377,7 +8229,7 @@ static void CompactInvertedRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8394,8 +8246,7 @@ static void CompactInvertedRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8411,8 +8262,7 @@ static void CompactInvertedRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8430,9 +8280,8 @@ static void CompactInvertedRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -8483,7 +8332,7 @@ static void CompactInvertedRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8500,8 +8349,7 @@ static void CompactInvertedRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8517,8 +8365,7 @@ static void CompactInvertedRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8536,9 +8383,8 @@ static void CompactInvertedRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -8589,7 +8435,7 @@ static void CompactInvertedRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8606,8 +8452,7 @@ static void CompactInvertedRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8623,8 +8468,7 @@ static void CompactInvertedRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8642,8 +8486,7 @@ static void CompactInvertedRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8689,7 +8532,7 @@ static void CompactInvertedRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8706,8 +8549,7 @@ static void CompactInvertedRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8723,8 +8565,7 @@ static void CompactInvertedRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8742,8 +8583,7 @@ static void CompactInvertedRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8789,7 +8629,7 @@ static void CompactInvertedRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8806,8 +8646,7 @@ static void CompactInvertedRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8823,8 +8662,7 @@ static void CompactInvertedRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8842,8 +8680,7 @@ static void CompactInvertedRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8889,7 +8726,7 @@ static void CompactInvertedRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8906,8 +8743,7 @@ static void CompactInvertedRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8923,8 +8759,7 @@ static void CompactInvertedRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8942,8 +8777,7 @@ static void CompactInvertedRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8989,7 +8823,7 @@ static void CompactInvertedRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9005,8 +8839,7 @@ static void CompactInvertedRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -9021,8 +8854,7 @@ static void CompactInvertedRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9039,8 +8871,7 @@ static void CompactInvertedRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -9086,7 +8917,7 @@ static void CompactInvertedRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9102,8 +8933,7 @@ static void CompactInvertedRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -9118,8 +8948,7 @@ static void CompactInvertedRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9136,8 +8965,7 @@ static void CompactInvertedRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -9183,7 +9011,7 @@ static void CompactInvertedRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9200,8 +9028,7 @@ static void CompactInvertedRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9217,8 +9044,7 @@ static void CompactInvertedRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9236,8 +9062,7 @@ static void CompactInvertedRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -9283,7 +9108,7 @@ static void CompactInvertedRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9300,8 +9125,7 @@ static void CompactInvertedRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9317,8 +9141,7 @@ static void CompactInvertedRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9336,8 +9159,7 @@ static void CompactInvertedRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -9383,7 +9205,7 @@ static void CompactInvertedRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9400,8 +9222,7 @@ static void CompactInvertedRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9417,8 +9238,7 @@ static void CompactInvertedRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9436,9 +9256,8 @@ static void CompactInvertedRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -9489,7 +9308,7 @@ static void CompactInvertedRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9506,8 +9325,7 @@ static void CompactInvertedRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9523,8 +9341,7 @@ static void CompactInvertedRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9542,9 +9359,8 @@ static void CompactInvertedRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) diff --git a/src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.cpp b/src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.cpp index be8ef87a45..aba8cd2e56 100644 --- a/src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.cpp @@ -754,8 +754,7 @@ static void CorkscrewRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -789,9 +788,8 @@ static void CorkscrewRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -823,7 +821,7 @@ static void CorkscrewRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -858,9 +856,8 @@ static void CorkscrewRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -903,7 +900,7 @@ static void CorkscrewRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1139,8 +1136,7 @@ static void CorkscrewRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1174,9 +1170,8 @@ static void CorkscrewRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1208,7 +1203,7 @@ static void CorkscrewRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1243,9 +1238,8 @@ static void CorkscrewRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1291,7 +1285,7 @@ static void CorkscrewRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1631,8 +1625,7 @@ static void CorkscrewRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1664,9 +1657,8 @@ static void CorkscrewRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1697,7 +1689,7 @@ static void CorkscrewRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1730,9 +1722,8 @@ static void CorkscrewRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1775,7 +1766,7 @@ static void CorkscrewRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1823,8 +1814,7 @@ static void CorkscrewRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1856,9 +1846,8 @@ static void CorkscrewRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1889,8 +1878,7 @@ static void CorkscrewRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -1922,9 +1910,8 @@ static void CorkscrewRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1967,8 +1954,7 @@ static void CorkscrewRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2034,8 +2020,7 @@ static void CorkscrewRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2065,9 +2050,8 @@ static void CorkscrewRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2098,9 +2082,8 @@ static void CorkscrewRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2142,7 +2125,7 @@ static void CorkscrewRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2189,8 +2172,7 @@ static void CorkscrewRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2220,9 +2202,8 @@ static void CorkscrewRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2253,9 +2234,8 @@ static void CorkscrewRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2297,8 +2277,7 @@ static void CorkscrewRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2347,9 +2326,8 @@ static void CorkscrewRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2385,9 +2363,8 @@ static void CorkscrewRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2419,8 +2396,7 @@ static void CorkscrewRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -2447,9 +2423,8 @@ static void CorkscrewRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2483,9 +2458,8 @@ static void CorkscrewRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2517,7 +2491,7 @@ static void CorkscrewRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -2553,9 +2527,8 @@ static void CorkscrewRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2600,9 +2573,8 @@ static void CorkscrewRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2885,8 +2857,7 @@ static void CorkscrewRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2920,8 +2891,7 @@ static void CorkscrewRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2963,7 +2933,7 @@ static void CorkscrewRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3023,8 +2993,7 @@ static void CorkscrewRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3058,8 +3027,7 @@ static void CorkscrewRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3104,7 +3072,7 @@ static void CorkscrewRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3157,8 +3125,7 @@ static void CorkscrewRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3202,7 +3169,7 @@ static void CorkscrewRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3246,8 +3213,7 @@ static void CorkscrewRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3297,8 +3263,7 @@ static void CorkscrewRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3421,9 +3386,8 @@ static void CorkscrewRCTrackHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -3562,9 +3526,8 @@ static void CorkscrewRCTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3624,9 +3587,8 @@ static void CorkscrewRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3686,9 +3648,8 @@ static void CorkscrewRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3767,9 +3728,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3804,8 +3764,7 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3850,9 +3809,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3898,9 +3856,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3935,8 +3892,7 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3977,9 +3933,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4030,9 +3985,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4067,8 +4021,7 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4114,9 +4067,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4162,9 +4114,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4199,8 +4150,7 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4240,9 +4190,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4323,9 +4272,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4360,9 +4308,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4394,7 +4341,7 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4429,9 +4376,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4477,9 +4423,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4525,9 +4470,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4562,9 +4506,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4596,8 +4539,7 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4631,9 +4573,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4674,9 +4615,8 @@ static void CorkscrewRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4727,9 +4667,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4764,9 +4703,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4798,8 +4736,7 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4833,9 +4770,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4881,9 +4817,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4929,9 +4864,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4966,9 +4900,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5000,7 +4933,7 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5035,9 +4968,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5078,9 +5010,8 @@ static void CorkscrewRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5687,9 +5618,8 @@ static void CorkscrewRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5721,9 +5651,8 @@ static void CorkscrewRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5732,8 +5661,7 @@ static void CorkscrewRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5772,9 +5700,8 @@ static void CorkscrewRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5850,9 +5777,8 @@ static void CorkscrewRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5884,9 +5810,8 @@ static void CorkscrewRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5895,8 +5820,7 @@ static void CorkscrewRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5936,9 +5860,8 @@ static void CorkscrewRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6032,9 +5955,8 @@ static void CorkscrewRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6066,9 +5988,8 @@ static void CorkscrewRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6077,8 +5998,7 @@ static void CorkscrewRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6117,9 +6037,8 @@ static void CorkscrewRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6195,9 +6114,8 @@ static void CorkscrewRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6229,9 +6147,8 @@ static void CorkscrewRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6240,8 +6157,7 @@ static void CorkscrewRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6281,9 +6197,8 @@ static void CorkscrewRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6337,7 +6252,7 @@ static void CorkscrewRCTrackDiagBrakes( session, supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -6356,7 +6271,7 @@ static void CorkscrewRCTrackDiagBlockBrakes( session, supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -6394,7 +6309,7 @@ static void CorkscrewRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6425,8 +6340,7 @@ static void CorkscrewRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6456,8 +6370,7 @@ static void CorkscrewRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6516,8 +6429,7 @@ static void CorkscrewRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6557,7 +6469,7 @@ static void CorkscrewRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6588,8 +6500,7 @@ static void CorkscrewRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6619,8 +6530,7 @@ static void CorkscrewRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6679,8 +6589,7 @@ static void CorkscrewRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6720,7 +6629,7 @@ static void CorkscrewRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6751,8 +6660,7 @@ static void CorkscrewRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6782,8 +6690,7 @@ static void CorkscrewRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6842,8 +6749,7 @@ static void CorkscrewRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6883,7 +6789,7 @@ static void CorkscrewRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6914,8 +6820,7 @@ static void CorkscrewRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6945,8 +6850,7 @@ static void CorkscrewRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7005,8 +6909,7 @@ static void CorkscrewRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7046,7 +6949,7 @@ static void CorkscrewRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7077,8 +6980,7 @@ static void CorkscrewRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7108,8 +7010,7 @@ static void CorkscrewRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7168,8 +7069,7 @@ static void CorkscrewRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7209,7 +7109,7 @@ static void CorkscrewRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7240,8 +7140,7 @@ static void CorkscrewRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -7271,8 +7170,7 @@ static void CorkscrewRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7331,8 +7229,7 @@ static void CorkscrewRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -7372,7 +7269,7 @@ static void CorkscrewRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7403,8 +7300,7 @@ static void CorkscrewRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -7434,8 +7330,7 @@ static void CorkscrewRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7494,8 +7389,7 @@ static void CorkscrewRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -7535,7 +7429,7 @@ static void CorkscrewRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -7566,8 +7460,7 @@ static void CorkscrewRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -7597,8 +7490,7 @@ static void CorkscrewRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -7657,8 +7549,7 @@ static void CorkscrewRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -7698,7 +7589,7 @@ static void CorkscrewRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7728,8 +7619,7 @@ static void CorkscrewRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -7758,8 +7648,7 @@ static void CorkscrewRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7817,8 +7706,7 @@ static void CorkscrewRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -7859,7 +7747,7 @@ static void CorkscrewRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7890,8 +7778,7 @@ static void CorkscrewRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7921,8 +7808,7 @@ static void CorkscrewRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7981,8 +7867,7 @@ static void CorkscrewRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8022,7 +7907,7 @@ static void CorkscrewRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8053,8 +7938,7 @@ static void CorkscrewRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8084,8 +7968,7 @@ static void CorkscrewRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8144,8 +8027,7 @@ static void CorkscrewRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8185,7 +8067,7 @@ static void CorkscrewRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8216,8 +8098,7 @@ static void CorkscrewRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8247,8 +8128,7 @@ static void CorkscrewRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8307,8 +8187,7 @@ static void CorkscrewRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8334,7 +8213,7 @@ static void CorkscrewRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8354,8 +8233,7 @@ static void CorkscrewRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8371,8 +8249,7 @@ static void CorkscrewRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8403,8 +8280,7 @@ static void CorkscrewRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8430,7 +8306,7 @@ static void CorkscrewRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8447,8 +8323,7 @@ static void CorkscrewRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8467,8 +8342,7 @@ static void CorkscrewRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8499,8 +8373,7 @@ static void CorkscrewRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8526,7 +8399,7 @@ static void CorkscrewRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8546,8 +8419,7 @@ static void CorkscrewRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8563,8 +8435,7 @@ static void CorkscrewRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8595,8 +8466,7 @@ static void CorkscrewRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8622,7 +8492,7 @@ static void CorkscrewRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8639,8 +8509,7 @@ static void CorkscrewRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8659,8 +8528,7 @@ static void CorkscrewRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8691,8 +8559,7 @@ static void CorkscrewRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8718,7 +8585,7 @@ static void CorkscrewRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8738,8 +8605,7 @@ static void CorkscrewRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8755,8 +8621,7 @@ static void CorkscrewRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8787,8 +8652,7 @@ static void CorkscrewRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8814,7 +8678,7 @@ static void CorkscrewRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8831,8 +8695,7 @@ static void CorkscrewRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8851,8 +8714,7 @@ static void CorkscrewRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8883,8 +8745,7 @@ static void CorkscrewRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8910,7 +8771,7 @@ static void CorkscrewRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8930,8 +8791,7 @@ static void CorkscrewRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8947,8 +8807,7 @@ static void CorkscrewRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8979,8 +8838,7 @@ static void CorkscrewRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -9006,7 +8864,7 @@ static void CorkscrewRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -9023,8 +8881,7 @@ static void CorkscrewRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -9043,8 +8900,7 @@ static void CorkscrewRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -9075,8 +8931,7 @@ static void CorkscrewRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -9102,7 +8957,7 @@ static void CorkscrewRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9121,8 +8976,7 @@ static void CorkscrewRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -9137,8 +8991,7 @@ static void CorkscrewRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9168,8 +9021,7 @@ static void CorkscrewRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -9196,7 +9048,7 @@ static void CorkscrewRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9212,8 +9064,7 @@ static void CorkscrewRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -9231,8 +9082,7 @@ static void CorkscrewRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9262,8 +9112,7 @@ static void CorkscrewRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -9290,7 +9139,7 @@ static void CorkscrewRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9310,8 +9159,7 @@ static void CorkscrewRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9327,8 +9175,7 @@ static void CorkscrewRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9359,8 +9206,7 @@ static void CorkscrewRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9386,7 +9232,7 @@ static void CorkscrewRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9403,8 +9249,7 @@ static void CorkscrewRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9423,8 +9268,7 @@ static void CorkscrewRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9455,8 +9299,7 @@ static void CorkscrewRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9482,7 +9325,7 @@ static void CorkscrewRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9499,8 +9342,7 @@ static void CorkscrewRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9516,8 +9358,7 @@ static void CorkscrewRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9548,8 +9389,7 @@ static void CorkscrewRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9575,7 +9415,7 @@ static void CorkscrewRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9592,8 +9432,7 @@ static void CorkscrewRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9609,8 +9448,7 @@ static void CorkscrewRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9641,8 +9479,7 @@ static void CorkscrewRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9735,9 +9572,8 @@ static void CorkscrewRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9765,9 +9601,8 @@ static void CorkscrewRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9795,9 +9630,8 @@ static void CorkscrewRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -9852,9 +9686,8 @@ static void CorkscrewRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9882,9 +9715,8 @@ static void CorkscrewRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9912,9 +9744,8 @@ static void CorkscrewRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -9963,9 +9794,8 @@ static void CorkscrewRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -10000,9 +9830,8 @@ static void CorkscrewRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10041,9 +9870,8 @@ static void CorkscrewRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10080,9 +9908,8 @@ static void CorkscrewRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -10117,9 +9944,8 @@ static void CorkscrewRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10158,9 +9984,8 @@ static void CorkscrewRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10204,9 +10029,8 @@ static void LayDownRCTrackLeftFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10235,9 +10059,8 @@ static void LayDownRCTrackLeftFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10267,9 +10090,8 @@ static void LayDownRCTrackLeftFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -10325,9 +10147,8 @@ static void LayDownRCTrackRightFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10355,9 +10176,8 @@ static void LayDownRCTrackRightFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10386,9 +10206,8 @@ static void LayDownRCTrackRightFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -10504,9 +10323,8 @@ static void LayDownRCTrackFlyerHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -10578,9 +10396,8 @@ static void LayDownRCTrackLeftFlyerCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (direction == 0 || direction == 3) @@ -10644,9 +10461,8 @@ static void LayDownRCTrackLeftFlyerCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -10706,9 +10522,8 @@ static void LayDownRCTrackRightFlyerCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -10768,9 +10583,8 @@ static void LayDownRCTrackRightFlyerCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -10927,7 +10741,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -10944,8 +10758,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -10961,8 +10774,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -10993,8 +10805,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -11019,7 +10830,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -11036,8 +10847,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -11053,8 +10863,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -11085,8 +10894,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -11111,7 +10919,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -11128,8 +10936,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -11145,8 +10952,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -11177,8 +10983,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -11203,7 +11008,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -11220,8 +11025,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -11237,8 +11041,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -11269,8 +11072,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -12344,8 +12146,7 @@ static void CorkscrewRCTrackLeftBankedQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12405,7 +12206,7 @@ static void CorkscrewRCTrackLeftBankedQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12455,8 +12256,7 @@ static void CorkscrewRCTrackRightBankedQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12523,8 +12323,7 @@ static void CorkscrewRCTrackRightBankedQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12591,8 +12390,7 @@ static void CorkscrewRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12630,9 +12428,8 @@ static void CorkscrewRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12668,7 +12465,7 @@ static void CorkscrewRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -12707,9 +12504,8 @@ static void CorkscrewRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12755,7 +12551,7 @@ static void CorkscrewRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12805,8 +12601,7 @@ static void CorkscrewRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12844,9 +12639,8 @@ static void CorkscrewRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12882,8 +12676,7 @@ static void CorkscrewRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -12921,9 +12714,8 @@ static void CorkscrewRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12969,8 +12761,7 @@ static void CorkscrewRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13063,9 +12854,8 @@ static void CorkscrewRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13099,9 +12889,8 @@ static void CorkscrewRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13110,8 +12899,7 @@ static void CorkscrewRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13152,9 +12940,8 @@ static void CorkscrewRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13236,9 +13023,8 @@ static void CorkscrewRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13274,9 +13060,8 @@ static void CorkscrewRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13285,8 +13070,7 @@ static void CorkscrewRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13330,9 +13114,8 @@ static void CorkscrewRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13385,9 +13168,8 @@ static void CorkscrewRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13423,9 +13205,8 @@ static void CorkscrewRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13434,8 +13215,7 @@ static void CorkscrewRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13470,9 +13250,8 @@ static void CorkscrewRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13564,9 +13343,8 @@ static void CorkscrewRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13602,9 +13380,8 @@ static void CorkscrewRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13613,8 +13390,7 @@ static void CorkscrewRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13650,9 +13426,8 @@ static void CorkscrewRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13692,8 +13467,7 @@ static void CorkscrewRCTrackRightEighthToOrthogonalUp25( } PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13755,7 +13529,7 @@ static void CorkscrewRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13777,8 +13551,7 @@ static void CorkscrewRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13795,8 +13568,7 @@ static void CorkscrewRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13828,8 +13600,7 @@ static void CorkscrewRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13855,7 +13626,7 @@ static void CorkscrewRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13873,8 +13644,7 @@ static void CorkscrewRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13895,8 +13665,7 @@ static void CorkscrewRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13928,8 +13697,7 @@ static void CorkscrewRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13955,7 +13723,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -13977,8 +13745,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -13995,8 +13762,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14028,8 +13794,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14055,7 +13820,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14073,8 +13838,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14095,8 +13859,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14128,8 +13891,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14187,7 +13949,7 @@ static void CorkscrewRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14205,8 +13967,7 @@ static void CorkscrewRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14223,8 +13984,7 @@ static void CorkscrewRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14256,8 +14016,7 @@ static void CorkscrewRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14283,7 +14042,7 @@ static void CorkscrewRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14301,8 +14060,7 @@ static void CorkscrewRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14319,8 +14077,7 @@ static void CorkscrewRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14352,8 +14109,7 @@ static void CorkscrewRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14379,7 +14135,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14397,8 +14153,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14415,8 +14170,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14448,8 +14202,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14475,7 +14228,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14493,8 +14246,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14511,8 +14263,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14544,8 +14295,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14603,7 +14353,7 @@ static void CorkscrewRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14621,8 +14371,7 @@ static void CorkscrewRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14639,8 +14388,7 @@ static void CorkscrewRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14672,8 +14420,7 @@ static void CorkscrewRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14699,7 +14446,7 @@ static void CorkscrewRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14717,8 +14464,7 @@ static void CorkscrewRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14735,8 +14481,7 @@ static void CorkscrewRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14768,8 +14513,7 @@ static void CorkscrewRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14811,7 +14555,7 @@ static void CorkscrewRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14833,8 +14577,7 @@ static void CorkscrewRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14851,8 +14594,7 @@ static void CorkscrewRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14884,8 +14626,7 @@ static void CorkscrewRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14911,7 +14652,7 @@ static void CorkscrewRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14929,8 +14670,7 @@ static void CorkscrewRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14951,8 +14691,7 @@ static void CorkscrewRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14984,8 +14723,7 @@ static void CorkscrewRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -15011,7 +14749,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15033,8 +14771,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15051,8 +14788,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15084,8 +14820,7 @@ static void CorkscrewRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15111,7 +14846,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15129,8 +14864,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15151,8 +14885,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15184,8 +14917,7 @@ static void CorkscrewRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15305,9 +15037,8 @@ static void CorkscrewRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15343,9 +15074,8 @@ static void CorkscrewRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15354,8 +15084,7 @@ static void CorkscrewRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15398,9 +15127,8 @@ static void CorkscrewRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15489,9 +15217,8 @@ static void CorkscrewRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15527,9 +15254,8 @@ static void CorkscrewRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15538,8 +15264,7 @@ static void CorkscrewRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15583,9 +15308,8 @@ static void CorkscrewRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15638,9 +15362,8 @@ static void CorkscrewRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15676,9 +15399,8 @@ static void CorkscrewRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15687,8 +15409,7 @@ static void CorkscrewRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15723,9 +15444,8 @@ static void CorkscrewRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15822,9 +15542,8 @@ static void CorkscrewRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15860,9 +15579,8 @@ static void CorkscrewRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15871,8 +15589,7 @@ static void CorkscrewRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15908,9 +15625,8 @@ static void CorkscrewRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15957,8 +15673,7 @@ static void CorkscrewRCTrackRightEighthBankToOrthogonalUp25( } PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -16044,8 +15759,7 @@ static void CorkscrewRCTrackLeftBankToLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -16112,7 +15826,7 @@ static void CorkscrewRCTrackLeftBankToLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -16165,8 +15879,7 @@ static void CorkscrewRCTrackRightBankToRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -16237,8 +15950,7 @@ static void CorkscrewRCTrackRightBankToRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -16298,8 +16010,7 @@ static void CorkscrewRCTrackLeftQuarterTurn325DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -16362,7 +16073,7 @@ static void CorkscrewRCTrackLeftQuarterTurn325DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -16419,8 +16130,7 @@ static void CorkscrewRCTrackRightQuarterTurn325DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -16479,8 +16189,7 @@ static void CorkscrewRCTrackRightQuarterTurn325DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -16527,9 +16236,8 @@ static void CorkscrewRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -16569,9 +16277,8 @@ static void CorkscrewRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16598,8 +16305,7 @@ static void CorkscrewRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16610,9 +16316,8 @@ static void CorkscrewRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16680,9 +16385,8 @@ static void CorkscrewRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16739,9 +16443,8 @@ static void CorkscrewRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -16781,9 +16484,8 @@ static void CorkscrewRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16810,8 +16512,7 @@ static void CorkscrewRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16823,9 +16524,8 @@ static void CorkscrewRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16892,9 +16592,8 @@ static void CorkscrewRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17113,9 +16812,8 @@ static void CorkscrewRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17155,8 +16853,7 @@ static void CorkscrewRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -17193,8 +16890,7 @@ static void CorkscrewRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -17227,9 +16923,8 @@ static void CorkscrewRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); @@ -17317,9 +17012,8 @@ static void CorkscrewRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17359,8 +17053,7 @@ static void CorkscrewRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -17399,8 +17092,7 @@ static void CorkscrewRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -17432,9 +17124,8 @@ static void CorkscrewRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); if (direction == 0 || direction == 3) @@ -17571,9 +17262,8 @@ static void CorkscrewRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -17613,9 +17303,8 @@ static void CorkscrewRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -17647,8 +17336,7 @@ static void CorkscrewRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -17683,9 +17371,8 @@ static void CorkscrewRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -17721,9 +17408,8 @@ static void CorkscrewRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -17842,9 +17528,8 @@ static void CorkscrewRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -17884,9 +17569,8 @@ static void CorkscrewRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -17918,8 +17602,7 @@ static void CorkscrewRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); break; @@ -17953,9 +17636,8 @@ static void CorkscrewRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -17991,9 +17673,8 @@ static void CorkscrewRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18072,9 +17753,8 @@ static void CorkscrewRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -18118,9 +17798,8 @@ static void CorkscrewRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18173,9 +17852,8 @@ static void CorkscrewRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18240,9 +17918,8 @@ static void CorkscrewRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -18286,9 +17963,8 @@ static void CorkscrewRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18341,9 +18017,8 @@ static void CorkscrewRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18447,9 +18122,8 @@ static void CorkscrewRCTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18458,9 +18132,8 @@ static void CorkscrewRCTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -18593,9 +18266,8 @@ static void CorkscrewRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18604,9 +18276,8 @@ static void CorkscrewRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -18786,9 +18457,8 @@ static void CorkscrewRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18797,9 +18467,8 @@ static void CorkscrewRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -18966,9 +18635,8 @@ static void CorkscrewRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18977,9 +18645,8 @@ static void CorkscrewRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -19068,7 +18735,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32); @@ -19086,8 +18753,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -19104,8 +18770,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -19141,9 +18806,8 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19161,8 +18825,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -19179,8 +18842,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -19216,9 +18878,8 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19236,8 +18897,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19254,8 +18914,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19287,8 +18946,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); break; @@ -19314,7 +18972,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19332,8 +18990,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -19350,8 +19007,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -19387,9 +19043,8 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19407,8 +19062,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -19425,8 +19079,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19462,9 +19115,8 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19482,8 +19134,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -19500,8 +19151,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19533,8 +19183,7 @@ static void CorkscrewRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -19560,7 +19209,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19578,8 +19227,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -19596,8 +19244,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19633,9 +19280,8 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19653,8 +19299,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -19671,8 +19316,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19708,9 +19352,8 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19728,8 +19371,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -19746,8 +19388,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -19779,8 +19420,7 @@ static void CorkscrewRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); break; @@ -19806,7 +19446,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); @@ -19824,8 +19464,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19842,8 +19481,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19879,9 +19517,8 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19899,8 +19536,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -19917,8 +19553,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -19954,9 +19589,8 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19974,8 +19608,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -19992,8 +19625,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -20025,8 +19657,7 @@ static void CorkscrewRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32); break; @@ -20056,7 +19687,7 @@ static void CorkscrewRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -20073,8 +19704,7 @@ static void CorkscrewRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -20090,8 +19720,7 @@ static void CorkscrewRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -20131,9 +19760,8 @@ static void CorkscrewRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -20165,9 +19793,8 @@ static void CorkscrewRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -20176,9 +19803,8 @@ static void CorkscrewRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -20242,7 +19868,7 @@ static void CorkscrewRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -20259,8 +19885,7 @@ static void CorkscrewRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -20277,8 +19902,7 @@ static void CorkscrewRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -20317,9 +19941,8 @@ static void CorkscrewRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -20351,9 +19974,8 @@ static void CorkscrewRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -20362,9 +19984,8 @@ static void CorkscrewRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) diff --git a/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp b/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp index 892266b907..925e2afdcf 100644 --- a/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp @@ -279,9 +279,8 @@ static void FlyingRCTrackHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -421,9 +420,8 @@ static void FlyingRCTrackLeftFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -455,9 +453,8 @@ static void FlyingRCTrackLeftFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -489,8 +486,7 @@ static void FlyingRCTrackLeftFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -522,9 +518,8 @@ static void FlyingRCTrackLeftFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -562,9 +557,8 @@ static void FlyingRCTrackLeftFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -665,9 +659,8 @@ static void FlyingRCTrackRightFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -699,9 +692,8 @@ static void FlyingRCTrackRightFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -733,8 +725,7 @@ static void FlyingRCTrackRightFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); break; @@ -765,9 +756,8 @@ static void FlyingRCTrackRightFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -804,9 +794,8 @@ static void FlyingRCTrackRightFlyingLargeHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); diff --git a/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp b/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp index e14b9f32ca..1be4cc16c3 100644 --- a/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp +++ b/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp @@ -558,9 +558,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -602,9 +601,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -636,7 +634,7 @@ static void InvertedFlyingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -671,9 +669,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -706,9 +703,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -769,9 +765,8 @@ static void InvertedFlyingRCTrackFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -816,9 +811,8 @@ static void InvertedFlyingRCTrackFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -863,9 +857,8 @@ static void InvertedFlyingRCTrackLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -910,9 +903,8 @@ static void InvertedFlyingRCTrackRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -960,9 +952,8 @@ static void InvertedFlyingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1002,9 +993,8 @@ static void InvertedFlyingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1035,7 +1025,7 @@ static void InvertedFlyingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1068,9 +1058,8 @@ static void InvertedFlyingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1103,9 +1092,8 @@ static void InvertedFlyingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1167,9 +1155,8 @@ static void InvertedFlyingRCTrackLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1221,9 +1208,8 @@ static void InvertedFlyingRCTrackRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1275,9 +1261,8 @@ static void InvertedFlyingRCTrack25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1329,9 +1314,8 @@ static void InvertedFlyingRCTrack25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1419,9 +1403,8 @@ static void InvertedFlyingRCTrackLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1473,9 +1456,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1513,9 +1495,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1543,7 +1524,7 @@ static void InvertedFlyingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1574,9 +1555,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1605,9 +1585,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1658,9 +1637,8 @@ static void InvertedFlyingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1698,9 +1676,8 @@ static void InvertedFlyingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1728,8 +1705,7 @@ static void InvertedFlyingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -1759,9 +1735,8 @@ static void InvertedFlyingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1790,9 +1765,8 @@ static void InvertedFlyingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1867,8 +1841,7 @@ static void InvertedFlyingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight, session.SupportColours); @@ -1907,9 +1880,8 @@ static void InvertedFlyingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -1956,9 +1928,8 @@ static void InvertedFlyingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2005,7 +1976,7 @@ static void InvertedFlyingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2060,8 +2031,7 @@ static void InvertedFlyingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight, session.SupportColours); @@ -2100,9 +2070,8 @@ static void InvertedFlyingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2149,9 +2118,8 @@ static void InvertedFlyingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -2198,8 +2166,7 @@ static void InvertedFlyingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight, session.SupportColours); @@ -2253,9 +2220,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2297,8 +2263,7 @@ static void InvertedFlyingRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2330,9 +2295,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2396,9 +2360,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2440,8 +2403,7 @@ static void InvertedFlyingRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2473,9 +2435,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2536,9 +2497,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2580,9 +2540,8 @@ static void InvertedFlyingRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2633,9 +2592,8 @@ static void InvertedFlyingRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2677,9 +2635,8 @@ static void InvertedFlyingRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2917,9 +2874,8 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2961,9 +2917,8 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2995,7 +2950,7 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3030,9 +2985,8 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3065,9 +3019,8 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3122,9 +3075,8 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3166,9 +3118,8 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3200,8 +3151,7 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3235,9 +3185,8 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3270,9 +3219,8 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3327,9 +3275,8 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3371,9 +3318,8 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3405,7 +3351,7 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3440,9 +3386,8 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3475,9 +3420,8 @@ static void InvertedFlyingRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3532,9 +3476,8 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3576,9 +3519,8 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3610,8 +3552,7 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3645,9 +3586,8 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3680,9 +3620,8 @@ static void InvertedFlyingRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3917,9 +3856,8 @@ static void InvertedFlyingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3951,9 +3889,8 @@ static void InvertedFlyingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3962,8 +3899,7 @@ static void InvertedFlyingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3995,9 +3931,8 @@ static void InvertedFlyingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -4079,9 +4014,8 @@ static void InvertedFlyingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4113,9 +4047,8 @@ static void InvertedFlyingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4124,8 +4057,7 @@ static void InvertedFlyingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4158,9 +4090,8 @@ static void InvertedFlyingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -4226,8 +4157,7 @@ static void InvertedFlyingRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4266,9 +4196,8 @@ static void InvertedFlyingRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4300,9 +4229,8 @@ static void InvertedFlyingRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4311,8 +4239,7 @@ static void InvertedFlyingRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4344,9 +4271,8 @@ static void InvertedFlyingRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -4393,7 +4319,7 @@ static void InvertedFlyingRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4432,9 +4358,8 @@ static void InvertedFlyingRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4466,9 +4391,8 @@ static void InvertedFlyingRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4477,8 +4401,7 @@ static void InvertedFlyingRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4511,9 +4434,8 @@ static void InvertedFlyingRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -4578,7 +4500,7 @@ static void InvertedFlyingRCTrackDiagFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4609,8 +4531,7 @@ static void InvertedFlyingRCTrackDiagFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4640,8 +4561,7 @@ static void InvertedFlyingRCTrackDiagFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4673,8 +4593,7 @@ static void InvertedFlyingRCTrackDiagFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + kSupportHeight, @@ -4718,7 +4637,7 @@ static void InvertedFlyingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4749,8 +4668,7 @@ static void InvertedFlyingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4780,8 +4698,7 @@ static void InvertedFlyingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4813,8 +4730,7 @@ static void InvertedFlyingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 51, session.SupportColours); @@ -4843,7 +4759,7 @@ static void InvertedFlyingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4860,8 +4776,7 @@ static void InvertedFlyingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -4877,8 +4792,7 @@ static void InvertedFlyingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4896,8 +4810,7 @@ static void InvertedFlyingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4961,7 +4874,7 @@ static void InvertedFlyingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4992,8 +4905,7 @@ static void InvertedFlyingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5023,8 +4935,7 @@ static void InvertedFlyingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5056,8 +4967,7 @@ static void InvertedFlyingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 43, session.SupportColours); @@ -5086,7 +4996,7 @@ static void InvertedFlyingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5103,8 +5013,7 @@ static void InvertedFlyingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5120,8 +5029,7 @@ static void InvertedFlyingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5139,8 +5047,7 @@ static void InvertedFlyingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5190,7 +5097,7 @@ static void InvertedFlyingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5207,8 +5114,7 @@ static void InvertedFlyingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5224,8 +5130,7 @@ static void InvertedFlyingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5243,8 +5148,7 @@ static void InvertedFlyingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5308,7 +5212,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5339,8 +5243,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5370,8 +5273,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5403,8 +5305,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 45, session.SupportColours); @@ -5433,7 +5334,7 @@ static void InvertedFlyingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5450,8 +5351,7 @@ static void InvertedFlyingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5467,8 +5367,7 @@ static void InvertedFlyingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5486,8 +5385,7 @@ static void InvertedFlyingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 51, session.SupportColours); @@ -5516,7 +5414,7 @@ static void InvertedFlyingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5533,8 +5431,7 @@ static void InvertedFlyingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -5550,8 +5447,7 @@ static void InvertedFlyingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5569,8 +5465,7 @@ static void InvertedFlyingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5620,7 +5515,7 @@ static void InvertedFlyingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5636,8 +5531,7 @@ static void InvertedFlyingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -5652,8 +5546,7 @@ static void InvertedFlyingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5670,8 +5563,7 @@ static void InvertedFlyingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 45, session.SupportColours); @@ -5700,7 +5592,7 @@ static void InvertedFlyingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5717,8 +5609,7 @@ static void InvertedFlyingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5734,8 +5625,7 @@ static void InvertedFlyingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5753,8 +5643,7 @@ static void InvertedFlyingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5804,7 +5693,7 @@ static void InvertedFlyingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5821,8 +5710,7 @@ static void InvertedFlyingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5838,8 +5726,7 @@ static void InvertedFlyingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5857,8 +5744,7 @@ static void InvertedFlyingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5908,7 +5794,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5925,8 +5811,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5942,8 +5827,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5961,8 +5845,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 43, session.SupportColours); @@ -5991,7 +5874,7 @@ static void InvertedFlyingRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6008,8 +5891,7 @@ static void InvertedFlyingRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6025,8 +5907,7 @@ static void InvertedFlyingRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6044,9 +5925,8 @@ static void InvertedFlyingRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -6077,7 +5957,7 @@ static void InvertedFlyingRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6094,8 +5974,7 @@ static void InvertedFlyingRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6111,8 +5990,7 @@ static void InvertedFlyingRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6130,9 +6008,8 @@ static void InvertedFlyingRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -6163,7 +6040,7 @@ static void InvertedFlyingRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6180,8 +6057,7 @@ static void InvertedFlyingRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6197,8 +6073,7 @@ static void InvertedFlyingRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6216,9 +6091,8 @@ static void InvertedFlyingRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -6249,7 +6123,7 @@ static void InvertedFlyingRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6266,8 +6140,7 @@ static void InvertedFlyingRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6283,8 +6156,7 @@ static void InvertedFlyingRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6302,9 +6174,8 @@ static void InvertedFlyingRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -6335,7 +6206,7 @@ static void InvertedFlyingRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6352,8 +6223,7 @@ static void InvertedFlyingRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6369,8 +6239,7 @@ static void InvertedFlyingRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6388,8 +6257,7 @@ static void InvertedFlyingRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 43, session.SupportColours); @@ -6418,7 +6286,7 @@ static void InvertedFlyingRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6435,8 +6303,7 @@ static void InvertedFlyingRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6452,8 +6319,7 @@ static void InvertedFlyingRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6471,8 +6337,7 @@ static void InvertedFlyingRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 43, session.SupportColours); @@ -6501,7 +6366,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6518,8 +6383,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6535,8 +6399,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6554,8 +6417,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 45, session.SupportColours); @@ -6584,7 +6446,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6601,8 +6463,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6618,8 +6479,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6637,8 +6497,7 @@ static void InvertedFlyingRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 45, session.SupportColours); @@ -6667,7 +6526,7 @@ static void InvertedFlyingRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6683,8 +6542,7 @@ static void InvertedFlyingRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -6699,8 +6557,7 @@ static void InvertedFlyingRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6717,8 +6574,7 @@ static void InvertedFlyingRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 45, session.SupportColours); @@ -6747,7 +6603,7 @@ static void InvertedFlyingRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6763,8 +6619,7 @@ static void InvertedFlyingRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -6779,8 +6634,7 @@ static void InvertedFlyingRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6797,8 +6651,7 @@ static void InvertedFlyingRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 45, session.SupportColours); @@ -6827,7 +6680,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6844,8 +6697,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6861,8 +6713,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6880,8 +6731,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 43, session.SupportColours); @@ -6910,7 +6760,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6927,8 +6777,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6944,8 +6793,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6963,8 +6811,7 @@ static void InvertedFlyingRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 43, session.SupportColours); @@ -6993,7 +6840,7 @@ static void InvertedFlyingRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7010,8 +6857,7 @@ static void InvertedFlyingRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7027,8 +6873,7 @@ static void InvertedFlyingRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7046,9 +6891,8 @@ static void InvertedFlyingRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -7079,7 +6923,7 @@ static void InvertedFlyingRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7096,8 +6940,7 @@ static void InvertedFlyingRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7113,8 +6956,7 @@ static void InvertedFlyingRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7132,9 +6974,8 @@ static void InvertedFlyingRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -7209,9 +7050,8 @@ static void InvertedFlyingRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7253,9 +7093,8 @@ static void InvertedFlyingRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7306,9 +7145,8 @@ static void InvertedFlyingRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7350,9 +7188,8 @@ static void InvertedFlyingRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7423,9 +7260,8 @@ static void InvertedFlyingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7463,9 +7299,8 @@ static void InvertedFlyingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7493,7 +7328,7 @@ static void InvertedFlyingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -7524,9 +7359,8 @@ static void InvertedFlyingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7555,9 +7389,8 @@ static void InvertedFlyingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7608,9 +7441,8 @@ static void InvertedFlyingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7648,9 +7480,8 @@ static void InvertedFlyingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7678,8 +7509,7 @@ static void InvertedFlyingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -7709,9 +7539,8 @@ static void InvertedFlyingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7740,9 +7569,8 @@ static void InvertedFlyingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -8511,7 +8339,7 @@ static void InvertedFlyingRCTrackDiagBrakes( session, 1, height + 24, direction, trackSequence, kInvertedRCDiagBrakeImages, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); if (trackSequence == 3) @@ -8562,9 +8390,8 @@ static void InvertedFlyingRCTrackLeftFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -8600,9 +8427,8 @@ static void InvertedFlyingRCTrackLeftFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8645,9 +8471,8 @@ static void InvertedFlyingRCTrackLeftFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8686,9 +8511,8 @@ static void InvertedFlyingRCTrackRightFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -8723,9 +8547,8 @@ static void InvertedFlyingRCTrackRightFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8768,9 +8591,8 @@ static void InvertedFlyingRCTrackRightFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8838,9 +8660,8 @@ static void FlyingRCTrackFlyerHalfLoopDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); diff --git a/src/openrct2/paint/track/coaster/HybridCoaster.cpp b/src/openrct2/paint/track/coaster/HybridCoaster.cpp index c5d0fc2b7a..59603ca598 100644 --- a/src/openrct2/paint/track/coaster/HybridCoaster.cpp +++ b/src/openrct2/paint/track/coaster/HybridCoaster.cpp @@ -781,7 +781,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -890,7 +890,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), (direction + 1) & 3), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -929,9 +929,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -971,9 +970,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -982,7 +980,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), (direction + 1) & 3), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1021,9 +1019,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4571,7 +4568,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4704,7 +4701,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), (direction + 1) & 3), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4747,9 +4744,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4797,9 +4793,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4808,7 +4803,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), (direction + 1) & 3), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4851,9 +4846,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, (direction + 1) & 3), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5423,7 +5417,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5554,8 +5548,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5679,7 +5672,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5722,9 +5715,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5768,9 +5760,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -5779,7 +5770,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5822,9 +5813,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5931,8 +5921,7 @@ namespace OpenRCT2::HybridRC case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5975,9 +5964,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6021,9 +6009,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -6031,8 +6018,7 @@ namespace OpenRCT2::HybridRC case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6075,9 +6061,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7189,7 +7174,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7322,8 +7307,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7461,7 +7445,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7508,9 +7492,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7558,9 +7541,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7569,7 +7551,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7616,9 +7598,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7737,8 +7718,7 @@ namespace OpenRCT2::HybridRC case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7785,9 +7765,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7835,9 +7814,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7845,8 +7823,7 @@ namespace OpenRCT2::HybridRC case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7893,9 +7870,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8052,9 +8028,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8094,9 +8069,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8228,9 +8202,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8270,9 +8243,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8432,7 +8404,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8594,8 +8566,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8756,8 +8727,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8919,7 +8889,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9053,7 +9023,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9092,9 +9062,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9137,9 +9106,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, - PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, + PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9148,7 +9116,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9187,9 +9155,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9297,8 +9264,7 @@ namespace OpenRCT2::HybridRC case 8: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9337,9 +9303,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9382,9 +9347,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9392,8 +9356,7 @@ namespace OpenRCT2::HybridRC case 11: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9432,9 +9395,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9541,8 +9503,7 @@ namespace OpenRCT2::HybridRC case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9581,9 +9542,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9626,9 +9586,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9636,8 +9595,7 @@ namespace OpenRCT2::HybridRC case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9676,9 +9634,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9787,7 +9744,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9826,9 +9783,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9871,9 +9827,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, - PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, + PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9882,7 +9837,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9921,9 +9876,8 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -11611,7 +11565,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11746,8 +11700,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11873,7 +11826,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12008,8 +11961,7 @@ namespace OpenRCT2::HybridRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); diff --git a/src/openrct2/paint/track/coaster/InvertedHairpinCoaster.cpp b/src/openrct2/paint/track/coaster/InvertedHairpinCoaster.cpp index 6b67ce984c..750aeb3560 100644 --- a/src/openrct2/paint/track/coaster/InvertedHairpinCoaster.cpp +++ b/src/openrct2/paint/track/coaster/InvertedHairpinCoaster.cpp @@ -730,9 +730,8 @@ static void InvertedHairpinRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -774,8 +773,7 @@ static void InvertedHairpinRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -807,9 +805,8 @@ static void InvertedHairpinRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -870,9 +867,8 @@ static void InvertedHairpinRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -914,9 +910,8 @@ static void InvertedHairpinRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -967,9 +962,8 @@ static void InvertedHairpinRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1011,9 +1005,8 @@ static void InvertedHairpinRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1085,7 +1078,7 @@ static void InvertedHairpinRCTrackLeftQuarterTurn1( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight, session.SupportColours); diff --git a/src/openrct2/paint/track/coaster/InvertedRollerCoaster.cpp b/src/openrct2/paint/track/coaster/InvertedRollerCoaster.cpp index a2dfa82b99..5b3871bb75 100644 --- a/src/openrct2/paint/track/coaster/InvertedRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/InvertedRollerCoaster.cpp @@ -633,9 +633,8 @@ static void InvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -675,9 +674,8 @@ static void InvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -708,7 +706,7 @@ static void InvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -741,9 +739,8 @@ static void InvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -776,9 +773,8 @@ static void InvertedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -839,9 +835,8 @@ static void InvertedRCTrackFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -886,9 +881,8 @@ static void InvertedRCTrackFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -933,9 +927,8 @@ static void InvertedRCTrackLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -980,9 +973,8 @@ static void InvertedRCTrackRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1030,9 +1022,8 @@ static void InvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1072,9 +1063,8 @@ static void InvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1105,7 +1095,7 @@ static void InvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1138,9 +1128,8 @@ static void InvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1173,9 +1162,8 @@ static void InvertedRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1236,9 +1224,8 @@ static void InvertedRCTrackLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1307,9 +1294,8 @@ static void InvertedRCTrackRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1378,9 +1364,8 @@ static void InvertedRCTrack25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1449,9 +1434,8 @@ static void InvertedRCTrack25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1552,9 +1536,8 @@ static void InvertedRCTrackLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1606,9 +1589,8 @@ static void InvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1646,9 +1628,8 @@ static void InvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -1676,7 +1657,7 @@ static void InvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -1707,9 +1688,8 @@ static void InvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -1738,9 +1718,8 @@ static void InvertedRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1791,9 +1770,8 @@ static void InvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1831,9 +1809,8 @@ static void InvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -1861,8 +1838,7 @@ static void InvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -1892,9 +1868,8 @@ static void InvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -1923,9 +1898,8 @@ static void InvertedRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2000,8 +1974,7 @@ static void InvertedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2037,9 +2010,8 @@ static void InvertedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2072,9 +2044,8 @@ static void InvertedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2109,7 +2080,7 @@ static void InvertedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2163,8 +2134,7 @@ static void InvertedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2200,9 +2170,8 @@ static void InvertedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2235,9 +2204,8 @@ static void InvertedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2272,8 +2240,7 @@ static void InvertedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2326,9 +2293,8 @@ static void InvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2411,8 +2377,7 @@ static void InvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -2443,9 +2408,8 @@ static void InvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2483,9 +2447,8 @@ static void InvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2517,7 +2480,7 @@ static void InvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -2577,9 +2540,8 @@ static void InvertedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2651,9 +2613,8 @@ static void InvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2736,8 +2697,7 @@ static void InvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -2769,9 +2729,8 @@ static void InvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2809,9 +2768,8 @@ static void InvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2843,8 +2801,7 @@ static void InvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -2903,9 +2860,8 @@ static void InvertedRCTrackRightVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2977,9 +2933,8 @@ static void InvertedRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3020,8 +2975,7 @@ static void InvertedRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3053,9 +3007,8 @@ static void InvertedRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3119,9 +3072,8 @@ static void InvertedRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3163,8 +3115,7 @@ static void InvertedRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3196,9 +3147,8 @@ static void InvertedRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3258,9 +3208,8 @@ static void InvertedRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3302,9 +3251,8 @@ static void InvertedRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3355,9 +3303,8 @@ static void InvertedRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3399,9 +3346,8 @@ static void InvertedRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3472,9 +3418,8 @@ static void InvertedRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3509,9 +3454,8 @@ static void InvertedRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3549,9 +3493,8 @@ static void InvertedRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3590,9 +3533,8 @@ static void InvertedRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3627,9 +3569,8 @@ static void InvertedRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3667,9 +3608,8 @@ static void InvertedRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3712,9 +3652,8 @@ static void InvertedRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3742,9 +3681,8 @@ static void InvertedRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3773,9 +3711,8 @@ static void InvertedRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3830,9 +3767,8 @@ static void InvertedRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3860,9 +3796,8 @@ static void InvertedRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3891,9 +3826,8 @@ static void InvertedRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4027,9 +3961,8 @@ static void InvertedRCTrackHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -4112,9 +4045,8 @@ static void InvertedRCTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4191,9 +4123,8 @@ static void InvertedRCTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4236,9 +4167,8 @@ static void InvertedRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4315,9 +4245,8 @@ static void InvertedRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4518,9 +4447,8 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4562,9 +4490,8 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4596,7 +4523,7 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4631,9 +4558,8 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4666,9 +4592,8 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4723,9 +4648,8 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4767,9 +4691,8 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4801,8 +4724,7 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4836,9 +4758,8 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4871,9 +4792,8 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4928,9 +4848,8 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4972,9 +4891,8 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5006,7 +4924,7 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5041,9 +4959,8 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5076,9 +4993,8 @@ static void InvertedRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -5133,9 +5049,8 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -5177,9 +5092,8 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5211,8 +5125,7 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5246,9 +5159,8 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5281,9 +5193,8 @@ static void InvertedRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -5550,9 +5461,8 @@ static void InvertedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5584,9 +5494,8 @@ static void InvertedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5595,8 +5504,7 @@ static void InvertedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5628,9 +5536,8 @@ static void InvertedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -5732,9 +5639,8 @@ static void InvertedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5766,9 +5672,8 @@ static void InvertedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5777,8 +5682,7 @@ static void InvertedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5811,9 +5715,8 @@ static void InvertedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -5898,8 +5801,7 @@ static void InvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -5938,9 +5840,8 @@ static void InvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5972,9 +5873,8 @@ static void InvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5983,8 +5883,7 @@ static void InvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6016,9 +5915,8 @@ static void InvertedRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -6085,7 +5983,7 @@ static void InvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -6124,9 +6022,8 @@ static void InvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6158,9 +6055,8 @@ static void InvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6169,8 +6065,7 @@ static void InvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6203,9 +6098,8 @@ static void InvertedRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -6262,7 +6156,7 @@ inline void InvertedRCTrackDiagFlatBase( TrackPaintUtilDiagTilesPaint( session, 1, height + 29, direction, trackSequence, images, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); if (trackSequence == 3) @@ -6322,7 +6216,7 @@ static void InvertedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6353,8 +6247,7 @@ static void InvertedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6384,8 +6277,7 @@ static void InvertedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6417,8 +6309,7 @@ static void InvertedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6464,7 +6355,7 @@ static void InvertedRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -6481,8 +6372,7 @@ static void InvertedRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -6498,8 +6388,7 @@ static void InvertedRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -6517,8 +6406,7 @@ static void InvertedRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6582,7 +6470,7 @@ static void InvertedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -6613,8 +6501,7 @@ static void InvertedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -6644,8 +6531,7 @@ static void InvertedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -6677,8 +6563,7 @@ static void InvertedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6724,7 +6609,7 @@ static void InvertedRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -6741,8 +6626,7 @@ static void InvertedRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -6758,8 +6642,7 @@ static void InvertedRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -6777,8 +6660,7 @@ static void InvertedRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6828,7 +6710,7 @@ static void InvertedRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -6845,8 +6727,7 @@ static void InvertedRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -6862,8 +6743,7 @@ static void InvertedRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -6881,8 +6761,7 @@ static void InvertedRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6946,7 +6825,7 @@ static void InvertedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6977,8 +6856,7 @@ static void InvertedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7008,8 +6886,7 @@ static void InvertedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7041,8 +6918,7 @@ static void InvertedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7102,7 +6978,7 @@ static void InvertedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7133,8 +7009,7 @@ static void InvertedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7164,8 +7039,7 @@ static void InvertedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7197,8 +7071,7 @@ static void InvertedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7244,7 +7117,7 @@ static void InvertedRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -7261,8 +7134,7 @@ static void InvertedRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -7278,8 +7150,7 @@ static void InvertedRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -7297,8 +7168,7 @@ static void InvertedRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7362,7 +7232,7 @@ static void InvertedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7392,8 +7262,7 @@ static void InvertedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -7422,8 +7291,7 @@ static void InvertedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7454,8 +7322,7 @@ static void InvertedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7501,7 +7368,7 @@ static void InvertedRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7518,8 +7385,7 @@ static void InvertedRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -7535,8 +7401,7 @@ static void InvertedRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7554,8 +7419,7 @@ static void InvertedRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7605,7 +7469,7 @@ static void InvertedRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7622,8 +7486,7 @@ static void InvertedRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -7639,8 +7502,7 @@ static void InvertedRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -7658,8 +7520,7 @@ static void InvertedRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7723,7 +7584,7 @@ static void InvertedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7754,8 +7615,7 @@ static void InvertedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -7785,8 +7645,7 @@ static void InvertedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7818,8 +7677,7 @@ static void InvertedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -7865,7 +7723,7 @@ static void InvertedRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7882,8 +7740,7 @@ static void InvertedRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7899,8 +7756,7 @@ static void InvertedRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7918,9 +7774,8 @@ static void InvertedRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -7971,7 +7826,7 @@ static void InvertedRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7988,8 +7843,7 @@ static void InvertedRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8005,8 +7859,7 @@ static void InvertedRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8024,9 +7877,8 @@ static void InvertedRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -8077,7 +7929,7 @@ static void InvertedRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8094,8 +7946,7 @@ static void InvertedRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8111,8 +7962,7 @@ static void InvertedRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8130,9 +7980,8 @@ static void InvertedRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -8183,7 +8032,7 @@ static void InvertedRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8200,8 +8049,7 @@ static void InvertedRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8217,8 +8065,7 @@ static void InvertedRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8236,9 +8083,8 @@ static void InvertedRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -8289,7 +8135,7 @@ static void InvertedRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8306,8 +8152,7 @@ static void InvertedRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8323,8 +8168,7 @@ static void InvertedRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8342,8 +8186,7 @@ static void InvertedRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8389,7 +8232,7 @@ static void InvertedRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8406,8 +8249,7 @@ static void InvertedRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8423,8 +8265,7 @@ static void InvertedRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8442,8 +8283,7 @@ static void InvertedRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8489,7 +8329,7 @@ static void InvertedRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8506,8 +8346,7 @@ static void InvertedRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8523,8 +8362,7 @@ static void InvertedRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8542,8 +8380,7 @@ static void InvertedRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8589,7 +8426,7 @@ static void InvertedRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8606,8 +8443,7 @@ static void InvertedRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8623,8 +8459,7 @@ static void InvertedRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8642,8 +8477,7 @@ static void InvertedRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8689,7 +8523,7 @@ static void InvertedRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8705,8 +8539,7 @@ static void InvertedRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -8721,8 +8554,7 @@ static void InvertedRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8739,8 +8571,7 @@ static void InvertedRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8786,7 +8617,7 @@ static void InvertedRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8802,8 +8633,7 @@ static void InvertedRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -8818,8 +8648,7 @@ static void InvertedRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8836,8 +8665,7 @@ static void InvertedRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8883,7 +8711,7 @@ static void InvertedRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8900,8 +8728,7 @@ static void InvertedRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8917,8 +8744,7 @@ static void InvertedRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8936,8 +8762,7 @@ static void InvertedRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -8983,7 +8808,7 @@ static void InvertedRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9000,8 +8825,7 @@ static void InvertedRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9017,8 +8841,7 @@ static void InvertedRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9036,8 +8859,7 @@ static void InvertedRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -9083,7 +8905,7 @@ static void InvertedRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9100,8 +8922,7 @@ static void InvertedRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9117,8 +8938,7 @@ static void InvertedRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9136,9 +8956,8 @@ static void InvertedRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -9189,7 +9008,7 @@ static void InvertedRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9206,8 +9025,7 @@ static void InvertedRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9223,8 +9041,7 @@ static void InvertedRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9242,9 +9059,8 @@ static void InvertedRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -9370,9 +9186,8 @@ static void InvertedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -9404,9 +9219,8 @@ static void InvertedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -9438,8 +9252,7 @@ static void InvertedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -9471,9 +9284,8 @@ static void InvertedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -9510,9 +9322,8 @@ static void InvertedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -9614,9 +9425,8 @@ static void InvertedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -9648,9 +9458,8 @@ static void InvertedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -9682,8 +9491,7 @@ static void InvertedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); break; @@ -9714,9 +9522,8 @@ static void InvertedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -9753,9 +9560,8 @@ static void InvertedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -9842,9 +9648,8 @@ static void InvertedRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -9886,9 +9691,8 @@ static void InvertedRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -9939,9 +9743,8 @@ static void InvertedRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -9983,9 +9786,8 @@ static void InvertedRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -10056,9 +9858,8 @@ static void InvertedRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -10096,9 +9897,8 @@ static void InvertedRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -10126,7 +9926,7 @@ static void InvertedRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -10157,9 +9957,8 @@ static void InvertedRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -10188,9 +9987,8 @@ static void InvertedRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -10241,9 +10039,8 @@ static void InvertedRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -10281,9 +10078,8 @@ static void InvertedRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -10311,8 +10107,7 @@ static void InvertedRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -10342,9 +10137,8 @@ static void InvertedRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -10373,9 +10167,8 @@ static void InvertedRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -11324,9 +11117,8 @@ static void InvertedRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, - PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, + PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -11357,9 +11149,8 @@ static void InvertedRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, - PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); @@ -11368,9 +11159,8 @@ static void InvertedRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, - PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -11430,10 +11220,9 @@ static void InvertedRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, - PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); @@ -11466,9 +11255,8 @@ static void InvertedRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -11542,9 +11330,8 @@ static void InvertedRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, - PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, + PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -11561,9 +11348,8 @@ static void InvertedRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, - PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, + PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); @@ -11572,9 +11358,8 @@ static void InvertedRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, - PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -11630,10 +11415,9 @@ static void InvertedRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, - PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); @@ -11666,9 +11450,8 @@ static void InvertedRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -11802,9 +11585,8 @@ static void InvertedRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kInvertedSpriteOffset + 88); @@ -11838,8 +11620,7 @@ static void InvertedRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -11870,8 +11651,7 @@ static void InvertedRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -11880,9 +11660,8 @@ static void InvertedRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, - PaintSegment::right), + { PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right }, direction), 0xFFFF, 0); switch (direction) @@ -11986,9 +11765,8 @@ static void InvertedRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -12022,8 +11800,7 @@ static void InvertedRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 160); @@ -12056,8 +11833,7 @@ static void InvertedRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 160); break; @@ -12065,9 +11841,8 @@ static void InvertedRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::top }, direction), 0xFFFF, 0); switch (direction) @@ -12207,9 +11982,8 @@ static void InvertedRCTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); @@ -12289,8 +12063,7 @@ static void InvertedRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -12367,9 +12140,8 @@ static void InvertedRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12464,9 +12236,8 @@ static void InvertedRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, PaintSegment::centre, - PaintSegment::bottom), + { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, PaintSegment::centre, + PaintSegment::bottom }, direction), 0xFFFF, 0); switch (direction) @@ -12549,9 +12320,8 @@ static void InvertedRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); @@ -12587,9 +12357,8 @@ static void InvertedRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); @@ -12657,9 +12426,8 @@ static void InvertedRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft, PaintSegment::centre, - PaintSegment::left), + { PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft, PaintSegment::centre, + PaintSegment::left }, direction), 0xFFFF, 0); switch (direction) @@ -12737,9 +12505,8 @@ static void InvertedRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::centre, PaintSegment::topRight), // FIXED: Mirrored perfectly from Left across TR-C-BL + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::centre, PaintSegment::topRight }, // FIXED: Mirrored perfectly from Left across TR-C-BL direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -12775,9 +12542,8 @@ static void InvertedRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::centre, PaintSegment::topRight), // FIXED: Mirrored perfectly from Left across TR-C-BL + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::centre, PaintSegment::topRight }, // FIXED: Mirrored perfectly from Left across TR-C-BL direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -12860,8 +12626,7 @@ static void InvertedRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::topRight, PaintSegment::centre), + { PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); switch (direction) @@ -12959,9 +12724,8 @@ static void InvertedRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13053,7 +12817,7 @@ static void InvertedRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), + { PaintSegment::bottomLeft, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); switch (direction) @@ -13152,9 +12916,8 @@ static void InvertedRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13295,9 +13058,8 @@ static void InvertedRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottom, - PaintSegment::bottomLeft), + { PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottom, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -13371,9 +13133,8 @@ static void InvertedRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, - PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13385,10 +13146,9 @@ static void InvertedRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, - PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -13516,9 +13276,8 @@ static void InvertedRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topLeft, - PaintSegment::top), + { PaintSegment::left, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topLeft, + PaintSegment::top }, direction), 0xFFFF, 0); switch (direction) @@ -13591,9 +13350,8 @@ static void InvertedRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, - PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, + PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13605,10 +13363,9 @@ static void InvertedRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, - PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -13715,8 +13472,7 @@ static void InvertedRCTrackFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight, PaintSegment::bottomRight), - direction), + { PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) { @@ -14284,7 +14040,7 @@ static void InvertedRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14302,8 +14058,7 @@ static void InvertedRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) { @@ -14320,8 +14075,7 @@ static void InvertedRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14339,8 +14093,7 @@ static void InvertedRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -14366,7 +14119,7 @@ static void InvertedRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14384,8 +14137,7 @@ static void InvertedRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) { @@ -14402,8 +14154,7 @@ static void InvertedRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14421,8 +14172,7 @@ static void InvertedRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -14466,7 +14216,7 @@ static void InvertedRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14484,8 +14234,7 @@ static void InvertedRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) { @@ -14502,8 +14251,7 @@ static void InvertedRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14521,8 +14269,7 @@ static void InvertedRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -14574,7 +14321,7 @@ static void InvertedRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14591,8 +14338,7 @@ static void InvertedRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -14608,8 +14354,7 @@ static void InvertedRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14618,8 +14363,7 @@ static void InvertedRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -14663,7 +14407,7 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); switch (direction) @@ -14682,8 +14426,7 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) { @@ -14701,8 +14444,7 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14721,9 +14463,8 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); switch (direction) @@ -14764,8 +14505,7 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) { @@ -14783,8 +14523,7 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14803,9 +14542,8 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); switch (direction) @@ -14846,8 +14584,7 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) { @@ -14865,8 +14602,7 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14885,8 +14621,7 @@ static void InvertedRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); switch (direction) { @@ -14914,7 +14649,7 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); switch (direction) @@ -14933,8 +14668,7 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) { @@ -14952,8 +14686,7 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -14972,9 +14705,8 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); switch (direction) @@ -15002,8 +14734,7 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) { @@ -15021,8 +14752,7 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -15041,9 +14771,8 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); switch (direction) @@ -15084,8 +14813,7 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) { @@ -15103,8 +14831,7 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -15123,8 +14850,7 @@ static void InvertedRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); switch (direction) { @@ -15185,8 +14911,7 @@ static void InvertedRCTrackLeftBankToLeftQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -15242,9 +14967,8 @@ static void InvertedRCTrackLeftBankToLeftQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -15308,9 +15032,8 @@ static void InvertedRCTrackRightBankToRightQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::topRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -15355,9 +15078,8 @@ static void InvertedRCTrackRightBankToRightQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16016,9 +15738,8 @@ static void InvertedRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -16027,9 +15748,8 @@ static void InvertedRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16075,8 +15795,7 @@ static void InvertedRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -16084,9 +15803,8 @@ static void InvertedRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16129,9 +15847,8 @@ static void InvertedRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomRight, - PaintSegment::bottomLeft, PaintSegment::topRight, PaintSegment::topLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomRight, + PaintSegment::bottomLeft, PaintSegment::topRight, PaintSegment::topLeft }, direction), 0xFFFF, 0); switch (direction) @@ -16172,9 +15889,8 @@ static void InvertedRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::bottom, PaintSegment::centre, PaintSegment::right, - PaintSegment::bottomLeft, PaintSegment::topRight), + { PaintSegment::bottomRight, PaintSegment::bottom, PaintSegment::centre, PaintSegment::right, + PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -16222,8 +15938,7 @@ static void InvertedRCTrackLeftEighthToOrthogonalUp25( case 2: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -16258,9 +15973,8 @@ static void InvertedRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::left, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -16269,9 +15983,8 @@ static void InvertedRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16409,9 +16122,8 @@ static void InvertedRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -16420,9 +16132,8 @@ static void InvertedRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, - PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, + PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -16468,8 +16179,7 @@ static void InvertedRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -16478,9 +16188,8 @@ static void InvertedRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16522,9 +16231,8 @@ static void InvertedRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::left, PaintSegment::bottomLeft, - PaintSegment::bottomRight, PaintSegment::topLeft, PaintSegment::topRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::bottomRight, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); @@ -16566,9 +16274,8 @@ static void InvertedRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::right, PaintSegment::topLeft, - PaintSegment::top), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::right, PaintSegment::topLeft, + PaintSegment::top }, direction), 0xFFFF, 0); switch (direction) @@ -16616,8 +16323,7 @@ static void InvertedRCTrackRightEighthToOrthogonalUp25( case 2: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft), direction), + PaintUtilRotateSegments({ PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -16625,9 +16331,8 @@ static void InvertedRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomRight, - PaintSegment::left), + { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::left }, direction), 0xFFFF, 0); switch (direction) @@ -16663,8 +16368,7 @@ static void InvertedRCTrackRightEighthToOrthogonalUp25( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) { @@ -16765,9 +16469,8 @@ static void InvertedRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom, - PaintSegment::left, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom, + PaintSegment::left, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -16855,9 +16558,8 @@ static void InvertedRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -16866,9 +16568,8 @@ static void InvertedRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16917,8 +16618,7 @@ static void InvertedRCTrackLeftEighthBankToDiagUp25( case 3: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft), direction), + PaintUtilRotateSegments({ PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -16926,9 +16626,8 @@ static void InvertedRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -16975,9 +16674,8 @@ static void InvertedRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomRight, - PaintSegment::bottomLeft, PaintSegment::topRight, PaintSegment::topLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomRight, + PaintSegment::bottomLeft, PaintSegment::topRight, PaintSegment::topLeft }, direction), 0xFFFF, 0); switch (direction) @@ -17022,9 +16720,8 @@ static void InvertedRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::bottom, PaintSegment::centre, PaintSegment::right, - PaintSegment::bottomLeft, PaintSegment::topRight), + { PaintSegment::bottomRight, PaintSegment::bottom, PaintSegment::centre, PaintSegment::right, + PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -17076,8 +16773,7 @@ static void InvertedRCTrackLeftEighthBankToOrthogonalUp25( case 2: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -17116,9 +16812,8 @@ static void InvertedRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::left, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -17127,9 +16822,8 @@ static void InvertedRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17199,9 +16893,8 @@ static void InvertedRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -17262,9 +16955,8 @@ static void InvertedRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17301,9 +16993,8 @@ static void InvertedRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, - PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, + PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -17357,7 +17048,7 @@ static void InvertedRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::bottomLeft), direction), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -17366,9 +17057,8 @@ static void InvertedRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17415,9 +17105,8 @@ static void InvertedRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::left, PaintSegment::bottomLeft, - PaintSegment::bottomRight, PaintSegment::topLeft, PaintSegment::topRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::bottomRight, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -17458,9 +17147,8 @@ static void InvertedRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::right, PaintSegment::topLeft, - PaintSegment::top), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::right, PaintSegment::topLeft, + PaintSegment::top }, direction), 0xFFFF, 0); switch (direction) @@ -17516,8 +17204,7 @@ static void InvertedRCTrackRightEighthBankToOrthogonalUp25( case 2: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft), direction), + PaintUtilRotateSegments({ PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -17526,9 +17213,8 @@ static void InvertedRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomRight, - PaintSegment::left), + { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::left }, direction), 0xFFFF, 0); switch (direction) @@ -17569,9 +17255,8 @@ static void InvertedRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::top, - PaintSegment::topRight, PaintSegment::right), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::top, + PaintSegment::topRight, PaintSegment::right }, direction), 0xFFFF, 0); switch (direction) @@ -17689,7 +17374,7 @@ static void InvertedRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17706,8 +17391,7 @@ static void InvertedRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -17715,8 +17399,7 @@ static void InvertedRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17749,8 +17432,7 @@ static void InvertedRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -17785,7 +17467,7 @@ static void InvertedRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -17802,8 +17484,7 @@ static void InvertedRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -17819,8 +17500,7 @@ static void InvertedRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -17829,8 +17509,7 @@ static void InvertedRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -17878,7 +17557,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -17895,8 +17574,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -17904,8 +17582,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17938,8 +17615,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -17974,7 +17650,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -17991,8 +17667,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -18008,8 +17683,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -18018,8 +17692,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18099,7 +17772,7 @@ static void InvertedRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18116,8 +17789,7 @@ static void InvertedRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -18125,8 +17797,7 @@ static void InvertedRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -18158,8 +17829,7 @@ static void InvertedRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18194,7 +17864,7 @@ static void InvertedRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -18211,8 +17881,7 @@ static void InvertedRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -18228,8 +17897,7 @@ static void InvertedRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -18238,8 +17906,7 @@ static void InvertedRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18287,7 +17954,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -18304,8 +17971,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -18313,8 +17979,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -18347,8 +18012,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18383,7 +18047,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18400,8 +18064,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -18418,8 +18081,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18428,8 +18090,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18509,7 +18170,7 @@ static void InvertedRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -18526,8 +18187,7 @@ static void InvertedRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -18535,8 +18195,7 @@ static void InvertedRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -18569,8 +18228,7 @@ static void InvertedRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18605,7 +18263,7 @@ static void InvertedRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -18622,8 +18280,7 @@ static void InvertedRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -18639,8 +18296,7 @@ static void InvertedRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -18649,8 +18305,7 @@ static void InvertedRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18713,7 +18368,7 @@ static void InvertedRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -18730,8 +18385,7 @@ static void InvertedRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -18739,8 +18393,7 @@ static void InvertedRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -18773,8 +18426,7 @@ static void InvertedRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18809,7 +18461,7 @@ static void InvertedRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -18826,8 +18478,7 @@ static void InvertedRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -18843,8 +18494,7 @@ static void InvertedRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -18853,8 +18503,7 @@ static void InvertedRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18902,7 +18551,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18919,8 +18568,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -18928,8 +18576,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -18962,8 +18609,7 @@ static void InvertedRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -18998,7 +18644,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19015,8 +18661,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -19032,8 +18677,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19042,8 +18686,7 @@ static void InvertedRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -19141,9 +18784,8 @@ static void InvertedRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -19185,9 +18827,8 @@ static void InvertedRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -19219,7 +18860,7 @@ static void InvertedRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -19254,9 +18895,8 @@ static void InvertedRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -19289,9 +18929,8 @@ static void InvertedRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -19345,9 +18984,8 @@ static void InvertedRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -19389,9 +19027,8 @@ static void InvertedRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -19423,8 +19060,7 @@ static void InvertedRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -19458,9 +19094,8 @@ static void InvertedRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -19493,9 +19128,8 @@ static void InvertedRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( diff --git a/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp b/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp index de81a65a5b..0c4dae2aa0 100644 --- a/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp @@ -1867,9 +1867,7 @@ static void JuniorRCPaintTrackFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -1946,9 +1944,7 @@ static void JuniorRCPaintTrack25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -1979,9 +1975,7 @@ static void JuniorRCPaintTrackFlatTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -2024,9 +2018,7 @@ static void JuniorRCPaintTrack25DegUpToFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -2087,17 +2079,15 @@ static void JuniorRCRightQuarterTurn5TilesPaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -2105,17 +2095,15 @@ static void JuniorRCRightQuarterTurn5TilesPaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), - direction), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -2123,8 +2111,7 @@ static void JuniorRCRightQuarterTurn5TilesPaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left), - direction), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; } @@ -2190,9 +2177,7 @@ static void JuniorRCFlatToLeftBankPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -2241,9 +2226,7 @@ static void JuniorRCFlatToRightBankPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -2390,17 +2373,15 @@ static void JuniorRCBankedRightQuarterTurn5TilesPaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -2408,17 +2389,15 @@ static void JuniorRCBankedRightQuarterTurn5TilesPaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), - direction), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -2426,8 +2405,7 @@ static void JuniorRCBankedRightQuarterTurn5TilesPaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left), - direction), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; } @@ -2501,9 +2479,7 @@ static void JuniorRCLeftBankTo25DegUpPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -2564,9 +2540,7 @@ static void JuniorRCRightBankTo25DegUpPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -2628,9 +2602,7 @@ static void JuniorRC25DegUpToLeftBankPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -2692,9 +2664,7 @@ static void JuniorRC25DegUpToRightBankPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -2783,9 +2753,7 @@ static void JuniorRCLeftBankPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -2848,17 +2816,15 @@ static void JuniorRCPaintTrackLeftQuarterTurn5Tiles25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::top, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::top, PaintSegment::left, + PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -2866,7 +2832,7 @@ static void JuniorRCPaintTrackLeftQuarterTurn5Tiles25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomRight, PaintSegment::right, PaintSegment::topRight, PaintSegment::centre), + { PaintSegment::bottomRight, PaintSegment::right, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); break; @@ -2874,9 +2840,8 @@ static void JuniorRCPaintTrackLeftQuarterTurn5Tiles25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -2884,7 +2849,7 @@ static void JuniorRCPaintTrackLeftQuarterTurn5Tiles25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottom), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottom }, direction), 0xFFFF, 0); break; @@ -2947,17 +2912,15 @@ static void JuniorRCPaintTrackRightQuarterTurn5Tiles25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -2965,17 +2928,15 @@ static void JuniorRCPaintTrackRightQuarterTurn5Tiles25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), - direction), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -2983,8 +2944,7 @@ static void JuniorRCPaintTrackRightQuarterTurn5Tiles25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left), - direction), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; } @@ -3084,26 +3044,22 @@ static void JuniorRCSBendLeftPaintSetup( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, (direction & 1)), 0xFFFF, 0); @@ -3178,26 +3134,22 @@ static void JuniorRCSBendRightPaintSetup( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, (direction & 1)), 0xFFFF, 0); @@ -3228,20 +3180,18 @@ static void JuniorRCRightQuarterTurn3TilesPaintSetup( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -3347,20 +3297,18 @@ static void JuniorRCRightQuarterTurn3TilesBankPaintSetup( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -3432,16 +3380,14 @@ static void JuniorRCPaintTrackRightQuarterTurn3Tiles25DegUp( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -3516,16 +3462,14 @@ static void JuniorRCPaintTrackRightQuarterTurn3Tiles25DegDown( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -3622,22 +3566,20 @@ static void JuniorRCRightHalfBankedHelixUpSmallPaintSetup( PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right, - PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right, + PaintSegment::bottomRight }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, + PaintSegment::bottomRight }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::left); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -3693,22 +3635,20 @@ static void JuniorRCRightHalfBankedHelixDownSmallPaintSetup( PaintUtilPushTunnelRight(session, height + 8, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right, - PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right, + PaintSegment::bottomRight }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, + PaintSegment::bottomRight }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::left); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -3802,9 +3742,8 @@ static void JuniorRCRightHalfBankedHelixUpLargePaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::right), + { PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::right }, direction), 0xFFFF, 0); break; @@ -3812,9 +3751,8 @@ static void JuniorRCRightHalfBankedHelixUpLargePaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -3822,17 +3760,15 @@ static void JuniorRCRightHalfBankedHelixUpLargePaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), - direction), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -3840,9 +3776,8 @@ static void JuniorRCRightHalfBankedHelixUpLargePaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::left), + { PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::left }, direction), 0xFFFF, 0); break; @@ -3906,9 +3841,8 @@ static void JuniorRCRightHalfBankedHelixDownLargePaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::right), + { PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::right }, direction), 0xFFFF, 0); break; @@ -3916,9 +3850,8 @@ static void JuniorRCRightHalfBankedHelixDownLargePaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -3926,17 +3859,15 @@ static void JuniorRCRightHalfBankedHelixDownLargePaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), - direction), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -3944,9 +3875,8 @@ static void JuniorRCRightHalfBankedHelixDownLargePaintSetup( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::left), + { PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::left }, direction), 0xFFFF, 0); break; @@ -4017,9 +3947,7 @@ static void JuniorRCBrakePaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -4056,9 +3984,7 @@ static void JuniorRCBlockBrakePaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -4095,30 +4021,26 @@ static void JuniorRCLeftEighthToDiagPaintSetup( PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::bottomRight, - PaintSegment::right); + blockedSegments = { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::left, PaintSegment::topLeft); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::left, PaintSegment::topLeft }; break; case 4: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, - PaintSegment::bottom, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::topLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } @@ -4158,29 +4080,27 @@ static void JuniorRCRightEighthToDiagPaintSetup( PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, PaintSegment::topLeft, + PaintSegment::top }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, + PaintSegment::bottomRight }; break; case 4: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomRight }; break; } @@ -4318,30 +4238,26 @@ static void JuniorRCLeftEighthToDiagBankPaintSetup( PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::bottomRight, - PaintSegment::right); + blockedSegments = { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::left, PaintSegment::topLeft); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::left, PaintSegment::topLeft }; break; case 4: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, - PaintSegment::bottom, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::topLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } @@ -4461,29 +4377,27 @@ static void JuniorRCRightEighthToDiagBankPaintSetup( PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, PaintSegment::topLeft, + PaintSegment::top }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, + PaintSegment::bottomRight }; break; case 4: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomRight }; break; } @@ -4535,7 +4449,7 @@ static void JuniorRCTrackDiagBrakes( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -4554,7 +4468,7 @@ static void JuniorRCTrackDiagBlockBrakes( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -4575,7 +4489,7 @@ static void JuniorRCPaintTrackDiag25DegUp( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 8, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -4596,7 +4510,7 @@ static void JuniorRCPaintTrackDiagFlatTo25DegUp( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -4618,7 +4532,7 @@ static void JuniorRCPaintTrackDiagFlatTo60DegUp( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 6, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); } @@ -4639,7 +4553,7 @@ static void JuniorRCPaintTrackDiag25DegUpToFlat( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 4, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -4661,7 +4575,7 @@ static void JuniorRCPaintTrackDiag60DegUpToFlat( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 4, height + 13, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); } @@ -4682,7 +4596,7 @@ static void JuniorRCPaintTrackDiag25DegDown( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 8, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -4703,7 +4617,7 @@ static void JuniorRCPaintTrackDiagFlatTo25DegDown( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 4, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -4725,7 +4639,7 @@ static void JuniorRCPaintTrackDiagFlatTo60DegDown( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 4, height + 7, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -4746,7 +4660,7 @@ static void JuniorRCPaintTrackDiag25DegDownToFlat( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -4768,7 +4682,7 @@ static void JuniorRCPaintTrackDiag60DegDownToFlat( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -4794,7 +4708,7 @@ static void JuniorRCDiagFlatToLeftBankPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -4820,7 +4734,7 @@ static void JuniorRCDiagFlatToRightBankPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -4846,7 +4760,7 @@ static void JuniorRCDiagLeftBankToFlatPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -4872,7 +4786,7 @@ static void JuniorRCDiagRightBankToFlatPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -4898,7 +4812,7 @@ static void JuniorRCDiagLeftBankTo25DegUpPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -4924,7 +4838,7 @@ static void JuniorRCDiagRightBankTo25DegUpPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -4950,7 +4864,7 @@ static void JuniorRCDiag25DegUpToLeftBankPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 4, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -4976,7 +4890,7 @@ static void JuniorRCDiag25DegUpToRightBankPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 4, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -5002,7 +4916,7 @@ static void JuniorRCDiagLeftBankTo25DegDownPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 4, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -5028,7 +4942,7 @@ static void JuniorRCDiagRightBankTo25DegDownPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 4, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -5054,7 +4968,7 @@ static void JuniorRCDiag25DegDownToLeftBankPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -5080,7 +4994,7 @@ static void JuniorRCDiag25DegDownToRightBankPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -5115,7 +5029,7 @@ static void JuniorRCDiagLeftBankPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -5136,7 +5050,7 @@ static void JuniorRCDiagRightBankPaintSetup( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -5208,9 +5122,7 @@ static void JuniorRCPaintTrack60DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); } @@ -5294,9 +5206,7 @@ static void JuniorRCPaintTrack25DegUpTo60DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -5357,9 +5267,7 @@ static void JuniorRCPaintTrack60DegUpTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -5388,7 +5296,7 @@ static void JuniorRCPaintTrackDiag60DegUp( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 36, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); } @@ -5410,7 +5318,7 @@ static void JuniorRCPaintTrackDiag60DegDown( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 28, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); } @@ -5432,7 +5340,7 @@ static void JuniorRCPaintTrackDiag25DegUpTo60DegUp( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 16, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -5464,7 +5372,7 @@ static void JuniorRCPaintTrackDiag60DegUpTo25DegUp( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 21, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -5496,7 +5404,7 @@ static void JuniorRCPaintTrackDiag25DegDownTo60DegDown( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 17, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -5518,7 +5426,7 @@ static void JuniorRCPaintTrackDiag60DegDownTo25DegDown( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 8, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -5607,9 +5515,7 @@ static void JuniorRCFlatTo60DegUpPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); } @@ -5668,9 +5574,7 @@ static void JuniorRC60DegUpToFlatPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -5739,9 +5643,7 @@ static void JuniorRCBoosterPaintSetup( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/coaster/LatticeTriangleTrack.cpp b/src/openrct2/paint/track/coaster/LatticeTriangleTrack.cpp index ff053f9034..769ae74eed 100644 --- a/src/openrct2/paint/track/coaster/LatticeTriangleTrack.cpp +++ b/src/openrct2/paint/track/coaster/LatticeTriangleTrack.cpp @@ -878,8 +878,7 @@ static void LatticeTriangleTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -913,9 +912,8 @@ static void LatticeTriangleTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -947,7 +945,7 @@ static void LatticeTriangleTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -982,9 +980,8 @@ static void LatticeTriangleTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1026,7 +1023,7 @@ static void LatticeTriangleTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1257,8 +1254,7 @@ static void LatticeTriangleTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1292,9 +1288,8 @@ static void LatticeTriangleTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1326,7 +1321,7 @@ static void LatticeTriangleTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1361,9 +1356,8 @@ static void LatticeTriangleTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1408,7 +1402,7 @@ static void LatticeTriangleTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1744,8 +1738,7 @@ static void LatticeTriangleTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1777,9 +1770,8 @@ static void LatticeTriangleTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1810,7 +1802,7 @@ static void LatticeTriangleTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1843,9 +1835,8 @@ static void LatticeTriangleTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1887,7 +1878,7 @@ static void LatticeTriangleTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1934,8 +1925,7 @@ static void LatticeTriangleTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1967,9 +1957,8 @@ static void LatticeTriangleTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2000,8 +1989,7 @@ static void LatticeTriangleTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -2033,9 +2021,8 @@ static void LatticeTriangleTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2077,8 +2064,7 @@ static void LatticeTriangleTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2144,8 +2130,7 @@ static void LatticeTriangleTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2175,9 +2160,8 @@ static void LatticeTriangleTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2208,9 +2192,8 @@ static void LatticeTriangleTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2252,7 +2235,7 @@ static void LatticeTriangleTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2299,8 +2282,7 @@ static void LatticeTriangleTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2330,9 +2312,8 @@ static void LatticeTriangleTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2363,9 +2344,8 @@ static void LatticeTriangleTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2407,8 +2387,7 @@ static void LatticeTriangleTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2454,8 +2433,7 @@ static void LatticeTriangleTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2489,8 +2467,7 @@ static void LatticeTriangleTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2531,7 +2508,7 @@ static void LatticeTriangleTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2590,8 +2567,7 @@ static void LatticeTriangleTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2625,8 +2601,7 @@ static void LatticeTriangleTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2670,7 +2645,7 @@ static void LatticeTriangleTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2723,8 +2698,7 @@ static void LatticeTriangleTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2767,7 +2741,7 @@ static void LatticeTriangleTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2810,8 +2784,7 @@ static void LatticeTriangleTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2861,8 +2834,7 @@ static void LatticeTriangleTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2931,9 +2903,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2968,8 +2939,7 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3013,9 +2983,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3060,9 +3029,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3097,8 +3065,7 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3138,9 +3105,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3190,9 +3156,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3227,8 +3192,7 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3273,9 +3237,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3320,9 +3283,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3357,8 +3319,7 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3397,9 +3358,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3479,9 +3439,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3516,9 +3475,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3550,7 +3508,7 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3585,9 +3543,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3632,9 +3589,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3679,9 +3635,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3716,9 +3671,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3750,8 +3704,7 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3785,9 +3738,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3827,9 +3779,8 @@ static void LatticeTriangleTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3879,9 +3830,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3916,9 +3866,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3950,8 +3899,7 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3985,9 +3933,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4039,9 +3986,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4086,9 +4032,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4123,9 +4068,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4157,7 +4101,7 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4192,9 +4136,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4241,9 +4184,8 @@ static void LatticeTriangleTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5275,9 +5217,8 @@ static void LatticeTriangleTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5309,9 +5250,8 @@ static void LatticeTriangleTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5320,8 +5260,7 @@ static void LatticeTriangleTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5360,9 +5299,8 @@ static void LatticeTriangleTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5437,9 +5375,8 @@ static void LatticeTriangleTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5471,9 +5408,8 @@ static void LatticeTriangleTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5482,8 +5418,7 @@ static void LatticeTriangleTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5523,9 +5458,8 @@ static void LatticeTriangleTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5618,9 +5552,8 @@ static void LatticeTriangleTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5652,9 +5585,8 @@ static void LatticeTriangleTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5663,8 +5595,7 @@ static void LatticeTriangleTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5703,9 +5634,8 @@ static void LatticeTriangleTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5780,9 +5710,8 @@ static void LatticeTriangleTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5814,9 +5743,8 @@ static void LatticeTriangleTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5825,8 +5753,7 @@ static void LatticeTriangleTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5866,9 +5793,8 @@ static void LatticeTriangleTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5943,7 +5869,7 @@ static void LatticeTriangleTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5974,8 +5900,7 @@ static void LatticeTriangleTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6005,8 +5930,7 @@ static void LatticeTriangleTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6065,8 +5989,7 @@ static void LatticeTriangleTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6092,7 +6015,7 @@ static void LatticeTriangleTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6109,8 +6032,7 @@ static void LatticeTriangleTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6126,8 +6048,7 @@ static void LatticeTriangleTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6158,8 +6079,7 @@ static void LatticeTriangleTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6199,7 +6119,7 @@ static void LatticeTriangleTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6230,8 +6150,7 @@ static void LatticeTriangleTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6261,8 +6180,7 @@ static void LatticeTriangleTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6321,8 +6239,7 @@ static void LatticeTriangleTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6348,7 +6265,7 @@ static void LatticeTriangleTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6365,8 +6282,7 @@ static void LatticeTriangleTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6382,8 +6298,7 @@ static void LatticeTriangleTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6414,8 +6329,7 @@ static void LatticeTriangleTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6441,7 +6355,7 @@ static void LatticeTriangleTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6458,8 +6372,7 @@ static void LatticeTriangleTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6475,8 +6388,7 @@ static void LatticeTriangleTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6507,8 +6419,7 @@ static void LatticeTriangleTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6548,7 +6459,7 @@ static void LatticeTriangleTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6579,8 +6490,7 @@ static void LatticeTriangleTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6610,8 +6520,7 @@ static void LatticeTriangleTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6670,8 +6579,7 @@ static void LatticeTriangleTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6711,7 +6619,7 @@ static void LatticeTriangleTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6742,8 +6650,7 @@ static void LatticeTriangleTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6773,8 +6680,7 @@ static void LatticeTriangleTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6833,8 +6739,7 @@ static void LatticeTriangleTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6860,7 +6765,7 @@ static void LatticeTriangleTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6877,8 +6782,7 @@ static void LatticeTriangleTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6894,8 +6798,7 @@ static void LatticeTriangleTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6926,8 +6829,7 @@ static void LatticeTriangleTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6967,7 +6869,7 @@ static void LatticeTriangleTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6997,8 +6899,7 @@ static void LatticeTriangleTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -7027,8 +6928,7 @@ static void LatticeTriangleTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7086,8 +6986,7 @@ static void LatticeTriangleTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -7114,7 +7013,7 @@ static void LatticeTriangleTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7131,8 +7030,7 @@ static void LatticeTriangleTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7148,8 +7046,7 @@ static void LatticeTriangleTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7180,8 +7077,7 @@ static void LatticeTriangleTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7207,7 +7103,7 @@ static void LatticeTriangleTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7224,8 +7120,7 @@ static void LatticeTriangleTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7241,8 +7136,7 @@ static void LatticeTriangleTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7273,8 +7167,7 @@ static void LatticeTriangleTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7314,7 +7207,7 @@ static void LatticeTriangleTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7345,8 +7238,7 @@ static void LatticeTriangleTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7376,8 +7268,7 @@ static void LatticeTriangleTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7436,8 +7327,7 @@ static void LatticeTriangleTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7463,7 +7353,7 @@ static void LatticeTriangleTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7483,8 +7373,7 @@ static void LatticeTriangleTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7500,8 +7389,7 @@ static void LatticeTriangleTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7532,8 +7420,7 @@ static void LatticeTriangleTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7559,7 +7446,7 @@ static void LatticeTriangleTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7576,8 +7463,7 @@ static void LatticeTriangleTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7596,8 +7482,7 @@ static void LatticeTriangleTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7628,8 +7513,7 @@ static void LatticeTriangleTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7655,7 +7539,7 @@ static void LatticeTriangleTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7675,8 +7559,7 @@ static void LatticeTriangleTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7692,8 +7575,7 @@ static void LatticeTriangleTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7724,8 +7606,7 @@ static void LatticeTriangleTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7751,7 +7632,7 @@ static void LatticeTriangleTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7768,8 +7649,7 @@ static void LatticeTriangleTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7788,8 +7668,7 @@ static void LatticeTriangleTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7820,8 +7699,7 @@ static void LatticeTriangleTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7847,7 +7725,7 @@ static void LatticeTriangleTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7867,8 +7745,7 @@ static void LatticeTriangleTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7884,8 +7761,7 @@ static void LatticeTriangleTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7916,8 +7792,7 @@ static void LatticeTriangleTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7943,7 +7818,7 @@ static void LatticeTriangleTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7960,8 +7835,7 @@ static void LatticeTriangleTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7980,8 +7854,7 @@ static void LatticeTriangleTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8012,8 +7885,7 @@ static void LatticeTriangleTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8039,7 +7911,7 @@ static void LatticeTriangleTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8059,8 +7931,7 @@ static void LatticeTriangleTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8076,8 +7947,7 @@ static void LatticeTriangleTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8108,8 +7978,7 @@ static void LatticeTriangleTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8135,7 +8004,7 @@ static void LatticeTriangleTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8152,8 +8021,7 @@ static void LatticeTriangleTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8172,8 +8040,7 @@ static void LatticeTriangleTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8204,8 +8071,7 @@ static void LatticeTriangleTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8231,7 +8097,7 @@ static void LatticeTriangleTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8250,8 +8116,7 @@ static void LatticeTriangleTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -8266,8 +8131,7 @@ static void LatticeTriangleTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8297,8 +8161,7 @@ static void LatticeTriangleTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -8325,7 +8188,7 @@ static void LatticeTriangleTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8341,8 +8204,7 @@ static void LatticeTriangleTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -8360,8 +8222,7 @@ static void LatticeTriangleTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8391,8 +8252,7 @@ static void LatticeTriangleTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -8419,7 +8279,7 @@ static void LatticeTriangleTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8439,8 +8299,7 @@ static void LatticeTriangleTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8456,8 +8315,7 @@ static void LatticeTriangleTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8488,8 +8346,7 @@ static void LatticeTriangleTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8515,7 +8372,7 @@ static void LatticeTriangleTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8532,8 +8389,7 @@ static void LatticeTriangleTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8552,8 +8408,7 @@ static void LatticeTriangleTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8584,8 +8439,7 @@ static void LatticeTriangleTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8611,7 +8465,7 @@ static void LatticeTriangleTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8628,8 +8482,7 @@ static void LatticeTriangleTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8645,8 +8498,7 @@ static void LatticeTriangleTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8677,8 +8529,7 @@ static void LatticeTriangleTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8704,7 +8555,7 @@ static void LatticeTriangleTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8721,8 +8572,7 @@ static void LatticeTriangleTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8738,8 +8588,7 @@ static void LatticeTriangleTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8770,8 +8619,7 @@ static void LatticeTriangleTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8836,8 +8684,7 @@ static void LatticeTriangleTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8882,7 +8729,7 @@ static void LatticeTriangleTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8926,8 +8773,7 @@ static void LatticeTriangleTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8979,8 +8825,7 @@ static void LatticeTriangleTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9046,8 +8891,7 @@ static void LatticeTriangleTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9080,9 +8924,8 @@ static void LatticeTriangleTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9113,7 +8956,7 @@ static void LatticeTriangleTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9148,9 +8991,8 @@ static void LatticeTriangleTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9192,7 +9034,7 @@ static void LatticeTriangleTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9239,8 +9081,7 @@ static void LatticeTriangleTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9273,9 +9114,8 @@ static void LatticeTriangleTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9306,8 +9146,7 @@ static void LatticeTriangleTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9341,9 +9180,8 @@ static void LatticeTriangleTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9385,8 +9223,7 @@ static void LatticeTriangleTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -10492,9 +10329,8 @@ static void LatticeTriangleTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10542,9 +10378,8 @@ static void LatticeTriangleTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -10603,9 +10438,8 @@ static void LatticeTriangleTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -10678,9 +10512,8 @@ static void LatticeTriangleTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10732,9 +10565,8 @@ static void LatticeTriangleTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -10795,9 +10627,8 @@ static void LatticeTriangleTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -10922,9 +10753,8 @@ static void LatticeTriangleTrackHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -11017,9 +10847,8 @@ static void LatticeTriangleTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -11060,9 +10889,8 @@ static void LatticeTriangleTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -11096,8 +10924,7 @@ static void LatticeTriangleTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -11130,9 +10957,8 @@ static void LatticeTriangleTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11172,9 +10998,8 @@ static void LatticeTriangleTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11208,7 +11033,7 @@ static void LatticeTriangleTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -11249,9 +11074,8 @@ static void LatticeTriangleTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -11301,9 +11125,8 @@ static void LatticeTriangleTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -11644,9 +11467,8 @@ static void LatticeTriangleTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11706,9 +11528,8 @@ static void LatticeTriangleTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -11773,9 +11594,8 @@ static void LatticeTriangleTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11835,9 +11655,8 @@ static void LatticeTriangleTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -11916,9 +11735,8 @@ static void LatticeTriangleTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -11962,9 +11780,8 @@ static void LatticeTriangleTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -12000,8 +11817,7 @@ static void LatticeTriangleTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -12012,9 +11828,8 @@ static void LatticeTriangleTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -12087,9 +11902,8 @@ static void LatticeTriangleTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -12150,9 +11964,8 @@ static void LatticeTriangleTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -12196,9 +12009,8 @@ static void LatticeTriangleTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -12234,8 +12046,7 @@ static void LatticeTriangleTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12247,9 +12058,8 @@ static void LatticeTriangleTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -12321,9 +12131,8 @@ static void LatticeTriangleTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -12433,9 +12242,8 @@ static void LatticeTriangleTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12479,8 +12287,7 @@ static void LatticeTriangleTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -12515,8 +12322,7 @@ static void LatticeTriangleTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -12553,9 +12359,8 @@ static void LatticeTriangleTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); @@ -12645,9 +12450,8 @@ static void LatticeTriangleTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12691,8 +12495,7 @@ static void LatticeTriangleTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -12729,8 +12532,7 @@ static void LatticeTriangleTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -12766,9 +12568,8 @@ static void LatticeTriangleTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); if (direction == 0 || direction == 3) @@ -12876,9 +12677,8 @@ static void LatticeTriangleTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12929,9 +12729,8 @@ static void LatticeTriangleTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -13030,9 +12829,8 @@ static void LatticeTriangleTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -13085,9 +12883,8 @@ static void LatticeTriangleTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -13231,9 +13028,8 @@ static void LatticeTriangleTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13242,9 +13038,8 @@ static void LatticeTriangleTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -13419,9 +13214,8 @@ static void LatticeTriangleTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13430,9 +13224,8 @@ static void LatticeTriangleTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -13667,8 +13460,7 @@ static void LatticeTriangleTrackLeftBankToLeftQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -13720,7 +13512,7 @@ static void LatticeTriangleTrackLeftBankToLeftQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13774,8 +13566,7 @@ static void LatticeTriangleTrackRightBankToRightQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -13827,8 +13618,7 @@ static void LatticeTriangleTrackRightBankToRightQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -13878,8 +13668,7 @@ static void LatticeTriangleTrackLeftQuarterTurn3Tile25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -13934,7 +13723,7 @@ static void LatticeTriangleTrackLeftQuarterTurn3Tile25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13985,8 +13774,7 @@ static void LatticeTriangleTrackRightQuarterTurn3Tile25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -14041,8 +13829,7 @@ static void LatticeTriangleTrackRightQuarterTurn3Tile25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -14163,9 +13950,8 @@ static void LatticeTriangleTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -14209,9 +13995,8 @@ static void LatticeTriangleTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -14247,8 +14032,7 @@ static void LatticeTriangleTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -14284,9 +14068,8 @@ static void LatticeTriangleTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -14326,9 +14109,8 @@ static void LatticeTriangleTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -14450,9 +14232,8 @@ static void LatticeTriangleTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -14496,9 +14277,8 @@ static void LatticeTriangleTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -14534,8 +14314,7 @@ static void LatticeTriangleTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); break; @@ -14570,9 +14349,8 @@ static void LatticeTriangleTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -14612,9 +14390,8 @@ static void LatticeTriangleTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -14763,7 +14540,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -14781,8 +14558,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -14799,8 +14575,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -14832,8 +14607,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -14859,7 +14633,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14877,8 +14651,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -14895,8 +14668,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14928,8 +14700,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -14955,7 +14726,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14973,8 +14744,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -14991,8 +14761,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15024,8 +14793,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15051,7 +14819,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -15069,8 +14837,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -15087,8 +14854,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -15120,8 +14886,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -15202,9 +14967,8 @@ static void LatticeTriangleTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15240,9 +15004,8 @@ static void LatticeTriangleTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15251,8 +15014,7 @@ static void LatticeTriangleTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15295,9 +15057,8 @@ static void LatticeTriangleTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15379,9 +15140,8 @@ static void LatticeTriangleTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15417,9 +15177,8 @@ static void LatticeTriangleTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15428,8 +15187,7 @@ static void LatticeTriangleTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15473,9 +15231,8 @@ static void LatticeTriangleTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15528,9 +15285,8 @@ static void LatticeTriangleTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15566,9 +15322,8 @@ static void LatticeTriangleTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15577,8 +15332,7 @@ static void LatticeTriangleTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15613,9 +15367,8 @@ static void LatticeTriangleTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15707,9 +15460,8 @@ static void LatticeTriangleTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15745,9 +15497,8 @@ static void LatticeTriangleTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15756,8 +15507,7 @@ static void LatticeTriangleTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15793,9 +15543,8 @@ static void LatticeTriangleTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15835,8 +15584,7 @@ static void LatticeTriangleTrackRightEighthToOrthogonalUp25( } PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15900,7 +15648,7 @@ static void LatticeTriangleTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15922,8 +15670,7 @@ static void LatticeTriangleTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15940,8 +15687,7 @@ static void LatticeTriangleTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15973,8 +15719,7 @@ static void LatticeTriangleTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -16000,7 +15745,7 @@ static void LatticeTriangleTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16018,8 +15763,7 @@ static void LatticeTriangleTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -16040,8 +15784,7 @@ static void LatticeTriangleTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16073,8 +15816,7 @@ static void LatticeTriangleTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -16100,7 +15842,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16122,8 +15864,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16140,8 +15881,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16173,8 +15913,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16200,7 +15939,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16218,8 +15957,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16240,8 +15978,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16273,8 +16010,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16332,7 +16068,7 @@ static void LatticeTriangleTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16350,8 +16086,7 @@ static void LatticeTriangleTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16368,8 +16103,7 @@ static void LatticeTriangleTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16401,8 +16135,7 @@ static void LatticeTriangleTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16428,7 +16161,7 @@ static void LatticeTriangleTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16446,8 +16179,7 @@ static void LatticeTriangleTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16464,8 +16196,7 @@ static void LatticeTriangleTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16497,8 +16228,7 @@ static void LatticeTriangleTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16524,7 +16254,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16542,8 +16272,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16560,8 +16289,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16593,8 +16321,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16620,7 +16347,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16638,8 +16365,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16656,8 +16382,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16689,8 +16414,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16748,7 +16472,7 @@ static void LatticeTriangleTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16766,8 +16490,7 @@ static void LatticeTriangleTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16784,8 +16507,7 @@ static void LatticeTriangleTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16817,8 +16539,7 @@ static void LatticeTriangleTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16844,7 +16565,7 @@ static void LatticeTriangleTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16862,8 +16583,7 @@ static void LatticeTriangleTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16880,8 +16600,7 @@ static void LatticeTriangleTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16913,8 +16632,7 @@ static void LatticeTriangleTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16956,7 +16674,7 @@ static void LatticeTriangleTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16978,8 +16696,7 @@ static void LatticeTriangleTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16996,8 +16713,7 @@ static void LatticeTriangleTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17029,8 +16745,7 @@ static void LatticeTriangleTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -17056,7 +16771,7 @@ static void LatticeTriangleTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17074,8 +16789,7 @@ static void LatticeTriangleTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -17096,8 +16810,7 @@ static void LatticeTriangleTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17129,8 +16842,7 @@ static void LatticeTriangleTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -17156,7 +16868,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17178,8 +16890,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -17196,8 +16907,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17229,8 +16939,7 @@ static void LatticeTriangleTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -17256,7 +16965,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17274,8 +16983,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -17296,8 +17004,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17329,8 +17036,7 @@ static void LatticeTriangleTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -17450,9 +17156,8 @@ static void LatticeTriangleTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17488,9 +17193,8 @@ static void LatticeTriangleTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17499,8 +17203,7 @@ static void LatticeTriangleTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -17543,9 +17246,8 @@ static void LatticeTriangleTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17634,9 +17336,8 @@ static void LatticeTriangleTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17672,9 +17373,8 @@ static void LatticeTriangleTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17683,8 +17383,7 @@ static void LatticeTriangleTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17728,9 +17427,8 @@ static void LatticeTriangleTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17783,9 +17481,8 @@ static void LatticeTriangleTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17821,9 +17518,8 @@ static void LatticeTriangleTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17832,8 +17528,7 @@ static void LatticeTriangleTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -17868,9 +17563,8 @@ static void LatticeTriangleTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17967,9 +17661,8 @@ static void LatticeTriangleTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18005,9 +17698,8 @@ static void LatticeTriangleTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18016,8 +17708,7 @@ static void LatticeTriangleTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18053,9 +17744,8 @@ static void LatticeTriangleTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18102,8 +17792,7 @@ static void LatticeTriangleTrackRightEighthBankToOrthogonalUp25( } PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -18209,7 +17898,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32); @@ -18227,8 +17916,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -18245,8 +17933,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18282,9 +17969,8 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18302,8 +17988,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -18320,8 +18005,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18357,9 +18041,8 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -18377,8 +18060,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -18395,8 +18077,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -18428,8 +18109,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); break; @@ -18455,7 +18135,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -18473,8 +18153,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -18491,8 +18170,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -18528,9 +18206,8 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -18548,8 +18225,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -18566,8 +18242,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18603,9 +18278,8 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18623,8 +18297,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -18641,8 +18314,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18674,8 +18346,7 @@ static void LatticeTriangleTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -18701,7 +18372,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18719,8 +18390,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -18737,8 +18407,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18774,9 +18443,8 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18794,8 +18462,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -18812,8 +18479,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18849,9 +18515,8 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -18869,8 +18534,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -18887,8 +18551,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -18920,8 +18583,7 @@ static void LatticeTriangleTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); break; @@ -18947,7 +18609,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); @@ -18965,8 +18627,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -18983,8 +18644,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19020,9 +18680,8 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19040,8 +18699,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -19058,8 +18716,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -19095,9 +18752,8 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19115,8 +18771,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -19133,8 +18788,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -19166,8 +18820,7 @@ static void LatticeTriangleTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32); break; @@ -19197,7 +18850,7 @@ static void LatticeTriangleTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19214,8 +18867,7 @@ static void LatticeTriangleTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19231,8 +18883,7 @@ static void LatticeTriangleTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19272,9 +18923,8 @@ static void LatticeTriangleTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19306,9 +18956,8 @@ static void LatticeTriangleTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -19317,9 +18966,8 @@ static void LatticeTriangleTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -19383,7 +19031,7 @@ static void LatticeTriangleTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19400,8 +19048,7 @@ static void LatticeTriangleTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19418,8 +19065,7 @@ static void LatticeTriangleTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19458,9 +19104,8 @@ static void LatticeTriangleTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19492,9 +19137,8 @@ static void LatticeTriangleTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -19503,9 +19147,8 @@ static void LatticeTriangleTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) diff --git a/src/openrct2/paint/track/coaster/LayDownRollerCoasterInverted.cpp b/src/openrct2/paint/track/coaster/LayDownRollerCoasterInverted.cpp index 2302f34c33..c7e61021cd 100644 --- a/src/openrct2/paint/track/coaster/LayDownRollerCoasterInverted.cpp +++ b/src/openrct2/paint/track/coaster/LayDownRollerCoasterInverted.cpp @@ -649,9 +649,8 @@ static void LayDownRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -693,9 +692,8 @@ static void LayDownRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -727,7 +725,7 @@ static void LayDownRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -762,9 +760,8 @@ static void LayDownRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -797,9 +794,8 @@ static void LayDownRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -860,9 +856,8 @@ static void LayDownRCTrackFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -907,9 +902,8 @@ static void LayDownRCTrackFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -954,9 +948,8 @@ static void LayDownRCTrackLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1001,9 +994,8 @@ static void LayDownRCTrackRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1051,9 +1043,8 @@ static void LayDownRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1093,9 +1084,8 @@ static void LayDownRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1126,7 +1116,7 @@ static void LayDownRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1159,9 +1149,8 @@ static void LayDownRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1194,9 +1183,8 @@ static void LayDownRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1257,9 +1245,8 @@ static void LayDownRCTrackLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1328,9 +1315,8 @@ static void LayDownRCTrackRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1399,9 +1385,8 @@ static void LayDownRCTrack25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1470,9 +1455,8 @@ static void LayDownRCTrack25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1573,9 +1557,8 @@ static void LayDownRCTrackLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1627,9 +1610,8 @@ static void LayDownRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1667,9 +1649,8 @@ static void LayDownRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1697,7 +1678,7 @@ static void LayDownRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1728,9 +1709,8 @@ static void LayDownRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1759,9 +1739,8 @@ static void LayDownRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1812,9 +1791,8 @@ static void LayDownRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1852,9 +1830,8 @@ static void LayDownRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1882,8 +1859,7 @@ static void LayDownRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -1913,9 +1889,8 @@ static void LayDownRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1944,9 +1919,8 @@ static void LayDownRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2020,8 +1994,7 @@ static void LayDownRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2059,9 +2032,8 @@ static void LayDownRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2096,9 +2068,8 @@ static void LayDownRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2133,7 +2104,7 @@ static void LayDownRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2187,8 +2158,7 @@ static void LayDownRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2226,9 +2196,8 @@ static void LayDownRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2263,9 +2232,8 @@ static void LayDownRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2300,8 +2268,7 @@ static void LayDownRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + kSupportHeight, 0, 0); @@ -2354,9 +2321,8 @@ static void LayDownRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2398,8 +2364,7 @@ static void LayDownRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2431,9 +2396,8 @@ static void LayDownRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2497,9 +2461,8 @@ static void LayDownRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2541,8 +2504,7 @@ static void LayDownRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2574,9 +2536,8 @@ static void LayDownRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2636,9 +2597,8 @@ static void LayDownRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2680,9 +2640,8 @@ static void LayDownRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2733,9 +2692,8 @@ static void LayDownRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2777,9 +2735,8 @@ static void LayDownRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3064,9 +3021,8 @@ static void LayDownRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3098,9 +3054,8 @@ static void LayDownRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3109,8 +3064,7 @@ static void LayDownRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3142,9 +3096,8 @@ static void LayDownRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3246,9 +3199,8 @@ static void LayDownRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3280,9 +3232,8 @@ static void LayDownRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3291,8 +3242,7 @@ static void LayDownRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3325,9 +3275,8 @@ static void LayDownRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3412,8 +3361,7 @@ static void LayDownRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3452,9 +3400,8 @@ static void LayDownRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3486,9 +3433,8 @@ static void LayDownRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3497,8 +3443,7 @@ static void LayDownRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3530,9 +3475,8 @@ static void LayDownRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3599,7 +3543,7 @@ static void LayDownRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3638,9 +3582,8 @@ static void LayDownRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3672,9 +3615,8 @@ static void LayDownRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3683,8 +3625,7 @@ static void LayDownRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3717,9 +3658,8 @@ static void LayDownRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3800,7 +3740,7 @@ static void LayDownRCTrackDiagBrakes( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement, SupportType supportType) { - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; TrackPaintUtilDiagTilesPaint( session, -3, height + 24, direction, trackSequence, kLaydownDiagBrakeImages, defaultDiagTileOffsets, @@ -3820,7 +3760,7 @@ static void LayDownRCTrackDiagBlockBrakes( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement, SupportType supportType) { - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; TrackPaintUtilDiagTilesPaint( session, -3, height + 24, direction, trackSequence, kLaydownDiagBlockBrakeImages[trackElement.isBrakeClosed()], @@ -3869,7 +3809,7 @@ static void LayDownRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3900,8 +3840,7 @@ static void LayDownRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -3931,8 +3870,7 @@ static void LayDownRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3964,8 +3902,7 @@ static void LayDownRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4011,7 +3948,7 @@ static void LayDownRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4028,8 +3965,7 @@ static void LayDownRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -4045,8 +3981,7 @@ static void LayDownRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4064,8 +3999,7 @@ static void LayDownRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4129,7 +4063,7 @@ static void LayDownRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4160,8 +4094,7 @@ static void LayDownRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4191,8 +4124,7 @@ static void LayDownRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4224,8 +4156,7 @@ static void LayDownRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4271,7 +4202,7 @@ static void LayDownRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4288,8 +4219,7 @@ static void LayDownRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -4305,8 +4235,7 @@ static void LayDownRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4324,8 +4253,7 @@ static void LayDownRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4375,7 +4303,7 @@ static void LayDownRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4392,8 +4320,7 @@ static void LayDownRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -4409,8 +4336,7 @@ static void LayDownRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4428,8 +4354,7 @@ static void LayDownRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4493,7 +4418,7 @@ static void LayDownRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4524,8 +4449,7 @@ static void LayDownRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4555,8 +4479,7 @@ static void LayDownRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4588,8 +4511,7 @@ static void LayDownRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4635,7 +4557,7 @@ static void LayDownRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4652,8 +4574,7 @@ static void LayDownRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4669,8 +4590,7 @@ static void LayDownRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4688,8 +4608,7 @@ static void LayDownRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4735,7 +4654,7 @@ static void LayDownRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4752,8 +4671,7 @@ static void LayDownRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -4769,8 +4687,7 @@ static void LayDownRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4788,8 +4705,7 @@ static void LayDownRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4839,7 +4755,7 @@ static void LayDownRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -4855,8 +4771,7 @@ static void LayDownRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -4871,8 +4786,7 @@ static void LayDownRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -4889,8 +4803,7 @@ static void LayDownRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4936,7 +4849,7 @@ static void LayDownRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4953,8 +4866,7 @@ static void LayDownRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -4970,8 +4882,7 @@ static void LayDownRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4989,8 +4900,7 @@ static void LayDownRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5040,7 +4950,7 @@ static void LayDownRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5057,8 +4967,7 @@ static void LayDownRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5074,8 +4983,7 @@ static void LayDownRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5093,8 +5001,7 @@ static void LayDownRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5144,7 +5051,7 @@ static void LayDownRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5161,8 +5068,7 @@ static void LayDownRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5178,8 +5084,7 @@ static void LayDownRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5197,8 +5102,7 @@ static void LayDownRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5244,7 +5148,7 @@ static void LayDownRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5261,8 +5165,7 @@ static void LayDownRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5278,8 +5181,7 @@ static void LayDownRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5297,9 +5199,8 @@ static void LayDownRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5350,7 +5251,7 @@ static void LayDownRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5367,8 +5268,7 @@ static void LayDownRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5384,8 +5284,7 @@ static void LayDownRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5403,9 +5302,8 @@ static void LayDownRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5456,7 +5354,7 @@ static void LayDownRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5473,8 +5371,7 @@ static void LayDownRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5490,8 +5387,7 @@ static void LayDownRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5509,9 +5405,8 @@ static void LayDownRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5562,7 +5457,7 @@ static void LayDownRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5579,8 +5474,7 @@ static void LayDownRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5596,8 +5490,7 @@ static void LayDownRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5615,9 +5508,8 @@ static void LayDownRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5668,7 +5560,7 @@ static void LayDownRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5685,8 +5577,7 @@ static void LayDownRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5702,8 +5593,7 @@ static void LayDownRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5721,8 +5611,7 @@ static void LayDownRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5768,7 +5657,7 @@ static void LayDownRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5785,8 +5674,7 @@ static void LayDownRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5802,8 +5690,7 @@ static void LayDownRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5821,8 +5708,7 @@ static void LayDownRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5868,7 +5754,7 @@ static void LayDownRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5885,8 +5771,7 @@ static void LayDownRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5902,8 +5787,7 @@ static void LayDownRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5921,8 +5805,7 @@ static void LayDownRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -5968,7 +5851,7 @@ static void LayDownRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5985,8 +5868,7 @@ static void LayDownRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6002,8 +5884,7 @@ static void LayDownRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6021,8 +5902,7 @@ static void LayDownRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6068,7 +5948,7 @@ static void LayDownRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6084,8 +5964,7 @@ static void LayDownRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -6100,8 +5979,7 @@ static void LayDownRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6118,8 +5996,7 @@ static void LayDownRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6165,7 +6042,7 @@ static void LayDownRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6181,8 +6058,7 @@ static void LayDownRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -6197,8 +6073,7 @@ static void LayDownRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6215,8 +6090,7 @@ static void LayDownRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6262,7 +6136,7 @@ static void LayDownRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6279,8 +6153,7 @@ static void LayDownRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6296,8 +6169,7 @@ static void LayDownRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6315,8 +6187,7 @@ static void LayDownRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6362,7 +6233,7 @@ static void LayDownRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6379,8 +6250,7 @@ static void LayDownRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6396,8 +6266,7 @@ static void LayDownRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6415,8 +6284,7 @@ static void LayDownRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -6462,7 +6330,7 @@ static void LayDownRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6479,8 +6347,7 @@ static void LayDownRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6496,8 +6363,7 @@ static void LayDownRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6515,9 +6381,8 @@ static void LayDownRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -6568,7 +6433,7 @@ static void LayDownRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6585,8 +6450,7 @@ static void LayDownRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6602,8 +6466,7 @@ static void LayDownRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6621,9 +6484,8 @@ static void LayDownRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -6687,9 +6549,8 @@ static void LayDownRCTrackLeftFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -6725,9 +6586,8 @@ static void LayDownRCTrackLeftFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6765,9 +6625,8 @@ static void LayDownRCTrackLeftFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6806,9 +6665,8 @@ static void LayDownRCTrackRightFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -6843,9 +6701,8 @@ static void LayDownRCTrackRightFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6883,9 +6740,8 @@ static void LayDownRCTrackRightFlyerTwistDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6953,9 +6809,8 @@ static void LayDownRCTrackFlyerHalfLoopDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -7061,9 +6916,8 @@ static void LayDownRCTrackLeftFlyerCorkscrewDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7139,9 +6993,8 @@ static void LayDownRCTrackLeftFlyerCorkscrewDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7224,9 +7077,8 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7268,9 +7120,8 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7302,7 +7153,7 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7337,9 +7188,8 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7372,9 +7222,8 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7428,9 +7277,8 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7472,9 +7320,8 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7506,8 +7353,7 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7541,9 +7387,8 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7576,9 +7421,8 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7632,9 +7476,8 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7676,9 +7519,8 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7710,7 +7552,7 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7745,9 +7587,8 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7780,9 +7621,8 @@ static void LayDownRCTrackLeftQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7836,9 +7676,8 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7880,9 +7719,8 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7914,8 +7752,7 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7949,9 +7786,8 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7984,9 +7820,8 @@ static void LayDownRCTrackRightQuarterBankedHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -8119,9 +7954,8 @@ static void LayDownRCTrackHalfLoopInvertedUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); diff --git a/src/openrct2/paint/track/coaster/LimLaunchedRollerCoaster.cpp b/src/openrct2/paint/track/coaster/LimLaunchedRollerCoaster.cpp index fcd22ebecd..b4875b7f95 100644 --- a/src/openrct2/paint/track/coaster/LimLaunchedRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/LimLaunchedRollerCoaster.cpp @@ -124,9 +124,8 @@ static void LimLaunchedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -154,9 +153,8 @@ static void LimLaunchedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -188,8 +186,7 @@ static void LimLaunchedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -216,9 +213,8 @@ static void LimLaunchedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -252,9 +248,8 @@ static void LimLaunchedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -286,7 +281,7 @@ static void LimLaunchedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -314,9 +309,8 @@ static void LimLaunchedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -361,9 +355,8 @@ static void LimLaunchedRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -639,9 +632,8 @@ static void LimLaunchedRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -685,9 +677,8 @@ static void LimLaunchedRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -740,9 +731,8 @@ static void LimLaunchedRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 16); @@ -801,9 +791,8 @@ static void LimLaunchedRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -847,9 +836,8 @@ static void LimLaunchedRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -902,9 +890,8 @@ static void LimLaunchedRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 16); @@ -962,9 +949,8 @@ static void LimLaunchedRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 16); @@ -1008,9 +994,8 @@ static void LimLaunchedRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1064,9 +1049,8 @@ static void LimLaunchedRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1124,9 +1108,8 @@ static void LimLaunchedRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 16); @@ -1170,9 +1153,8 @@ static void LimLaunchedRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1226,9 +1208,8 @@ static void LimLaunchedRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1331,9 +1312,8 @@ static void LimLaunchedRCTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1392,9 +1372,8 @@ static void LimLaunchedRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1454,9 +1433,8 @@ static void LimLaunchedRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2003,9 +1981,8 @@ static void LimLaunchedRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2049,9 +2026,8 @@ static void LimLaunchedRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2104,9 +2080,8 @@ static void LimLaunchedRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2171,9 +2146,8 @@ static void LimLaunchedRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2217,9 +2191,8 @@ static void LimLaunchedRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2272,9 +2245,8 @@ static void LimLaunchedRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2399,9 +2371,8 @@ static void LimLaunchedRCTrackHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -2811,9 +2782,8 @@ static void LimLaunchedRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -2853,9 +2823,8 @@ static void LimLaunchedRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2887,8 +2856,7 @@ static void LimLaunchedRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -2899,9 +2867,8 @@ static void LimLaunchedRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2966,9 +2933,8 @@ static void LimLaunchedRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3025,9 +2991,8 @@ static void LimLaunchedRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -3067,9 +3032,8 @@ static void LimLaunchedRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3101,8 +3065,7 @@ static void LimLaunchedRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3114,9 +3077,8 @@ static void LimLaunchedRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3180,9 +3142,8 @@ static void LimLaunchedRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3284,9 +3245,8 @@ static void LimLaunchedRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3326,8 +3286,7 @@ static void LimLaunchedRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -3358,8 +3317,7 @@ static void LimLaunchedRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -3392,9 +3350,8 @@ static void LimLaunchedRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); @@ -3476,9 +3433,8 @@ static void LimLaunchedRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3518,8 +3474,7 @@ static void LimLaunchedRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -3552,8 +3507,7 @@ static void LimLaunchedRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -3585,9 +3539,8 @@ static void LimLaunchedRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); if (direction == 0 || direction == 3) @@ -3693,9 +3646,8 @@ static void LimLaunchedRCTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3742,9 +3694,8 @@ static void LimLaunchedRCTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3833,9 +3784,8 @@ static void LimLaunchedRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3882,9 +3832,8 @@ static void LimLaunchedRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4019,9 +3968,8 @@ static void LimLaunchedRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4030,9 +3978,8 @@ static void LimLaunchedRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -4205,9 +4152,8 @@ static void LimLaunchedRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4216,9 +4162,8 @@ static void LimLaunchedRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -4336,8 +4281,7 @@ static void LimLaunchedRCTrackLeftBankToLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -4389,7 +4333,7 @@ static void LimLaunchedRCTrackLeftBankToLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4443,8 +4387,7 @@ static void LimLaunchedRCTrackRightBankToRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -4496,8 +4439,7 @@ static void LimLaunchedRCTrackRightBankToRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -4547,8 +4489,7 @@ static void LimLaunchedRCTrackLeftQuarterTurn325DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -4603,7 +4544,7 @@ static void LimLaunchedRCTrackLeftQuarterTurn325DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4654,8 +4595,7 @@ static void LimLaunchedRCTrackRightQuarterTurn325DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -4710,8 +4650,7 @@ static void LimLaunchedRCTrackRightQuarterTurn325DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -4820,9 +4759,8 @@ static void LimLaunchedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -4862,9 +4800,8 @@ static void LimLaunchedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -4896,8 +4833,7 @@ static void LimLaunchedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -4929,9 +4865,8 @@ static void LimLaunchedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -4967,9 +4902,8 @@ static void LimLaunchedRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -5079,9 +5013,8 @@ static void LimLaunchedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -5121,9 +5054,8 @@ static void LimLaunchedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -5155,8 +5087,7 @@ static void LimLaunchedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); break; @@ -5187,9 +5118,8 @@ static void LimLaunchedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -5225,9 +5155,8 @@ static void LimLaunchedRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -5379,7 +5308,7 @@ static void LimLaunchedRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -5397,8 +5326,7 @@ static void LimLaunchedRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -5415,8 +5343,7 @@ static void LimLaunchedRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -5448,8 +5375,7 @@ static void LimLaunchedRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -5475,7 +5401,7 @@ static void LimLaunchedRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5493,8 +5419,7 @@ static void LimLaunchedRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5511,8 +5436,7 @@ static void LimLaunchedRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5544,8 +5468,7 @@ static void LimLaunchedRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5571,7 +5494,7 @@ static void LimLaunchedRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5589,8 +5512,7 @@ static void LimLaunchedRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5607,8 +5529,7 @@ static void LimLaunchedRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5640,8 +5561,7 @@ static void LimLaunchedRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5667,7 +5587,7 @@ static void LimLaunchedRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -5685,8 +5605,7 @@ static void LimLaunchedRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -5703,8 +5622,7 @@ static void LimLaunchedRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -5736,8 +5654,7 @@ static void LimLaunchedRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; diff --git a/src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp b/src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp index 0fafd4ee9b..03ed8f941c 100644 --- a/src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp @@ -705,8 +705,7 @@ static void LoopingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -740,9 +739,8 @@ static void LoopingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -774,7 +772,7 @@ static void LoopingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -809,9 +807,8 @@ static void LoopingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -853,7 +850,7 @@ static void LoopingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1084,8 +1081,7 @@ static void LoopingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1119,9 +1115,8 @@ static void LoopingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1153,7 +1148,7 @@ static void LoopingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1188,9 +1183,8 @@ static void LoopingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1235,7 +1229,7 @@ static void LoopingRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1568,8 +1562,7 @@ static void LoopingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1601,9 +1594,8 @@ static void LoopingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1634,7 +1626,7 @@ static void LoopingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1667,9 +1659,8 @@ static void LoopingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1711,7 +1702,7 @@ static void LoopingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1758,8 +1749,7 @@ static void LoopingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1791,9 +1781,8 @@ static void LoopingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1824,8 +1813,7 @@ static void LoopingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -1857,9 +1845,8 @@ static void LoopingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1901,8 +1888,7 @@ static void LoopingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1967,8 +1953,7 @@ static void LoopingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1998,9 +1983,8 @@ static void LoopingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2031,9 +2015,8 @@ static void LoopingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2075,7 +2058,7 @@ static void LoopingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2122,8 +2105,7 @@ static void LoopingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2153,9 +2135,8 @@ static void LoopingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2186,9 +2167,8 @@ static void LoopingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2230,8 +2210,7 @@ static void LoopingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2272,9 +2251,8 @@ static void LoopingRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2302,9 +2280,8 @@ static void LoopingRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2360,8 +2337,7 @@ static void LoopingRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -2388,9 +2364,8 @@ static void LoopingRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2424,9 +2399,8 @@ static void LoopingRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2482,7 +2456,7 @@ static void LoopingRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -2510,9 +2484,8 @@ static void LoopingRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2549,9 +2522,8 @@ static void LoopingRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2861,8 +2833,7 @@ static void LoopingRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2896,8 +2867,7 @@ static void LoopingRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2938,7 +2908,7 @@ static void LoopingRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2997,8 +2967,7 @@ static void LoopingRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3032,8 +3001,7 @@ static void LoopingRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3077,7 +3045,7 @@ static void LoopingRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3129,8 +3097,7 @@ static void LoopingRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3173,7 +3140,7 @@ static void LoopingRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3216,8 +3183,7 @@ static void LoopingRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3267,8 +3233,7 @@ static void LoopingRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3336,9 +3301,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3373,8 +3337,7 @@ static void LoopingRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3418,9 +3381,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3465,9 +3427,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3502,8 +3463,7 @@ static void LoopingRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3543,9 +3503,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3595,9 +3554,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3632,8 +3590,7 @@ static void LoopingRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3678,9 +3635,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3725,9 +3681,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3762,8 +3717,7 @@ static void LoopingRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3802,9 +3756,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3884,9 +3837,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3921,9 +3873,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3955,7 +3906,7 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3990,9 +3941,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4037,9 +3987,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4084,9 +4033,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4121,9 +4069,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4155,8 +4102,7 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4190,9 +4136,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4232,9 +4177,8 @@ static void LoopingRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4284,9 +4228,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4321,9 +4264,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4355,8 +4297,7 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4390,9 +4331,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4437,9 +4377,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4484,9 +4423,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4521,9 +4459,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4555,7 +4492,7 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4590,9 +4527,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4632,9 +4568,8 @@ static void LoopingRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5020,9 +4955,8 @@ static void LoopingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5054,9 +4988,8 @@ static void LoopingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5065,8 +4998,7 @@ static void LoopingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5105,9 +5037,8 @@ static void LoopingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5182,9 +5113,8 @@ static void LoopingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5216,9 +5146,8 @@ static void LoopingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5227,8 +5156,7 @@ static void LoopingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5268,9 +5196,8 @@ static void LoopingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5363,9 +5290,8 @@ static void LoopingRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5397,9 +5323,8 @@ static void LoopingRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5408,8 +5333,7 @@ static void LoopingRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5448,9 +5372,8 @@ static void LoopingRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5525,9 +5448,8 @@ static void LoopingRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5559,9 +5481,8 @@ static void LoopingRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5570,8 +5491,7 @@ static void LoopingRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5611,9 +5531,8 @@ static void LoopingRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5716,7 +5635,7 @@ static void LoopingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5747,8 +5666,7 @@ static void LoopingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5778,8 +5696,7 @@ static void LoopingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5838,8 +5755,7 @@ static void LoopingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5879,7 +5795,7 @@ static void LoopingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5910,8 +5826,7 @@ static void LoopingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -5941,8 +5856,7 @@ static void LoopingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6001,8 +5915,7 @@ static void LoopingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6042,7 +5955,7 @@ static void LoopingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6073,8 +5986,7 @@ static void LoopingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6104,8 +6016,7 @@ static void LoopingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6164,8 +6075,7 @@ static void LoopingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6205,7 +6115,7 @@ static void LoopingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6236,8 +6146,7 @@ static void LoopingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6267,8 +6176,7 @@ static void LoopingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6327,8 +6235,7 @@ static void LoopingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6368,7 +6275,7 @@ static void LoopingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6399,8 +6306,7 @@ static void LoopingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6430,8 +6336,7 @@ static void LoopingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6490,8 +6395,7 @@ static void LoopingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6531,7 +6435,7 @@ static void LoopingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6562,8 +6466,7 @@ static void LoopingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6593,8 +6496,7 @@ static void LoopingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6653,8 +6555,7 @@ static void LoopingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6694,7 +6595,7 @@ static void LoopingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6725,8 +6626,7 @@ static void LoopingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6756,8 +6656,7 @@ static void LoopingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6816,8 +6715,7 @@ static void LoopingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6857,7 +6755,7 @@ static void LoopingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6888,8 +6786,7 @@ static void LoopingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6919,8 +6816,7 @@ static void LoopingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6979,8 +6875,7 @@ static void LoopingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -7020,7 +6915,7 @@ static void LoopingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7050,8 +6945,7 @@ static void LoopingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -7080,8 +6974,7 @@ static void LoopingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7139,8 +7032,7 @@ static void LoopingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -7181,7 +7073,7 @@ static void LoopingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7212,8 +7104,7 @@ static void LoopingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7243,8 +7134,7 @@ static void LoopingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7303,8 +7193,7 @@ static void LoopingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7344,7 +7233,7 @@ static void LoopingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7375,8 +7264,7 @@ static void LoopingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7406,8 +7294,7 @@ static void LoopingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7466,8 +7353,7 @@ static void LoopingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7507,7 +7393,7 @@ static void LoopingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7538,8 +7424,7 @@ static void LoopingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7569,8 +7454,7 @@ static void LoopingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7629,8 +7513,7 @@ static void LoopingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7656,7 +7539,7 @@ static void LoopingRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7676,8 +7559,7 @@ static void LoopingRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7693,8 +7575,7 @@ static void LoopingRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7725,8 +7606,7 @@ static void LoopingRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7752,7 +7632,7 @@ static void LoopingRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7769,8 +7649,7 @@ static void LoopingRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7789,8 +7668,7 @@ static void LoopingRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7821,8 +7699,7 @@ static void LoopingRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7848,7 +7725,7 @@ static void LoopingRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7868,8 +7745,7 @@ static void LoopingRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7885,8 +7761,7 @@ static void LoopingRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7917,8 +7792,7 @@ static void LoopingRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7944,7 +7818,7 @@ static void LoopingRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7961,8 +7835,7 @@ static void LoopingRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7981,8 +7854,7 @@ static void LoopingRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8013,8 +7885,7 @@ static void LoopingRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8040,7 +7911,7 @@ static void LoopingRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8060,8 +7931,7 @@ static void LoopingRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8077,8 +7947,7 @@ static void LoopingRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8109,8 +7978,7 @@ static void LoopingRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8136,7 +8004,7 @@ static void LoopingRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8153,8 +8021,7 @@ static void LoopingRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8173,8 +8040,7 @@ static void LoopingRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8205,8 +8071,7 @@ static void LoopingRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8232,7 +8097,7 @@ static void LoopingRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8252,8 +8117,7 @@ static void LoopingRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8269,8 +8133,7 @@ static void LoopingRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8301,8 +8164,7 @@ static void LoopingRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8328,7 +8190,7 @@ static void LoopingRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8345,8 +8207,7 @@ static void LoopingRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8365,8 +8226,7 @@ static void LoopingRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8397,8 +8257,7 @@ static void LoopingRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8424,7 +8283,7 @@ static void LoopingRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8443,8 +8302,7 @@ static void LoopingRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -8459,8 +8317,7 @@ static void LoopingRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8490,8 +8347,7 @@ static void LoopingRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -8518,7 +8374,7 @@ static void LoopingRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8534,8 +8390,7 @@ static void LoopingRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -8553,8 +8408,7 @@ static void LoopingRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -8584,8 +8438,7 @@ static void LoopingRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -8612,7 +8465,7 @@ static void LoopingRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8632,8 +8485,7 @@ static void LoopingRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8649,8 +8501,7 @@ static void LoopingRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8681,8 +8532,7 @@ static void LoopingRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8708,7 +8558,7 @@ static void LoopingRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8725,8 +8575,7 @@ static void LoopingRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8745,8 +8594,7 @@ static void LoopingRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8777,8 +8625,7 @@ static void LoopingRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8804,7 +8651,7 @@ static void LoopingRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8821,8 +8668,7 @@ static void LoopingRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8838,8 +8684,7 @@ static void LoopingRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8870,8 +8715,7 @@ static void LoopingRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8897,7 +8741,7 @@ static void LoopingRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8914,8 +8758,7 @@ static void LoopingRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8931,8 +8774,7 @@ static void LoopingRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8963,8 +8805,7 @@ static void LoopingRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9042,8 +8883,7 @@ static void LoopingRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9088,7 +8928,7 @@ static void LoopingRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9132,8 +8972,7 @@ static void LoopingRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9185,8 +9024,7 @@ static void LoopingRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9252,8 +9090,7 @@ static void LoopingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9286,9 +9123,8 @@ static void LoopingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9319,7 +9155,7 @@ static void LoopingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9354,9 +9190,8 @@ static void LoopingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9398,7 +9233,7 @@ static void LoopingRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9445,8 +9280,7 @@ static void LoopingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9479,9 +9313,8 @@ static void LoopingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9512,8 +9345,7 @@ static void LoopingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9547,9 +9379,8 @@ static void LoopingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9591,8 +9422,7 @@ static void LoopingRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; diff --git a/src/openrct2/paint/track/coaster/MineRide.cpp b/src/openrct2/paint/track/coaster/MineRide.cpp index 3cc9b19db0..4d5010756b 100644 --- a/src/openrct2/paint/track/coaster/MineRide.cpp +++ b/src/openrct2/paint/track/coaster/MineRide.cpp @@ -211,8 +211,7 @@ static void MineRideTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -246,9 +245,8 @@ static void MineRideTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -280,7 +278,7 @@ static void MineRideTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -315,9 +313,8 @@ static void MineRideTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -342,7 +339,7 @@ static void MineRideTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -588,8 +585,7 @@ static void MineRideTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -623,9 +619,8 @@ static void MineRideTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -657,7 +652,7 @@ static void MineRideTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -692,9 +687,8 @@ static void MineRideTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -743,7 +737,7 @@ static void MineRideTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1081,8 +1075,7 @@ static void MineRideTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1112,9 +1105,8 @@ static void MineRideTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1145,9 +1137,8 @@ static void MineRideTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1190,7 +1181,7 @@ static void MineRideTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1237,8 +1228,7 @@ static void MineRideTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1268,9 +1258,8 @@ static void MineRideTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1301,9 +1290,8 @@ static void MineRideTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1345,8 +1333,7 @@ static void MineRideTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1393,8 +1380,7 @@ static void MineRideTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1428,8 +1414,7 @@ static void MineRideTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1472,7 +1457,7 @@ static void MineRideTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1532,8 +1517,7 @@ static void MineRideTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1567,8 +1551,7 @@ static void MineRideTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1614,7 +1597,7 @@ static void MineRideTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1680,9 +1663,8 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1717,8 +1699,7 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1764,9 +1745,8 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1813,9 +1793,8 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1850,8 +1829,7 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1893,9 +1871,8 @@ static void MineRideTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1950,9 +1927,8 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1988,8 +1964,7 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2039,9 +2014,8 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2091,9 +2065,8 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2129,8 +2102,7 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2173,9 +2145,8 @@ static void MineRideTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2257,9 +2228,8 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2294,9 +2264,8 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2328,7 +2297,7 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2363,9 +2332,8 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2412,9 +2380,8 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2461,9 +2428,8 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2498,9 +2464,8 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2532,8 +2497,7 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2567,9 +2531,8 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2611,9 +2574,8 @@ static void MineRideTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2664,9 +2626,8 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2701,9 +2662,8 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2735,8 +2695,7 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2770,9 +2729,8 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2819,9 +2777,8 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2868,9 +2825,8 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2905,9 +2861,8 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2939,7 +2894,7 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2974,9 +2929,8 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3018,9 +2972,8 @@ static void MineRideTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3162,9 +3115,8 @@ static void MineRideTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3196,9 +3148,8 @@ static void MineRideTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3207,8 +3158,7 @@ static void MineRideTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3241,9 +3191,8 @@ static void MineRideTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3319,9 +3268,8 @@ static void MineRideTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3353,9 +3301,8 @@ static void MineRideTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3364,8 +3311,7 @@ static void MineRideTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3399,9 +3345,8 @@ static void MineRideTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3495,9 +3440,8 @@ static void MineRideTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3529,9 +3473,8 @@ static void MineRideTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3540,8 +3483,7 @@ static void MineRideTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3574,9 +3516,8 @@ static void MineRideTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3652,9 +3593,8 @@ static void MineRideTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3686,9 +3626,8 @@ static void MineRideTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3697,8 +3636,7 @@ static void MineRideTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3732,9 +3670,8 @@ static void MineRideTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3798,7 +3735,7 @@ static void MineRideTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3815,8 +3752,7 @@ static void MineRideTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -3832,8 +3768,7 @@ static void MineRideTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3852,8 +3787,7 @@ static void MineRideTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -3879,7 +3813,7 @@ static void MineRideTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3896,8 +3830,7 @@ static void MineRideTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3913,8 +3846,7 @@ static void MineRideTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3933,8 +3865,7 @@ static void MineRideTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3960,7 +3891,7 @@ static void MineRideTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3977,8 +3908,7 @@ static void MineRideTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -3994,8 +3924,7 @@ static void MineRideTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4014,8 +3943,7 @@ static void MineRideTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4041,7 +3969,7 @@ static void MineRideTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4058,8 +3986,7 @@ static void MineRideTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4075,8 +4002,7 @@ static void MineRideTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4095,8 +4021,7 @@ static void MineRideTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4122,7 +4047,7 @@ static void MineRideTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -4138,8 +4063,7 @@ static void MineRideTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -4154,8 +4078,7 @@ static void MineRideTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -4173,8 +4096,7 @@ static void MineRideTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -4201,7 +4123,7 @@ static void MineRideTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4218,8 +4140,7 @@ static void MineRideTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4235,8 +4156,7 @@ static void MineRideTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4255,8 +4175,7 @@ static void MineRideTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4282,7 +4201,7 @@ static void MineRideTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4302,8 +4221,7 @@ static void MineRideTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4319,8 +4237,7 @@ static void MineRideTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4339,8 +4256,7 @@ static void MineRideTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4366,7 +4282,7 @@ static void MineRideTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4383,8 +4299,7 @@ static void MineRideTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4403,8 +4318,7 @@ static void MineRideTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4423,8 +4337,7 @@ static void MineRideTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4450,7 +4363,7 @@ static void MineRideTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4470,8 +4383,7 @@ static void MineRideTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4487,8 +4399,7 @@ static void MineRideTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4507,8 +4418,7 @@ static void MineRideTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4534,7 +4444,7 @@ static void MineRideTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4551,8 +4461,7 @@ static void MineRideTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4571,8 +4480,7 @@ static void MineRideTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4591,8 +4499,7 @@ static void MineRideTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4618,7 +4525,7 @@ static void MineRideTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4638,8 +4545,7 @@ static void MineRideTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4655,8 +4561,7 @@ static void MineRideTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4675,8 +4580,7 @@ static void MineRideTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4702,7 +4606,7 @@ static void MineRideTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4719,8 +4623,7 @@ static void MineRideTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4739,8 +4642,7 @@ static void MineRideTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4759,8 +4661,7 @@ static void MineRideTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4786,7 +4687,7 @@ static void MineRideTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4806,8 +4707,7 @@ static void MineRideTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4823,8 +4723,7 @@ static void MineRideTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4843,8 +4742,7 @@ static void MineRideTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4870,7 +4768,7 @@ static void MineRideTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4887,8 +4785,7 @@ static void MineRideTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4907,8 +4804,7 @@ static void MineRideTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4927,8 +4823,7 @@ static void MineRideTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4954,7 +4849,7 @@ static void MineRideTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -4973,8 +4868,7 @@ static void MineRideTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -4989,8 +4883,7 @@ static void MineRideTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5008,8 +4901,7 @@ static void MineRideTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -5036,7 +4928,7 @@ static void MineRideTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5052,8 +4944,7 @@ static void MineRideTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -5071,8 +4962,7 @@ static void MineRideTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5090,8 +4980,7 @@ static void MineRideTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -5118,7 +5007,7 @@ static void MineRideTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5138,8 +5027,7 @@ static void MineRideTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5155,8 +5043,7 @@ static void MineRideTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5175,8 +5062,7 @@ static void MineRideTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5202,7 +5088,7 @@ static void MineRideTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5219,8 +5105,7 @@ static void MineRideTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5239,8 +5124,7 @@ static void MineRideTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5259,8 +5143,7 @@ static void MineRideTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5286,7 +5169,7 @@ static void MineRideTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5303,8 +5186,7 @@ static void MineRideTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5320,8 +5202,7 @@ static void MineRideTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5340,8 +5221,7 @@ static void MineRideTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5367,7 +5247,7 @@ static void MineRideTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5384,8 +5264,7 @@ static void MineRideTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5401,8 +5280,7 @@ static void MineRideTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5421,8 +5299,7 @@ static void MineRideTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; diff --git a/src/openrct2/paint/track/coaster/MineTrainCoaster.cpp b/src/openrct2/paint/track/coaster/MineTrainCoaster.cpp index d7ec94274d..31ef20cea1 100644 --- a/src/openrct2/paint/track/coaster/MineTrainCoaster.cpp +++ b/src/openrct2/paint/track/coaster/MineTrainCoaster.cpp @@ -614,8 +614,7 @@ static void MineTrainRCTrackLeftQuarterTurn5( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -646,9 +645,8 @@ static void MineTrainRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -681,9 +679,8 @@ static void MineTrainRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -691,8 +688,7 @@ static void MineTrainRCTrackLeftQuarterTurn5( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -723,9 +719,8 @@ static void MineTrainRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -989,8 +984,7 @@ static void MineTrainRCTrackBankedLeftQuarterTurn5( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; case 2: @@ -1021,9 +1015,8 @@ static void MineTrainRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -1057,9 +1050,8 @@ static void MineTrainRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1067,8 +1059,7 @@ static void MineTrainRCTrackBankedLeftQuarterTurn5( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; case 5: @@ -1099,9 +1090,8 @@ static void MineTrainRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1480,8 +1470,7 @@ static void MineTrainRCTrackLeftQuarterTurn525DegUp( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1514,9 +1503,8 @@ static void MineTrainRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1550,9 +1538,8 @@ static void MineTrainRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1560,8 +1547,7 @@ static void MineTrainRCTrackLeftQuarterTurn525DegUp( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1594,9 +1580,8 @@ static void MineTrainRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1698,8 +1683,7 @@ static void MineTrainRCTrackRightQuarterTurn525DegUp( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1738,9 +1722,8 @@ static void MineTrainRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1780,9 +1763,8 @@ static void MineTrainRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1790,8 +1772,7 @@ static void MineTrainRCTrackRightQuarterTurn525DegUp( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1830,9 +1811,8 @@ static void MineTrainRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1987,9 +1967,8 @@ static void MineTrainRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2027,9 +2006,8 @@ static void MineTrainRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2160,9 +2138,8 @@ static void MineTrainRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2200,9 +2177,8 @@ static void MineTrainRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2332,8 +2308,7 @@ static void MineTrainRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2475,8 +2450,7 @@ static void MineTrainRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2591,8 +2565,7 @@ static void MineTrainRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -2691,8 +2664,7 @@ static void MineTrainRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2809,15 +2781,13 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2855,8 +2825,7 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2907,15 +2876,13 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2967,15 +2934,13 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3012,8 +2977,7 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3060,15 +3024,13 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3125,15 +3087,13 @@ static void MineTrainRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3171,8 +3131,7 @@ static void MineTrainRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3224,15 +3183,13 @@ static void MineTrainRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3284,15 +3241,13 @@ static void MineTrainRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3330,8 +3285,7 @@ static void MineTrainRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3377,15 +3331,13 @@ static void MineTrainRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3472,15 +3424,13 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3488,8 +3438,7 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3528,9 +3477,8 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3570,13 +3518,12 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3584,8 +3531,7 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3624,9 +3570,8 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3678,15 +3623,13 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3738,15 +3681,13 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3754,9 +3695,8 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( case 8: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), - 48, 0x20); + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 48, + 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 9: @@ -3794,9 +3734,8 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3836,23 +3775,21 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 11: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), - 48, 0x20); + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 48, + 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 12: @@ -3890,9 +3827,8 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3939,15 +3875,13 @@ static void MineTrainRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4004,15 +3938,13 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4020,9 +3952,8 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), - 48, 0x20); + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 48, + 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 2: @@ -4060,9 +3991,8 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4102,23 +4032,21 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), - 48, 0x20); + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 48, + 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 5: @@ -4156,9 +4084,8 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4210,15 +4137,13 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4270,15 +4195,13 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4286,8 +4209,7 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( case 8: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4326,9 +4248,8 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4368,13 +4289,12 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4382,8 +4302,7 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( case 11: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4422,9 +4341,8 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4471,15 +4389,13 @@ static void MineTrainRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6848,7 +6764,7 @@ static void MineTrainRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6867,8 +6783,7 @@ static void MineTrainRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6886,8 +6801,7 @@ static void MineTrainRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6903,8 +6817,7 @@ static void MineTrainRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; diff --git a/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp b/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp index 44afc700a8..ba0ad09ccc 100644 --- a/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp @@ -597,8 +597,7 @@ static void MiniRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -632,9 +631,8 @@ static void MiniRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -666,7 +664,7 @@ static void MiniRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -701,9 +699,8 @@ static void MiniRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -747,7 +744,7 @@ static void MiniRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -984,8 +981,7 @@ static void MiniRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1019,9 +1015,8 @@ static void MiniRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1053,7 +1048,7 @@ static void MiniRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1088,9 +1083,8 @@ static void MiniRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1137,7 +1131,7 @@ static void MiniRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1476,8 +1470,7 @@ static void MiniRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1509,9 +1502,8 @@ static void MiniRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1542,7 +1534,7 @@ static void MiniRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1575,9 +1567,8 @@ static void MiniRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1621,7 +1612,7 @@ static void MiniRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1669,8 +1660,7 @@ static void MiniRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1702,9 +1692,8 @@ static void MiniRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1735,8 +1724,7 @@ static void MiniRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -1768,9 +1756,8 @@ static void MiniRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1814,8 +1801,7 @@ static void MiniRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1879,8 +1865,7 @@ static void MiniRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1910,9 +1895,8 @@ static void MiniRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1943,9 +1927,8 @@ static void MiniRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1988,7 +1971,7 @@ static void MiniRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2035,8 +2018,7 @@ static void MiniRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2066,9 +2048,8 @@ static void MiniRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2099,9 +2080,8 @@ static void MiniRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2143,8 +2123,7 @@ static void MiniRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2191,8 +2170,7 @@ static void MiniRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2226,8 +2204,7 @@ static void MiniRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2270,7 +2247,7 @@ static void MiniRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2330,8 +2307,7 @@ static void MiniRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2365,8 +2341,7 @@ static void MiniRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2412,7 +2387,7 @@ static void MiniRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2465,8 +2440,7 @@ static void MiniRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2511,7 +2485,7 @@ static void MiniRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2555,8 +2529,7 @@ static void MiniRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2601,8 +2574,7 @@ static void MiniRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2670,9 +2642,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2707,8 +2678,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2754,9 +2724,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2803,9 +2772,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2840,8 +2808,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2883,9 +2850,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2936,9 +2902,8 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2973,8 +2938,7 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3023,9 +2987,8 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3075,9 +3038,8 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3113,8 +3075,7 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3157,9 +3118,8 @@ static void MiniRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3240,9 +3200,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3277,9 +3236,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3311,7 +3269,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3346,9 +3304,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3395,9 +3352,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3444,9 +3400,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3481,9 +3436,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3515,8 +3469,7 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3550,9 +3503,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3594,9 +3546,8 @@ static void MiniRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3647,9 +3598,8 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3684,9 +3634,8 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3718,8 +3667,7 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3753,9 +3701,8 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3802,9 +3749,8 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3851,9 +3797,8 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3888,9 +3833,8 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3922,7 +3866,7 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3957,9 +3901,8 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4001,9 +3944,8 @@ static void MiniRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4386,9 +4328,8 @@ static void MiniRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4420,9 +4361,8 @@ static void MiniRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4431,8 +4371,7 @@ static void MiniRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4465,9 +4404,8 @@ static void MiniRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4543,9 +4481,8 @@ static void MiniRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4577,9 +4514,8 @@ static void MiniRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4588,8 +4524,7 @@ static void MiniRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4623,9 +4558,8 @@ static void MiniRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4719,9 +4653,8 @@ static void MiniRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4753,9 +4686,8 @@ static void MiniRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4764,8 +4696,7 @@ static void MiniRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4798,9 +4729,8 @@ static void MiniRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4876,9 +4806,8 @@ static void MiniRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4910,9 +4839,8 @@ static void MiniRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4921,8 +4849,7 @@ static void MiniRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4956,9 +4883,8 @@ static void MiniRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5040,7 +4966,7 @@ static void MiniRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5071,8 +4997,7 @@ static void MiniRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5102,8 +5027,7 @@ static void MiniRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5136,8 +5060,7 @@ static void MiniRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5163,7 +5086,7 @@ static void MiniRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5180,8 +5103,7 @@ static void MiniRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -5197,8 +5119,7 @@ static void MiniRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5218,8 +5139,7 @@ static void MiniRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -5259,7 +5179,7 @@ static void MiniRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5290,8 +5210,7 @@ static void MiniRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5321,8 +5240,7 @@ static void MiniRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5355,8 +5273,7 @@ static void MiniRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5382,7 +5299,7 @@ static void MiniRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5399,8 +5316,7 @@ static void MiniRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5416,8 +5332,7 @@ static void MiniRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5436,8 +5351,7 @@ static void MiniRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5463,7 +5377,7 @@ static void MiniRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5480,8 +5394,7 @@ static void MiniRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5497,8 +5410,7 @@ static void MiniRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5517,8 +5429,7 @@ static void MiniRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5558,7 +5469,7 @@ static void MiniRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5589,8 +5500,7 @@ static void MiniRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5620,8 +5530,7 @@ static void MiniRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5654,8 +5563,7 @@ static void MiniRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5695,7 +5603,7 @@ static void MiniRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5726,8 +5634,7 @@ static void MiniRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5757,8 +5664,7 @@ static void MiniRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5791,8 +5697,7 @@ static void MiniRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5818,7 +5723,7 @@ static void MiniRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5835,8 +5740,7 @@ static void MiniRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -5852,8 +5756,7 @@ static void MiniRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5873,8 +5776,7 @@ static void MiniRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -5914,7 +5816,7 @@ static void MiniRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5944,8 +5846,7 @@ static void MiniRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -5974,8 +5875,7 @@ static void MiniRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6007,8 +5907,7 @@ static void MiniRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -6035,7 +5934,7 @@ static void MiniRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6052,8 +5951,7 @@ static void MiniRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6069,8 +5967,7 @@ static void MiniRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6089,8 +5986,7 @@ static void MiniRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6116,7 +6012,7 @@ static void MiniRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6133,8 +6029,7 @@ static void MiniRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6150,8 +6045,7 @@ static void MiniRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6170,8 +6064,7 @@ static void MiniRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6211,7 +6104,7 @@ static void MiniRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6242,8 +6135,7 @@ static void MiniRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6273,8 +6165,7 @@ static void MiniRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6307,8 +6198,7 @@ static void MiniRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6334,7 +6224,7 @@ static void MiniRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6354,8 +6244,7 @@ static void MiniRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6371,8 +6260,7 @@ static void MiniRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6391,8 +6279,7 @@ static void MiniRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6418,7 +6305,7 @@ static void MiniRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6435,8 +6322,7 @@ static void MiniRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6455,8 +6341,7 @@ static void MiniRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6475,8 +6360,7 @@ static void MiniRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6502,7 +6386,7 @@ static void MiniRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6522,8 +6406,7 @@ static void MiniRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6539,8 +6422,7 @@ static void MiniRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6559,8 +6441,7 @@ static void MiniRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6586,7 +6467,7 @@ static void MiniRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6603,8 +6484,7 @@ static void MiniRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6623,8 +6503,7 @@ static void MiniRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6643,8 +6522,7 @@ static void MiniRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6670,7 +6548,7 @@ static void MiniRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6690,8 +6568,7 @@ static void MiniRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6707,8 +6584,7 @@ static void MiniRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6727,8 +6603,7 @@ static void MiniRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6754,7 +6629,7 @@ static void MiniRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6771,8 +6646,7 @@ static void MiniRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6791,8 +6665,7 @@ static void MiniRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6811,8 +6684,7 @@ static void MiniRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6838,7 +6710,7 @@ static void MiniRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6858,8 +6730,7 @@ static void MiniRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6875,8 +6746,7 @@ static void MiniRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6895,8 +6765,7 @@ static void MiniRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6922,7 +6791,7 @@ static void MiniRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6939,8 +6808,7 @@ static void MiniRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6959,8 +6827,7 @@ static void MiniRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6979,8 +6846,7 @@ static void MiniRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -7006,7 +6872,7 @@ static void MiniRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7025,8 +6891,7 @@ static void MiniRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -7041,8 +6906,7 @@ static void MiniRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7060,8 +6924,7 @@ static void MiniRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -7088,7 +6951,7 @@ static void MiniRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7104,8 +6967,7 @@ static void MiniRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -7123,8 +6985,7 @@ static void MiniRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7142,8 +7003,7 @@ static void MiniRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -7170,7 +7030,7 @@ static void MiniRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7190,8 +7050,7 @@ static void MiniRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7207,8 +7066,7 @@ static void MiniRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7227,8 +7085,7 @@ static void MiniRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7254,7 +7111,7 @@ static void MiniRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7271,8 +7128,7 @@ static void MiniRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7291,8 +7147,7 @@ static void MiniRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7311,8 +7166,7 @@ static void MiniRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7338,7 +7192,7 @@ static void MiniRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7355,8 +7209,7 @@ static void MiniRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7372,8 +7225,7 @@ static void MiniRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7392,8 +7244,7 @@ static void MiniRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7419,7 +7270,7 @@ static void MiniRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7436,8 +7287,7 @@ static void MiniRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7453,8 +7303,7 @@ static void MiniRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7473,8 +7322,7 @@ static void MiniRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7537,8 +7385,7 @@ static void MiniRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7585,7 +7432,7 @@ static void MiniRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7630,8 +7477,7 @@ static void MiniRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7678,8 +7524,7 @@ static void MiniRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7746,8 +7591,7 @@ static void MiniRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7780,9 +7624,8 @@ static void MiniRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7813,7 +7656,7 @@ static void MiniRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7848,9 +7691,8 @@ static void MiniRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7894,7 +7736,7 @@ static void MiniRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7942,8 +7784,7 @@ static void MiniRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7976,9 +7817,8 @@ static void MiniRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8009,8 +7849,7 @@ static void MiniRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8044,9 +7883,8 @@ static void MiniRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8090,8 +7928,7 @@ static void MiniRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8819,8 +8656,7 @@ static void MiniRCTrackLeftCurvedLiftHill( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8865,7 +8701,7 @@ static void MiniRCTrackLeftCurvedLiftHill( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8908,8 +8744,7 @@ static void MiniRCTrackRightCurvedLiftHill( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8954,8 +8789,7 @@ static void MiniRCTrackRightCurvedLiftHill( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; diff --git a/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp b/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp index 9b9ebda32a..dd668af725 100644 --- a/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp +++ b/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp @@ -386,9 +386,8 @@ static void MiniSuspendedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -426,9 +425,8 @@ static void MiniSuspendedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -456,7 +454,7 @@ static void MiniSuspendedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -487,9 +485,8 @@ static void MiniSuspendedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -518,9 +515,8 @@ static void MiniSuspendedRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -581,8 +577,7 @@ static void MiniSuspendedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 30, 0, 0); @@ -616,9 +611,8 @@ static void MiniSuspendedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 30, 0, 0); @@ -649,9 +643,8 @@ static void MiniSuspendedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 30, 0, 0); @@ -682,7 +675,7 @@ static void MiniSuspendedRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -733,8 +726,7 @@ static void MiniSuspendedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 30, 0, 0); @@ -768,9 +760,8 @@ static void MiniSuspendedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 30, 0, 0); @@ -801,9 +792,8 @@ static void MiniSuspendedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 30, 0, 0); @@ -834,8 +824,7 @@ static void MiniSuspendedRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 30, 0, 0); @@ -884,9 +873,8 @@ static void MiniSuspendedRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -924,8 +912,7 @@ static void MiniSuspendedRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -953,9 +940,8 @@ static void MiniSuspendedRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -1020,8 +1006,7 @@ static void MiniSuspendedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -1060,9 +1045,8 @@ static void MiniSuspendedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1094,9 +1078,8 @@ static void MiniSuspendedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1105,8 +1088,7 @@ static void MiniSuspendedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -1138,9 +1120,8 @@ static void MiniSuspendedRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -1186,7 +1167,7 @@ static void MiniSuspendedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -1225,9 +1206,8 @@ static void MiniSuspendedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1259,9 +1239,8 @@ static void MiniSuspendedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1270,8 +1249,7 @@ static void MiniSuspendedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1304,9 +1282,8 @@ static void MiniSuspendedRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( @@ -1387,7 +1364,7 @@ static void MiniSuspendedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1418,8 +1395,7 @@ static void MiniSuspendedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1449,8 +1425,7 @@ static void MiniSuspendedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1482,8 +1457,7 @@ static void MiniSuspendedRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 42, session.SupportColours); @@ -1526,7 +1500,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1557,8 +1531,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -1588,8 +1561,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1621,8 +1593,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 34, session.SupportColours); @@ -1665,7 +1636,7 @@ static void MiniSuspendedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1696,8 +1667,7 @@ static void MiniSuspendedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1727,8 +1697,7 @@ static void MiniSuspendedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1760,8 +1729,7 @@ static void MiniSuspendedRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalBSupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 36, session.SupportColours); @@ -1804,7 +1772,7 @@ static void MiniSuspendedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1835,8 +1803,7 @@ static void MiniSuspendedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1866,8 +1833,7 @@ static void MiniSuspendedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1899,8 +1865,7 @@ static void MiniSuspendedRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 42, session.SupportColours); @@ -1943,7 +1908,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1973,8 +1938,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -2003,8 +1967,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -2035,8 +1998,7 @@ static void MiniSuspendedRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 36, session.SupportColours); @@ -2079,7 +2041,7 @@ static void MiniSuspendedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2110,8 +2072,7 @@ static void MiniSuspendedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -2141,8 +2102,7 @@ static void MiniSuspendedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -2174,8 +2134,7 @@ static void MiniSuspendedRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetupRotated( session, supportType.metal, MetalSupportPlace::leftCorner, direction, 0, height + 34, session.SupportColours); diff --git a/src/openrct2/paint/track/coaster/MultiDimensionRollerCoaster.cpp b/src/openrct2/paint/track/coaster/MultiDimensionRollerCoaster.cpp index 98e8a64d14..7094516fbb 100644 --- a/src/openrct2/paint/track/coaster/MultiDimensionRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/MultiDimensionRollerCoaster.cpp @@ -687,9 +687,8 @@ static void MultiDimensionRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -721,7 +720,7 @@ static void MultiDimensionRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -756,9 +755,8 @@ static void MultiDimensionRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -800,7 +798,7 @@ static void MultiDimensionRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1061,9 +1059,8 @@ static void MultiDimensionRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1095,7 +1092,7 @@ static void MultiDimensionRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1130,9 +1127,8 @@ static void MultiDimensionRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1177,7 +1173,7 @@ static void MultiDimensionRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1807,8 +1803,7 @@ static void MultiDimensionRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1849,7 +1844,7 @@ static void MultiDimensionRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1938,8 +1933,7 @@ static void MultiDimensionRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1983,7 +1977,7 @@ static void MultiDimensionRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2073,8 +2067,7 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2118,9 +2111,8 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2195,8 +2187,7 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2311,8 +2302,7 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2397,9 +2387,8 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2434,8 +2423,7 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2579,9 +2567,8 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2613,7 +2600,7 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2648,9 +2635,8 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2695,9 +2681,8 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2772,9 +2757,8 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2806,8 +2790,7 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2841,9 +2824,8 @@ static void MultiDimensionRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2958,9 +2940,8 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2992,8 +2973,7 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3027,9 +3007,8 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3114,9 +3093,8 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3151,9 +3129,8 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3185,7 +3162,7 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3220,9 +3197,8 @@ static void MultiDimensionRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3637,9 +3613,8 @@ static void MultiDimensionRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3648,8 +3623,7 @@ static void MultiDimensionRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3784,9 +3758,8 @@ static void MultiDimensionRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3795,8 +3768,7 @@ static void MultiDimensionRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3951,9 +3923,8 @@ static void MultiDimensionRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3962,8 +3933,7 @@ static void MultiDimensionRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4098,9 +4068,8 @@ static void MultiDimensionRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4109,8 +4078,7 @@ static void MultiDimensionRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4206,7 +4174,7 @@ static void MultiDimensionRCTrackDiagFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4237,8 +4205,7 @@ static void MultiDimensionRCTrackDiagFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4268,8 +4235,7 @@ static void MultiDimensionRCTrackDiagFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4328,8 +4294,7 @@ static void MultiDimensionRCTrackDiagFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4340,7 +4305,7 @@ static void MultiDimensionRCTrackDiagBrakes( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement, SupportType supportType) { - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; TrackPaintUtilDiagTilesPaint( session, 3, height, direction, trackSequence, MultidimDiagBrakeImages, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4359,7 +4324,7 @@ static void MultiDimensionRCTrackDiagBlockBrakes( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement, SupportType supportType) { - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; TrackPaintUtilDiagTilesPaint( session, 3, height, direction, trackSequence, MultidimDiagBlockBrakeImages[trackElement.isBrakeClosed()], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4407,7 +4372,7 @@ static void MultiDimensionRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4438,8 +4403,7 @@ static void MultiDimensionRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4469,8 +4433,7 @@ static void MultiDimensionRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4529,8 +4492,7 @@ static void MultiDimensionRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4556,7 +4518,7 @@ static void MultiDimensionRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4573,8 +4535,7 @@ static void MultiDimensionRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -4590,8 +4551,7 @@ static void MultiDimensionRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4622,8 +4582,7 @@ static void MultiDimensionRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -4663,7 +4622,7 @@ static void MultiDimensionRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4694,8 +4653,7 @@ static void MultiDimensionRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4725,8 +4683,7 @@ static void MultiDimensionRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4785,8 +4742,7 @@ static void MultiDimensionRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4812,7 +4768,7 @@ static void MultiDimensionRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4829,8 +4785,7 @@ static void MultiDimensionRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -4846,8 +4801,7 @@ static void MultiDimensionRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4878,8 +4832,7 @@ static void MultiDimensionRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -4905,7 +4858,7 @@ static void MultiDimensionRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4922,8 +4875,7 @@ static void MultiDimensionRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -4939,8 +4891,7 @@ static void MultiDimensionRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4971,8 +4922,7 @@ static void MultiDimensionRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5012,7 +4962,7 @@ static void MultiDimensionRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5043,8 +4993,7 @@ static void MultiDimensionRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5074,8 +5023,7 @@ static void MultiDimensionRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5134,8 +5082,7 @@ static void MultiDimensionRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5175,7 +5122,7 @@ static void MultiDimensionRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5206,8 +5153,7 @@ static void MultiDimensionRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5237,8 +5183,7 @@ static void MultiDimensionRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5297,8 +5242,7 @@ static void MultiDimensionRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5324,7 +5268,7 @@ static void MultiDimensionRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5341,8 +5285,7 @@ static void MultiDimensionRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -5358,8 +5301,7 @@ static void MultiDimensionRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5390,8 +5332,7 @@ static void MultiDimensionRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -5431,7 +5372,7 @@ static void MultiDimensionRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5461,8 +5402,7 @@ static void MultiDimensionRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -5491,8 +5431,7 @@ static void MultiDimensionRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5550,8 +5489,7 @@ static void MultiDimensionRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -5578,7 +5516,7 @@ static void MultiDimensionRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5595,8 +5533,7 @@ static void MultiDimensionRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5612,8 +5549,7 @@ static void MultiDimensionRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5644,8 +5580,7 @@ static void MultiDimensionRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5671,7 +5606,7 @@ static void MultiDimensionRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5688,8 +5623,7 @@ static void MultiDimensionRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5705,8 +5639,7 @@ static void MultiDimensionRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -5737,8 +5670,7 @@ static void MultiDimensionRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -5778,7 +5710,7 @@ static void MultiDimensionRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5809,8 +5741,7 @@ static void MultiDimensionRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5840,8 +5771,7 @@ static void MultiDimensionRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5900,8 +5830,7 @@ static void MultiDimensionRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5927,7 +5856,7 @@ static void MultiDimensionRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5947,8 +5876,7 @@ static void MultiDimensionRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5964,8 +5892,7 @@ static void MultiDimensionRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5996,8 +5923,7 @@ static void MultiDimensionRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6023,7 +5949,7 @@ static void MultiDimensionRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6040,8 +5966,7 @@ static void MultiDimensionRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6060,8 +5985,7 @@ static void MultiDimensionRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6092,8 +6016,7 @@ static void MultiDimensionRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6119,7 +6042,7 @@ static void MultiDimensionRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6139,8 +6062,7 @@ static void MultiDimensionRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6156,8 +6078,7 @@ static void MultiDimensionRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6188,8 +6109,7 @@ static void MultiDimensionRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6215,7 +6135,7 @@ static void MultiDimensionRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6232,8 +6152,7 @@ static void MultiDimensionRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6252,8 +6171,7 @@ static void MultiDimensionRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6284,8 +6202,7 @@ static void MultiDimensionRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6311,7 +6228,7 @@ static void MultiDimensionRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6331,8 +6248,7 @@ static void MultiDimensionRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6348,8 +6264,7 @@ static void MultiDimensionRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6380,8 +6295,7 @@ static void MultiDimensionRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6407,7 +6321,7 @@ static void MultiDimensionRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6424,8 +6338,7 @@ static void MultiDimensionRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6444,8 +6357,7 @@ static void MultiDimensionRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6476,8 +6388,7 @@ static void MultiDimensionRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6503,7 +6414,7 @@ static void MultiDimensionRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6523,8 +6434,7 @@ static void MultiDimensionRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6540,8 +6450,7 @@ static void MultiDimensionRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6572,8 +6481,7 @@ static void MultiDimensionRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6599,7 +6507,7 @@ static void MultiDimensionRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6616,8 +6524,7 @@ static void MultiDimensionRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6636,8 +6543,7 @@ static void MultiDimensionRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6668,8 +6574,7 @@ static void MultiDimensionRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6695,7 +6600,7 @@ static void MultiDimensionRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6714,8 +6619,7 @@ static void MultiDimensionRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -6730,8 +6634,7 @@ static void MultiDimensionRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6761,8 +6664,7 @@ static void MultiDimensionRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -6789,7 +6691,7 @@ static void MultiDimensionRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6805,8 +6707,7 @@ static void MultiDimensionRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -6824,8 +6725,7 @@ static void MultiDimensionRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -6855,8 +6755,7 @@ static void MultiDimensionRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -6883,7 +6782,7 @@ static void MultiDimensionRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6903,8 +6802,7 @@ static void MultiDimensionRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6920,8 +6818,7 @@ static void MultiDimensionRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6952,8 +6849,7 @@ static void MultiDimensionRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6979,7 +6875,7 @@ static void MultiDimensionRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6996,8 +6892,7 @@ static void MultiDimensionRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7016,8 +6911,7 @@ static void MultiDimensionRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7048,8 +6942,7 @@ static void MultiDimensionRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7075,7 +6968,7 @@ static void MultiDimensionRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7092,8 +6985,7 @@ static void MultiDimensionRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7109,8 +7001,7 @@ static void MultiDimensionRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7141,8 +7032,7 @@ static void MultiDimensionRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7168,7 +7058,7 @@ static void MultiDimensionRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7185,8 +7075,7 @@ static void MultiDimensionRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7202,8 +7091,7 @@ static void MultiDimensionRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7234,8 +7122,7 @@ static void MultiDimensionRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -7277,9 +7164,8 @@ static void MultiDimensionRCTrackLeftFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7308,9 +7194,8 @@ static void MultiDimensionRCTrackLeftFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7340,9 +7225,8 @@ static void MultiDimensionRCTrackLeftFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -7397,9 +7281,8 @@ static void MultiDimensionRCTrackRightFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7427,9 +7310,8 @@ static void MultiDimensionRCTrackRightFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -7458,9 +7340,8 @@ static void MultiDimensionRCTrackRightFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( diff --git a/src/openrct2/paint/track/coaster/MultiDimensionRollerCoasterInverted.cpp b/src/openrct2/paint/track/coaster/MultiDimensionRollerCoasterInverted.cpp index 76242e0a19..204eef552c 100644 --- a/src/openrct2/paint/track/coaster/MultiDimensionRollerCoasterInverted.cpp +++ b/src/openrct2/paint/track/coaster/MultiDimensionRollerCoasterInverted.cpp @@ -499,9 +499,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -543,9 +542,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -577,8 +575,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -613,9 +610,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -648,9 +644,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -710,9 +705,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -756,9 +750,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -802,9 +795,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -848,9 +840,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -897,9 +888,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -939,9 +929,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -972,8 +961,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1006,9 +994,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1041,9 +1028,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1103,9 +1089,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1173,9 +1158,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1243,9 +1227,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1313,9 +1296,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1411,9 +1393,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -1467,7 +1448,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1507,9 +1488,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -1555,9 +1535,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -1603,8 +1582,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1658,8 +1636,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 36, 0, 0); @@ -1698,9 +1675,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 36, 0, 0); @@ -1735,9 +1711,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 36, 0, 0); @@ -1772,8 +1747,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 36, 0, 0); @@ -1826,9 +1800,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1870,7 +1843,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1903,9 +1876,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1968,9 +1940,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2012,7 +1983,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2045,9 +2016,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2407,9 +2377,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2441,9 +2410,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2452,7 +2420,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2485,9 +2453,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2585,9 +2552,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2619,9 +2585,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2630,8 +2595,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2664,9 +2628,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2747,8 +2710,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2787,9 +2749,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2821,9 +2782,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2832,7 +2792,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2865,9 +2825,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2930,8 +2889,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2970,9 +2928,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3004,9 +2961,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3015,8 +2971,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3049,9 +3004,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3130,8 +3084,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3162,8 +3115,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3193,8 +3145,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3226,7 +3177,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -3287,8 +3238,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3319,8 +3269,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -3350,8 +3299,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3383,7 +3331,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -3430,8 +3378,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -3448,8 +3395,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -3465,8 +3411,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -3484,7 +3429,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -3546,8 +3491,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3578,8 +3522,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -3609,8 +3552,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3642,7 +3584,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -3689,8 +3631,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3707,8 +3648,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3724,8 +3664,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3743,7 +3682,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -3791,8 +3730,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3809,8 +3747,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3826,8 +3763,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3845,7 +3781,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -3907,8 +3843,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3939,8 +3874,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -3970,8 +3904,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4003,7 +3936,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4050,8 +3983,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4068,8 +4000,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4085,8 +4016,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4104,7 +4034,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4151,8 +4081,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4169,8 +4098,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -4186,8 +4114,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -4205,7 +4132,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4253,8 +4180,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4271,8 +4197,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4288,8 +4213,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4307,7 +4231,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4354,8 +4278,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4372,8 +4295,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -4389,8 +4311,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4408,7 +4329,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4456,8 +4377,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4474,8 +4394,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -4491,8 +4410,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4510,7 +4428,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4557,8 +4475,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4575,8 +4492,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4592,8 +4508,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4611,7 +4526,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4658,8 +4573,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4676,8 +4590,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4693,8 +4606,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4712,9 +4624,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4761,8 +4672,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4779,8 +4689,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4796,8 +4705,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4815,9 +4723,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4864,8 +4771,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4882,8 +4788,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4899,8 +4804,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4918,9 +4822,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -4967,8 +4870,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4985,8 +4887,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5002,8 +4903,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5021,9 +4921,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5070,8 +4969,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5088,8 +4986,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5105,8 +5002,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5124,7 +5020,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5171,8 +5067,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5189,8 +5084,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5206,8 +5100,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5225,7 +5118,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5272,8 +5165,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5290,8 +5182,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5307,8 +5198,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5326,7 +5216,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5373,8 +5263,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5391,8 +5280,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5408,8 +5296,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5427,7 +5314,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5474,8 +5361,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5491,8 +5377,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -5507,8 +5392,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5525,7 +5409,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5572,8 +5456,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5589,8 +5472,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -5605,8 +5487,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5623,7 +5504,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5670,8 +5551,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5688,8 +5568,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5705,8 +5584,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5724,7 +5602,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5771,8 +5649,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5789,8 +5666,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5806,8 +5682,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5825,7 +5700,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5872,8 +5747,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5890,8 +5764,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5907,8 +5780,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5926,9 +5798,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -5975,8 +5846,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5993,8 +5863,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6010,8 +5879,7 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6029,9 +5897,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) @@ -6091,9 +5958,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -6129,9 +5995,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6170,9 +6035,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6210,9 +6074,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -6247,9 +6110,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6288,9 +6150,8 @@ namespace OpenRCT2::MultiDimensionRCInverted PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6530,7 +6391,7 @@ namespace OpenRCT2::MultiDimensionRCInverted session, -3, height + 24, direction, trackSequence, kMultidimDiagBrakeImages, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); - const uint16_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + const PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6549,7 +6410,7 @@ namespace OpenRCT2::MultiDimensionRCInverted session, -3, height + 24, direction, trackSequence, kMultidimDiagBlockBrakeImages[trackElement.isBrakeClosed()], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); - const uint16_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + const PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); diff --git a/src/openrct2/paint/track/coaster/ReverserRollerCoaster.cpp b/src/openrct2/paint/track/coaster/ReverserRollerCoaster.cpp index 13d211348a..a7d032ab48 100644 --- a/src/openrct2/paint/track/coaster/ReverserRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/ReverserRollerCoaster.cpp @@ -364,8 +364,7 @@ static void ReverserRCTrackLeftQuarterTurn5( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -394,9 +393,8 @@ static void ReverserRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -426,9 +424,8 @@ static void ReverserRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -436,8 +433,7 @@ static void ReverserRCTrackLeftQuarterTurn5( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -466,9 +462,8 @@ static void ReverserRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -588,9 +583,8 @@ static void ReverserRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -624,9 +618,8 @@ static void ReverserRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -741,9 +734,8 @@ static void ReverserRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -777,9 +769,8 @@ static void ReverserRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -895,8 +886,7 @@ static void ReverserRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; diff --git a/src/openrct2/paint/track/coaster/SideFrictionRollerCoaster.cpp b/src/openrct2/paint/track/coaster/SideFrictionRollerCoaster.cpp index 47d4833343..20aa1d1bcb 100644 --- a/src/openrct2/paint/track/coaster/SideFrictionRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/SideFrictionRollerCoaster.cpp @@ -528,8 +528,7 @@ static void SideFrictionRCTrackLeftQuarterTurn5( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -570,9 +569,8 @@ static void SideFrictionRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -614,9 +612,8 @@ static void SideFrictionRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -624,8 +621,7 @@ static void SideFrictionRCTrackLeftQuarterTurn5( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -666,9 +662,8 @@ static void SideFrictionRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -824,9 +819,8 @@ static void SideFrictionRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -872,9 +866,8 @@ static void SideFrictionRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1025,9 +1018,8 @@ static void SideFrictionRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1073,9 +1065,8 @@ static void SideFrictionRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1227,8 +1218,7 @@ static void SideFrictionRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; diff --git a/src/openrct2/paint/track/coaster/SingleRailRollerCoaster.cpp b/src/openrct2/paint/track/coaster/SingleRailRollerCoaster.cpp index 4ab7c38f34..b117ea8905 100644 --- a/src/openrct2/paint/track/coaster/SingleRailRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/SingleRailRollerCoaster.cpp @@ -909,7 +909,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -944,7 +944,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -987,8 +987,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1045,7 +1044,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1082,9 +1081,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1118,8 +1116,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1156,9 +1153,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1203,8 +1199,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1287,9 +1282,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1321,9 +1315,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1332,7 +1325,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1372,9 +1365,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1449,9 +1441,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1483,9 +1474,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1494,8 +1484,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1535,9 +1524,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1595,8 +1583,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1614,8 +1601,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1632,8 +1618,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1665,7 +1650,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1692,8 +1677,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1711,8 +1695,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1729,8 +1712,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1762,7 +1744,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1804,8 +1786,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1838,8 +1819,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1871,8 +1851,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1933,7 +1912,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1975,8 +1954,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2009,8 +1987,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -2042,8 +2019,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2104,7 +2080,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2146,8 +2122,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2180,8 +2155,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -2213,8 +2187,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2277,7 +2250,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2319,8 +2292,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2353,8 +2325,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -2386,8 +2357,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2448,7 +2418,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2490,8 +2460,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -2523,8 +2492,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -2555,8 +2523,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -2616,7 +2583,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -2659,8 +2626,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2693,8 +2659,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -2726,8 +2691,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2788,7 +2752,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2830,8 +2794,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -2864,8 +2827,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -2897,8 +2859,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -2961,7 +2922,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -3003,8 +2964,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3037,8 +2997,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3070,8 +3029,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3134,7 +3092,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3176,8 +3134,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3210,8 +3167,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3243,8 +3199,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3307,7 +3262,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3349,8 +3304,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -3383,8 +3337,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -3416,8 +3369,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -3480,7 +3432,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -3522,8 +3474,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3556,8 +3507,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3589,8 +3539,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3653,7 +3602,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3695,8 +3644,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3729,8 +3677,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3762,8 +3709,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3824,7 +3770,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4223,8 +4169,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4246,8 +4191,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4264,8 +4208,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4297,7 +4240,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4324,8 +4267,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4343,8 +4285,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4365,8 +4306,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4398,7 +4338,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4425,8 +4365,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4448,8 +4387,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4466,8 +4404,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4499,7 +4436,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4526,8 +4463,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4545,8 +4481,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4567,8 +4502,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4600,7 +4534,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4627,8 +4561,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4650,8 +4583,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4668,8 +4600,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4701,7 +4632,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4728,8 +4659,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4747,8 +4677,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -4769,8 +4698,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4802,7 +4730,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4829,8 +4757,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4852,8 +4779,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4870,8 +4796,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4903,7 +4828,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4930,8 +4855,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4949,8 +4873,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -4971,8 +4894,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5004,7 +4926,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5031,8 +4953,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5053,8 +4974,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -5070,8 +4990,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5102,7 +5021,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -5130,8 +5049,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5148,8 +5066,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -5169,8 +5086,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -5201,7 +5117,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -5229,8 +5145,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5252,8 +5167,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5270,8 +5184,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5303,7 +5216,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5330,8 +5243,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5349,8 +5261,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -5371,8 +5282,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5404,7 +5314,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -5431,8 +5341,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5450,8 +5359,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5468,8 +5376,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5501,7 +5408,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5528,8 +5435,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5547,8 +5453,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5565,8 +5470,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5598,7 +5502,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5653,7 +5557,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5692,7 +5596,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5743,8 +5647,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5807,7 +5710,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5846,9 +5749,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5884,8 +5786,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5924,9 +5825,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5977,8 +5877,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6069,9 +5968,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6107,9 +6005,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6118,7 +6015,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6162,9 +6059,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6247,9 +6143,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6285,9 +6180,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6296,8 +6190,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6341,9 +6234,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6410,7 +6302,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6463,8 +6355,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6515,8 +6406,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6575,8 +6465,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6643,7 +6532,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6682,9 +6571,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6720,8 +6608,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -6760,9 +6647,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6809,8 +6695,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6861,8 +6746,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6901,9 +6785,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6939,8 +6822,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -6978,9 +6860,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7027,8 +6908,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8123,7 +8003,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8176,8 +8056,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8228,8 +8107,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8288,8 +8166,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8358,7 +8235,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8397,9 +8274,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8435,8 +8311,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8475,9 +8350,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8524,8 +8398,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8576,8 +8449,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8616,9 +8488,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8654,8 +8525,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8693,9 +8563,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8742,8 +8611,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8807,7 +8675,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8841,9 +8709,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8877,9 +8744,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8921,8 +8787,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8968,8 +8833,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9002,9 +8866,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9037,9 +8900,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9081,8 +8943,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9132,9 +8993,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9169,7 +9029,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9215,9 +9075,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9263,9 +9122,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9300,8 +9158,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9342,9 +9199,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9394,9 +9250,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9431,8 +9286,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9478,9 +9332,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9526,9 +9379,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9563,7 +9415,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9604,9 +9456,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9682,9 +9533,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9719,9 +9569,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9753,8 +9602,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9789,9 +9637,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9837,9 +9684,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9885,9 +9731,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9922,9 +9767,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9956,8 +9800,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9991,9 +9834,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10034,9 +9876,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10085,9 +9926,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10122,9 +9962,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10156,8 +9995,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -10191,9 +10029,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10245,9 +10082,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10293,9 +10129,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10330,9 +10165,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10364,8 +10198,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10400,9 +10233,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10449,9 +10281,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10542,9 +10373,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10588,9 +10418,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -10643,9 +10472,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -10710,9 +10538,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -10756,9 +10583,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -10811,9 +10637,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -10937,9 +10762,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -11470,9 +11294,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11532,9 +11355,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -11593,9 +11415,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11655,9 +11476,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -11736,9 +11556,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -11782,9 +11601,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -11820,7 +11638,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11832,9 +11650,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -11910,9 +11727,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -11974,9 +11790,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -12020,9 +11835,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -12058,8 +11872,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12071,9 +11884,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -12148,9 +11960,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -12259,9 +12070,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12305,7 +12115,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -12341,8 +12151,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -12379,9 +12188,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); @@ -12472,9 +12280,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12518,8 +12325,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -12556,7 +12362,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -12593,9 +12399,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); if (direction == 0 || direction == 3) @@ -12701,9 +12506,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12750,9 +12554,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -12841,9 +12644,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12890,9 +12692,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -13035,9 +12836,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13046,9 +12846,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -13227,9 +13026,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13238,9 +13036,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -13466,7 +13263,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13519,8 +13316,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13575,8 +13371,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13629,8 +13424,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13681,7 +13475,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13738,8 +13532,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13790,8 +13583,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13848,8 +13640,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -13972,9 +13763,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -14019,9 +13809,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -14057,8 +13846,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -14094,9 +13882,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -14136,9 +13923,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -14261,9 +14047,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -14308,9 +14093,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -14346,7 +14130,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -14382,9 +14166,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -14424,9 +14207,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -14700,8 +14482,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -14734,8 +14515,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -14767,8 +14547,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -14829,7 +14608,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -14871,8 +14650,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14905,8 +14683,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -14938,8 +14715,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15002,7 +14778,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15044,8 +14820,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15078,8 +14853,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15111,8 +14885,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15175,7 +14948,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15217,8 +14990,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -15251,8 +15023,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -15284,8 +15055,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -15346,7 +15116,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -15447,9 +15217,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15485,9 +15254,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15496,7 +15264,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15540,9 +15308,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15625,9 +15392,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15663,9 +15429,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15674,8 +15439,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15719,9 +15483,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15774,9 +15537,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15812,9 +15574,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15823,8 +15584,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15859,9 +15619,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15954,9 +15713,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15992,9 +15750,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16003,8 +15760,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16040,9 +15796,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16084,7 +15839,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -16144,8 +15899,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16167,8 +15921,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -16185,8 +15938,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16218,7 +15970,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16245,8 +15997,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16264,8 +16015,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -16286,8 +16036,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16319,7 +16068,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16346,8 +16095,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16369,8 +16117,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16387,8 +16134,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16420,7 +16166,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16447,8 +16193,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16466,8 +16211,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16488,8 +16232,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16521,7 +16264,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16578,8 +16321,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16597,8 +16339,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16615,8 +16356,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16648,7 +16388,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16675,8 +16415,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16694,8 +16433,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16712,8 +16450,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16745,7 +16482,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16772,8 +16509,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16791,8 +16527,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16809,8 +16544,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16842,7 +16576,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16869,8 +16603,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16888,8 +16621,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16906,8 +16638,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16939,7 +16670,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16998,8 +16729,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17017,8 +16747,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -17035,8 +16764,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17068,7 +16796,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17095,8 +16823,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17114,8 +16841,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -17132,8 +16858,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17165,7 +16890,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17206,8 +16931,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17229,8 +16953,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -17247,8 +16970,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17280,7 +17002,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17307,8 +17029,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17326,8 +17047,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -17348,8 +17068,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17381,7 +17100,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17408,8 +17127,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17431,8 +17149,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -17449,8 +17166,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17482,7 +17198,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17509,8 +17225,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17528,8 +17243,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -17550,8 +17264,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17583,7 +17296,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17696,9 +17409,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17734,9 +17446,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17745,7 +17456,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17789,9 +17500,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17874,9 +17584,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17912,9 +17621,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17923,8 +17631,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17968,9 +17675,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18023,9 +17729,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18061,9 +17766,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18072,8 +17776,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -18108,9 +17811,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18201,9 +17903,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18239,9 +17940,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18250,8 +17950,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18287,9 +17986,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18331,7 +18029,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -18420,8 +18118,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32); @@ -18439,8 +18136,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -18457,8 +18153,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18494,9 +18189,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18514,8 +18208,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -18532,8 +18225,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18570,9 +18262,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -18590,8 +18281,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -18608,8 +18298,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -18642,7 +18331,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); @@ -18669,8 +18358,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -18688,8 +18376,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -18706,8 +18393,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -18744,9 +18430,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -18764,8 +18449,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -18782,8 +18466,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18820,9 +18503,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18840,8 +18522,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -18858,8 +18539,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18891,7 +18571,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18918,8 +18598,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18937,8 +18616,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -18955,8 +18633,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -18993,9 +18670,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19013,8 +18689,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -19031,8 +18706,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19069,9 +18743,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19089,8 +18762,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -19107,8 +18779,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -19141,7 +18812,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19168,8 +18839,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); @@ -19187,8 +18857,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19205,8 +18874,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19243,9 +18911,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19263,8 +18930,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -19281,8 +18947,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -19319,9 +18984,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19339,8 +19003,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -19357,8 +19020,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -19390,7 +19052,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32); @@ -19421,8 +19083,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19439,8 +19100,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19456,8 +19116,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19497,9 +19156,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19531,9 +19189,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -19542,9 +19199,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -19611,8 +19267,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19629,8 +19284,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19647,8 +19301,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19687,9 +19340,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19721,9 +19373,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -19732,9 +19383,8 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -19812,8 +19462,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -19830,8 +19479,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -19847,8 +19495,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -19879,7 +19526,7 @@ namespace OpenRCT2::SingleRailRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); diff --git a/src/openrct2/paint/track/coaster/StandUpRollerCoaster.cpp b/src/openrct2/paint/track/coaster/StandUpRollerCoaster.cpp index 3aa61da7d5..af09d00852 100644 --- a/src/openrct2/paint/track/coaster/StandUpRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/StandUpRollerCoaster.cpp @@ -693,8 +693,7 @@ static void StandUpRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -724,9 +723,8 @@ static void StandUpRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -754,7 +752,7 @@ static void StandUpRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -785,9 +783,8 @@ static void StandUpRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -825,7 +822,7 @@ static void StandUpRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1087,8 +1084,7 @@ static void StandUpRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1122,9 +1118,8 @@ static void StandUpRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1156,7 +1151,7 @@ static void StandUpRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1191,9 +1186,8 @@ static void StandUpRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1245,7 +1239,7 @@ static void StandUpRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1638,8 +1632,7 @@ static void StandUpRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1694,9 +1687,8 @@ static void StandUpRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1749,7 +1741,7 @@ static void StandUpRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1805,9 +1797,8 @@ static void StandUpRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1873,7 +1864,7 @@ static void StandUpRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1944,8 +1935,7 @@ static void StandUpRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2000,9 +1990,8 @@ static void StandUpRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2055,8 +2044,7 @@ static void StandUpRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -2111,9 +2099,8 @@ static void StandUpRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2179,8 +2166,7 @@ static void StandUpRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -2241,8 +2227,7 @@ static void StandUpRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2270,9 +2255,8 @@ static void StandUpRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2301,9 +2285,8 @@ static void StandUpRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2341,7 +2324,7 @@ static void StandUpRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2384,8 +2367,7 @@ static void StandUpRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2413,9 +2395,8 @@ static void StandUpRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2444,9 +2425,8 @@ static void StandUpRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2484,8 +2464,7 @@ static void StandUpRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2534,9 +2513,8 @@ static void StandUpRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2573,9 +2551,8 @@ static void StandUpRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2603,8 +2580,7 @@ static void StandUpRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -2631,9 +2607,8 @@ static void StandUpRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2667,9 +2642,8 @@ static void StandUpRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2697,7 +2671,7 @@ static void StandUpRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -2734,9 +2708,8 @@ static void StandUpRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2774,9 +2747,8 @@ static void StandUpRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -3060,8 +3032,7 @@ static void StandUpRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3091,8 +3062,7 @@ static void StandUpRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3136,7 +3106,7 @@ static void StandUpRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3202,8 +3172,7 @@ static void StandUpRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3237,8 +3206,7 @@ static void StandUpRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3289,7 +3257,7 @@ static void StandUpRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3381,8 +3349,7 @@ static void StandUpRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3465,7 +3432,7 @@ static void StandUpRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3548,8 +3515,7 @@ static void StandUpRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3632,8 +3598,7 @@ static void StandUpRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3753,9 +3718,8 @@ static void StandUpRCTrackHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -3834,9 +3798,8 @@ static void StandUpRCTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); if (direction == 0 || direction == 3) @@ -3900,9 +3863,8 @@ static void StandUpRCTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -3961,9 +3923,8 @@ static void StandUpRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4023,9 +3984,8 @@ static void StandUpRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -4110,9 +4070,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4147,8 +4106,7 @@ static void StandUpRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4199,9 +4157,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4253,9 +4210,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4290,8 +4246,7 @@ static void StandUpRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4338,9 +4293,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4397,9 +4351,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4434,8 +4387,7 @@ static void StandUpRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4487,9 +4439,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4541,9 +4492,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4578,8 +4528,7 @@ static void StandUpRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4625,9 +4574,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4714,9 +4662,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4751,9 +4698,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4785,7 +4731,7 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4820,9 +4766,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4874,9 +4819,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4928,9 +4872,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4965,9 +4908,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4999,8 +4941,7 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5034,9 +4975,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5083,9 +5023,8 @@ static void StandUpRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5142,9 +5081,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5179,9 +5117,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5213,8 +5150,7 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5248,9 +5184,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5302,9 +5237,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5356,9 +5290,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5393,9 +5326,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5427,7 +5359,7 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5462,9 +5394,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5511,9 +5442,8 @@ static void StandUpRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5678,9 +5608,8 @@ static void StandUpRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5712,9 +5641,8 @@ static void StandUpRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5723,8 +5651,7 @@ static void StandUpRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5763,9 +5690,8 @@ static void StandUpRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5840,9 +5766,8 @@ static void StandUpRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5874,9 +5799,8 @@ static void StandUpRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5885,8 +5809,7 @@ static void StandUpRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5926,9 +5849,8 @@ static void StandUpRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6028,9 +5950,8 @@ static void StandUpRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6062,9 +5983,8 @@ static void StandUpRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6073,8 +5993,7 @@ static void StandUpRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -6113,9 +6032,8 @@ static void StandUpRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6197,9 +6115,8 @@ static void StandUpRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6231,9 +6148,8 @@ static void StandUpRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6242,8 +6158,7 @@ static void StandUpRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6283,9 +6198,8 @@ static void StandUpRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -6374,7 +6288,7 @@ static void StandUpRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6405,8 +6319,7 @@ static void StandUpRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6436,8 +6349,7 @@ static void StandUpRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6496,8 +6408,7 @@ static void StandUpRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6537,7 +6448,7 @@ static void StandUpRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6568,8 +6479,7 @@ static void StandUpRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6599,8 +6509,7 @@ static void StandUpRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6659,8 +6568,7 @@ static void StandUpRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6700,7 +6608,7 @@ static void StandUpRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6731,8 +6639,7 @@ static void StandUpRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6762,8 +6669,7 @@ static void StandUpRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6822,8 +6728,7 @@ static void StandUpRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6863,7 +6768,7 @@ static void StandUpRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6894,8 +6799,7 @@ static void StandUpRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6925,8 +6829,7 @@ static void StandUpRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6985,8 +6888,7 @@ static void StandUpRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7026,7 +6928,7 @@ static void StandUpRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7057,8 +6959,7 @@ static void StandUpRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7088,8 +6989,7 @@ static void StandUpRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7148,8 +7048,7 @@ static void StandUpRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7189,7 +7088,7 @@ static void StandUpRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7220,8 +7119,7 @@ static void StandUpRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -7251,8 +7149,7 @@ static void StandUpRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7311,8 +7208,7 @@ static void StandUpRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -7352,7 +7248,7 @@ static void StandUpRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7383,8 +7279,7 @@ static void StandUpRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -7414,8 +7309,7 @@ static void StandUpRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -7474,8 +7368,7 @@ static void StandUpRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -7515,7 +7408,7 @@ static void StandUpRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -7546,8 +7439,7 @@ static void StandUpRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -7577,8 +7469,7 @@ static void StandUpRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -7637,8 +7528,7 @@ static void StandUpRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -7678,7 +7568,7 @@ static void StandUpRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7708,8 +7598,7 @@ static void StandUpRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -7738,8 +7627,7 @@ static void StandUpRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7797,8 +7685,7 @@ static void StandUpRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -7839,7 +7726,7 @@ static void StandUpRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7870,8 +7757,7 @@ static void StandUpRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7901,8 +7787,7 @@ static void StandUpRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7961,8 +7846,7 @@ static void StandUpRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8002,7 +7886,7 @@ static void StandUpRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8033,8 +7917,7 @@ static void StandUpRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8064,8 +7947,7 @@ static void StandUpRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8124,8 +8006,7 @@ static void StandUpRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8165,7 +8046,7 @@ static void StandUpRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8196,8 +8077,7 @@ static void StandUpRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8227,8 +8107,7 @@ static void StandUpRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8287,8 +8166,7 @@ static void StandUpRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8314,7 +8192,7 @@ static void StandUpRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8334,8 +8212,7 @@ static void StandUpRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8351,8 +8228,7 @@ static void StandUpRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8383,8 +8259,7 @@ static void StandUpRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8410,7 +8285,7 @@ static void StandUpRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8427,8 +8302,7 @@ static void StandUpRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8447,8 +8321,7 @@ static void StandUpRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8479,8 +8352,7 @@ static void StandUpRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8506,7 +8378,7 @@ static void StandUpRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8526,8 +8398,7 @@ static void StandUpRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8543,8 +8414,7 @@ static void StandUpRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8575,8 +8445,7 @@ static void StandUpRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8602,7 +8471,7 @@ static void StandUpRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8619,8 +8488,7 @@ static void StandUpRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8639,8 +8507,7 @@ static void StandUpRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8671,8 +8538,7 @@ static void StandUpRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8698,7 +8564,7 @@ static void StandUpRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8718,8 +8584,7 @@ static void StandUpRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8735,8 +8600,7 @@ static void StandUpRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8767,8 +8631,7 @@ static void StandUpRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8794,7 +8657,7 @@ static void StandUpRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8811,8 +8674,7 @@ static void StandUpRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8831,8 +8693,7 @@ static void StandUpRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8863,8 +8724,7 @@ static void StandUpRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8890,7 +8750,7 @@ static void StandUpRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8910,8 +8770,7 @@ static void StandUpRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8927,8 +8786,7 @@ static void StandUpRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8959,8 +8817,7 @@ static void StandUpRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8986,7 +8843,7 @@ static void StandUpRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -9003,8 +8860,7 @@ static void StandUpRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -9023,8 +8879,7 @@ static void StandUpRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -9055,8 +8910,7 @@ static void StandUpRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -9082,7 +8936,7 @@ static void StandUpRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9101,8 +8955,7 @@ static void StandUpRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -9117,8 +8970,7 @@ static void StandUpRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9148,8 +9000,7 @@ static void StandUpRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -9176,7 +9027,7 @@ static void StandUpRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9192,8 +9043,7 @@ static void StandUpRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -9211,8 +9061,7 @@ static void StandUpRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9242,8 +9091,7 @@ static void StandUpRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -9270,7 +9118,7 @@ static void StandUpRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9290,8 +9138,7 @@ static void StandUpRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9307,8 +9154,7 @@ static void StandUpRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9339,8 +9185,7 @@ static void StandUpRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9366,7 +9211,7 @@ static void StandUpRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9383,8 +9228,7 @@ static void StandUpRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9403,8 +9247,7 @@ static void StandUpRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9435,8 +9278,7 @@ static void StandUpRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9462,7 +9304,7 @@ static void StandUpRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9479,8 +9321,7 @@ static void StandUpRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9496,8 +9337,7 @@ static void StandUpRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9528,8 +9368,7 @@ static void StandUpRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9555,7 +9394,7 @@ static void StandUpRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9572,8 +9411,7 @@ static void StandUpRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9589,8 +9427,7 @@ static void StandUpRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9621,8 +9458,7 @@ static void StandUpRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9777,7 +9613,7 @@ static void StandUpRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9794,8 +9630,7 @@ static void StandUpRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9811,8 +9646,7 @@ static void StandUpRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9843,8 +9677,7 @@ static void StandUpRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9869,7 +9702,7 @@ static void StandUpRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9886,8 +9719,7 @@ static void StandUpRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9903,8 +9735,7 @@ static void StandUpRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9935,8 +9766,7 @@ static void StandUpRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9961,7 +9791,7 @@ static void StandUpRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -9978,8 +9808,7 @@ static void StandUpRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -9995,8 +9824,7 @@ static void StandUpRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -10027,8 +9855,7 @@ static void StandUpRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -10053,7 +9880,7 @@ static void StandUpRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -10070,8 +9897,7 @@ static void StandUpRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -10087,8 +9913,7 @@ static void StandUpRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -10119,8 +9944,7 @@ static void StandUpRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -11828,8 +11652,7 @@ static void StandUpRCTrackLeftBankedQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -11900,7 +11723,7 @@ static void StandUpRCTrackLeftBankedQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -11950,8 +11773,7 @@ static void StandUpRCTrackRightBankedQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12022,8 +11844,7 @@ static void StandUpRCTrackRightBankedQuarterTurn3Tile25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12090,8 +11911,7 @@ static void StandUpRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12129,9 +11949,8 @@ static void StandUpRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12167,7 +11986,7 @@ static void StandUpRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -12206,9 +12025,8 @@ static void StandUpRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12261,7 +12079,7 @@ static void StandUpRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12311,8 +12129,7 @@ static void StandUpRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12350,9 +12167,8 @@ static void StandUpRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12388,8 +12204,7 @@ static void StandUpRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -12427,9 +12242,8 @@ static void StandUpRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12482,8 +12296,7 @@ static void StandUpRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12581,9 +12394,8 @@ static void StandUpRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12615,9 +12427,8 @@ static void StandUpRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12626,8 +12437,7 @@ static void StandUpRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12666,9 +12476,8 @@ static void StandUpRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12749,9 +12558,8 @@ static void StandUpRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12783,9 +12591,8 @@ static void StandUpRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12794,8 +12601,7 @@ static void StandUpRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12835,9 +12641,8 @@ static void StandUpRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12886,9 +12691,8 @@ static void StandUpRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12920,9 +12724,8 @@ static void StandUpRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12931,8 +12734,7 @@ static void StandUpRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -12963,9 +12765,8 @@ static void StandUpRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13056,9 +12857,8 @@ static void StandUpRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13090,9 +12890,8 @@ static void StandUpRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13101,8 +12900,7 @@ static void StandUpRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13134,9 +12932,8 @@ static void StandUpRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13179,8 +12976,7 @@ static void StandUpRCTrackRightEighthToOrthogonalUp25( } PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13242,7 +13038,7 @@ static void StandUpRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13264,8 +13060,7 @@ static void StandUpRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13282,8 +13077,7 @@ static void StandUpRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13315,8 +13109,7 @@ static void StandUpRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13342,7 +13135,7 @@ static void StandUpRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13360,8 +13153,7 @@ static void StandUpRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13382,8 +13174,7 @@ static void StandUpRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -13415,8 +13206,7 @@ static void StandUpRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -13442,7 +13232,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -13464,8 +13254,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -13482,8 +13271,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -13515,8 +13303,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -13542,7 +13329,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -13560,8 +13347,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -13582,8 +13368,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -13615,8 +13400,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -13674,7 +13458,7 @@ static void StandUpRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -13692,8 +13476,7 @@ static void StandUpRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -13710,8 +13493,7 @@ static void StandUpRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -13743,8 +13525,7 @@ static void StandUpRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -13770,7 +13551,7 @@ static void StandUpRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -13788,8 +13569,7 @@ static void StandUpRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -13806,8 +13586,7 @@ static void StandUpRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -13839,8 +13618,7 @@ static void StandUpRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -13866,7 +13644,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -13884,8 +13662,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -13902,8 +13679,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -13935,8 +13711,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -13962,7 +13737,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -13980,8 +13755,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -13998,8 +13772,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14031,8 +13804,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14090,7 +13862,7 @@ static void StandUpRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14108,8 +13880,7 @@ static void StandUpRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14126,8 +13897,7 @@ static void StandUpRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14159,8 +13929,7 @@ static void StandUpRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14186,7 +13955,7 @@ static void StandUpRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14204,8 +13973,7 @@ static void StandUpRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14222,8 +13990,7 @@ static void StandUpRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14255,8 +14022,7 @@ static void StandUpRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14296,7 +14062,7 @@ static void StandUpRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14318,8 +14084,7 @@ static void StandUpRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14336,8 +14101,7 @@ static void StandUpRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14369,8 +14133,7 @@ static void StandUpRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14396,7 +14159,7 @@ static void StandUpRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14414,8 +14177,7 @@ static void StandUpRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14436,8 +14198,7 @@ static void StandUpRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -14469,8 +14230,7 @@ static void StandUpRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -14496,7 +14256,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14518,8 +14278,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14536,8 +14295,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14569,8 +14327,7 @@ static void StandUpRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14596,7 +14353,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14614,8 +14371,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14636,8 +14392,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -14669,8 +14424,7 @@ static void StandUpRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -14790,9 +14544,8 @@ static void StandUpRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14828,9 +14581,8 @@ static void StandUpRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14839,8 +14591,7 @@ static void StandUpRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -14883,9 +14634,8 @@ static void StandUpRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14974,9 +14724,8 @@ static void StandUpRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15012,9 +14761,8 @@ static void StandUpRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15023,8 +14771,7 @@ static void StandUpRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15068,9 +14815,8 @@ static void StandUpRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15123,9 +14869,8 @@ static void StandUpRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15161,9 +14906,8 @@ static void StandUpRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15172,8 +14916,7 @@ static void StandUpRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15208,9 +14951,8 @@ static void StandUpRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15307,9 +15049,8 @@ static void StandUpRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15345,9 +15086,8 @@ static void StandUpRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15356,8 +15096,7 @@ static void StandUpRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15393,9 +15132,8 @@ static void StandUpRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15442,8 +15180,7 @@ static void StandUpRCTrackRightEighthBankToOrthogonalUp25( } PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15536,8 +15273,7 @@ static void StandUpRCTrackLeftBankToLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -15617,7 +15353,7 @@ static void StandUpRCTrackLeftBankToLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -15673,8 +15409,7 @@ static void StandUpRCTrackRightBankToRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -15757,8 +15492,7 @@ static void StandUpRCTrackRightBankToRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -15823,9 +15557,8 @@ static void StandUpRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -15868,9 +15601,8 @@ static void StandUpRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15897,8 +15629,7 @@ static void StandUpRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -15909,9 +15640,8 @@ static void StandUpRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -15982,9 +15712,8 @@ static void StandUpRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16041,9 +15770,8 @@ static void StandUpRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -16086,9 +15814,8 @@ static void StandUpRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16115,8 +15842,7 @@ static void StandUpRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16128,9 +15854,8 @@ static void StandUpRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16200,9 +15925,8 @@ static void StandUpRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -16427,9 +16151,8 @@ static void StandUpRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16469,8 +16192,7 @@ static void StandUpRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -16507,8 +16229,7 @@ static void StandUpRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -16544,9 +16265,8 @@ static void StandUpRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); @@ -16640,9 +16360,8 @@ static void StandUpRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16682,8 +16401,7 @@ static void StandUpRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -16722,8 +16440,7 @@ static void StandUpRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -16758,9 +16475,8 @@ static void StandUpRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); if (direction == 0 || direction == 3) @@ -16910,9 +16626,8 @@ static void StandUpRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -16952,9 +16667,8 @@ static void StandUpRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -16986,8 +16700,7 @@ static void StandUpRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -17025,9 +16738,8 @@ static void StandUpRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -17063,9 +16775,8 @@ static void StandUpRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -17197,9 +16908,8 @@ static void StandUpRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -17239,9 +16949,8 @@ static void StandUpRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -17273,8 +16982,7 @@ static void StandUpRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); break; @@ -17311,9 +17019,8 @@ static void StandUpRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -17349,9 +17056,8 @@ static void StandUpRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -17424,9 +17130,8 @@ static void StandUpRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -17464,9 +17169,8 @@ static void StandUpRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17513,9 +17217,8 @@ static void StandUpRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17574,9 +17277,8 @@ static void StandUpRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -17614,9 +17316,8 @@ static void StandUpRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17663,9 +17364,8 @@ static void StandUpRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17775,9 +17475,8 @@ static void StandUpRCTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17824,9 +17523,8 @@ static void StandUpRCTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -17921,9 +17619,8 @@ static void StandUpRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17970,9 +17667,8 @@ static void StandUpRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -18109,9 +17805,8 @@ static void StandUpRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18120,9 +17815,8 @@ static void StandUpRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -18287,9 +17981,8 @@ static void StandUpRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18298,9 +17991,8 @@ static void StandUpRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) diff --git a/src/openrct2/paint/track/coaster/Steeplechase.cpp b/src/openrct2/paint/track/coaster/Steeplechase.cpp index 7c9b334b78..ac1091aa56 100644 --- a/src/openrct2/paint/track/coaster/Steeplechase.cpp +++ b/src/openrct2/paint/track/coaster/Steeplechase.cpp @@ -363,8 +363,7 @@ static void SteeplechaseTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -394,9 +393,8 @@ static void SteeplechaseTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -424,7 +422,7 @@ static void SteeplechaseTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -455,9 +453,8 @@ static void SteeplechaseTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -504,7 +501,7 @@ static void SteeplechaseTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -558,8 +555,7 @@ static void SteeplechaseTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -588,9 +584,8 @@ static void SteeplechaseTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -619,9 +614,8 @@ static void SteeplechaseTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -660,7 +654,7 @@ static void SteeplechaseTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -703,8 +697,7 @@ static void SteeplechaseTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -733,9 +726,8 @@ static void SteeplechaseTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -765,9 +757,8 @@ static void SteeplechaseTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -805,8 +796,7 @@ static void SteeplechaseTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -853,8 +843,7 @@ static void SteeplechaseTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -885,8 +874,7 @@ static void SteeplechaseTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -929,7 +917,7 @@ static void SteeplechaseTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1041,9 +1029,8 @@ static void SteeplechaseTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1075,9 +1062,8 @@ static void SteeplechaseTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1086,8 +1072,7 @@ static void SteeplechaseTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1120,9 +1105,8 @@ static void SteeplechaseTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1198,9 +1182,8 @@ static void SteeplechaseTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1232,9 +1215,8 @@ static void SteeplechaseTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1243,8 +1225,7 @@ static void SteeplechaseTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1278,9 +1259,8 @@ static void SteeplechaseTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1333,7 +1313,7 @@ static void SteeplechaseTrackDiagBrakes( session, supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -1371,7 +1351,7 @@ static void SteeplechaseTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1402,8 +1382,7 @@ static void SteeplechaseTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1433,8 +1412,7 @@ static void SteeplechaseTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1467,8 +1445,7 @@ static void SteeplechaseTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1508,7 +1485,7 @@ static void SteeplechaseTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1539,8 +1516,7 @@ static void SteeplechaseTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -1570,8 +1546,7 @@ static void SteeplechaseTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1604,8 +1579,7 @@ static void SteeplechaseTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -1645,7 +1619,7 @@ static void SteeplechaseTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1676,8 +1650,7 @@ static void SteeplechaseTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1707,8 +1680,7 @@ static void SteeplechaseTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1741,8 +1713,7 @@ static void SteeplechaseTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1782,7 +1753,7 @@ static void SteeplechaseTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1813,8 +1784,7 @@ static void SteeplechaseTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1844,8 +1814,7 @@ static void SteeplechaseTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -1878,8 +1847,7 @@ static void SteeplechaseTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -1919,7 +1887,7 @@ static void SteeplechaseTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1949,8 +1917,7 @@ static void SteeplechaseTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -1979,8 +1946,7 @@ static void SteeplechaseTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -2012,8 +1978,7 @@ static void SteeplechaseTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -2054,7 +2019,7 @@ static void SteeplechaseTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2085,8 +2050,7 @@ static void SteeplechaseTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -2116,8 +2080,7 @@ static void SteeplechaseTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2150,8 +2113,7 @@ static void SteeplechaseTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; diff --git a/src/openrct2/paint/track/coaster/SuspendedSwingingCoaster.cpp b/src/openrct2/paint/track/coaster/SuspendedSwingingCoaster.cpp index 2cc11bb260..7309365a49 100644 --- a/src/openrct2/paint/track/coaster/SuspendedSwingingCoaster.cpp +++ b/src/openrct2/paint/track/coaster/SuspendedSwingingCoaster.cpp @@ -660,9 +660,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -702,9 +701,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -735,7 +733,7 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -768,9 +766,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -803,9 +800,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -866,9 +862,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -906,9 +901,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -936,7 +930,7 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -968,9 +962,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -999,9 +992,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1052,9 +1044,8 @@ static void SuspendedSwingingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1092,9 +1083,8 @@ static void SuspendedSwingingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -1122,8 +1112,7 @@ static void SuspendedSwingingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); break; @@ -1154,9 +1143,8 @@ static void SuspendedSwingingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -1185,9 +1173,8 @@ static void SuspendedSwingingRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1258,8 +1245,7 @@ static void SuspendedSwingingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 44, 0, 0); @@ -1293,9 +1279,8 @@ static void SuspendedSwingingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 44, 0, 0); @@ -1326,9 +1311,8 @@ static void SuspendedSwingingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 44, 0, 0); @@ -1359,7 +1343,7 @@ static void SuspendedSwingingRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 44, 0, 0); @@ -1409,8 +1393,7 @@ static void SuspendedSwingingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 44, 0, 0); @@ -1444,9 +1427,8 @@ static void SuspendedSwingingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 44, 0, 0); @@ -1477,9 +1459,8 @@ static void SuspendedSwingingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 44, 0, 0); @@ -1510,8 +1491,7 @@ static void SuspendedSwingingRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 44, 0, 0); @@ -1564,9 +1544,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1607,8 +1586,7 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -1640,9 +1618,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1703,9 +1680,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1747,9 +1723,8 @@ static void SuspendedSwingingRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1800,9 +1775,8 @@ static void SuspendedSwingingRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1844,9 +1818,8 @@ static void SuspendedSwingingRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1952,9 +1925,8 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1996,9 +1968,8 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2030,7 +2001,7 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2065,9 +2036,8 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2100,9 +2070,8 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2157,9 +2126,8 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2201,9 +2169,8 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2235,8 +2202,7 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -2270,9 +2236,8 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2305,9 +2270,8 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2362,9 +2326,8 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2406,9 +2369,8 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2440,7 +2402,7 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2475,9 +2437,8 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2510,9 +2471,8 @@ static void SuspendedSwingingRCTrackLeftQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2567,9 +2527,8 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2611,9 +2570,8 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2645,8 +2603,7 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -2680,9 +2637,8 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2715,9 +2671,8 @@ static void SuspendedSwingingRCTrackRightQuarterHelixLargeDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2772,8 +2727,7 @@ static void SuspendedSwingingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2812,9 +2766,8 @@ static void SuspendedSwingingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2846,9 +2799,8 @@ static void SuspendedSwingingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2857,8 +2809,7 @@ static void SuspendedSwingingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -2890,9 +2841,8 @@ static void SuspendedSwingingRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -2955,7 +2905,7 @@ static void SuspendedSwingingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -2994,9 +2944,8 @@ static void SuspendedSwingingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3028,9 +2977,8 @@ static void SuspendedSwingingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3039,8 +2987,7 @@ static void SuspendedSwingingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -3073,9 +3020,8 @@ static void SuspendedSwingingRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -3175,7 +3121,7 @@ static void SuspendedSwingingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3206,8 +3152,7 @@ static void SuspendedSwingingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3237,8 +3182,7 @@ static void SuspendedSwingingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3270,8 +3214,7 @@ static void SuspendedSwingingRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -3317,7 +3260,7 @@ static void SuspendedSwingingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -3334,8 +3277,7 @@ static void SuspendedSwingingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -3351,8 +3293,7 @@ static void SuspendedSwingingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -3370,8 +3311,7 @@ static void SuspendedSwingingRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -3431,7 +3371,7 @@ static void SuspendedSwingingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -3462,8 +3402,7 @@ static void SuspendedSwingingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -3493,8 +3432,7 @@ static void SuspendedSwingingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -3526,8 +3464,7 @@ static void SuspendedSwingingRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -3573,7 +3510,7 @@ static void SuspendedSwingingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -3590,8 +3527,7 @@ static void SuspendedSwingingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -3607,8 +3543,7 @@ static void SuspendedSwingingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -3626,8 +3561,7 @@ static void SuspendedSwingingRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -3673,7 +3607,7 @@ static void SuspendedSwingingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -3690,8 +3624,7 @@ static void SuspendedSwingingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -3707,8 +3640,7 @@ static void SuspendedSwingingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -3726,8 +3658,7 @@ static void SuspendedSwingingRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -3787,7 +3718,7 @@ static void SuspendedSwingingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3818,8 +3749,7 @@ static void SuspendedSwingingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3849,8 +3779,7 @@ static void SuspendedSwingingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3882,8 +3811,7 @@ static void SuspendedSwingingRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -3943,7 +3871,7 @@ static void SuspendedSwingingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3974,8 +3902,7 @@ static void SuspendedSwingingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -4005,8 +3932,7 @@ static void SuspendedSwingingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4038,8 +3964,7 @@ static void SuspendedSwingingRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4085,7 +4010,7 @@ static void SuspendedSwingingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -4102,8 +4027,7 @@ static void SuspendedSwingingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -4119,8 +4043,7 @@ static void SuspendedSwingingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -4137,8 +4060,7 @@ static void SuspendedSwingingRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -4178,7 +4100,7 @@ static void SuspendedSwingingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -4208,8 +4130,7 @@ static void SuspendedSwingingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -4238,8 +4159,7 @@ static void SuspendedSwingingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -4270,8 +4190,7 @@ static void SuspendedSwingingRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4317,7 +4236,7 @@ static void SuspendedSwingingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -4334,8 +4253,7 @@ static void SuspendedSwingingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -4351,8 +4269,7 @@ static void SuspendedSwingingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -4370,8 +4287,7 @@ static void SuspendedSwingingRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4417,7 +4333,7 @@ static void SuspendedSwingingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -4434,8 +4350,7 @@ static void SuspendedSwingingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); break; @@ -4451,8 +4366,7 @@ static void SuspendedSwingingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -4470,8 +4384,7 @@ static void SuspendedSwingingRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -4531,7 +4444,7 @@ static void SuspendedSwingingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4562,8 +4475,7 @@ static void SuspendedSwingingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -4593,8 +4505,7 @@ static void SuspendedSwingingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -4626,8 +4537,7 @@ static void SuspendedSwingingRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { diff --git a/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp b/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp index 37cdfd9194..915f8d5dec 100644 --- a/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp @@ -711,8 +711,7 @@ static void TwisterRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -746,9 +745,8 @@ static void TwisterRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -780,7 +778,7 @@ static void TwisterRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -815,9 +813,8 @@ static void TwisterRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -859,7 +856,7 @@ static void TwisterRCTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1091,8 +1088,7 @@ static void TwisterRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1126,9 +1122,8 @@ static void TwisterRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1160,7 +1155,7 @@ static void TwisterRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1195,9 +1190,8 @@ static void TwisterRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1242,7 +1236,7 @@ static void TwisterRCTrackBankedLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1563,8 +1557,7 @@ static void TwisterRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1596,9 +1589,8 @@ static void TwisterRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1629,7 +1621,7 @@ static void TwisterRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1662,9 +1654,8 @@ static void TwisterRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1706,7 +1697,7 @@ static void TwisterRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1752,8 +1743,7 @@ static void TwisterRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1785,9 +1775,8 @@ static void TwisterRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1818,8 +1807,7 @@ static void TwisterRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -1851,9 +1839,8 @@ static void TwisterRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1895,8 +1882,7 @@ static void TwisterRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1958,8 +1944,7 @@ static void TwisterRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1989,9 +1974,8 @@ static void TwisterRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2022,9 +2006,8 @@ static void TwisterRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2066,7 +2049,7 @@ static void TwisterRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2112,8 +2095,7 @@ static void TwisterRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2143,9 +2125,8 @@ static void TwisterRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2176,9 +2157,8 @@ static void TwisterRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2220,8 +2200,7 @@ static void TwisterRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2269,9 +2248,8 @@ static void TwisterRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2307,9 +2285,8 @@ static void TwisterRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2341,8 +2318,7 @@ static void TwisterRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -2369,9 +2345,8 @@ static void TwisterRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2405,9 +2380,8 @@ static void TwisterRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2439,7 +2413,7 @@ static void TwisterRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -2475,9 +2449,8 @@ static void TwisterRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -2522,9 +2495,8 @@ static void TwisterRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -2802,8 +2774,7 @@ static void TwisterRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2837,8 +2808,7 @@ static void TwisterRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2879,7 +2849,7 @@ static void TwisterRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2936,8 +2906,7 @@ static void TwisterRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2971,8 +2940,7 @@ static void TwisterRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3016,7 +2984,7 @@ static void TwisterRCTrackLeftQuarterTurn3Bank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3066,8 +3034,7 @@ static void TwisterRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3110,7 +3077,7 @@ static void TwisterRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3152,8 +3119,7 @@ static void TwisterRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3203,8 +3169,7 @@ static void TwisterRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3269,9 +3234,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3306,8 +3270,7 @@ static void TwisterRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3351,9 +3314,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3398,9 +3360,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3435,8 +3396,7 @@ static void TwisterRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3476,9 +3436,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3527,9 +3486,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3564,8 +3522,7 @@ static void TwisterRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3610,9 +3567,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3657,9 +3613,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3694,8 +3649,7 @@ static void TwisterRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -3734,9 +3688,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpSmall( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3813,9 +3766,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3850,9 +3802,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3884,7 +3835,7 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3919,9 +3870,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -3966,9 +3916,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4013,9 +3962,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4050,9 +3998,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4084,8 +4031,7 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4119,9 +4065,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4161,9 +4106,8 @@ static void TwisterRCTrackLeftHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4212,9 +4156,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4249,9 +4192,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4283,8 +4225,7 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -4318,9 +4259,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4372,9 +4312,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4419,9 +4358,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4456,9 +4394,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4490,7 +4427,7 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4525,9 +4462,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4574,9 +4510,8 @@ static void TwisterRCTrackRightHalfBankedHelixUpLarge( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5124,9 +5059,8 @@ static void TwisterRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5158,9 +5092,8 @@ static void TwisterRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5169,8 +5102,7 @@ static void TwisterRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5209,9 +5141,8 @@ static void TwisterRCTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5285,9 +5216,8 @@ static void TwisterRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5319,9 +5249,8 @@ static void TwisterRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5330,8 +5259,7 @@ static void TwisterRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5371,9 +5299,8 @@ static void TwisterRCTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5463,9 +5390,8 @@ static void TwisterRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5497,9 +5423,8 @@ static void TwisterRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5508,8 +5433,7 @@ static void TwisterRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5548,9 +5472,8 @@ static void TwisterRCTrackLeftEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5624,9 +5547,8 @@ static void TwisterRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5658,9 +5580,8 @@ static void TwisterRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5669,8 +5590,7 @@ static void TwisterRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5710,9 +5630,8 @@ static void TwisterRCTrackRightEighthBankToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -5781,7 +5700,7 @@ static void TwisterRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5812,8 +5731,7 @@ static void TwisterRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5843,8 +5761,7 @@ static void TwisterRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5903,8 +5820,7 @@ static void TwisterRCTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5943,7 +5859,7 @@ static void TwisterRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -5974,8 +5890,7 @@ static void TwisterRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6005,8 +5920,7 @@ static void TwisterRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6065,8 +5979,7 @@ static void TwisterRCTrackDiag60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6105,7 +6018,7 @@ static void TwisterRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6136,8 +6049,7 @@ static void TwisterRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6167,8 +6079,7 @@ static void TwisterRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -6227,8 +6138,7 @@ static void TwisterRCTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -6267,7 +6177,7 @@ static void TwisterRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6298,8 +6208,7 @@ static void TwisterRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6329,8 +6238,7 @@ static void TwisterRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6389,8 +6297,7 @@ static void TwisterRCTrackDiag25DegUpTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6429,7 +6336,7 @@ static void TwisterRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6460,8 +6367,7 @@ static void TwisterRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6491,8 +6397,7 @@ static void TwisterRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -6551,8 +6456,7 @@ static void TwisterRCTrackDiag60DegUpTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -6591,7 +6495,7 @@ static void TwisterRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6622,8 +6526,7 @@ static void TwisterRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6653,8 +6556,7 @@ static void TwisterRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6713,8 +6615,7 @@ static void TwisterRCTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6753,7 +6654,7 @@ static void TwisterRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6784,8 +6685,7 @@ static void TwisterRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6815,8 +6715,7 @@ static void TwisterRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -6875,8 +6774,7 @@ static void TwisterRCTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -6915,7 +6813,7 @@ static void TwisterRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -6946,8 +6844,7 @@ static void TwisterRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -6977,8 +6874,7 @@ static void TwisterRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -7037,8 +6933,7 @@ static void TwisterRCTrackDiag60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -7077,7 +6972,7 @@ static void TwisterRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7107,8 +7002,7 @@ static void TwisterRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -7137,8 +7031,7 @@ static void TwisterRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -7196,8 +7089,7 @@ static void TwisterRCTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -7237,7 +7129,7 @@ static void TwisterRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7268,8 +7160,7 @@ static void TwisterRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7299,8 +7190,7 @@ static void TwisterRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7359,8 +7249,7 @@ static void TwisterRCTrackDiag25DegDownTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7399,7 +7288,7 @@ static void TwisterRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7430,8 +7319,7 @@ static void TwisterRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7461,8 +7349,7 @@ static void TwisterRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7521,8 +7408,7 @@ static void TwisterRCTrackDiag60DegDownTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7561,7 +7447,7 @@ static void TwisterRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7592,8 +7478,7 @@ static void TwisterRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7623,8 +7508,7 @@ static void TwisterRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -7683,8 +7567,7 @@ static void TwisterRCTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -7723,7 +7606,7 @@ static void TwisterRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7754,8 +7637,7 @@ static void TwisterRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -7785,8 +7667,7 @@ static void TwisterRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -7845,8 +7726,7 @@ static void TwisterRCTrackDiagFlatTo60DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -7885,7 +7765,7 @@ static void TwisterRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -7916,8 +7796,7 @@ static void TwisterRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -7947,8 +7826,7 @@ static void TwisterRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8007,8 +7885,7 @@ static void TwisterRCTrackDiag60DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8047,7 +7924,7 @@ static void TwisterRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8078,8 +7955,7 @@ static void TwisterRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8109,8 +7985,7 @@ static void TwisterRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -8169,8 +8044,7 @@ static void TwisterRCTrackDiagFlatTo60DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -8209,7 +8083,7 @@ static void TwisterRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8240,8 +8114,7 @@ static void TwisterRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8271,8 +8144,7 @@ static void TwisterRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -8331,8 +8203,7 @@ static void TwisterRCTrackDiag60DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -8357,7 +8228,7 @@ static void TwisterRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8377,8 +8248,7 @@ static void TwisterRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8394,8 +8264,7 @@ static void TwisterRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8426,8 +8295,7 @@ static void TwisterRCTrackDiagFlatToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8452,7 +8320,7 @@ static void TwisterRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8469,8 +8337,7 @@ static void TwisterRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8489,8 +8356,7 @@ static void TwisterRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8521,8 +8387,7 @@ static void TwisterRCTrackDiagFlatToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8547,7 +8412,7 @@ static void TwisterRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8567,8 +8432,7 @@ static void TwisterRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8584,8 +8448,7 @@ static void TwisterRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8616,8 +8479,7 @@ static void TwisterRCTrackDiagLeftBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8642,7 +8504,7 @@ static void TwisterRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8659,8 +8521,7 @@ static void TwisterRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8679,8 +8540,7 @@ static void TwisterRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -8711,8 +8571,7 @@ static void TwisterRCTrackDiagRightBankToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -8737,7 +8596,7 @@ static void TwisterRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8757,8 +8616,7 @@ static void TwisterRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8774,8 +8632,7 @@ static void TwisterRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8806,8 +8663,7 @@ static void TwisterRCTrackDiagLeftBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8832,7 +8688,7 @@ static void TwisterRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8849,8 +8705,7 @@ static void TwisterRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8869,8 +8724,7 @@ static void TwisterRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -8901,8 +8755,7 @@ static void TwisterRCTrackDiagRightBankTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -8927,7 +8780,7 @@ static void TwisterRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8947,8 +8800,7 @@ static void TwisterRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -8964,8 +8816,7 @@ static void TwisterRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -8996,8 +8847,7 @@ static void TwisterRCTrackDiag25DegUpToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -9022,7 +8872,7 @@ static void TwisterRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -9039,8 +8889,7 @@ static void TwisterRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -9059,8 +8908,7 @@ static void TwisterRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -9091,8 +8939,7 @@ static void TwisterRCTrackDiag25DegUpToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -9117,7 +8964,7 @@ static void TwisterRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9136,8 +8983,7 @@ static void TwisterRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -9152,8 +8998,7 @@ static void TwisterRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9183,8 +9028,7 @@ static void TwisterRCTrackDiagLeftBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -9210,7 +9054,7 @@ static void TwisterRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9226,8 +9070,7 @@ static void TwisterRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -9245,8 +9088,7 @@ static void TwisterRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -9276,8 +9118,7 @@ static void TwisterRCTrackDiagRightBankTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -9303,7 +9144,7 @@ static void TwisterRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9323,8 +9164,7 @@ static void TwisterRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9340,8 +9180,7 @@ static void TwisterRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9372,8 +9211,7 @@ static void TwisterRCTrackDiag25DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9398,7 +9236,7 @@ static void TwisterRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9415,8 +9253,7 @@ static void TwisterRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9435,8 +9272,7 @@ static void TwisterRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -9467,8 +9303,7 @@ static void TwisterRCTrackDiag25DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -9493,7 +9328,7 @@ static void TwisterRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9510,8 +9345,7 @@ static void TwisterRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9527,8 +9361,7 @@ static void TwisterRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9559,8 +9392,7 @@ static void TwisterRCTrackDiagLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9585,7 +9417,7 @@ static void TwisterRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9602,8 +9434,7 @@ static void TwisterRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9619,8 +9450,7 @@ static void TwisterRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -9651,8 +9481,7 @@ static void TwisterRCTrackDiagRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -9696,8 +9525,7 @@ static void TwisterRCTrackLeftBankToLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9740,7 +9568,7 @@ static void TwisterRCTrackLeftBankToLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9785,8 +9613,7 @@ static void TwisterRCTrackRightBankToRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9836,8 +9663,7 @@ static void TwisterRCTrackRightBankToRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9885,8 +9711,7 @@ static void TwisterRCTrackLeftQuarterTurn325DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -9932,7 +9757,7 @@ static void TwisterRCTrackLeftQuarterTurn325DegDownToLeftBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -9974,8 +9799,7 @@ static void TwisterRCTrackRightQuarterTurn325DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -10021,8 +9845,7 @@ static void TwisterRCTrackRightQuarterTurn325DegDownToRightBank( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -10093,8 +9916,7 @@ static void TwisterRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -10139,7 +9961,7 @@ static void TwisterRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -10182,8 +10004,7 @@ static void TwisterRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -10235,8 +10056,7 @@ static void TwisterRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -10299,8 +10119,7 @@ static void TwisterRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -10333,9 +10152,8 @@ static void TwisterRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -10366,7 +10184,7 @@ static void TwisterRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -10401,9 +10219,8 @@ static void TwisterRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -10445,7 +10262,7 @@ static void TwisterRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -10491,8 +10308,7 @@ static void TwisterRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -10525,9 +10341,8 @@ static void TwisterRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -10558,8 +10373,7 @@ static void TwisterRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -10593,9 +10407,8 @@ static void TwisterRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -10637,8 +10450,7 @@ static void TwisterRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -11724,9 +11536,8 @@ static void TwisterRCTrackHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -11863,9 +11674,8 @@ static void TwisterRCTrackLeftCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -11923,9 +11733,8 @@ static void TwisterRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -11985,9 +11794,8 @@ static void TwisterRCTrackRightCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -12403,9 +12211,8 @@ static void TwisterRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -12449,9 +12256,8 @@ static void TwisterRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12504,9 +12310,8 @@ static void TwisterRCTrackLeftBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12571,9 +12376,8 @@ static void TwisterRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -12617,9 +12421,8 @@ static void TwisterRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12672,9 +12475,8 @@ static void TwisterRCTrackRightBarrelRollUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -12833,9 +12635,8 @@ void TwisterRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -12875,9 +12676,8 @@ void TwisterRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -12909,8 +12709,7 @@ void TwisterRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -12942,9 +12741,8 @@ void TwisterRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -12980,9 +12778,8 @@ void TwisterRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -13085,9 +12882,8 @@ void TwisterRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -13127,9 +12923,8 @@ void TwisterRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -13161,8 +12956,7 @@ void TwisterRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); break; @@ -13193,9 +12987,8 @@ void TwisterRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -13231,9 +13024,8 @@ void TwisterRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -13427,9 +13219,8 @@ static void TwisterRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -13457,9 +13248,8 @@ static void TwisterRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -13487,9 +13277,8 @@ static void TwisterRCTrackLeftTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -13548,9 +13337,8 @@ static void TwisterRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -13578,9 +13366,8 @@ static void TwisterRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -13608,9 +13395,8 @@ static void TwisterRCTrackRightTwistDownToUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -13659,9 +13445,8 @@ static void TwisterRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -13696,9 +13481,8 @@ static void TwisterRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -13741,9 +13525,8 @@ static void TwisterRCTrackLeftTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -13780,9 +13563,8 @@ static void TwisterRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -13817,9 +13599,8 @@ static void TwisterRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -13862,9 +13643,8 @@ static void TwisterRCTrackRightTwistUpToDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -13886,7 +13666,7 @@ void TwisterRCTrackDiagBrakes( session, supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -13905,7 +13685,7 @@ void TwisterRCTrackDiagBlockBrakes( session, supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -13950,9 +13730,8 @@ static void TwisterRCTrackLeftFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -13981,9 +13760,8 @@ static void TwisterRCTrackLeftFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -14013,9 +13791,8 @@ static void TwisterRCTrackLeftFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -14075,9 +13852,8 @@ static void TwisterRCTrackRightFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -14105,9 +13881,8 @@ static void TwisterRCTrackRightFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -14136,9 +13911,8 @@ static void TwisterRCTrackRightFlyerTwistUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -14253,9 +14027,8 @@ static void TwisterRCTrackFlyerHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -14357,9 +14130,8 @@ static void TwisterRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14391,9 +14163,8 @@ static void TwisterRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14402,8 +14173,7 @@ static void TwisterRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -14442,9 +14212,8 @@ static void TwisterRCTrackLeftEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14518,9 +14287,8 @@ static void TwisterRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14552,9 +14320,8 @@ static void TwisterRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14563,8 +14330,7 @@ static void TwisterRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14604,9 +14370,8 @@ static void TwisterRCTrackRightEighthToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14655,9 +14420,8 @@ static void TwisterRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14689,9 +14453,8 @@ static void TwisterRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14700,8 +14463,7 @@ static void TwisterRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -14732,9 +14494,8 @@ static void TwisterRCTrackLeftEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14818,9 +14579,8 @@ static void TwisterRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14852,9 +14612,8 @@ static void TwisterRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14863,8 +14622,7 @@ static void TwisterRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14896,9 +14654,8 @@ static void TwisterRCTrackRightEighthToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -14934,8 +14691,7 @@ static void TwisterRCTrackRightEighthToOrthogonalUp25( } PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -14996,7 +14752,7 @@ static void TwisterRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15016,8 +14772,7 @@ static void TwisterRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15033,8 +14788,7 @@ static void TwisterRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15065,8 +14819,7 @@ static void TwisterRCTrackDiagUp25ToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15091,7 +14844,7 @@ static void TwisterRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15108,8 +14861,7 @@ static void TwisterRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15128,8 +14880,7 @@ static void TwisterRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -15160,8 +14911,7 @@ static void TwisterRCTrackDiagUp25ToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -15187,7 +14937,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15209,8 +14959,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15227,8 +14976,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15260,8 +15008,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15287,7 +15034,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15305,8 +15052,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15327,8 +15073,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15360,8 +15105,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15419,7 +15163,7 @@ static void TwisterRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -15437,8 +15181,7 @@ static void TwisterRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -15455,8 +15198,7 @@ static void TwisterRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -15488,8 +15230,7 @@ static void TwisterRCTrackDiagLeftBankedFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -15515,7 +15256,7 @@ static void TwisterRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -15533,8 +15274,7 @@ static void TwisterRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -15551,8 +15291,7 @@ static void TwisterRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -15584,8 +15323,7 @@ static void TwisterRCTrackDiagRightBankedFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -15611,7 +15349,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15629,8 +15367,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15647,8 +15384,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15680,8 +15416,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToLeftBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15707,7 +15442,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15725,8 +15460,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15743,8 +15477,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15776,8 +15509,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToRightBankedFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15835,7 +15567,7 @@ static void TwisterRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15853,8 +15585,7 @@ static void TwisterRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15871,8 +15602,7 @@ static void TwisterRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15904,8 +15634,7 @@ static void TwisterRCTrackDiagUp25LeftBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15931,7 +15660,7 @@ static void TwisterRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -15949,8 +15678,7 @@ static void TwisterRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -15967,8 +15695,7 @@ static void TwisterRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16000,8 +15727,7 @@ static void TwisterRCTrackDiagUp25RightBanked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16041,7 +15767,7 @@ static void TwisterRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16063,8 +15789,7 @@ static void TwisterRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16081,8 +15806,7 @@ static void TwisterRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16114,8 +15838,7 @@ static void TwisterRCTrackDiagFlatToLeftBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16141,7 +15864,7 @@ static void TwisterRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16159,8 +15882,7 @@ static void TwisterRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16181,8 +15903,7 @@ static void TwisterRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -16214,8 +15935,7 @@ static void TwisterRCTrackDiagFlatToRightBankedUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -16241,7 +15961,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16263,8 +15983,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16281,8 +16000,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16314,8 +16032,7 @@ static void TwisterRCTrackDiagLeftBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16341,7 +16058,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16359,8 +16076,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16381,8 +16097,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -16414,8 +16129,7 @@ static void TwisterRCTrackDiagRightBankedUp25ToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -16535,9 +16249,8 @@ static void TwisterRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16573,9 +16286,8 @@ static void TwisterRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16584,8 +16296,7 @@ static void TwisterRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -16628,9 +16339,8 @@ static void TwisterRCTrackLeftEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16719,9 +16429,8 @@ static void TwisterRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16757,9 +16466,8 @@ static void TwisterRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16768,8 +16476,7 @@ static void TwisterRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16813,9 +16520,8 @@ static void TwisterRCTrackRightEighthBankToDiagUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16868,9 +16574,8 @@ static void TwisterRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16906,9 +16611,8 @@ static void TwisterRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -16917,8 +16621,7 @@ static void TwisterRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -16953,9 +16656,8 @@ static void TwisterRCTrackLeftEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17052,9 +16754,8 @@ static void TwisterRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17090,9 +16791,8 @@ static void TwisterRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17101,8 +16801,7 @@ static void TwisterRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17138,9 +16837,8 @@ static void TwisterRCTrackRightEighthBankToOrthogonalUp25( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17187,8 +16885,7 @@ static void TwisterRCTrackRightEighthBankToOrthogonalUp25( } PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -17273,9 +16970,8 @@ static void TwisterRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -17315,9 +17011,8 @@ static void TwisterRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17349,8 +17044,7 @@ static void TwisterRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -17361,9 +17055,8 @@ static void TwisterRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17428,9 +17121,8 @@ static void TwisterRCTrackLeftLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17487,9 +17179,8 @@ static void TwisterRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::right, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -17529,9 +17220,8 @@ static void TwisterRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -17563,8 +17253,7 @@ static void TwisterRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -17576,9 +17265,8 @@ static void TwisterRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17642,9 +17330,8 @@ static void TwisterRCTrackRightLargeCorkscrewUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::centre, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::centre, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -17752,9 +17439,8 @@ static void TwisterRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17794,8 +17480,7 @@ static void TwisterRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -17826,8 +17511,7 @@ static void TwisterRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -17860,9 +17544,8 @@ static void TwisterRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); @@ -17950,9 +17633,8 @@ static void TwisterRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -17992,8 +17674,7 @@ static void TwisterRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -18026,8 +17707,7 @@ static void TwisterRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -18059,9 +17739,8 @@ static void TwisterRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); if (direction == 0 || direction == 3) @@ -18167,9 +17846,8 @@ static void TwisterRCTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18216,9 +17894,8 @@ static void TwisterRCTrackLeftZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -18307,9 +17984,8 @@ static void TwisterRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18356,9 +18032,8 @@ static void TwisterRCTrackRightZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -18485,9 +18160,8 @@ static void TwisterRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18496,9 +18170,8 @@ static void TwisterRCTrackLeftLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -18653,9 +18326,8 @@ static void TwisterRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18664,9 +18336,8 @@ static void TwisterRCTrackRightLargeZeroGRollUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -18751,7 +18422,7 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32); @@ -18768,8 +18439,7 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -18785,8 +18455,7 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -18820,9 +18489,8 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -18839,8 +18507,7 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -18856,8 +18523,7 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -18891,9 +18557,8 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -18910,8 +18575,7 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -18927,8 +18591,7 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -18959,8 +18622,7 @@ static void TwisterRCTrackDiagFlatTo60DegUpLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); break; @@ -18985,7 +18647,7 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19002,8 +18664,7 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -19019,8 +18680,7 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -19054,9 +18714,8 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19073,8 +18732,7 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -19090,8 +18748,7 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19125,9 +18782,8 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19144,8 +18800,7 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -19161,8 +18816,7 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19193,8 +18847,7 @@ static void TwisterRCTrackDiag60DegUpToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -19219,7 +18872,7 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19236,8 +18889,7 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); break; @@ -19253,8 +18905,7 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19288,9 +18939,8 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -19307,8 +18957,7 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -19324,8 +18973,7 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19359,9 +19007,8 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19378,8 +19025,7 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); break; @@ -19395,8 +19041,7 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); @@ -19427,8 +19072,7 @@ static void TwisterRCTrackDiagFlatTo60DegDownLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); break; @@ -19453,7 +19097,7 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 136); @@ -19470,8 +19114,7 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19487,8 +19130,7 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19522,9 +19164,8 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19541,8 +19182,7 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -19558,8 +19198,7 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -19593,9 +19232,8 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -19612,8 +19250,7 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -19629,8 +19266,7 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -19661,8 +19297,7 @@ static void TwisterRCTrackDiag60DegDownToFlatLongBase( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32); break; @@ -19692,7 +19327,7 @@ static void TwisterRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19709,8 +19344,7 @@ static void TwisterRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19726,8 +19360,7 @@ static void TwisterRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19767,9 +19400,8 @@ static void TwisterRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19801,9 +19433,8 @@ static void TwisterRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -19812,9 +19443,8 @@ static void TwisterRCTrackLeftEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, - PaintSegment::centre, PaintSegment::topRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); switch (direction) @@ -19878,7 +19508,7 @@ static void TwisterRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 96); @@ -19895,8 +19525,7 @@ static void TwisterRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); @@ -19913,8 +19542,7 @@ static void TwisterRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), - direction), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 120); break; @@ -19953,9 +19581,8 @@ static void TwisterRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); @@ -19987,9 +19614,8 @@ static void TwisterRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 80); @@ -19998,9 +19624,8 @@ static void TwisterRCTrackRightEighthDiveLoopUpToOrthogonal( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, - PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::bottom, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) diff --git a/src/openrct2/paint/track/coaster/VirginiaReel.cpp b/src/openrct2/paint/track/coaster/VirginiaReel.cpp index 5969c9a840..9c7f18a9bd 100644 --- a/src/openrct2/paint/track/coaster/VirginiaReel.cpp +++ b/src/openrct2/paint/track/coaster/VirginiaReel.cpp @@ -393,8 +393,7 @@ static void PaintVirginiaReelTrackLeftQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left), - direction), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; case 0: diff --git a/src/openrct2/paint/track/coaster/WildMouse.cpp b/src/openrct2/paint/track/coaster/WildMouse.cpp index d02626abc1..a7a728100f 100644 --- a/src/openrct2/paint/track/coaster/WildMouse.cpp +++ b/src/openrct2/paint/track/coaster/WildMouse.cpp @@ -538,20 +538,18 @@ static void WildMouseTrackRightQuarterTurn3( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft); + blockedSegments = { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -602,16 +600,14 @@ static void WildMouseTrackRightQuarterTurn325DegDown( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft); + blockedSegments = { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -683,16 +679,14 @@ static void WildMouseTrackRightQuarterTurn325DegUp( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft); + blockedSegments = { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -751,7 +745,7 @@ static void WildMouseTrackLeftQuarterTurn1( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp b/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp index 2674a4da42..d748a88606 100644 --- a/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp @@ -3011,32 +3011,30 @@ static void WoodenRCTrackRightQuarterTurn5( session, supportType.wooden, supportSubType[direction][trackSequence], height, session.SupportColours); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: blockedSegments = kSegmentsAll; break; case 1: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::top, PaintSegment::left, PaintSegment::right, + PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }; break; case 4: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 5: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight); + blockedSegments = { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::bottomRight }; break; case 6: blockedSegments = kSegmentsAll; @@ -3210,8 +3208,7 @@ static void WoodenRCTrackLeftQuarterTurn525DegUp( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3274,9 +3271,8 @@ static void WoodenRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3340,9 +3336,8 @@ static void WoodenRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -3350,8 +3345,7 @@ static void WoodenRCTrackLeftQuarterTurn525DegUp( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3420,9 +3414,8 @@ static void WoodenRCTrackLeftQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3571,8 +3564,7 @@ static void WoodenRCTrackRightQuarterTurn525DegUp( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3635,9 +3627,8 @@ static void WoodenRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -3701,9 +3692,8 @@ static void WoodenRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -3711,8 +3701,7 @@ static void WoodenRCTrackRightQuarterTurn525DegUp( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -3781,9 +3770,8 @@ static void WoodenRCTrackRightQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4013,9 +4001,8 @@ static void WoodenRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4079,9 +4066,8 @@ static void WoodenRCTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4287,9 +4273,8 @@ static void WoodenRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4353,9 +4338,8 @@ static void WoodenRCTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -4467,9 +4451,8 @@ static void WoodenRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -4505,9 +4488,8 @@ static void WoodenRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4539,8 +4521,7 @@ static void WoodenRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); break; @@ -4571,9 +4552,8 @@ static void WoodenRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4611,9 +4591,8 @@ static void WoodenRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -4645,7 +4624,7 @@ static void WoodenRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 168); @@ -4681,9 +4660,8 @@ static void WoodenRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -4722,9 +4700,8 @@ static void WoodenRCTrackLeftVerticalLoop( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -5100,8 +5077,7 @@ static void WoodenRCTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -5276,8 +5252,7 @@ static void WoodenRCTrackLeftQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -5436,8 +5411,7 @@ static void WoodenRCTrackRightQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -10261,8 +10235,7 @@ static void WoodenRCTrackLeftBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); break; @@ -10421,8 +10394,7 @@ static void WoodenRCTrackRightBankedQuarterTurn325DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); @@ -10598,8 +10570,7 @@ static void WoodenRCTrackLeftBankedQuarterTurn525DegUp( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -10662,9 +10633,8 @@ static void WoodenRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -10728,9 +10698,8 @@ static void WoodenRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, - PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -10738,8 +10707,7 @@ static void WoodenRCTrackLeftBankedQuarterTurn525DegUp( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -10808,9 +10776,8 @@ static void WoodenRCTrackLeftBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -10959,8 +10926,7 @@ static void WoodenRCTrackRightBankedQuarterTurn525DegUp( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -11023,9 +10989,8 @@ static void WoodenRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -11089,9 +11054,8 @@ static void WoodenRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -11099,8 +11063,7 @@ static void WoodenRCTrackRightBankedQuarterTurn525DegUp( case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -11169,9 +11132,8 @@ static void WoodenRCTrackRightBankedQuarterTurn525DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12434,9 +12396,8 @@ static void WoodenRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12478,8 +12439,7 @@ static void WoodenRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -12513,8 +12473,7 @@ static void WoodenRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -12547,9 +12506,8 @@ static void WoodenRCTrackLeftMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); @@ -12642,9 +12600,8 @@ static void WoodenRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -12686,8 +12643,7 @@ static void WoodenRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); @@ -12723,8 +12679,7 @@ static void WoodenRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 144); break; @@ -12756,9 +12711,8 @@ static void WoodenRCTrackRightMediumHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::top), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top }, direction), 0xFFFF, 0); if (direction == 0 || direction == 3) @@ -12898,9 +12852,8 @@ static void WoodenRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -12943,9 +12896,8 @@ static void WoodenRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -12977,8 +12929,7 @@ static void WoodenRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); @@ -13016,9 +12967,8 @@ static void WoodenRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -13054,9 +13004,8 @@ static void WoodenRCTrackLeftLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); @@ -13174,9 +13123,8 @@ static void WoodenRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 88); @@ -13219,9 +13167,8 @@ static void WoodenRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -13253,8 +13200,7 @@ static void WoodenRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); break; @@ -13291,9 +13237,8 @@ static void WoodenRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 224); @@ -13329,9 +13274,8 @@ static void WoodenRCTrackRightLargeHalfLoopUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); diff --git a/src/openrct2/paint/track/coaster/WoodenRollerCoaster.hpp b/src/openrct2/paint/track/coaster/WoodenRollerCoaster.hpp index 14a2bd946a..ff2e0d97d5 100644 --- a/src/openrct2/paint/track/coaster/WoodenRollerCoaster.hpp +++ b/src/openrct2/paint/track/coaster/WoodenRollerCoaster.hpp @@ -297,17 +297,17 @@ namespace OpenRCT2::WoodenRC TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, kTunnelGroup, TunnelSubType::flat, height, direction, trackSequence); - static constexpr int blockedSegments[4] = { + static constexpr PaintSegments kBlockedSegments[4] = { kSegmentsAll, kSegmentsNone, - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, kSegmentsAll, }; DrawSupportForSequenceA( session, supportType.wooden, trackSequence, direction, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); + session, PaintUtilRotateSegments(kBlockedSegments[trackSequence], direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -508,26 +508,23 @@ namespace OpenRCT2::WoodenRC TrackPaintUtilRightQuarterTurn5TilesTunnel( session, kTunnelGroup, TunnelSubType::flat, height, direction, trackSequence); - static constexpr int blockedSegments[7] = { + static constexpr PaintSegments kBlockedSegments[7] = { kSegmentsAll, - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, kSegmentsAll, }; DrawSupportForSequenceA( session, supportType.wooden, trackSequence, direction, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); + session, PaintUtilRotateSegments(kBlockedSegments[trackSequence], direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -590,15 +587,14 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -664,7 +660,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -725,15 +721,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -794,15 +788,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -868,8 +860,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -925,15 +916,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1000,15 +989,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1074,8 +1061,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1136,15 +1122,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1205,15 +1189,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1279,7 +1261,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1335,15 +1317,14 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1410,15 +1391,14 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1427,7 +1407,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1478,9 +1458,8 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1532,14 +1511,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1548,7 +1526,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1599,9 +1577,8 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1662,15 +1639,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1731,15 +1706,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1747,8 +1720,7 @@ namespace OpenRCT2::WoodenRC case 8: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1799,9 +1771,8 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1853,23 +1824,20 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 11: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -1920,9 +1888,8 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -1978,15 +1945,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2053,15 +2018,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2069,8 +2032,7 @@ namespace OpenRCT2::WoodenRC case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2121,9 +2083,8 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2175,23 +2136,20 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2242,9 +2200,8 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2305,15 +2262,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2374,15 +2329,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::topRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2391,7 +2344,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2442,9 +2395,8 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2496,14 +2448,13 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2512,7 +2463,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); break; @@ -2563,9 +2514,8 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2621,15 +2571,14 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::bottomRight }, direction), 48, 0x20); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); @@ -2703,7 +2652,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -2839,8 +2788,7 @@ namespace OpenRCT2::WoodenRC PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); diff --git a/src/openrct2/paint/track/coaster/WoodenWildMouse.cpp b/src/openrct2/paint/track/coaster/WoodenWildMouse.cpp index 250d7418d4..f7071fcb0f 100644 --- a/src/openrct2/paint/track/coaster/WoodenWildMouse.cpp +++ b/src/openrct2/paint/track/coaster/WoodenWildMouse.cpp @@ -142,9 +142,8 @@ static void WoodenWildMouseTrackFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::topLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::bottom, PaintSegment::topLeft, + PaintSegment::bottomRight }, direction), height, 0x20); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); @@ -524,15 +523,15 @@ static void WoodenWildMouseTrackRightQuarterTurn3( DrawSupportForSequenceA( session, supportType.wooden, trackSequence, direction, height, session.SupportColours); - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: blockedSegments = kSegmentsAll; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::bottomRight }; break; case 3: blockedSegments = kSegmentsAll; diff --git a/src/openrct2/paint/track/gentle/CarRide.cpp b/src/openrct2/paint/track/gentle/CarRide.cpp index 7ecd003ba3..796f89107d 100644 --- a/src/openrct2/paint/track/gentle/CarRide.cpp +++ b/src/openrct2/paint/track/gentle/CarRide.cpp @@ -184,9 +184,7 @@ static void PaintCarRideTrackFlat( MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -225,9 +223,7 @@ static void PaintCarRideTrack25DegUp( MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 8, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -266,9 +262,7 @@ static void PaintCarRideTrackFlatTo25DegUp( MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 3, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -307,9 +301,7 @@ static void PaintCarRideTrack25DegUpToFlat( MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 6, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -380,20 +372,18 @@ static void PaintCarRideTrackRightQuarterTurn3Tiles( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -534,9 +524,7 @@ static void PaintCarRideTrack60DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); } @@ -593,9 +581,7 @@ static void PaintCarRideTrack25DegUpTo60DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -652,9 +638,7 @@ static void PaintCarRideTrack60DegUpTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -710,9 +694,7 @@ static void PaintCarRideTrackLogBumps( MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/gentle/Circus.cpp b/src/openrct2/paint/track/gentle/Circus.cpp index 2b688c8393..fd6e0fc3d9 100644 --- a/src/openrct2/paint/track/gentle/Circus.cpp +++ b/src/openrct2/paint/track/gentle/Circus.cpp @@ -93,29 +93,29 @@ static void PaintCircus( break; } - int32_t cornerSegments = 0; + PaintSegments cornerSegments = {}; switch (trackSequence) { case 1: // Top - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 3: // Right - cornerSegments = EnumsToFlags(PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight }; break; case 6: // Left - cornerSegments = EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft); + cornerSegments = { PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft }; break; case 7: // Bottom - cornerSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, cornerSegments, height + 2, 0x20); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~cornerSegments, 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(cornerSegments), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); } diff --git a/src/openrct2/paint/track/gentle/CrookedHouse.cpp b/src/openrct2/paint/track/gentle/CrookedHouse.cpp index b4242b9942..706701a54f 100644 --- a/src/openrct2/paint/track/gentle/CrookedHouse.cpp +++ b/src/openrct2/paint/track/gentle/CrookedHouse.cpp @@ -119,29 +119,29 @@ static void PaintCrookedHouse( break; } - int32_t cornerSegments = 0; + PaintSegments cornerSegments = {}; switch (trackSequence) { case 1: // Top - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 3: // Right - cornerSegments = EnumsToFlags(PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight }; break; case 6: // Left - cornerSegments = EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft); + cornerSegments = { PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft }; break; case 7: // Bottom - cornerSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, cornerSegments, height + 2, 0x20); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~cornerSegments, 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(cornerSegments), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); } diff --git a/src/openrct2/paint/track/gentle/GhostTrain.cpp b/src/openrct2/paint/track/gentle/GhostTrain.cpp index 47e3a73ff4..4ef9fc5ee6 100644 --- a/src/openrct2/paint/track/gentle/GhostTrain.cpp +++ b/src/openrct2/paint/track/gentle/GhostTrain.cpp @@ -202,9 +202,7 @@ static void PaintGhostTrainTrackFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -242,9 +240,7 @@ static void PaintGhostTrainTrack25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -293,9 +289,7 @@ static void PaintGhostTrainTrackFlatTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -316,9 +310,7 @@ static void PaintGhostTrainTrack25DegUpToFlatShared( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -434,20 +426,18 @@ static void PaintGhostTrainTrackRightQuarterTurn3Tiles( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -541,9 +531,7 @@ static void PaintGhostTrainTrackBrakes( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/gentle/HauntedHouse.cpp b/src/openrct2/paint/track/gentle/HauntedHouse.cpp index 7e248d9f8b..6e9f704a38 100644 --- a/src/openrct2/paint/track/gentle/HauntedHouse.cpp +++ b/src/openrct2/paint/track/gentle/HauntedHouse.cpp @@ -96,29 +96,29 @@ static void PaintHauntedHouse( break; } - int32_t cornerSegments = 0; + PaintSegments cornerSegments = {}; switch (trackSequence) { case 1: // top - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 3: // right - cornerSegments = EnumsToFlags(PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight }; break; case 6: // left - cornerSegments = EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft); + cornerSegments = { PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft }; break; case 7: // bottom - cornerSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, cornerSegments, height + 2, 0x20); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~cornerSegments, 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(cornerSegments), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); } diff --git a/src/openrct2/paint/track/gentle/Maze.cpp b/src/openrct2/paint/track/gentle/Maze.cpp index 2aeb73c96b..2e9ea2a362 100644 --- a/src/openrct2/paint/track/gentle/Maze.cpp +++ b/src/openrct2/paint/track/gentle/Maze.cpp @@ -64,7 +64,7 @@ static void MazePaintSetup( session, WoodenSupportType::truss, WoodenSupportSubType::nwSe, rotation, height, GetShopSupportColourScheme(session, trackElement)); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~EnumToFlag(PaintSegment::centre), 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(PaintSegment::centre), 0xFFFF, 0); int32_t baseImageId = 0; switch (EnumValue(ride.trackColours[0].supports)) @@ -174,7 +174,7 @@ static void MazePaintSetup( imageId = baseImage.WithIndexOffset(SprMazeOffsetColumnCentre); PaintAddImageAsParent(session, imageId, { 14, 14, height }, { { 15, 15, height + 2 }, { 2, 2, 8 } }); - PaintUtilSetSegmentSupportHeight(session, EnumToFlag(PaintSegment::centre), height + 12, 0x20); + PaintUtilSetSegmentSupportHeight(session, PaintSegment::centre, height + 12, 0x20); } PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); diff --git a/src/openrct2/paint/track/gentle/MerryGoRound.cpp b/src/openrct2/paint/track/gentle/MerryGoRound.cpp index 52e0cbce90..c2d149323a 100644 --- a/src/openrct2/paint/track/gentle/MerryGoRound.cpp +++ b/src/openrct2/paint/track/gentle/MerryGoRound.cpp @@ -147,29 +147,29 @@ static void PaintMerryGoRound( break; } - int32_t cornerSegments = 0; + PaintSegments cornerSegments = {}; switch (trackSequence) { case 1: // top - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 3: // right - cornerSegments = EnumsToFlags(PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight }; break; case 6: // left - cornerSegments = EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft); + cornerSegments = { PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft }; break; case 7: // bottom - cornerSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, cornerSegments, height + 2, 0x20); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~cornerSegments, 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(cornerSegments), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); } diff --git a/src/openrct2/paint/track/gentle/MiniGolf.cpp b/src/openrct2/paint/track/gentle/MiniGolf.cpp index 28be63e620..32f9752e28 100644 --- a/src/openrct2/paint/track/gentle/MiniGolf.cpp +++ b/src/openrct2/paint/track/gentle/MiniGolf.cpp @@ -508,9 +508,7 @@ static void PaintMiniGolfTrackFlat( MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); if (MiniGolfPaintUtilShouldDrawFence(session, trackElement)) @@ -548,9 +546,7 @@ static void PaintMiniGolfTrack25DegUp( MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 8, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); imageId = GetStationColourScheme(session, trackElement).WithIndex(kMiniGolfTrackSprites25DegUp[direction][1]); @@ -590,9 +586,7 @@ static void PaintMiniGolfTrackFlatTo25DegUp( MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 0, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); imageId = GetStationColourScheme(session, trackElement).WithIndex(kMiniGolfTrackSpritesFlatTo25DegUp[direction][1]); @@ -632,9 +626,7 @@ static void PaintMiniGolfTrack25DegUpToFlat( MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 8, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); imageId = GetStationColourScheme(session, trackElement).WithIndex(kMiniGolfTrackSprites25DegUpToFlat[direction][1]); @@ -762,7 +754,7 @@ static void PaintMiniGolfTrackLeftQuarterTurn1Tile( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); const bool shouldDrawFence = MiniGolfPaintUtilShouldDrawFence(session, trackElement); diff --git a/src/openrct2/paint/track/gentle/MiniHelicopters.cpp b/src/openrct2/paint/track/gentle/MiniHelicopters.cpp index 04f4a8147e..69f62e910a 100644 --- a/src/openrct2/paint/track/gentle/MiniHelicopters.cpp +++ b/src/openrct2/paint/track/gentle/MiniHelicopters.cpp @@ -80,9 +80,7 @@ static void PaintMiniHelicoptersTrackFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -124,9 +122,7 @@ static void PaintMiniHelicoptersTrackFlatTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -168,9 +164,7 @@ static void PaintMiniHelicoptersTrack25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -212,9 +206,7 @@ static void PaintMiniHelicoptersTrack25DegUpToFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -262,16 +254,14 @@ static void PaintMiniHelicoptersTrackLeftQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left), - direction), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; case 3: @@ -279,7 +269,7 @@ static void PaintMiniHelicoptersTrackLeftQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom }, direction), 0xFFFF, 0); break; @@ -318,7 +308,7 @@ static void PaintMiniHelicoptersTrackLeftQuarterTurn1Tile( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/gentle/MonorailCycles.cpp b/src/openrct2/paint/track/gentle/MonorailCycles.cpp index 3281afa424..93b631baa9 100644 --- a/src/openrct2/paint/track/gentle/MonorailCycles.cpp +++ b/src/openrct2/paint/track/gentle/MonorailCycles.cpp @@ -182,9 +182,7 @@ static void PaintMonorailCyclesTrackFlat( session, supportType.metal, MetalSupportPlace::centre, direction, -1, height, session.SupportColours); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -239,16 +237,14 @@ static void PaintMonorailCyclesTrackLeftQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left), - direction), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; case 3: @@ -256,7 +252,7 @@ static void PaintMonorailCyclesTrackLeftQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom }, direction), 0xFFFF, 0); break; @@ -357,17 +353,15 @@ static void PaintMonorailCyclesTrackRightQuarterTurn5Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -375,17 +369,15 @@ static void PaintMonorailCyclesTrackRightQuarterTurn5Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), - direction), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -393,8 +385,7 @@ static void PaintMonorailCyclesTrackRightQuarterTurn5Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left), - direction), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; } @@ -463,7 +454,7 @@ static void PaintMonorailCyclesTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top }, direction & 1), 0xFFFF, 0); break; @@ -471,9 +462,8 @@ static void PaintMonorailCyclesTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, + PaintSegment::topLeft, PaintSegment::top }, direction & 1), 0xFFFF, 0); break; @@ -481,9 +471,8 @@ static void PaintMonorailCyclesTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction & 1), 0xFFFF, 0); break; @@ -491,7 +480,7 @@ static void PaintMonorailCyclesTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom }, direction & 1), 0xFFFF, 0); break; @@ -550,7 +539,7 @@ static void PaintMonorailCyclesTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }, direction & 1), 0xFFFF, 0); break; @@ -558,9 +547,8 @@ static void PaintMonorailCyclesTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right }, direction & 1), 0xFFFF, 0); break; @@ -568,9 +556,8 @@ static void PaintMonorailCyclesTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, + PaintSegment::topLeft, PaintSegment::top }, direction & 1), 0xFFFF, 0); break; @@ -578,7 +565,7 @@ static void PaintMonorailCyclesTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left }, direction & 1), 0xFFFF, 0); break; diff --git a/src/openrct2/paint/track/gentle/ObservationTower.cpp b/src/openrct2/paint/track/gentle/ObservationTower.cpp index 5841714f80..9f2c26aa03 100644 --- a/src/openrct2/paint/track/gentle/ObservationTower.cpp +++ b/src/openrct2/paint/track/gentle/ObservationTower.cpp @@ -67,42 +67,40 @@ static void PaintObservationTowerBase( return; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 1: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, + PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, - PaintSegment::bottom); + blockedSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 4: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left }; break; case 5: - blockedSegments = EnumsToFlags(PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom }; break; case 6: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::bottom }; break; case 7: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, - PaintSegment::right); + blockedSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right }; break; case 8: - blockedSegments = EnumsToFlags(PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + blockedSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom }; break; } PaintUtilSetSegmentSupportHeight(session, blockedSegments, 0xFFFF, 0); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~blockedSegments, height + 2, 0x20); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(blockedSegments), height + 2, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/gentle/SpaceRings.cpp b/src/openrct2/paint/track/gentle/SpaceRings.cpp index 955e0f3b34..0419e6e19e 100644 --- a/src/openrct2/paint/track/gentle/SpaceRings.cpp +++ b/src/openrct2/paint/track/gentle/SpaceRings.cpp @@ -142,45 +142,40 @@ static void PaintSpaceRings( break; } - int32_t cornerSegments = 0; + PaintSegments cornerSegments = {}; switch (trackSequence) { - case 0: - cornerSegments = 0; - break; case 1: - cornerSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + cornerSegments = { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, + PaintSegment::right }; break; case 2: - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + cornerSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right }; break; case 3: - cornerSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, - PaintSegment::bottom); + cornerSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 4: - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::left); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left }; break; case 5: - cornerSegments = EnumsToFlags(PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom); + cornerSegments = { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom }; break; case 6: - cornerSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::bottom }; break; case 7: - cornerSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, - PaintSegment::right); + cornerSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right }; break; case 8: - cornerSegments = EnumsToFlags(PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + cornerSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom }; break; } PaintUtilSetSegmentSupportHeight(session, cornerSegments, height + 2, 0x20); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~cornerSegments, 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(cornerSegments), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } diff --git a/src/openrct2/paint/track/thrill/3dCinema.cpp b/src/openrct2/paint/track/thrill/3dCinema.cpp index 9534724ac8..a630493526 100644 --- a/src/openrct2/paint/track/thrill/3dCinema.cpp +++ b/src/openrct2/paint/track/thrill/3dCinema.cpp @@ -93,29 +93,29 @@ static void Paint3dCinema( break; } - int32_t cornerSegments = 0; + PaintSegments cornerSegments = {}; switch (trackSequence) { case 1: // top - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 3: // right - cornerSegments = EnumsToFlags(PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight }; break; case 6: // left - cornerSegments = EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft); + cornerSegments = { PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft }; break; case 7: // bottom - cornerSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, cornerSegments, height + 2, 0x20); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~cornerSegments, 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(cornerSegments), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 128); } diff --git a/src/openrct2/paint/track/thrill/Enterprise.cpp b/src/openrct2/paint/track/thrill/Enterprise.cpp index 4983e467ed..c6b753643f 100644 --- a/src/openrct2/paint/track/thrill/Enterprise.cpp +++ b/src/openrct2/paint/track/thrill/Enterprise.cpp @@ -152,24 +152,24 @@ static void PaintEnterprise( break; } - int32_t cornerSegments = 0; + PaintSegments cornerSegments = {}; switch (trackSequence) { case 0: - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 3: - cornerSegments = EnumsToFlags(PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight }; break; case 12: - cornerSegments = EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft); + cornerSegments = { PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft }; break; case 15: - cornerSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, cornerSegments, height + 2, 0x20); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~cornerSegments, 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(cornerSegments), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 160); } diff --git a/src/openrct2/paint/track/thrill/GoKarts.cpp b/src/openrct2/paint/track/thrill/GoKarts.cpp index ca4621db7e..0d44e914f2 100644 --- a/src/openrct2/paint/track/thrill/GoKarts.cpp +++ b/src/openrct2/paint/track/thrill/GoKarts.cpp @@ -1935,10 +1935,10 @@ static void TrackLeftQuarterTurn3Tiles( WoodenSupportTransitionType::none); } TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, kTunnelGroup, TunnelSubType::flat, height, direction, trackSequence); - static constexpr std::array blockedSegments = { + static constexpr std::array blockedSegments = { kSegmentsAll, - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, kSegmentsAll, }; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); @@ -1978,19 +1978,16 @@ static void TrackLeftQuarterTurn5Tiles( { PaintUtilPushTunnelRotated(session, DirectionPrev(direction), height, kTunnelGroup, TunnelSubType::flat); } - static constexpr std::array blockedSegments = { + static constexpr std::array blockedSegments = { kSegmentsAll, - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, kSegmentsAll, }; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); @@ -2291,10 +2288,10 @@ static void TrackLeftQuarterTurn3TilesUp25( PaintUtilPushTunnelRotated(session, DirectionPrev(direction), height + 8, kTunnelGroup, TunnelSubType::slopeEnd); } - static constexpr std::array blockedSegments = { + static constexpr std::array blockedSegments = { kSegmentsAll, - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, kSegmentsAll, }; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); @@ -2349,10 +2346,10 @@ static void TrackRightQuarterTurn3TilesUp25( PaintUtilPushTunnelRotated(session, DirectionNext(direction), height + 8, kTunnelGroup, TunnelSubType::slopeEnd); } - static constexpr std::array blockedSegments = { + static constexpr std::array blockedSegments = { kSegmentsAll, - EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight), - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight }, + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, kSegmentsAll, }; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); @@ -2418,19 +2415,16 @@ static void TrackLeftQuarterTurn5TilesUp25( PaintUtilPushTunnelRotated(session, DirectionPrev(direction), height + 8, kTunnelGroup, TunnelSubType::slopeEnd); } - static constexpr std::array blockedSegments = { + static constexpr std::array blockedSegments = { kSegmentsAll, - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), - EnumsToFlags( - PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, + { PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, + { PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, kSegmentsAll, }; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); @@ -2478,19 +2472,16 @@ static void TrackRightQuarterTurn5TilesUp25( PaintUtilPushTunnelRotated(session, DirectionNext(direction), height + 8, kTunnelGroup, TunnelSubType::slopeEnd); } - static constexpr std::array blockedSegments = { + static constexpr std::array blockedSegments = { kSegmentsAll, - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, + { PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight }, + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, kSegmentsAll, }; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); @@ -2712,14 +2703,12 @@ static void TrackSBendLeft( { PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::flat); } - static constexpr std::array blockedSegments = { + static constexpr std::array blockedSegments = { kSegmentsAll, - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, kSegmentsAll, }; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); @@ -2747,14 +2736,12 @@ static void TrackSBendRight( { PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::flat); } - static constexpr std::array blockedSegments = { + static constexpr std::array blockedSegments = { kSegmentsAll, - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, kSegmentsAll, }; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0); diff --git a/src/openrct2/paint/track/thrill/LaunchedFreefall.cpp b/src/openrct2/paint/track/thrill/LaunchedFreefall.cpp index 0e1c900df4..244de58c9f 100644 --- a/src/openrct2/paint/track/thrill/LaunchedFreefall.cpp +++ b/src/openrct2/paint/track/thrill/LaunchedFreefall.cpp @@ -65,45 +65,43 @@ static void PaintLaunchedFreefallBase( height -= 64; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: blockedSegments = kSegmentsAll; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, + PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, - PaintSegment::bottom); + blockedSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 4: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left }; break; case 5: - blockedSegments = EnumsToFlags(PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom }; break; case 6: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::bottom }; break; case 7: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, - PaintSegment::right); + blockedSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right }; break; case 8: - blockedSegments = EnumsToFlags(PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + blockedSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom }; break; } PaintUtilSetSegmentSupportHeight(session, blockedSegments, 0xFFFF, 0); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~blockedSegments, height + 2, 0x20); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(blockedSegments), height + 2, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/thrill/RotoDrop.cpp b/src/openrct2/paint/track/thrill/RotoDrop.cpp index 3156653f7a..fc09564464 100644 --- a/src/openrct2/paint/track/thrill/RotoDrop.cpp +++ b/src/openrct2/paint/track/thrill/RotoDrop.cpp @@ -72,42 +72,40 @@ static void PaintRotoDropBase( return; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 1: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, + PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, - PaintSegment::bottom); + blockedSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 4: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left }; break; case 5: - blockedSegments = EnumsToFlags(PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom }; break; case 6: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::bottom }; break; case 7: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, - PaintSegment::right); + blockedSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right }; break; case 8: - blockedSegments = EnumsToFlags(PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + blockedSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom }; break; } PaintUtilSetSegmentSupportHeight(session, blockedSegments, 0xFFFF, 0); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~blockedSegments, height + 2, 0x20); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(blockedSegments), height + 2, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/thrill/TopSpin.cpp b/src/openrct2/paint/track/thrill/TopSpin.cpp index 704b61e895..e51ae4ff48 100644 --- a/src/openrct2/paint/track/thrill/TopSpin.cpp +++ b/src/openrct2/paint/track/thrill/TopSpin.cpp @@ -219,29 +219,29 @@ static void PaintTopSpin( break; } - int32_t cornerSegments = 0; + PaintSegments cornerSegments = {}; switch (trackSequence) { case 1: // top - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 3: // right - cornerSegments = EnumsToFlags(PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight }; break; case 6: // left - cornerSegments = EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft); + cornerSegments = { PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft }; break; case 7: // bottom - cornerSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, cornerSegments, height + 2, 0x20); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~cornerSegments, 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(cornerSegments), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 112); } diff --git a/src/openrct2/paint/track/thrill/Twist.cpp b/src/openrct2/paint/track/thrill/Twist.cpp index 2887355e70..b9562bf7b4 100644 --- a/src/openrct2/paint/track/thrill/Twist.cpp +++ b/src/openrct2/paint/track/thrill/Twist.cpp @@ -143,25 +143,25 @@ static void PaintTwist( break; } - int32_t cornerSegments = 0; + PaintSegments cornerSegments = {}; switch (trackSequence) { case 1: - cornerSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + cornerSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 3: - cornerSegments = EnumsToFlags(PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight }; break; case 6: - cornerSegments = EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft); + cornerSegments = { PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft }; break; case 7: - cornerSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight); + cornerSegments = { PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } PaintUtilSetSegmentSupportHeight(session, cornerSegments, height + 2, 0x20); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~cornerSegments, 0xFFFF, 0); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(cornerSegments), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); } diff --git a/src/openrct2/paint/track/transport/Chairlift.cpp b/src/openrct2/paint/track/transport/Chairlift.cpp index 2ae2ca7523..7041d202d9 100644 --- a/src/openrct2/paint/track/transport/Chairlift.cpp +++ b/src/openrct2/paint/track/transport/Chairlift.cpp @@ -84,13 +84,14 @@ const uint32_t chairlift_bullwheel_frames[] = { SPR_CHAIRLIFT_BULLWHEEL_FRAME_4, }; -static void ChairliftPaintUtilDrawSupports(PaintSession& session, int32_t segments, uint16_t height, SupportType supportType) +static void ChairliftPaintUtilDrawSupports( + PaintSession& session, PaintSegments segments, uint16_t height, SupportType supportType) { bool success = false; for (uint8_t s = 0; s < std::size(kSegmentOffsets); s++) { - if (!(segments & kSegmentOffsets[s])) + if (!(segments.has(kSegmentOffsets[s]))) { continue; } @@ -110,7 +111,7 @@ static void ChairliftPaintUtilDrawSupports(PaintSession& session, int32_t segmen SupportHeight* supportSegments = session.SupportSegments; for (uint8_t s = 0; s < std::size(kSegmentOffsets); s++) { - if (!(segments & kSegmentOffsets[s])) + if (!(segments.has(kSegmentOffsets[s]))) { continue; } @@ -489,7 +490,7 @@ static void ChairliftPaintFlatTo25DegUp( break; } - ChairliftPaintUtilDrawSupports(session, EnumToFlag(PaintSegment::centre), height, supportType); + ChairliftPaintUtilDrawSupports(session, PaintSegment::centre, height, supportType); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -544,7 +545,7 @@ static void ChairliftPaint25DegUpToFlat( break; } - ChairliftPaintUtilDrawSupports(session, EnumToFlag(PaintSegment::centre), height, supportType); + ChairliftPaintUtilDrawSupports(session, PaintSegment::centre, height, supportType); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -635,8 +636,7 @@ static void ChairliftPaintLeftQuarterTurn1Tile( } ChairliftPaintUtilDrawSupports( - session, PaintUtilRotateSegments(EnumsToFlags(PaintSegment::topLeft, PaintSegment::bottomLeft), direction), height, - supportType); + session, PaintUtilRotateSegments({ PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), height, supportType); PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); diff --git a/src/openrct2/paint/track/transport/Lift.cpp b/src/openrct2/paint/track/transport/Lift.cpp index 6e9a4c8548..285810df91 100644 --- a/src/openrct2/paint/track/transport/Lift.cpp +++ b/src/openrct2/paint/track/transport/Lift.cpp @@ -78,42 +78,40 @@ static void PaintLiftBase( session, edges, session.MapPosition, trackElement, ride, session.TrackColours, height, kFenceSpritesPicketDuplicate, session.CurrentRotation); - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 1: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, + PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, - PaintSegment::bottom); + blockedSegments = { PaintSegment::top, PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 4: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left }; break; case 5: - blockedSegments = EnumsToFlags(PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom }; break; case 6: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::bottom }; break; case 7: - blockedSegments = EnumsToFlags( - PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, - PaintSegment::right); + blockedSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right }; break; case 8: - blockedSegments = EnumsToFlags(PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom); + blockedSegments = { PaintSegment::left, PaintSegment::bottomLeft, PaintSegment::bottom }; break; } PaintUtilSetSegmentSupportHeight(session, blockedSegments, 0xFFFF, 0); - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll & ~blockedSegments, height + 2, 0x20); + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll.without(blockedSegments), height + 2, 0x20); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } diff --git a/src/openrct2/paint/track/transport/MiniatureRailway.cpp b/src/openrct2/paint/track/transport/MiniatureRailway.cpp index 8c783ea744..8b192f7d1e 100644 --- a/src/openrct2/paint/track/transport/MiniatureRailway.cpp +++ b/src/openrct2/paint/track/transport/MiniatureRailway.cpp @@ -1042,32 +1042,30 @@ static void PaintMiniatureRailwayTrackRightQuarterTurn5Tiles( PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: blockedSegments = kSegmentsAll; break; case 1: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::top, PaintSegment::left, PaintSegment::right, + PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }; break; case 4: - blockedSegments = EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }; break; case 5: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }; break; case 6: blockedSegments = kSegmentsAll; @@ -1175,21 +1173,19 @@ static void PaintMiniatureRailwayTrackSBendLeft( } } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: blockedSegments = kSegmentsAll; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }; break; case 3: blockedSegments = kSegmentsAll; @@ -1286,21 +1282,19 @@ static void PaintMiniatureRailwayTrackSBendRight( } } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: blockedSegments = kSegmentsAll; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }; break; case 3: blockedSegments = kSegmentsAll; @@ -1402,15 +1396,15 @@ static void PaintMiniatureRailwayTrackRightQuarterTurn3Tiles( } TrackPaintUtilRightQuarterTurn3TilesTunnel(session, kTunnelGroup, TunnelSubType::flat, height, direction, trackSequence); - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: blockedSegments = kSegmentsAll; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 3: blockedSegments = kSegmentsAll; diff --git a/src/openrct2/paint/track/transport/Monorail.cpp b/src/openrct2/paint/track/transport/Monorail.cpp index 2849122bf1..80c3ae8199 100644 --- a/src/openrct2/paint/track/transport/Monorail.cpp +++ b/src/openrct2/paint/track/transport/Monorail.cpp @@ -436,9 +436,7 @@ static void PaintMonorailTrackFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -512,9 +510,7 @@ static void PaintMonorailTrack25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -557,9 +553,7 @@ static void PaintMonorailTrackFlatTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -602,9 +596,7 @@ static void PaintMonorailTrack25DegUpToFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -670,30 +662,25 @@ static void PaintMonorailTrackRightQuarterTurn5Tiles( PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::right, PaintSegment::bottom, PaintSegment::topRight }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre); + blockedSegments = { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }; break; case 5: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, + PaintSegment::left, PaintSegment::bottom, PaintSegment::topLeft }; break; case 6: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } @@ -758,26 +745,22 @@ static void PaintMonorailTrackSBendLeft( } DrawSBendLeftSupports(session, supportType.metal, originalTrackSequence, direction, height, 0, 0); - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction & 1), 0xFFFF, 0); @@ -828,26 +811,22 @@ static void PaintMonorailTrackSBendRight( } DrawSBendRightSupports(session, supportType.metal, originalTrackSequence, direction, height, 0, 0); - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction & 1), 0xFFFF, 0); @@ -873,20 +852,18 @@ static void PaintMonorailTrackRightQuarterTurn3Tiles( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); @@ -953,30 +930,26 @@ static void PaintMonorailTrackLeftEighthToDiag( PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::bottomRight, - PaintSegment::right); + blockedSegments = { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::left, PaintSegment::topLeft); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::left, PaintSegment::topLeft }; break; case 4: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, - PaintSegment::bottom, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::topLeft, PaintSegment::bottom, PaintSegment::bottomRight }; break; } @@ -1029,29 +1002,27 @@ static void PaintMonorailTrackRightEighthToDiag( PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::flat); } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }; break; case 1: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottom, - PaintSegment::bottomRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, PaintSegment::topLeft, PaintSegment::top); + blockedSegments = { PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, PaintSegment::topLeft, + PaintSegment::top }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, + PaintSegment::bottomRight }; break; case 4: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::left, - PaintSegment::topLeft, PaintSegment::bottomRight); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomRight }; break; } @@ -1101,7 +1072,7 @@ static void PaintMonorailTrackDiag25DegUp( session, supportType.metal, kDiagSupportPlacement[direction], 8, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -1121,7 +1092,7 @@ static void PaintMonorailTrackDiagFlatTo25DegUp( session, supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -1141,7 +1112,7 @@ static void PaintMonorailTrackDiag25DegUpToFlat( session, supportType.metal, kDiagSupportPlacement[direction], 4, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -1161,7 +1132,7 @@ static void PaintMonorailTrackDiag25DegDown( session, supportType.metal, kDiagSupportPlacement[direction], 8, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -1181,7 +1152,7 @@ static void PaintMonorailTrackDiagFlatTo25DegDown( session, supportType.metal, kDiagSupportPlacement[direction], 4, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -1201,7 +1172,7 @@ static void PaintMonorailTrackDiag25DegDownToFlat( session, supportType.metal, kDiagSupportPlacement[direction], 0, height, session.SupportColours); } - int32_t blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; + PaintSegments blockedSegments = BlockedSegments::kDiagStraightFlat[trackSequence]; PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } diff --git a/src/openrct2/paint/track/transport/SuspendedMonorail.cpp b/src/openrct2/paint/track/transport/SuspendedMonorail.cpp index 4834af99dd..d66b78e082 100644 --- a/src/openrct2/paint/track/transport/SuspendedMonorail.cpp +++ b/src/openrct2/paint/track/transport/SuspendedMonorail.cpp @@ -329,9 +329,8 @@ static void SuspendedMonorailTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -371,9 +370,8 @@ static void SuspendedMonorailTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -404,7 +402,7 @@ static void SuspendedMonorailTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -437,9 +435,8 @@ static void SuspendedMonorailTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -472,9 +469,8 @@ static void SuspendedMonorailTrackLeftQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -539,8 +535,7 @@ static void SuspendedMonorailTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 42, 0, 0); @@ -576,9 +571,8 @@ static void SuspendedMonorailTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 42, 0, 0); @@ -611,9 +605,8 @@ static void SuspendedMonorailTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 42, 0, 0); @@ -648,7 +641,7 @@ static void SuspendedMonorailTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendLeftSupports(session, supportType.metal, trackSequence, direction, height + 42, 0, 0); @@ -702,8 +695,7 @@ static void SuspendedMonorailTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 42, 0, 0); @@ -739,9 +731,8 @@ static void SuspendedMonorailTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 42, 0, 0); @@ -774,9 +765,8 @@ static void SuspendedMonorailTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 42, 0, 0); @@ -811,8 +801,7 @@ static void SuspendedMonorailTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); DrawSBendRightSupports(session, supportType.metal, trackSequence, direction, height + 42, 0, 0); @@ -865,9 +854,8 @@ static void SuspendedMonorailTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -908,8 +896,7 @@ static void SuspendedMonorailTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -941,9 +928,8 @@ static void SuspendedMonorailTrackLeftQuarterTurn3( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); MetalASupportsPaintSetup( @@ -1043,9 +1029,8 @@ static void SuspendedMonorailTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1077,9 +1062,8 @@ static void SuspendedMonorailTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1088,8 +1072,7 @@ static void SuspendedMonorailTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); break; @@ -1121,9 +1104,8 @@ static void SuspendedMonorailTrackLeftEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -1221,9 +1203,8 @@ static void SuspendedMonorailTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1255,9 +1236,8 @@ static void SuspendedMonorailTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1266,8 +1246,7 @@ static void SuspendedMonorailTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); @@ -1300,9 +1279,8 @@ static void SuspendedMonorailTrackRightEighthToDiag( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); switch (direction) @@ -1388,7 +1366,7 @@ static void SuspendedMonorailTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1405,8 +1383,7 @@ static void SuspendedMonorailTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1422,8 +1399,7 @@ static void SuspendedMonorailTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1441,8 +1417,7 @@ static void SuspendedMonorailTrackDiag25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -1488,7 +1463,7 @@ static void SuspendedMonorailTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1505,8 +1480,7 @@ static void SuspendedMonorailTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -1522,8 +1496,7 @@ static void SuspendedMonorailTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1541,8 +1514,7 @@ static void SuspendedMonorailTrackDiagFlatTo25DegUp( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -1588,7 +1560,7 @@ static void SuspendedMonorailTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1605,8 +1577,7 @@ static void SuspendedMonorailTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1622,8 +1593,7 @@ static void SuspendedMonorailTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1641,8 +1611,7 @@ static void SuspendedMonorailTrackDiag25DegUpToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -1688,7 +1657,7 @@ static void SuspendedMonorailTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1705,8 +1674,7 @@ static void SuspendedMonorailTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); break; @@ -1722,8 +1690,7 @@ static void SuspendedMonorailTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); @@ -1741,8 +1708,7 @@ static void SuspendedMonorailTrackDiag25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -1788,7 +1754,7 @@ static void SuspendedMonorailTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1804,8 +1770,7 @@ static void SuspendedMonorailTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: @@ -1820,8 +1785,7 @@ static void SuspendedMonorailTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1838,8 +1802,7 @@ static void SuspendedMonorailTrackDiagFlatTo25DegDown( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { @@ -1885,7 +1848,7 @@ static void SuspendedMonorailTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1902,8 +1865,7 @@ static void SuspendedMonorailTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); break; @@ -1919,8 +1881,7 @@ static void SuspendedMonorailTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64); @@ -1938,8 +1899,7 @@ static void SuspendedMonorailTrackDiag25DegDownToFlat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); switch (direction) { diff --git a/src/openrct2/paint/track/water/BoatHire.cpp b/src/openrct2/paint/track/water/BoatHire.cpp index b09384f6af..66280de825 100644 --- a/src/openrct2/paint/track/water/BoatHire.cpp +++ b/src/openrct2/paint/track/water/BoatHire.cpp @@ -59,9 +59,7 @@ static void PaintBoatHireTrackFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 16); } @@ -121,8 +119,7 @@ static void PaintBoatHireTrackLeftQuarterTurn1Tile( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments(EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topLeft), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 16); } diff --git a/src/openrct2/paint/track/water/DinghySlide.cpp b/src/openrct2/paint/track/water/DinghySlide.cpp index 82c6706414..80cd068177 100644 --- a/src/openrct2/paint/track/water/DinghySlide.cpp +++ b/src/openrct2/paint/track/water/DinghySlide.cpp @@ -245,9 +245,7 @@ static void DinghySlideTrackFlat( PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::flat); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -330,9 +328,7 @@ static void DinghySlideTrack25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -369,9 +365,7 @@ static void DinghySlideTrack60DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); } @@ -417,9 +411,7 @@ static void DinghySlideTrackFlatTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -456,9 +448,7 @@ static void DinghySlideTrack25DegUpTo60DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -495,9 +485,7 @@ static void DinghySlideTrack60DegUpTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -543,9 +531,7 @@ static void DinghySlideTrack25DegUpToFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -684,17 +670,15 @@ static void DinghySlideTrackRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -702,17 +686,15 @@ static void DinghySlideTrackRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), - direction), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -720,8 +702,7 @@ static void DinghySlideTrackRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left), - direction), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; } @@ -789,8 +770,7 @@ static void DinghySlideTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 1: @@ -802,9 +782,8 @@ static void DinghySlideTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -817,9 +796,8 @@ static void DinghySlideTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -831,7 +809,7 @@ static void DinghySlideTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -900,8 +878,7 @@ static void DinghySlideTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 1: @@ -913,9 +890,8 @@ static void DinghySlideTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -928,9 +904,8 @@ static void DinghySlideTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -942,8 +917,7 @@ static void DinghySlideTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -1027,20 +1001,18 @@ static void DinghySlideTrackRightQuarterTurn3( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); diff --git a/src/openrct2/paint/track/water/DinghySlideCovered.cpp b/src/openrct2/paint/track/water/DinghySlideCovered.cpp index b4f6000350..7aab555130 100644 --- a/src/openrct2/paint/track/water/DinghySlideCovered.cpp +++ b/src/openrct2/paint/track/water/DinghySlideCovered.cpp @@ -198,9 +198,7 @@ static void DinghySlideTrackCoveredFlat( PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::flat); PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } @@ -237,9 +235,7 @@ static void DinghySlideTrackCovered25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 56); } @@ -276,9 +272,7 @@ static void DinghySlideTrackCovered60DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104); } @@ -315,9 +309,7 @@ static void DinghySlideTrackCoveredFlatTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48); } @@ -354,9 +346,7 @@ static void DinghySlideTrackCovered25DegUpTo60DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -393,9 +383,7 @@ static void DinghySlideTrackCovered60DegUpTo25DegUp( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 72); } @@ -432,9 +420,7 @@ static void DinghySlideTrackCovered25DegUpToFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 40); } @@ -574,17 +560,15 @@ static void DinghySlideTrackCoveredRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -592,17 +576,15 @@ static void DinghySlideTrackCoveredRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), - direction), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -610,8 +592,7 @@ static void DinghySlideTrackCoveredRightQuarterTurn5( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left), - direction), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; } @@ -673,8 +654,7 @@ static void DinghySlideTrackCoveredSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 1: @@ -686,9 +666,8 @@ static void DinghySlideTrackCoveredSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -701,9 +680,8 @@ static void DinghySlideTrackCoveredSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -715,7 +693,7 @@ static void DinghySlideTrackCoveredSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -784,8 +762,7 @@ static void DinghySlideTrackCoveredSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 1: @@ -797,9 +774,8 @@ static void DinghySlideTrackCoveredSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -812,9 +788,8 @@ static void DinghySlideTrackCoveredSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -826,8 +801,7 @@ static void DinghySlideTrackCoveredSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -911,20 +885,18 @@ static void DinghySlideTrackCoveredRightQuarterTurn3( break; } - int32_t blockedSegments = 0; + PaintSegments blockedSegments = {}; switch (trackSequence) { case 0: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::right }; break; case 2: - blockedSegments = EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom); + blockedSegments = { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::bottom }; break; case 3: - blockedSegments = EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left); + blockedSegments = { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::left }; break; } PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0); diff --git a/src/openrct2/paint/track/water/LogFlume.cpp b/src/openrct2/paint/track/water/LogFlume.cpp index dd63ff8745..6cca35bf6d 100644 --- a/src/openrct2/paint/track/water/LogFlume.cpp +++ b/src/openrct2/paint/track/water/LogFlume.cpp @@ -465,8 +465,7 @@ static void PaintLogFlumeTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 1: @@ -478,9 +477,8 @@ static void PaintLogFlumeTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -493,9 +491,8 @@ static void PaintLogFlumeTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -507,7 +504,7 @@ static void PaintLogFlumeTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -576,8 +573,7 @@ static void PaintLogFlumeTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 1: @@ -589,9 +585,8 @@ static void PaintLogFlumeTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -604,9 +599,8 @@ static void PaintLogFlumeTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -618,8 +612,7 @@ static void PaintLogFlumeTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; } @@ -707,23 +700,21 @@ static void PaintLogFlumeTrackLeftQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 3: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -797,16 +788,14 @@ static void PaintLogFlumeTrackRightQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), - direction), + { PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -814,8 +803,7 @@ static void PaintLogFlumeTrackRightQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), - direction), + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; } diff --git a/src/openrct2/paint/track/water/SplashBoats.cpp b/src/openrct2/paint/track/water/SplashBoats.cpp index 342c93d649..762deed062 100644 --- a/src/openrct2/paint/track/water/SplashBoats.cpp +++ b/src/openrct2/paint/track/water/SplashBoats.cpp @@ -801,17 +801,15 @@ static void PaintSplashBoatsTrackLeftQuarterTurn5Tiles( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top, - PaintSegment::left, PaintSegment::bottomLeft), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top, + PaintSegment::left, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -819,26 +817,23 @@ static void PaintSplashBoatsTrackLeftQuarterTurn5Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::centre, - PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft), + { PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::centre, + PaintSegment::top, PaintSegment::bottom, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight), direction), + PaintUtilRotateSegments({ PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft, - PaintSegment::bottom, PaintSegment::left), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottomLeft, + PaintSegment::bottom, PaintSegment::left }, direction), 0xFFFF, 0); break; @@ -887,17 +882,15 @@ static void PaintSplashBoatsTrackRightQuarterTurn5Tiles( case 1: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, - PaintSegment::bottom, PaintSegment::topRight), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, + PaintSegment::bottom, PaintSegment::topRight }, direction), 0xFFFF, 0); break; @@ -905,26 +898,23 @@ static void PaintSplashBoatsTrackRightQuarterTurn5Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre, - PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre, + PaintSegment::left, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; case 4: PaintUtilSetSegmentSupportHeight( session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight), direction), + PaintUtilRotateSegments({ PaintSegment::top, PaintSegment::topLeft, PaintSegment::topRight }, direction), 0xFFFF, 0); break; case 5: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, - PaintSegment::bottom, PaintSegment::topLeft), + { PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::topLeft }, direction), 0xFFFF, 0); break; @@ -1010,9 +1000,8 @@ static void PaintSplashBoatsTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; @@ -1028,9 +1017,8 @@ static void PaintSplashBoatsTrackSBendLeft( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1120,9 +1108,8 @@ static void PaintSplashBoatsTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight), + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, direction), 0xFFFF, 0); break; @@ -1138,9 +1125,8 @@ static void PaintSplashBoatsTrackSBendRight( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); break; diff --git a/src/openrct2/paint/track/water/SubmarineRide.cpp b/src/openrct2/paint/track/water/SubmarineRide.cpp index 93fe50029f..4a397a3d56 100644 --- a/src/openrct2/paint/track/water/SubmarineRide.cpp +++ b/src/openrct2/paint/track/water/SubmarineRide.cpp @@ -72,9 +72,7 @@ static void SubmarineRidePaintTrackFlat( } PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight), direction), + session, PaintUtilRotateSegments({ PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 16); } @@ -97,16 +95,14 @@ static void SubmarineRidePaintTrackLeftQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top), - direction), + { PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::top }, direction), 0xFFFF, 0); break; case 2: PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left), - direction), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::left }, direction), 0xFFFF, 0); break; case 3: @@ -115,7 +111,7 @@ static void SubmarineRidePaintTrackLeftQuarterTurn3Tiles( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom), + { PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::bottom }, direction), 0xFFFF, 0); break; @@ -151,7 +147,7 @@ static void SubmarineRidePaintTrackLeftQuarterTurn1Tile( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), direction), + { PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft }, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 16); } diff --git a/src/openrct2/ride/TrackData.cpp b/src/openrct2/ride/TrackData.cpp index 17d240e443..4342a0eb4e 100644 --- a/src/openrct2/ride/TrackData.cpp +++ b/src/openrct2/ride/TrackData.cpp @@ -185,9 +185,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -196,9 +196,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1100, .woodenSupports = { WoodenSupportSubType::null }, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsNone, // inverted - EnumsToFlags(PS::right, PS::topRight, PS::bottomRight), // wide + kSegmentsNone, // narrow + kSegmentsNone, // inverted + { PS::right, PS::topRight, PS::bottomRight }, // wide } }, }; @@ -207,18 +207,16 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0011, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = blockedSegmentsAllTypes( - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft)), + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }), }; static constexpr SequenceDescriptor kLeftQuarterTurn5TilesSeq3 = { .clearance = { -32, -32, 0, 0, { 0b1101, 0 }, {} }, .woodenSupports = { WoodenSupportSubType::corner1 }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - EnumsToFlags( - PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, - PS::bottomRight), // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + { PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // wide } }, }; @@ -228,9 +226,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::null }, .extraSupportRotation = -1, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsNone, // inverted - EnumsToFlags(PS::right, PS::topRight, PS::bottomRight), // wide + kSegmentsNone, // narrow + kSegmentsNone, // inverted + { PS::right, PS::topRight, PS::bottomRight }, // wide } }, }; @@ -240,7 +238,7 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::corner0 }, .extraSupportRotation = -1, .blockedSegments = blockedSegmentsAllTypes( - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight)), + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }), }; static constexpr SequenceDescriptor kLeftQuarterTurn5TilesSeq6 = { @@ -251,9 +249,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -319,9 +317,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .metalSupports = { MetalSupportPlace::centre, true }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -341,9 +339,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .metalSupports = { MetalSupportPlace::centre, true }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -473,9 +471,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::flatToUp25Deg }, .metalSupports = { MetalSupportPlace::centre, true }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -495,9 +493,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25DegToFlat }, .metalSupports = { MetalSupportPlace::centre, true }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -518,9 +516,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre, true }, .extraSupportRotation = 2, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -542,9 +540,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre, true }, .extraSupportRotation = 2, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -565,9 +563,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .metalSupports = { MetalSupportPlace::centre, true }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -801,9 +799,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::corner3 }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -815,7 +813,7 @@ namespace OpenRCT2::TrackMetadata static constexpr SequenceDescriptor kLeftQuarterTurn3TilesSeq2 = { .clearance = { -32, 0, 0, 0, { 0b0010, 0 }, {} }, .allowedWallEdges = 0b0011, - .blockedSegments = blockedSegmentsAllTypes(EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft)), + .blockedSegments = blockedSegmentsAllTypes({ PS::left, PS::centre, PS::topLeft, PS::bottomLeft }), }; static constexpr SequenceDescriptor kLeftQuarterTurn3TilesSeq3 = { @@ -826,9 +824,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -870,9 +868,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::corner3 }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -884,7 +882,7 @@ namespace OpenRCT2::TrackMetadata static constexpr SequenceDescriptor kLeftBankedQuarterTurn3TilesSeq2 = { .clearance = { -32, 0, 0, 0, { 0b0010, 0 }, {} }, .allowedWallEdges = 0b0011, - .blockedSegments = blockedSegmentsAllTypes(EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft)), + .blockedSegments = blockedSegmentsAllTypes({ PS::left, PS::centre, PS::topLeft, PS::bottomLeft }), }; static constexpr SequenceDescriptor kLeftBankedQuarterTurn3TilesSeq3 = { @@ -895,9 +893,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -939,9 +937,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::corner3 }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -954,9 +952,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 16, 0, { 0b0010, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsNone, // inverted - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // wide + kSegmentsNone, // narrow + kSegmentsNone, // inverted + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // wide } }, }; @@ -968,9 +966,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -1074,9 +1072,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::corner3 }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -1095,9 +1093,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1105,9 +1103,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 0, 16, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1010, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1117,9 +1115,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1605,8 +1603,8 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::topLeft, PS::left), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::topLeft, PS::left }, // narrow + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted kSegmentsAll, // wide } }, .generalSupportHeight = calculateGeneralSupportHeight(kLeftQuarterBankedHelixLargeUpSeq0.clearance, 0, false), @@ -1634,10 +1632,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0011, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - EnumsToFlags( - PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottom, PS::bottomRight), // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottom, PS::bottomRight }, // wide } }, .generalSupportHeight = calculateGeneralSupportHeight(kLeftQuarterBankedHelixLargeUpSeq2.clearance, 0, false), }; @@ -1646,11 +1643,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, -32, 0, 16, { 0b1101, 0 }, {} }, .woodenSupports = { WoodenSupportSubType::corner1 }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight, PS::bottom, PS::top), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - EnumsToFlags( - PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, - PS::bottomRight), // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight, PS::bottom, PS::top }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + { PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // wide } }, .generalSupportHeight = calculateGeneralSupportHeight(kLeftQuarterBankedHelixLargeUpSeq3.clearance, 0, false), }; @@ -1669,10 +1664,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::corner0 }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // inverted - EnumsToFlags( - PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight, PS::top, PS::topRight), // wide + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // inverted + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight, PS::top, PS::topRight }, // wide } }, .generalSupportHeight = calculateGeneralSupportHeight(kLeftQuarterBankedHelixLargeUpSeq5.clearance, 0, false), }; @@ -1685,8 +1679,8 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre, false, kCoordsZStep }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight, PS::bottomLeft, PS::left), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight, PS::bottomLeft, PS::left }, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted kSegmentsAll, // wide } }, .generalSupportHeight = calculateGeneralSupportHeight(kLeftQuarterBankedHelixLargeUpSeq6.clearance, 0, false), @@ -1909,9 +1903,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::topLeft), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::topLeft }, // narrow + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, .generalSupportHeight = calculateGeneralSupportHeight(kLeftQuarterHelixLargeUpSeq0.clearance, 0, false), .tunnels = kLeftQuarterBankedHelixLargeUpSeq0.tunnels, @@ -1964,9 +1958,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre, false, kCoordsZStep }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight, PS::bottomLeft }, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, .generalSupportHeight = calculateGeneralSupportHeight(kLeftQuarterHelixLargeUpSeq6.clearance, 0, false), .tunnels = kLeftQuarterBankedHelixLargeUpSeq6.tunnels, @@ -2387,9 +2381,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2398,9 +2392,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0010, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2409,9 +2403,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1000, .woodenSupports = { WoodenSupportSubType::corner1 }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2420,9 +2414,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0011, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2431,9 +2425,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .metalSupports = { MetalSupportPlace::bottomCorner }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2550,9 +2544,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2561,9 +2555,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0010, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2572,9 +2566,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1000, .woodenSupports = { WoodenSupportSubType::corner1 }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2583,9 +2577,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0011, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2593,11 +2587,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, -32, 0, 0, { 0b0001, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags( - PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, - PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2710,9 +2702,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 0, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2721,9 +2713,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2732,18 +2724,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatSeq3 = { .clearance = { -32, 32, 0, 0, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2751,9 +2743,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 16, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2762,9 +2754,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2773,18 +2765,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagUp25Seq3 = { .clearance = { -32, 32, 0, 16, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2792,9 +2784,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 64, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2803,9 +2795,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2814,18 +2806,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60Seq3 = { .clearance = { -32, 32, 0, 64, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2833,9 +2825,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2844,9 +2836,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2855,18 +2847,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp25Seq3 = { .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2874,9 +2866,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 32, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2885,9 +2877,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2896,18 +2888,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagUp25ToUp60Seq3 = { .clearance = { -32, 32, 0, 32, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2915,9 +2907,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 32, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2926,9 +2918,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2937,18 +2929,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToUp25Seq3 = { .clearance = { -32, 32, 0, 32, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -2956,9 +2948,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2967,9 +2959,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -2978,18 +2970,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagUp25ToFlatSeq3 = { .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3147,9 +3139,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 24, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -3158,9 +3150,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -3169,18 +3161,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60Seq3 = { .clearance = { -32, 32, 0, 24, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -3188,9 +3180,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 24, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -3199,9 +3191,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -3210,18 +3202,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatSeq3 = { .clearance = { -32, 32, 0, 24, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -3279,9 +3271,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 0, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3290,9 +3282,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3301,18 +3293,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToLeftBankSeq3 = { .clearance = { -32, 32, 0, 0, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3320,9 +3312,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 0, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3331,9 +3323,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3342,18 +3334,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToRightBankSeq3 = { .clearance = { -32, 32, 0, 0, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3361,9 +3353,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 0, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3372,9 +3364,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3383,18 +3375,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagLeftBankToFlatSeq3 = { .clearance = { -32, 32, 0, 0, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3402,9 +3394,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 0, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3413,9 +3405,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3424,18 +3416,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagRightBankToFlatSeq3 = { .clearance = { -32, 32, 0, 0, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3443,9 +3435,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3454,9 +3446,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3465,18 +3457,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagLeftBankToUp25Seq3 = { .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3484,9 +3476,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3495,9 +3487,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3506,18 +3498,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagRightBankToUp25Seq3 = { .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3525,9 +3517,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3536,9 +3528,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3547,18 +3539,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagUp25ToLeftBankSeq3 = { .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3566,9 +3558,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3577,9 +3569,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3588,27 +3580,27 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagUp25ToRightBankSeq3 = { .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagLeftBankToDown25Seq0 = { .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3617,9 +3609,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3628,9 +3620,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3638,18 +3630,18 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagRightBankToDown25Seq0 = { .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3658,9 +3650,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3669,9 +3661,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3679,18 +3671,18 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagDown25ToLeftBankSeq0 = { .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3699,9 +3691,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3710,9 +3702,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3720,18 +3712,18 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagDown25ToRightBankSeq0 = { .clearance = { 0, 0, 0, 8, { 0b1101, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3740,9 +3732,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3751,9 +3743,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3761,9 +3753,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 32, 0, 8, { 0b0010, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3771,9 +3763,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 0, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3782,9 +3774,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3793,18 +3785,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagLeftBankSeq3 = { .clearance = { -32, 32, 0, 0, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3812,9 +3804,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, 0, 0, { 0b1101, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3823,9 +3815,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0110, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -3834,18 +3826,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kDiagRightBankSeq3 = { .clearance = { -32, 32, 0, 0, { 0b0010, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -3874,9 +3866,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -3885,9 +3877,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -3898,9 +3890,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -3982,9 +3974,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -4002,9 +3994,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 0, 16, { 0b0010, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // wide + kSegmentsNone, // narrow + kSegmentsUnimplemented, // inverted + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // wide } }, }; @@ -4014,9 +4006,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -4117,9 +4109,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -4127,9 +4119,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, -16, 16, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1010, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -4139,9 +4131,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -4237,9 +4229,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -4248,9 +4240,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -4260,9 +4252,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -4271,9 +4263,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -4282,9 +4274,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -4294,9 +4286,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -4315,9 +4307,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -4347,9 +4339,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -4630,9 +4622,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -4645,9 +4637,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 16, 0, { 0b0010, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsNone, // inverted - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // wide + kSegmentsNone, // narrow + kSegmentsNone, // inverted + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // wide } }, }; @@ -4657,9 +4649,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -4753,9 +4745,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -4763,9 +4755,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, -32, 16, 0, { 0b1000, 0 }, { ClearanceFlag::flag0 } }, .allowedWallEdges = 0b1100, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsNone, // inverted - EnumsToFlags(PS::right, PS::topRight, PS::bottomRight), // wide + kSegmentsNone, // narrow + kSegmentsNone, // inverted + { PS::right, PS::topRight, PS::bottomRight }, // wide } }, }; @@ -4774,18 +4766,16 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0011, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = blockedSegmentsAllTypes( - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft)), + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }), }; static constexpr SequenceDescriptor kLeftBankedQuarterTurn5TileUp25Seq3 = { .clearance = { -32, -32, 24, 16, { 0b1101, 0 }, {} }, .woodenSupports = { WoodenSupportSubType::corner1 }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - EnumsToFlags( - PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, - PS::bottomRight), // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + { PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // wide } }, }; @@ -4793,9 +4783,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, -64, 48, 0, { 0b1000, 0 }, { ClearanceFlag::flag0 } }, .allowedWallEdges = 0b1100, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsNone, // inverted - EnumsToFlags(PS::right, PS::topRight, PS::bottomRight), // wide + kSegmentsNone, // narrow + kSegmentsNone, // inverted + { PS::right, PS::topRight, PS::bottomRight }, // wide } }, }; @@ -4803,7 +4793,7 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, -32, 32, 16, { 0b0111, 0b0100 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = blockedSegmentsAllTypes( - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight)), + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }), }; static constexpr SequenceDescriptor kLeftBankedQuarterTurn5TileUp25Seq6 = { @@ -4812,9 +4802,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -4981,9 +4971,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25Deg }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5001,9 +4991,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25Deg }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5022,9 +5012,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25Deg }, .extraSupportRotation = 2, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5044,9 +5034,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25Deg }, .extraSupportRotation = 2, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5065,9 +5055,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::flatToUp25Deg }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5085,9 +5075,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25DegToFlat }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5106,9 +5096,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25DegToFlat }, .extraSupportRotation = 2, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5128,9 +5118,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::flatToUp25Deg }, .extraSupportRotation = 2, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5149,9 +5139,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::flatToUp25Deg }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5169,9 +5159,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25DegToFlat }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5190,9 +5180,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25DegToFlat }, .extraSupportRotation = 2, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5212,9 +5202,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::flatToUp25Deg }, .extraSupportRotation = 2, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5232,9 +5222,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1111, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -5258,9 +5248,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1111, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::centre, PS::topLeft, PS::bottomRight), // inverted - kSegmentsAll, // wide + { PS::centre, PS::topLeft, PS::bottomRight }, // narrow + { PS::centre, PS::topLeft, PS::bottomRight }, // inverted + kSegmentsAll, // wide } }, }; @@ -5357,9 +5347,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw, WoodenSupportTransitionType::up25Deg }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -5368,9 +5358,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0010, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -5379,9 +5369,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1000, .woodenSupports = { WoodenSupportSubType::corner1 }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -5390,18 +5380,18 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0011, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; static constexpr SequenceDescriptor kLeftEighthToDiagUp25Seq4 = { .clearance = { -64, -32, 32, 24, { 0b0001, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; diff --git a/src/openrct2/ride/TrackPaint.cpp b/src/openrct2/ride/TrackPaint.cpp index 50d0db1a9d..b84c077c2c 100644 --- a/src/openrct2/ride/TrackPaint.cpp +++ b/src/openrct2/ride/TrackPaint.cpp @@ -1873,29 +1873,23 @@ void TrackPaintUtilOnridePhotoPaint( } } -static constexpr uint16_t RightVerticalLoopSegments[] = { - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), - EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), - EnumsToFlags( - PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, - PaintSegment::bottomRight), - 0, - 0, - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), - EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), - EnumsToFlags( - PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), +static constexpr PaintSegments RightVerticalLoopSegments[] = { + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight }, + {}, + {}, + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight }, + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, }; void TrackPaintUtilRightVerticalLoopSegments(PaintSession& session, Direction direction, uint8_t trackSequence) @@ -1917,9 +1911,8 @@ void TrackPaintUtilLeftCorkscrewUpSupports(PaintSession& session, Direction dire PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments( - EnumsToFlags( - PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, - PaintSegment::bottomLeft), + { PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft }, direction), 0xFFFF, 0); } diff --git a/src/openrct2/ride/ted/TED.Corkscrew.h b/src/openrct2/ride/ted/TED.Corkscrew.h index eba64d3b71..0eeedd3393 100644 --- a/src/openrct2/ride/ted/TED.Corkscrew.h +++ b/src/openrct2/ride/ted/TED.Corkscrew.h @@ -22,9 +22,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -45,9 +45,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -72,9 +72,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::top, PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::top, PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -171,9 +171,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -193,9 +193,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -204,9 +204,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -229,9 +229,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -239,9 +239,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 8, 32, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0010, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -249,9 +249,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, 32, 24, { 0b0111, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -270,9 +270,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0001, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -282,9 +282,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; diff --git a/src/openrct2/ride/ted/TED.DiveLoop.h b/src/openrct2/ride/ted/TED.DiveLoop.h index dcb8c08b31..a25145bd0f 100644 --- a/src/openrct2/ride/ted/TED.DiveLoop.h +++ b/src/openrct2/ride/ted/TED.DiveLoop.h @@ -53,36 +53,36 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0000, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kLeftEighthDiveLoopUpToOrthogonalSeq1 = { .clearance = { 0, 32, 0, 88, { 0b0100, 0 }, {} }, .allowedWallEdges = 0b0110, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kLeftEighthDiveLoopUpToOrthogonalSeq2 = { .clearance = { -32, 0, 0, 88, { 0b0001, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kLeftEighthDiveLoopUpToOrthogonalSeq3 = { .clearance = { -32, 32, 32, 80, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0010, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kLeftEighthDiveLoopUpToOrthogonalSeq4 = { @@ -90,9 +90,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kLeftEighthDiveLoopUpToOrthogonalSeq5 = { @@ -101,9 +101,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kRightEighthDiveLoopUpToOrthogonalSeq0 = { diff --git a/src/openrct2/ride/ted/TED.HalfHelix.h b/src/openrct2/ride/ted/TED.HalfHelix.h index e31c9cc717..a6e1c73d1f 100644 --- a/src/openrct2/ride/ted/TED.HalfHelix.h +++ b/src/openrct2/ride/ted/TED.HalfHelix.h @@ -23,9 +23,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::corner3 }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -44,9 +44,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 0, 4, { 0b0010, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // wide } }, }; @@ -57,9 +57,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -70,9 +70,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -91,9 +91,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, -96, 8, 4, { 0b0001, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // wide } }, }; @@ -105,9 +105,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -2, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -307,9 +307,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -317,9 +317,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, -32, 0, 0, { 0b1000, 0 }, { ClearanceFlag::flag0 } }, .allowedWallEdges = 0b1100, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::right, PS::topRight, PS::bottomRight), // wide + kSegmentsNone, // narrow + kSegmentsUnimplemented, // inverted + { PS::right, PS::topRight, PS::bottomRight }, // wide } }, }; @@ -328,9 +328,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0011, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // wide } }, }; @@ -338,11 +338,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, -32, 0, 0, { 0b1101, 0 }, {} }, .woodenSupports = { WoodenSupportSubType::corner1 }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags( - PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, - PS::bottomRight), // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + { PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // wide } }, }; @@ -350,9 +348,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, -64, 0, 4, { 0b1000, 0 }, { ClearanceFlag::flag0 } }, .allowedWallEdges = 0b1100, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::right, PS::topRight, PS::bottomRight), // wide + kSegmentsNone, // narrow + kSegmentsUnimplemented, // inverted + { PS::right, PS::topRight, PS::bottomRight }, // wide } }, }; @@ -361,9 +359,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0011, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // wide + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // wide } }, }; @@ -374,9 +372,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -387,9 +385,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -1, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -397,9 +395,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, -96, 8, 0, { 0b0100, 0 }, { ClearanceFlag::flag0 } }, .allowedWallEdges = 0b0110, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::top, PS::topLeft, PS::topRight), // wide + kSegmentsNone, // narrow + kSegmentsUnimplemented, // inverted + { PS::top, PS::topLeft, PS::topRight }, // wide } }, }; @@ -408,9 +406,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // wide + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // wide } }, }; @@ -418,11 +416,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, -128, 8, 0, { 0b1110, 0 }, {} }, .woodenSupports = { WoodenSupportSubType::corner0 }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags( - PS::top, PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, - PS::bottomRight), // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + { PS::top, PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // wide } }, }; @@ -430,9 +426,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, -128, 8, 4, { 0b0100, 0 }, { ClearanceFlag::flag0 } }, .allowedWallEdges = 0b0110, .blockedSegments = { { - kSegmentsNone, // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::top, PS::topLeft, PS::topRight), // wide + kSegmentsNone, // narrow + kSegmentsUnimplemented, // inverted + { PS::top, PS::topLeft, PS::topRight }, // wide } }, }; @@ -441,9 +437,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .woodenSupports = { WoodenSupportSubType::corner2 }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // wide } }, }; @@ -455,9 +451,9 @@ namespace OpenRCT2::TrackMetadata .metalSupports = { MetalSupportPlace::centre }, .extraSupportRotation = -2, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; diff --git a/src/openrct2/ride/ted/TED.LongBase.h b/src/openrct2/ride/ted/TED.LongBase.h index 22f52cf3ae..ad5d21c0ba 100644 --- a/src/openrct2/ride/ted/TED.LongBase.h +++ b/src/openrct2/ride/ted/TED.LongBase.h @@ -164,90 +164,90 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0000, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60LongBaseSeq1 = { .clearance = { 0, 32, 0, 16, { 0b0100, 0 }, {} }, .allowedWallEdges = 0b0110, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60LongBaseSeq2 = { .clearance = { -32, 0, 0, 16, { 0b0001, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60LongBaseSeq3 = { .clearance = { -32, 32, 0, 32, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0000, .blockedSegments = { { - EnumsToFlags(PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60LongBaseSeq4 = { .clearance = { -32, 64, 8, 40, { 0b0100, 0 }, {} }, .allowedWallEdges = 0b0110, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60LongBaseSeq5 = { .clearance = { -64, 32, 8, 40, { 0b0001, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60LongBaseSeq6 = { .clearance = { -64, 64, 8, 64, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0000, .blockedSegments = { { - EnumsToFlags(PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60LongBaseSeq7 = { .clearance = { -64, 96, 40, 88, { 0b0100, 0 }, {} }, .allowedWallEdges = 0b0110, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60LongBaseSeq8 = { .clearance = { -96, 64, 40, 88, { 0b0001, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToUp60LongBaseSeq9 = { .clearance = { -96, 96, 40, 104, { 0b0010, 0 }, {} }, .allowedWallEdges = 0b0000, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq0 = { @@ -255,90 +255,90 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0000, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq1 = { .clearance = { 0, 32, 0, 72, { 0b0100, 0 }, {} }, .allowedWallEdges = 0b0110, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq2 = { .clearance = { -32, 0, 0, 72, { 0b0001, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq3 = { .clearance = { -32, 32, 0, 80, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0000, .blockedSegments = { { - EnumsToFlags(PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq4 = { .clearance = { -32, 64, 56, 32, { 0b0100, 0 }, {} }, .allowedWallEdges = 0b0110, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq5 = { .clearance = { -64, 32, 56, 32, { 0b0001, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq6 = { .clearance = { -64, 64, 56, 8, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0000, .blockedSegments = { { - EnumsToFlags(PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::right, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq7 = { .clearance = { -64, 96, 80, 8, { 0b0100, 0 }, {} }, .allowedWallEdges = 0b0110, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topLeft, PS::topRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::centre, PS::topLeft, PS::topRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq8 = { .clearance = { -96, 64, 80, 8, { 0b0001, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagUp60ToFlatLongBaseSeq9 = { .clearance = { -96, 96, 80, 8, { 0b0010, 0 }, {} }, .allowedWallEdges = 0b0000, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kDiagFlatToDown60LongBaseSeq0 = { diff --git a/src/openrct2/ride/ted/TED.Loop.h b/src/openrct2/ride/ted/TED.Loop.h index 5dfd813d7a..1b96891ae4 100644 --- a/src/openrct2/ride/ted/TED.Loop.h +++ b/src/openrct2/ride/ted/TED.Loop.h @@ -60,10 +60,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags( - PS::top, PS::left, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, - PS::bottomRight), // inverted + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, + PS::bottomRight }, // inverted kSegmentsUnimplemented, // wide } }, }; @@ -72,9 +71,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 16, 16, { 0b1111, 0b1100 }, {} }, .allowedWallEdges = 0b0010, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsAll, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsAll, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -82,18 +81,18 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, 32, 96, { 0b0010, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; static constexpr SequenceDescriptor kLeftVerticalLoopSeq3 = { .clearance = { -32, 0, 120, 16, { 0b0110, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -118,9 +117,9 @@ namespace OpenRCT2::TrackMetadata static constexpr SequenceDescriptor kLeftVerticalLoopSeq6 = { .clearance = { 0, -32, 120, 16, { 0b1001, 0 }, {} }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -128,9 +127,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 32, -32, 32, 96, { 0b1000, 0 }, {} }, .allowedWallEdges = 0b1100, .blockedSegments = { { - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::centre, PS::topRight, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // narrow + { PS::right, PS::centre, PS::topRight, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -138,9 +137,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, -32, 16, 16, { 0b1111, 0b0011 }, {} }, .allowedWallEdges = 0b1000, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsAll, // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsAll, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -150,10 +149,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags( - PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, - PS::bottomRight), // inverted + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::top, PS::right, PS::bottom, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft, + PS::bottomRight }, // inverted kSegmentsUnimplemented, // wide } }, }; @@ -224,9 +222,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -245,9 +243,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, 32, 96, { 0b0011, 0 }, {} }, .allowedWallEdges = 0b1011, .blockedSegments = { { - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -255,9 +253,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 120, 16, { 0b1111, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -265,9 +263,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, -32, 16, { 0b1111, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -275,9 +273,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, -120, 96, { 0b0011, 0 }, {} }, .allowedWallEdges = 0b1011, .blockedSegments = { { - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -298,9 +296,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .metalSupports = { MetalSupportPlace::centre }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -309,9 +307,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -319,9 +317,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 16, 40, { 0b1111, 0b1100 }, {} }, .allowedWallEdges = 0b1010, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -329,9 +327,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, 32, 56, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0010, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -339,9 +337,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -96, 0, 64, 192, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -349,9 +347,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -128, -32, 120, 96, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -359,9 +357,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -96, -32, 64, 192, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1000, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -371,9 +369,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -510,9 +508,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -520,9 +518,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 16, 48, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0010, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -530,9 +528,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, 56, 120, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -540,9 +538,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, -32, 56, 120, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -551,9 +549,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1000, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -658,9 +656,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -668,9 +666,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 16, 40, { 0b1111, 0b1100 }, {} }, .allowedWallEdges = 0b1010, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -678,9 +676,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, 32, 56, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0010, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -688,9 +686,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -96, 0, 64, 192, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -698,9 +696,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -128, -32, 120, 96, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -708,9 +706,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -96, -32, 64, 192, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1000, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -720,9 +718,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -776,9 +774,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -786,9 +784,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, -184, 192, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0010, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -796,9 +794,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, -128, 96, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -807,9 +805,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1001, .invertSegmentBlocking = true, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -818,9 +816,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1000, .invertSegmentBlocking = true, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -829,9 +827,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .invertSegmentBlocking = true, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -841,9 +839,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -900,9 +898,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -910,9 +908,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, 16, 40, { 0b1111, 0b1100 }, {} }, .allowedWallEdges = 0b1010, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -920,9 +918,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, 32, 56, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0010, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -930,9 +928,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -96, 0, 64, 192, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -940,9 +938,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -128, -32, 120, 96, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::bottom, PS::centre, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -950,9 +948,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -96, -32, 64, 192, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1000, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -962,9 +960,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1018,9 +1016,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1028,9 +1026,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, -216, 192, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0010, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1038,9 +1036,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, -160, 96, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b0011, .blockedSegments = { { - EnumsToFlags(PS::left, PS::centre, PS::topLeft, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::centre, PS::topLeft, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1048,9 +1046,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, -32, -216, 192, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1001, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1058,9 +1056,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, -32, -248, 56, { 0b1111, 0 }, {} }, .allowedWallEdges = 0b1000, .blockedSegments = { { - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1068,9 +1066,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 32, -32, -264, 40, { 0b1111, 0b1100 }, {} }, .allowedWallEdges = 0b1010, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1080,9 +1078,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1136,9 +1134,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1156,11 +1154,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -64, 0, 32, 96, { 0b0011, 0 }, {} }, .allowedWallEdges = 0b1011, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags( - PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, - PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1169,9 +1165,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - kSegmentsUnimplemented, // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + kSegmentsUnimplemented, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1179,9 +1175,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { 0, 0, -32, 32, { 0b1111, 0 }, {} }, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1189,9 +1185,9 @@ namespace OpenRCT2::TrackMetadata .clearance = { -32, 0, -120, 96, { 0b0011, 0 }, {} }, .allowedWallEdges = 0b1011, .blockedSegments = { { - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::bottom, PS::centre, PS::topLeft, PS::bottomLeft, PS::bottomRight }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1211,9 +1207,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1229,9 +1225,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .flags = { SequenceFlag::hasHeightMarker }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1250,9 +1246,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1011, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::bottomLeft, PS::topLeft, PS::bottomRight), // narrow - EnumsToFlags(PS::left, PS::bottom, PS::centre, PS::bottomLeft, PS::topLeft, PS::bottomRight), // inverted - kSegmentsUnimplemented, // wide + { PS::left, PS::bottom, PS::centre, PS::bottomLeft, PS::topLeft, PS::bottomRight }, // narrow + { PS::left, PS::bottom, PS::centre, PS::bottomLeft, PS::topLeft, PS::bottomRight }, // inverted + kSegmentsUnimplemented, // wide } }, }; @@ -1261,9 +1257,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsUnimplemented, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsUnimplemented, // wide } }, }; diff --git a/src/openrct2/ride/ted/TED.SBend.h b/src/openrct2/ride/ted/TED.SBend.h index 9692289e8a..dc38465ca1 100644 --- a/src/openrct2/ride/ted/TED.SBend.h +++ b/src/openrct2/ride/ted/TED.SBend.h @@ -34,9 +34,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::top, PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::top, PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; @@ -45,7 +45,7 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b0011, .woodenSupports = { WoodenSupportSubType::corner3 }, .blockedSegments = blockedSegmentsAllTypes( - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft)), + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }), }; static constexpr SequenceDescriptor kSBendLeftSeq2 = { @@ -53,7 +53,7 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1100, .woodenSupports = { WoodenSupportSubType::corner1 }, .blockedSegments = blockedSegmentsAllTypes( - EnumsToFlags(PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight)), + { PS::right, PS::bottom, PS::centre, PS::topRight, PS::bottomLeft, PS::bottomRight }), }; static constexpr SequenceDescriptor kSBendLeftSeq3 = { @@ -62,9 +62,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::bottom, PS::centre, PS::topRight, PS::bottomLeft), // narrow - EnumsToFlags(PS::bottom, PS::centre, PS::topRight, PS::bottomLeft), // inverted - kSegmentsAll, // wide + { PS::bottom, PS::centre, PS::topRight, PS::bottomLeft }, // narrow + { PS::bottom, PS::centre, PS::topRight, PS::bottomLeft }, // inverted + kSegmentsAll, // wide } }, }; diff --git a/src/openrct2/ride/ted/TED.ZeroG.h b/src/openrct2/ride/ted/TED.ZeroG.h index 802c691225..225b78837e 100644 --- a/src/openrct2/ride/ted/TED.ZeroG.h +++ b/src/openrct2/ride/ted/TED.ZeroG.h @@ -78,9 +78,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -89,9 +89,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -102,9 +102,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -186,9 +186,9 @@ namespace OpenRCT2::TrackMetadata .flags = { SequenceFlag::hasHeightMarker }, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -197,9 +197,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::centre, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::centre, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -208,9 +208,9 @@ namespace OpenRCT2::TrackMetadata .allowedWallEdges = 0b1010, .woodenSupports = { WoodenSupportSubType::neSw }, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; @@ -221,9 +221,9 @@ namespace OpenRCT2::TrackMetadata .woodenSupports = { WoodenSupportSubType::neSw }, .invertSegmentBlocking = true, .blockedSegments = { { - EnumsToFlags(PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft), // narrow - kSegmentsUnimplemented, // inverted - kSegmentsAll, // wide + { PS::top, PS::left, PS::centre, PS::topLeft, PS::topRight, PS::bottomLeft }, // narrow + kSegmentsUnimplemented, // inverted + kSegmentsAll, // wide } }, }; diff --git a/src/openrct2/ride/ted/TrackElementDescriptor.h b/src/openrct2/ride/ted/TrackElementDescriptor.h index acf3faf5f7..b131b66462 100644 --- a/src/openrct2/ride/ted/TrackElementDescriptor.h +++ b/src/openrct2/ride/ted/TrackElementDescriptor.h @@ -218,11 +218,11 @@ namespace OpenRCT2::TrackMetadata int8_t height = 0; }; - using BlockedSegmentsPerType = std::array; + using BlockedSegmentsPerType = std::array; constexpr BlockedSegmentsPerType kFlatStraightBlockedSegments = { { - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), // narrow - EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft), // inverted - kSegmentsAll, // wide + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, // narrow + { PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft }, // inverted + kSegmentsAll, // wide } }; static constexpr int16_t kDoNotSetGeneralSupportHeight = std::numeric_limits::min(); From cc5531f7d8a8d8394cb26e24f957090391c83277 Mon Sep 17 00:00:00 2001 From: Sjoerd de Bruin Date: Sun, 20 Sep 2026 18:04:01 +0200 Subject: [PATCH 073/142] Fix #12516: Software renderer misplaces sprites past 65,536 pixels (#27164) --- distribution/changelog.txt | 1 + src/openrct2/drawing/Drawing.Sprite.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 66b6cf7483..20251c2376 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -5,6 +5,7 @@ - Improved: [#26947] Rain is now drawn next to the bottom info panels (in RCT2 style). - Change: [#27100] Negative G-forces no longer turn red in the stats window and graph when below -2.50. - Fix: [#1514] Wrong capitalisation for strings in the Guest List window. +- Fix: [#12516] Sprites past 65,536 pixels are drawn in the wrong place by the software renderer, most visibly in long scenario lists. - Fix: [#15423] Crash when a guest or handyman uses a bin whose path addition object is not loaded. - Fix: [#17409] When reading system settings, non-US dollar currencies are not recognised correctly. - Fix: [#19754, #27109] Some rides in RCT1 saves have a wrong number of cars per train. diff --git a/src/openrct2/drawing/Drawing.Sprite.cpp b/src/openrct2/drawing/Drawing.Sprite.cpp index 00e3b24d4c..8c328bda2f 100644 --- a/src/openrct2/drawing/Drawing.Sprite.cpp +++ b/src/openrct2/drawing/Drawing.Sprite.cpp @@ -879,7 +879,7 @@ void FASTCALL GfxDrawSpritePaletteSetSoftware( int32_t height = g1->height; // This is the start y coordinate on the destination - int16_t dest_start_y = y + g1->yOffset; + int32_t dest_start_y = y + g1->yOffset; // For whatever reason the RLE version does not use // the zoom mask on the y coordinate but does on x. @@ -938,7 +938,7 @@ void FASTCALL GfxDrawSpritePaletteSetSoftware( // This is the source start x coordinate int32_t source_start_x = 0; // This is the destination start x coordinate - int16_t dest_start_x = ((x + g1->xOffset + ~zoom_mask) & zoom_mask) - rt.WorldX(); + int32_t dest_start_x = ((x + g1->xOffset + ~zoom_mask) & zoom_mask) - rt.WorldX(); if (dest_start_x < 0) { From bf7695b6e3e6a9e1673d79cec22acbfafa90b74d Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sun, 20 Sep 2026 18:48:02 +0200 Subject: [PATCH 074/142] Adjust sponsor section (#27167) --- readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 2b83cfab4a..c995a057f1 100644 --- a/readme.md +++ b/readme.md @@ -169,7 +169,7 @@ See [PRIVACY.md](PRIVACY.md) for more information. Companies that kindly allow us to use their stuff: -| [DigitalOcean](https://www.digitalocean.com/) | [JetBrains](https://www.jetbrains.com/) | [Backtrace](https://backtrace.io/) | [SignPath](https://signpath.org/) | -|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------| -| [![do_logo_vertical_blue svg](https://user-images.githubusercontent.com/550290/36508276-8b572f0e-175c-11e8-8622-9febbce756b2.png)](https://www.digitalocean.com/) | [![jetbrains](https://github.com/user-attachments/assets/0d1cf25e-706d-4e3a-96ee-157fbf2cf0c0)](https://www.jetbrains.com/) | [![backtrace](https://user-images.githubusercontent.com/550290/47113259-d0647680-d258-11e8-97c3-1a2c6bde6d11.png)](https://backtrace.io/) | [![Image](https://github.com/user-attachments/assets/2b5679e0-76a4-4ae7-bb37-a6a507a53466)](https://signpath.org/) | -| Hosting of various services | CLion and other products | Minidump uploads and inspection | Free code signing provided by [SignPath.io](https://about.signpath.io/), certificate by [SignPath Foundation](https://signpath.org/). | +| [JetBrains](https://www.jetbrains.com/) | [Backtrace](https://backtrace.io/) | [SignPath](https://signpath.org/) | +|------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------| +| [![jetbrains](https://github.com/user-attachments/assets/0d1cf25e-706d-4e3a-96ee-157fbf2cf0c0)](https://www.jetbrains.com/) | [![backtrace](https://user-images.githubusercontent.com/550290/47113259-d0647680-d258-11e8-97c3-1a2c6bde6d11.png)](https://backtrace.io/) | [![Image](https://github.com/user-attachments/assets/2b5679e0-76a4-4ae7-bb37-a6a507a53466)](https://signpath.org/) | +| CLion and other products | Minidump uploads and inspection | Free code signing provided by [SignPath.io](https://about.signpath.io/), certificate by [SignPath Foundation](https://signpath.org/). | From 58396ac30d036e071d0a7ddfe989f4ea696e182f Mon Sep 17 00:00:00 2001 From: ZeeMaji <42477864+ZeeMaji@users.noreply.github.com> Date: Sun, 20 Sep 2026 20:24:23 +0000 Subject: [PATCH 075/142] Add missing tygrysek90 station object to whitelist (#27171) --- src/openrct2/object/StationObject.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openrct2/object/StationObject.cpp b/src/openrct2/object/StationObject.cpp index d5ee052c05..761573aaa7 100644 --- a/src/openrct2/object/StationObject.cpp +++ b/src/openrct2/object/StationObject.cpp @@ -32,6 +32,7 @@ namespace OpenRCT2 "rct2.station.wooden", "openrct2.station.noentrance", "openrct2.station.noplatformnoentrance", + "tygrysek90.station.abstract-open", "tygrysek90.station.abstract_open", "tygrysek90.station.canvas_tent_open", "tygrysek90.station.castle_brown_open", From 8be21d4683be690cd55a372ba1606c136feaeaf1 Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Mon, 21 Sep 2026 04:05:48 +0000 Subject: [PATCH 076/142] Merge Localisation/master into OpenRCT2/develop --- data/language/es-ES.txt | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/data/language/es-ES.txt b/data/language/es-ES.txt index 12177f5f86..bd07b7f0a7 100644 --- a/data/language/es-ES.txt +++ b/data/language/es-ES.txt @@ -1260,7 +1260,7 @@ STR_1927 :{YELLOW}{STRINGID} se ha averiado STR_1928 :{RED}¡{STRINGID} ha chocado! STR_1929 :{RED}{STRINGID} no se ha arreglado{NEWLINE}Comprueba dónde están tus mecánicos y considera organizarlos mejor STR_1930 :Activa/Desactiva el seguimiento de este visitante (Con el seguimiento activado, los movimientos de este visitante aparecerán en el área de mensajes) -STR_1931 :{STRINGID} está haciendo fila en {STRINGID} +STR_1931 :{STRINGID} está haciendo fila para {STRINGID} STR_1932 :{STRINGID} está en {STRINGID} STR_1933 :{STRINGID} está en {STRINGID} STR_1934 :{STRINGID} ha salido de {STRINGID} @@ -2821,7 +2821,7 @@ STR_5762 :Yuan Chino (CN¥) STR_5763 :Todos los archivos STR_5764 :Tipo de Atracción inválido STR_5765 :No se puede editar una atracción de un tipo no válido -STR_5766 :Forinto Húngaro (Ft) +STR_5766 :Forinto Húngaro (Ft) STR_5767 :Ingresos STR_5768 :Clientes totales STR_5769 :Beneficio total @@ -3495,7 +3495,7 @@ STR_6502 :Introduce un valor entre {COMMA16} y {COMMA16} STR_6503 :Al menos un objeto de estación debe estar seleccionado STR_6504 :Al menos una superficie de terreno debe estar seleccionada STR_6505 :Al menos un borde de terreno debe estar seleccionado -STR_6506 :Medio Sacacorchos grande (izq) +STR_6506 :Medio Sacacorchos grande (izq) STR_6507 :Medio Sacacorchos grande (der) STR_6508 :Medio Rizo mediano (izq) STR_6509 :Medio Rizo mediano (der) @@ -3839,3 +3839,17 @@ STR_7046 :Barra de estado (estilo RCT1) STR_7047 :Control paso a paso (Diseñador de Vías) STR_7048 :Control paso a paso (Editor de Escenarios) STR_7049 :OpenRCT2 +STR_7050 :Visitantes caminando +STR_7051 :Visitantes dirigiéndose a {STRINGID} +STR_7052 :Visitantes haciendo fila para {STRINGID} +STR_7053 :Visitantes ahogándose +STR_7054 :Visitantes en {STRINGID} +STR_7055 :Visitantes en {STRINGID} +STR_7056 :Visitantes en {STRINGID} +STR_7057 :Visitantes sentados +STR_7058 :Visitantes recogidos +STR_7059 :Visitantes mirando {STRINGID} +STR_7060 :Visitantes mirando la construcción de {STRINGID} +STR_7061 :Visitantes observando el decorado +STR_7062 :Visitantes abandonando el parque +STR_7063 :Visitantes viendo la construcción de una nueva atracción From 9a0e16d824759f58072ed1daa6424fc480ea2a89 Mon Sep 17 00:00:00 2001 From: Harry Hopkinson Date: Mon, 21 Sep 2026 11:11:24 +0100 Subject: [PATCH 077/142] Create FlagHolder for ShopItems --- src/openrct2-ui/windows/Ride.cpp | 13 +++++----- src/openrct2/entity/Guest.cpp | 44 +++++++++++++++++--------------- src/openrct2/entity/Guest.h | 8 +++--- src/openrct2/park/ParkFile.cpp | 4 +-- src/openrct2/ride/ShopItem.cpp | 20 +++++++-------- src/openrct2/ride/ShopItem.h | 8 +++--- 6 files changed, 52 insertions(+), 45 deletions(-) diff --git a/src/openrct2-ui/windows/Ride.cpp b/src/openrct2-ui/windows/Ride.cpp index c23c74f79e..013fa50715 100644 --- a/src/openrct2-ui/windows/Ride.cpp +++ b/src/openrct2-ui/windows/Ride.cpp @@ -6526,22 +6526,23 @@ namespace OpenRCT2::Ui::Windows static void UpdateSamePriceThroughoutFlags(ShopItem shop_item) { const auto& gameState = getGameState(); - const auto existingFlags = gameState.park.samePriceThroughoutPark; + const auto existingFlags = ShopItems(gameState.park.samePriceThroughoutPark); auto newFlags = existingFlags; if (GetShopItemDescriptor(shop_item).IsPhoto()) { - if (existingFlags & EnumToFlag(shop_item)) - newFlags &= ~EnumsToFlags(ShopItem::photo, ShopItem::photo2, ShopItem::photo3, ShopItem::photo4); + if (existingFlags.has(shop_item)) + newFlags.unset(ShopItem::photo, ShopItem::photo2, ShopItem::photo3, ShopItem::photo4); else - newFlags |= EnumsToFlags(ShopItem::photo, ShopItem::photo2, ShopItem::photo3, ShopItem::photo4); + newFlags.set(ShopItem::photo, ShopItem::photo2, ShopItem::photo3, ShopItem::photo4); } else { - newFlags ^= EnumToFlag(shop_item); + newFlags.flip(shop_item); } - auto parkSetParameter = GameActions::ParkSetParameterAction(GameActions::ParkParameter::samePriceInPark, newFlags); + auto parkSetParameter = GameActions::ParkSetParameterAction( + GameActions::ParkParameter::samePriceInPark, newFlags.holder); GameActions::Execute(&parkSetParameter, getGameState()); } diff --git a/src/openrct2/entity/Guest.cpp b/src/openrct2/entity/Guest.cpp index 42efecbedd..d3b86076b0 100644 --- a/src/openrct2/entity/Guest.cpp +++ b/src/openrct2/entity/Guest.cpp @@ -745,7 +745,7 @@ namespace OpenRCT2 if (timeToConsume == 0) { - int32_t chosen_food = Numerics::bitScanForward(getFoodOrDrinkFlags()); + int32_t chosen_food = Numerics::bitScanForward(getFoodOrDrinkFlags().holder); if (chosen_food != -1) { ShopItem food = ShopItem(chosen_food); @@ -1294,19 +1294,23 @@ namespace OpenRCT2 * To simplify check of 0x36BA3E0 and 0x11FF78 * returns false on no food. */ - uint64_t Guest::getFoodOrDrinkFlags() const + ShopItems Guest::getFoodOrDrinkFlags() const { - return getItemFlags() & (ShopItemsGetAllFoods() | ShopItemsGetAllDrinks()); + ShopItems items = getItemFlags(); + items.holder &= (ShopItemsGetAllFoods() | ShopItemsGetAllDrinks()).holder; + return items; } - uint64_t Guest::getEmptyContainerFlags() const + ShopItems Guest::getEmptyContainerFlags() const { - return getItemFlags() & ShopItemsGetAllContainers(); + ShopItems items = getItemFlags(); + items.holder &= ShopItemsGetAllContainers().holder; + return items; } bool Guest::hasFoodOrDrink() const { - return getFoodOrDrinkFlags() != 0; + return !getFoodOrDrinkFlags().isEmpty(); } /** @@ -1315,12 +1319,12 @@ namespace OpenRCT2 */ bool Guest::hasDrink() const { - return getItemFlags() & ShopItemsGetAllDrinks(); + return getItemFlags().hasAny(ShopItemsGetAllDrinks()); } bool Guest::hasEmptyContainer() const { - return getEmptyContainerFlags() != 0; + return !getEmptyContainerFlags().isEmpty(); } /** @@ -1456,7 +1460,7 @@ namespace OpenRCT2 const auto& shopItemDescriptor = GetShopItemDescriptor(shopItem); if (shopItemDescriptor.IsFoodOrDrink()) { - int32_t food = Numerics::bitScanForward(guest.getFoodOrDrinkFlags()); + int32_t food = Numerics::bitScanForward(guest.getFoodOrDrinkFlags().holder); if (food != -1) { guest.insertNewThought(PeepThoughtType::haventFinished, static_cast(food)); @@ -5438,7 +5442,7 @@ namespace OpenRCT2 if ((!getNextIsSurface()) && (static_cast(id.ToUnderlying() & 0x1FF) == (currentTicks & 0x1FF)) && ((0xFFFF & ScenarioRand()) <= 4096)) { - int32_t container = Numerics::bitScanForward(getEmptyContainerFlags()); + int32_t container = Numerics::bitScanForward(getEmptyContainerFlags().holder); auto litterType = Litter::Type::vomit; if (container != -1) @@ -5963,14 +5967,14 @@ namespace OpenRCT2 // This counts down 2 = No rubbish, 0 = full uint8_t spaceLeftInBin = 0x3 & (foundElement->getAdditionStatus() >> selectedBin); - uint64_t emptyContainers = getEmptyContainerFlags(); + const auto emptyContainers = getEmptyContainerFlags(); for (uint8_t curContainer = 0; curContainer < 64; curContainer++) { - if (!(emptyContainers & (1uLL << curContainer))) + auto item = ShopItem(curContainer); + if (!emptyContainers.has(item)) continue; - auto item = ShopItem(curContainer); if (spaceLeftInBin != 0) { // OpenRCT2 modification: This previously used @@ -7545,31 +7549,31 @@ namespace OpenRCT2 } } - uint64_t Guest::getItemFlags() const + ShopItems Guest::getItemFlags() const { return itemFlags; } void Guest::setItemFlags(uint64_t value) { - itemFlags = value; + itemFlags = ShopItems(value); } void Guest::removeAllItems() { - itemFlags = 0; + itemFlags.clearAll(); timeToConsume = 0; } void Guest::removeItem(ShopItem item) { - itemFlags &= ~EnumToFlag(item); + itemFlags.unset(item); timeToConsume = 0; } void Guest::giveItem(ShopItem item) { - itemFlags |= EnumToFlag(item); + itemFlags.set(item); const auto& shopItemDescriptor = GetShopItemDescriptor(item); uint16_t consumptionTime = shopItemDescriptor.ConsumptionTime; @@ -7578,7 +7582,7 @@ namespace OpenRCT2 bool Guest::hasItem(ShopItem peepItem) const { - return getItemFlags() & EnumToFlag(peepItem); + return getItemFlags().has(peepItem); } static bool IsThoughtShopItemRelated(const PeepThoughtType type) @@ -7763,6 +7767,6 @@ namespace OpenRCT2 stream << hatColour; stream << favouriteRide; stream << favouriteRideRating; - stream << itemFlags; + stream << itemFlags.holder; } } // namespace OpenRCT2 diff --git a/src/openrct2/entity/Guest.h b/src/openrct2/entity/Guest.h index 9b4578d27c..b956c4f3a2 100644 --- a/src/openrct2/entity/Guest.h +++ b/src/openrct2/entity/Guest.h @@ -348,12 +348,12 @@ namespace OpenRCT2 Drawing::Colour hatColour; RideId favouriteRide; uint8_t favouriteRideRating; - uint64_t itemFlags; + ShopItems itemFlags; void update(); void tick128UpdateGuest(uint32_t index); - uint64_t getFoodOrDrinkFlags() const; - uint64_t getEmptyContainerFlags() const; + ShopItems getFoodOrDrinkFlags() const; + ShopItems getEmptyContainerFlags() const; bool hasDrink() const; bool hasFoodOrDrink() const; bool hasEmptyContainer() const; @@ -383,7 +383,7 @@ namespace OpenRCT2 bool updateQueuePosition(PeepActionType previous_action); void removeFromQueue(); - uint64_t getItemFlags() const; + ShopItems getItemFlags() const; void setItemFlags(uint64_t value); void removeAllItems(); void removeItem(ShopItem item); diff --git a/src/openrct2/park/ParkFile.cpp b/src/openrct2/park/ParkFile.cpp index 46bf563a76..2227c288dc 100644 --- a/src/openrct2/park/ParkFile.cpp +++ b/src/openrct2/park/ParkFile.cpp @@ -1917,7 +1917,7 @@ namespace OpenRCT2 return true; }); RideUse::GetTypeHistory().Set(guest->id, LegacyGetRideTypesBeenOn(rideTypeBeenOn)); - cs.readWrite(guest->itemFlags); + cs.readWrite(guest->itemFlags.holder); cs.readWrite(guest->photo2RideRef); cs.readWrite(guest->photo3RideRef); cs.readWrite(guest->photo4RideRef); @@ -2471,7 +2471,7 @@ namespace OpenRCT2 cs.readWrite(guest.hatColour); cs.readWrite(guest.favouriteRide); cs.readWrite(guest.favouriteRideRating); - cs.readWrite(guest.itemFlags); + cs.readWrite(guest.itemFlags.holder); } template<> diff --git a/src/openrct2/ride/ShopItem.cpp b/src/openrct2/ride/ShopItem.cpp index 0ea641e92f..9a7a0e2c81 100644 --- a/src/openrct2/ride/ShopItem.cpp +++ b/src/openrct2/ride/ShopItem.cpp @@ -25,7 +25,7 @@ ShopItem& operator++(ShopItem& d, int) // clang-format off /** rct2: 0x00982164 (cost, base value, hot and cold value); 0x00982358 (default price) */ -constexpr ShopItemDescriptor ShopItems[EnumValue(ShopItem::count)] = { +constexpr ShopItemDescriptor kShopItems[EnumValue(ShopItem::count)] = { // Item, Cost, Base value, Hot value, Cold value, Default price, Image, Price label, Singular, Plural, Indefinite, Display (in guest inventory), Shop Item Flag, Litter type, Consumption time, Discard Container, Peep thought price too much, Peep thought price good value, /* ShopItem::balloon */ { 0.30_GBP, 1.40_GBP, 1.40_GBP, 1.40_GBP, 0.90_GBP, SPR_SHOP_ITEM_BALLOON, { STR_SHOP_ITEM_PRICE_LABEL_BALLOON, STR_SHOP_ITEM_SINGULAR_BALLOON, STR_SHOP_ITEM_PLURAL_BALLOON, STR_SHOP_ITEM_INDEFINITE_BALLOON, STR_SHOP_ITEM_DISPLAY_BALLOON }, SHOP_ITEM_FLAG_IS_SOUVENIR | SHOP_ITEM_FLAG_IS_RECOLOURABLE, Litter::Type::rubbish, 0, ShopItem::none, PeepThoughtType::balloonMuch, PeepThoughtType::balloon }, /* ShopItem::toy */ { 1.50_GBP, 3.00_GBP, 3.00_GBP, 3.00_GBP, 2.50_GBP, SPR_SHOP_ITEM_TOY, { STR_SHOP_ITEM_PRICE_LABEL_CUDDLY_TOY, STR_SHOP_ITEM_SINGULAR_CUDDLY_TOY, STR_SHOP_ITEM_PLURAL_CUDDLY_TOY, STR_SHOP_ITEM_INDEFINITE_CUDDLY_TOY, STR_SHOP_ITEM_DISPLAY_CUDDLY_TOY }, SHOP_ITEM_FLAG_IS_SOUVENIR, Litter::Type::rubbish, 0, ShopItem::none, PeepThoughtType::toyMuch, PeepThoughtType::toy }, @@ -84,34 +84,34 @@ constexpr ShopItemDescriptor ShopItems[EnumValue(ShopItem::count)] = { }; // clang-format on -constexpr uint64_t GetAllShopItemsWithFlag(uint16_t flag) +constexpr ShopItems GetAllShopItemsWithFlag(uint16_t flag) { - uint64_t ret = 0; + ShopItems ret{}; for (auto i = 0; i < EnumValue(ShopItem::count); ++i) { - const auto& sid = ShopItems[i]; + const auto& sid = kShopItems[i]; if (sid.HasFlag(flag)) { - ret |= (1uLL << i); + ret.set(static_cast(i)); } } return ret; } constexpr auto AllFoodFlags = GetAllShopItemsWithFlag(SHOP_ITEM_FLAG_IS_FOOD); -uint64_t ShopItemsGetAllFoods() +ShopItems ShopItemsGetAllFoods() { return AllFoodFlags; } constexpr auto AllDrinkFlags = GetAllShopItemsWithFlag(SHOP_ITEM_FLAG_IS_DRINK); -uint64_t ShopItemsGetAllDrinks() +ShopItems ShopItemsGetAllDrinks() { return AllDrinkFlags; } constexpr auto AllContainerFlags = GetAllShopItemsWithFlag(SHOP_ITEM_FLAG_IS_CONTAINER); -uint64_t ShopItemsGetAllContainers() +ShopItems ShopItemsGetAllContainers() { return AllContainerFlags; } @@ -148,7 +148,7 @@ money64 ShopItemGetCommonPrice(Ride* forRide, const ShopItem shopItem) bool ShopItemHasCommonPrice(const ShopItem shopItem) { - return (getGameState().park.samePriceThroughoutPark & EnumToFlag(shopItem)) != 0; + return ShopItems(getGameState().park.samePriceThroughoutPark).has(shopItem); } bool ShopItemDescriptor::IsFood() const @@ -183,5 +183,5 @@ bool ShopItemDescriptor::IsRecolourable() const const ShopItemDescriptor& GetShopItemDescriptor(const ShopItem item) { - return ShopItems[EnumValue(item)]; + return kShopItems[EnumValue(item)]; } diff --git a/src/openrct2/ride/ShopItem.h b/src/openrct2/ride/ShopItem.h index d445c87d2c..f7661871c2 100644 --- a/src/openrct2/ride/ShopItem.h +++ b/src/openrct2/ride/ShopItem.h @@ -9,6 +9,7 @@ #pragma once +#include "../core/FlagHolder.hpp" #include "../core/Money.hpp" #include "../entity/Litter.h" @@ -75,6 +76,7 @@ enum class ShopItem : uint8_t count = 56, none = 255 }; +using ShopItems = FlagHolder; ShopItem& operator++(ShopItem& d, int); @@ -117,9 +119,9 @@ struct ShopItemDescriptor bool IsRecolourable() const; }; -uint64_t ShopItemsGetAllFoods(); -uint64_t ShopItemsGetAllDrinks(); -uint64_t ShopItemsGetAllContainers(); +ShopItems ShopItemsGetAllFoods(); +ShopItems ShopItemsGetAllDrinks(); +ShopItems ShopItemsGetAllContainers(); enum { From 5264d1011e63b9b9f347fb5caccddd9447a0749c Mon Sep 17 00:00:00 2001 From: Harry Hopkinson Date: Mon, 21 Sep 2026 21:20:10 +0100 Subject: [PATCH 078/142] Add FlagHolder intersect() function --- src/openrct2/core/FlagHolder.hpp | 7 +++++++ src/openrct2/entity/Guest.cpp | 8 ++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/openrct2/core/FlagHolder.hpp b/src/openrct2/core/FlagHolder.hpp index 52c63941b5..4ed7d2e146 100644 --- a/src/openrct2/core/FlagHolder.hpp +++ b/src/openrct2/core/FlagHolder.hpp @@ -90,6 +90,13 @@ struct FlagHolder return res; } + [[nodiscard]] constexpr FlagHolder intersect(const FlagHolder& other) const + { + FlagHolder res = *this; + res.holder &= other.holder; + return res; + } + /** * For situations where you don’t know upfront whether to set or unset the flag, * e.g. in game actions where this is passed as a variable. diff --git a/src/openrct2/entity/Guest.cpp b/src/openrct2/entity/Guest.cpp index d3b86076b0..4786cfbc0c 100644 --- a/src/openrct2/entity/Guest.cpp +++ b/src/openrct2/entity/Guest.cpp @@ -1296,16 +1296,12 @@ namespace OpenRCT2 */ ShopItems Guest::getFoodOrDrinkFlags() const { - ShopItems items = getItemFlags(); - items.holder &= (ShopItemsGetAllFoods() | ShopItemsGetAllDrinks()).holder; - return items; + return getItemFlags().intersect(ShopItemsGetAllFoods() | ShopItemsGetAllDrinks()); } ShopItems Guest::getEmptyContainerFlags() const { - ShopItems items = getItemFlags(); - items.holder &= ShopItemsGetAllContainers().holder; - return items; + return getItemFlags().intersect(ShopItemsGetAllContainers()); } bool Guest::hasFoodOrDrink() const From e99d7d2b4efcbd4c430263053e5fd6e60ef99bad Mon Sep 17 00:00:00 2001 From: Ryan Brue Date: Mon, 21 Sep 2026 16:08:21 -0500 Subject: [PATCH 079/142] Add Flatpak Steam paths to RCT2/RCTC detection (#27097) This will allow users of the Steam Flatpak (https://flathub.org/en/apps/com.valvesoftware.Steam) to have their installations auto-detected. --- distribution/changelog.txt | 1 + src/openrct2/platform/Platform.Linux.cpp | 7 +++++++ src/openrct2/platform/Platform.h | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 20251c2376..1198de0c43 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -3,6 +3,7 @@ - Feature: [#27153] [Plugin] Add `guestsEntertained` to `Entertainer` interface. - Improved: [#21400] The selector for setting staff patrol areas is now drawn on the water as well as on the surface under water. - Improved: [#26947] Rain is now drawn next to the bottom info panels (in RCT2 style). +- Improved: [#27097] On Linux, Flatpak Steam RCTC/RCT2 paths are now auto-detected. - Change: [#27100] Negative G-forces no longer turn red in the stats window and graph when below -2.50. - Fix: [#1514] Wrong capitalisation for strings in the Guest List window. - Fix: [#12516] Sprites past 65,536 pixels are drawn in the wrong place by the software renderer, most visibly in long scenario lists. diff --git a/src/openrct2/platform/Platform.Linux.cpp b/src/openrct2/platform/Platform.Linux.cpp index 3e21ecbb79..d8c48bcd3d 100644 --- a/src/openrct2/platform/Platform.Linux.cpp +++ b/src/openrct2/platform/Platform.Linux.cpp @@ -383,6 +383,13 @@ namespace OpenRCT2::Platform { ret.roots.emplace_back(snapLocalShareSteamPath); } + + // The Flatpak build of Steam keeps its data in the app's sandboxed home directory. + auto flatpakSteamPath = Path::Combine(homeDir, u8".var/app/com.valvesoftware.Steam/.local/share/Steam"); + if (Path::DirectoryExists(flatpakSteamPath)) + { + ret.roots.emplace_back(flatpakSteamPath); + } } return ret; diff --git a/src/openrct2/platform/Platform.h b/src/openrct2/platform/Platform.h index e1819f4aa5..baae59e091 100644 --- a/src/openrct2/platform/Platform.h +++ b/src/openrct2/platform/Platform.h @@ -94,7 +94,7 @@ namespace OpenRCT2::Platform struct SteamPaths { - sfl::static_vector roots{}; + sfl::static_vector roots{}; /** * Used by native applications and applications installed through Steam Play. */ From eea008603ffbbbf8435438fcaf0ac28db8c3ee06 Mon Sep 17 00:00:00 2001 From: csunday95 Date: Tue, 22 Sep 2026 08:04:06 -0700 Subject: [PATCH 080/142] Refactor TrackDesign game state flags (#27178) --- src/openrct2-ui/windows/InstallTrack.cpp | 2 +- src/openrct2-ui/windows/TrackList.cpp | 8 ++++---- src/openrct2/ride/TrackDesign.cpp | 25 ++++++------------------ src/openrct2/ride/TrackDesign.h | 6 ++---- 4 files changed, 13 insertions(+), 28 deletions(-) diff --git a/src/openrct2-ui/windows/InstallTrack.cpp b/src/openrct2-ui/windows/InstallTrack.cpp index 39c68330c2..dff7b09a33 100644 --- a/src/openrct2-ui/windows/InstallTrack.cpp +++ b/src/openrct2-ui/windows/InstallTrack.cpp @@ -169,7 +169,7 @@ namespace OpenRCT2::Ui::Windows // Warnings const TrackDesign& td = *_trackDesign; - if (td.gameStateData.hasFlag(TrackDesignGameStateFlag::sceneryUnavailable)) + if (td.gameStateData.flags.has(TrackDesignGameStateFlag::sceneryUnavailable)) { if (!gTrackDesignSceneryToggle) { diff --git a/src/openrct2-ui/windows/TrackList.cpp b/src/openrct2-ui/windows/TrackList.cpp index ed09e8a861..6860690b0e 100644 --- a/src/openrct2-ui/windows/TrackList.cpp +++ b/src/openrct2-ui/windows/TrackList.cpp @@ -147,7 +147,7 @@ namespace OpenRCT2::Ui::Windows return; } - if (_loadedTrackDesign->gameStateData.hasFlag(TrackDesignGameStateFlag::sceneryUnavailable)) + if (_loadedTrackDesign->gameStateData.flags.has(TrackDesignGameStateFlag::sceneryUnavailable)) { gTrackDesignSceneryToggle = true; } @@ -163,7 +163,7 @@ namespace OpenRCT2::Ui::Windows else { if (_loadedTrackDesignIndex != kTrackDesignIndexUnloaded - && (_loadedTrackDesign->gameStateData.hasFlag(TrackDesignGameStateFlag::vehicleUnavailable))) + && (_loadedTrackDesign->gameStateData.flags.has(TrackDesignGameStateFlag::vehicleUnavailable))) { ContextShowError(STR_THIS_DESIGN_WILL_BE_BUILT_WITH_AN_ALTERNATIVE_VEHICLE_TYPE, kStringIdNone, {}); } @@ -515,7 +515,7 @@ namespace OpenRCT2::Ui::Windows screenPos.y = windowPos.y + tdWidget.bottom - 12; // Warnings - if (_loadedTrackDesign->gameStateData.hasFlag(TrackDesignGameStateFlag::vehicleUnavailable) + if (_loadedTrackDesign->gameStateData.flags.has(TrackDesignGameStateFlag::vehicleUnavailable) && gLegacyScene != LegacyScene::trackDesignsManager) { // Vehicle design not available @@ -523,7 +523,7 @@ namespace OpenRCT2::Ui::Windows screenPos.y -= kScrollableRowHeight; } - if (_loadedTrackDesign->gameStateData.hasFlag(TrackDesignGameStateFlag::sceneryUnavailable)) + if (_loadedTrackDesign->gameStateData.flags.has(TrackDesignGameStateFlag::sceneryUnavailable)) { if (!gTrackDesignSceneryToggle) { diff --git a/src/openrct2/ride/TrackDesign.cpp b/src/openrct2/ride/TrackDesign.cpp index b02e9eca1b..1c5eccfb78 100644 --- a/src/openrct2/ride/TrackDesign.cpp +++ b/src/openrct2/ride/TrackDesign.cpp @@ -554,7 +554,7 @@ void TrackDesign::Serialise(DataSerialiser& stream) stream << DS_TAG(trackAndVehicle.rtdIndex); stream << DS_TAG(gameStateData.cost); stream << DS_TAG(operation.rideMode); - stream << DS_TAG(gameStateData.flags); + stream << DS_TAG(gameStateData.flags.holder); stream << DS_TAG(appearance.vehicleColourSettings); stream << DS_TAG(appearance.vehicleColours); stream << DS_TAG(appearance.stationObjectIdentifier); @@ -1906,7 +1906,7 @@ static bool TrackDesignPlacePreview( TrackDesignState& tds, const TrackDesign& td, Ride** outRide, TrackDesignGameStateData& gameStateData, bool placeScenery) { *outRide = nullptr; - gameStateData.flags = 0; + gameStateData.flags.clearAll(); auto& gameState = getGameState(); auto& objManager = GetContext()->GetObjectManager(); @@ -1958,13 +1958,13 @@ static bool TrackDesignPlacePreview( if (tds.hasScenery) { - gameStateData.setFlag(TrackDesignGameStateFlag::hasScenery, true); + gameStateData.flags.set(TrackDesignGameStateFlag::hasScenery); } if (_trackDesignPlaceStateSceneryUnavailable) { placeScenery = false; - gameStateData.setFlag(TrackDesignGameStateFlag::sceneryUnavailable, true); + gameStateData.flags.set(TrackDesignGameStateFlag::sceneryUnavailable); } auto res = TrackDesignPlaceVirtual( @@ -1976,11 +1976,11 @@ static bool TrackDesignPlacePreview( { if (entry_index == kObjectEntryIndexNull) { - gameStateData.setFlag(TrackDesignGameStateFlag::vehicleUnavailable, true); + gameStateData.flags.set(TrackDesignGameStateFlag::vehicleUnavailable); } else if (!RideEntryIsInvented(entry_index) && !getGameState().cheats.ignoreResearchStatus) { - gameStateData.setFlag(TrackDesignGameStateFlag::vehicleUnavailable, true); + gameStateData.flags.set(TrackDesignGameStateFlag::vehicleUnavailable); } _currentTrackPieceDirection = backup_rotation; @@ -2216,19 +2216,6 @@ bool TrackDesignAreEntranceAndExitPlaced() #pragma endregion -bool TrackDesignGameStateData::hasFlag(TrackDesignGameStateFlag flag) const -{ - return flags & EnumToFlag(flag); -} - -void TrackDesignGameStateData::setFlag(TrackDesignGameStateFlag flag, bool on) -{ - if (on) - flags |= EnumToFlag(flag); - else - flags &= ~EnumToFlag(flag); -} - u8string trackDesignGetExtension(RCT12::TD46Version version) { switch (version) diff --git a/src/openrct2/ride/TrackDesign.h b/src/openrct2/ride/TrackDesign.h index 328d128781..59e8616974 100644 --- a/src/openrct2/ride/TrackDesign.h +++ b/src/openrct2/ride/TrackDesign.h @@ -139,6 +139,7 @@ enum class TrackDesignGameStateFlag hasScenery, vehicleUnavailable, }; +using TrackDesignGameStateFlags = FlagHolder; struct TrackDesignTrackAndVehicleSettings { @@ -193,11 +194,8 @@ struct TrackDesignStatistics struct TrackDesignGameStateData { u8string name{}; - uint8_t flags{}; + TrackDesignGameStateFlags flags{}; money64 cost = 0.00_GBP; - - bool hasFlag(TrackDesignGameStateFlag flag) const; - void setFlag(TrackDesignGameStateFlag flag, bool on); }; namespace OpenRCT2 From 18e59822d11e2c0733d065c49f5067608655bde7 Mon Sep 17 00:00:00 2001 From: csunday95 Date: Tue, 22 Sep 2026 08:04:26 -0700 Subject: [PATCH 081/142] Task #27172: Update sprite exportobject manpage (#27173) --- distribution/man/openrct2.6 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/distribution/man/openrct2.6 b/distribution/man/openrct2.6 index 66fbaea16c..a1ae3ce0dc 100644 --- a/distribution/man/openrct2.6 +++ b/distribution/man/openrct2.6 @@ -85,8 +85,8 @@ spritefile idx output spritefile output_directory .Op options .Nm -.Ar sprite exportalldat -dat_identifier output_directory +.Ar sprite exportobject +path_to_object output_directory .Op options .sp .Nm @@ -124,6 +124,10 @@ were not present in RollerCoaster Tycoon 2. Some of those include; mountain tool in-game, the \(lqhave fun\(rq objective, launched coasters (not passing-through the station) and several buttons on the toolbar. .sp +.Sh ACTIONS +.Ss sprite exportobject +Extract the images from an object file into the specified output directory. +.sp .Sh OPTIONS .Bl -tag -width "-openrct2-data-path path " .sp From 8c46e8e6023a1603180aea5fc563aacdb74e3743 Mon Sep 17 00:00:00 2001 From: RayKoopa <9631152+RayKoopa@users.noreply.github.com> Date: Tue, 22 Sep 2026 17:25:07 +0200 Subject: [PATCH 082/142] Auto-close shops before construction (#27110) Extends the "Automatically open shops and stalls" option to also automatically close them before beginning construction. --- data/language/en-GB.txt | 2 +- distribution/changelog.txt | 1 + src/openrct2-ui/windows/Ride.cpp | 29 ++++++++++++++++++++++++----- 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/data/language/en-GB.txt b/data/language/en-GB.txt index e033ab76b4..35031abed8 100644 --- a/data/language/en-GB.txt +++ b/data/language/en-GB.txt @@ -2681,7 +2681,7 @@ STR_5582 :Trap mouse cursor in window STR_5583 :{COMMA1DP16} m/s STR_5584 :SI STR_5585 :Unlocks ride operation limits, allowing for things like {VELOCITY} lift hills -STR_5586 :Automatically open shops and stalls +STR_5586 :Automatically open and close shops and stalls STR_5587 :Shops and stalls will be automatically opened after building them STR_5588 :Play with other players STR_5589 :Notification Settings diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 1198de0c43..34794bf631 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -4,6 +4,7 @@ - Improved: [#21400] The selector for setting staff patrol areas is now drawn on the water as well as on the surface under water. - Improved: [#26947] Rain is now drawn next to the bottom info panels (in RCT2 style). - Improved: [#27097] On Linux, Flatpak Steam RCTC/RCT2 paths are now auto-detected. +- Improved: [#27110] The option to automatically open shops after construction now also closes them before construction. - Change: [#27100] Negative G-forces no longer turn red in the stats window and graph when below -2.50. - Fix: [#1514] Wrong capitalisation for strings in the Guest List window. - Fix: [#12516] Sprites past 65,536 pixels are drawn in the wrong place by the software renderer, most visibly in long scenario lists. diff --git a/src/openrct2-ui/windows/Ride.cpp b/src/openrct2-ui/windows/Ride.cpp index 013fa50715..333fff4e50 100644 --- a/src/openrct2-ui/windows/Ride.cpp +++ b/src/openrct2-ui/windows/Ride.cpp @@ -1668,12 +1668,31 @@ namespace OpenRCT2::Ui::Windows auto ride = GetRide(rideId); if (ride != nullptr) { - RideConstructionStart(*ride); - auto* windowMgr = GetWindowManager(); - if (windowMgr->FindByNumber(WindowClass::rideConstruction, ride->id.ToUnderlying()) != nullptr) + // Auto close shops if required + if (ride->mode == RideMode::shopStall && ride->status == RideStatus::open + && Config::Get().general.autoOpenShops) { - close(); - return; + auto gameAction = GameActions::RideSetStatusAction(ride->id, RideStatus::closed); + gameAction.SetCallback( + [ride](const GameActions::GameAction* ga, const GameActions::Result* result) { + if (result->error != GameActions::Status::ok) + return; + RideConstructionStart(*ride); + // Close ride window if construction window opened + auto* windowMgr = GetWindowManager(); + const auto id = ride->id.ToUnderlying(); + if (windowMgr->FindByNumber(WindowClass::rideConstruction, id) != nullptr) + windowMgr->CloseByNumber(WindowClass::ride, id); + }); + GameActions::Execute(&gameAction, getGameState()); + } + else + { + RideConstructionStart(*ride); + // Close ride window if construction window opened + auto* windowMgr = GetWindowManager(); + if (windowMgr->FindByNumber(WindowClass::rideConstruction, ride->id.ToUnderlying()) != nullptr) + close(); } } break; From 614f444e2867c75e1ab5b3ac218dac02e775f03d Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Tue, 22 Sep 2026 18:55:34 +0200 Subject: [PATCH 083/142] Rework a few more tile element loops to use TileElementsView (#27160) --- .../interface/ViewportInteraction.cpp | 11 ++++------- src/openrct2-ui/scripting/CustomMenu.cpp | 16 ++++++---------- src/openrct2-ui/windows/TileInspector.cpp | 8 +++----- src/openrct2/actions/terraform/ClearAction.cpp | 11 +++++------ 4 files changed, 18 insertions(+), 28 deletions(-) diff --git a/src/openrct2-ui/interface/ViewportInteraction.cpp b/src/openrct2-ui/interface/ViewportInteraction.cpp index 92db04525d..c0aa8fb110 100644 --- a/src/openrct2-ui/interface/ViewportInteraction.cpp +++ b/src/openrct2-ui/interface/ViewportInteraction.cpp @@ -47,6 +47,7 @@ #include #include #include +#include #include #include #include @@ -638,20 +639,16 @@ namespace OpenRCT2::Ui if (w != nullptr) FootpathUpdateProvisional(); - TileElement* tileElement2 = MapGetFirstElementAt(mapCoords); - if (tileElement2 == nullptr) - return; - auto z = pathElement.getBaseZ(); - do + for (auto* pathElement2 : TileElementsView(mapCoords)) { - if (tileElement2->getType() == TileElementType::path && tileElement2->getBaseZ() == z) + if (pathElement2->getBaseZ() == z) { auto action = GameActions::FootpathRemoveAction({ mapCoords, z }); GameActions::Execute(&action, getGameState()); break; } - } while (!(tileElement2++)->isLastForTile()); + } } /** diff --git a/src/openrct2-ui/scripting/CustomMenu.cpp b/src/openrct2-ui/scripting/CustomMenu.cpp index 7bf806dae4..873c184fc6 100644 --- a/src/openrct2-ui/scripting/CustomMenu.cpp +++ b/src/openrct2-ui/scripting/CustomMenu.cpp @@ -18,6 +18,7 @@ #include #include #include + #include using namespace OpenRCT2; using namespace OpenRCT2::Ui; @@ -215,19 +216,14 @@ namespace OpenRCT2::Scripting } else if (info.Element != nullptr) { - auto el = MapGetFirstElementAt(info.Loc); - if (el != nullptr) + for (auto* el : TileElementsView(info.Loc)) { int32_t index = 0; - do + if (el == info.Element) { - if (el == info.Element) - { - JS_SetPropertyStr(ctx, obj, "tileElementIndex", JS_NewInt32(ctx, index)); - break; - } - index++; - } while (!(el++)->isLastForTile()); + JS_SetPropertyStr(ctx, obj, "tileElementIndex", JS_NewInt32(ctx, index)); + break; + } } } diff --git a/src/openrct2-ui/windows/TileInspector.cpp b/src/openrct2-ui/windows/TileInspector.cpp index 86fb3be452..d3e58371eb 100644 --- a/src/openrct2-ui/windows/TileInspector.cpp +++ b/src/openrct2-ui/windows/TileInspector.cpp @@ -1851,17 +1851,15 @@ namespace OpenRCT2::Ui::Windows windowTileInspectorSelectedIndex = -1; scrolls[0].contentOffsetY = 0; - TileElement* element = MapGetFirstElementAt(_toolMap); int16_t numItems = 0; - do + for (auto* element : TileElementsView(_toolMap)) { - if (element == nullptr) - break; if (element == elementToSelect) windowTileInspectorSelectedIndex = numItems; numItems++; - } while (!(element++)->isLastForTile()); + } + windowTileInspectorElementCount = numItems; invalidate(); MapInvalidateTileFull(_toolMap); diff --git a/src/openrct2/actions/terraform/ClearAction.cpp b/src/openrct2/actions/terraform/ClearAction.cpp index 694866d204..a141761690 100644 --- a/src/openrct2/actions/terraform/ClearAction.cpp +++ b/src/openrct2/actions/terraform/ClearAction.cpp @@ -124,16 +124,12 @@ namespace OpenRCT2::GameActions money64 ClearAction::ClearSceneryFromTile(const CoordsXY& tilePos, bool executing, GameState_t& gameState) const { // Pass down all flags. - TileElement* tileElement = nullptr; money64 totalCost = 0; bool tileEdited; do { tileEdited = false; - tileElement = MapGetFirstElementAt(tilePos); - if (tileElement == nullptr) - return totalCost; - do + for (auto* tileElement : TileElementsView(tilePos)) { if (tileElement->isGhost()) continue; @@ -245,7 +241,10 @@ namespace OpenRCT2::GameActions default: break; } - } while (!tileEdited && !(tileElement++)->isLastForTile()); + + if (tileEdited) + break; + } } while (tileEdited); return totalCost; From 5858550eb124a903adef47edd6368c4fb698ca31 Mon Sep 17 00:00:00 2001 From: WisdomK-ROK Date: Wed, 23 Sep 2026 03:01:41 +0900 Subject: [PATCH 084/142] Fix #26998: Crash when generating a `Simplex Height Map` with a higher width than height --- distribution/changelog.txt | 1 + src/openrct2/world/map_generator/HeightMap.hpp | 8 ++++---- src/openrct2/world/map_generator/SimplexNoise.cpp | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 34794bf631..c531dabfac 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -17,6 +17,7 @@ - Fix: [#22298] [Plugin] Crash when changing a large scenery element whose object is not loaded. - Fix: [#24457] Yellow is always rendered as third remap in Ride window. - Fix: [#26754] Switching window tabs by touch could crash the game on some Linux builds. +- Fix: [#26998] Crash when generating a `Simplex Height Map` with a higher width than height. - Fix: [#27052] Unnamed rides in RCT2 base and Wacky Worlds scenarios have hardcoded English names. - Fix: [#27056] [Plugin] Loading water palettes from plugin does not update the palette correctly. - Fix: [#27070] The game keeps responding to input while the window is not focused (primarily gamepads). diff --git a/src/openrct2/world/map_generator/HeightMap.hpp b/src/openrct2/world/map_generator/HeightMap.hpp index f58768ea7c..a4cd17e190 100644 --- a/src/openrct2/world/map_generator/HeightMap.hpp +++ b/src/openrct2/world/map_generator/HeightMap.hpp @@ -46,15 +46,15 @@ namespace OpenRCT2::World::MapGenerator HeightMap() = default; - uint8_t& operator[](TileCoordsXY pos) + uint8_t& operator[](const TileCoordsXY& pos) { - assert(pos.x >= 0 || pos.y >= 0 || pos.x < width || pos.y < height); + assert(pos.x >= 0 && pos.y >= 0 && pos.x < width && pos.y < height); return _height[pos.y * width + pos.x]; } - const uint8_t& operator[](TileCoordsXY pos) const + const uint8_t& operator[](const TileCoordsXY& pos) const { - assert(pos.x >= 0 || pos.y >= 0 || pos.x < width || pos.y < height); + assert(pos.x >= 0 && pos.y >= 0 && pos.x < width && pos.y < height); return _height[pos.y * width + pos.x]; } diff --git a/src/openrct2/world/map_generator/SimplexNoise.cpp b/src/openrct2/world/map_generator/SimplexNoise.cpp index c772d819af..63fe302591 100644 --- a/src/openrct2/world/map_generator/SimplexNoise.cpp +++ b/src/openrct2/world/map_generator/SimplexNoise.cpp @@ -168,7 +168,7 @@ namespace OpenRCT2::World::MapGenerator { for (auto xx = -1; xx <= 1; xx++) { - avg += copyHeight[{ y + yy, x + xx }]; + avg += copyHeight[{ x + xx, y + yy }]; } } avg /= 9; From 66b81c502ba2dd32dedfc2d6b62ecb024fa0ecf1 Mon Sep 17 00:00:00 2001 From: Sjoerd de Bruin Date: Tue, 22 Sep 2026 21:29:38 +0200 Subject: [PATCH 085/142] Fix #18151: Recalculate park and company value when loading a save (#27065) --- distribution/changelog.txt | 1 + src/openrct2/Context.cpp | 5 +++++ src/openrct2/scenario/Scenario.cpp | 3 +-- src/openrct2/world/Park.cpp | 9 +++++++-- src/openrct2/world/Park.h | 1 + 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index c531dabfac..b63db16076 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -10,6 +10,7 @@ - Fix: [#12516] Sprites past 65,536 pixels are drawn in the wrong place by the software renderer, most visibly in long scenario lists. - Fix: [#15423] Crash when a guest or handyman uses a bin whose path addition object is not loaded. - Fix: [#17409] When reading system settings, non-US dollar currencies are not recognised correctly. +- Fix: [#18151] Park value and company value are out of date after loading a save. - Fix: [#19754, #27109] Some rides in RCT1 saves have a wrong number of cars per train. - Fix: [#20882] When setting rides with preservation status in the Scenario Editor, some rides are not shown. - Fix: [#21320] RCT1 allows more cars per train on some rides than OpenRCT2. diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 916c7f7df5..480846ffc7 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -79,6 +79,7 @@ #include "ui/WindowManager.h" #include "world/MapAnimation.h" #include "world/MapSelection.h" +#include "world/Park.h" #include #include @@ -810,6 +811,10 @@ namespace OpenRCT2 } #endif GameLoadInit(); // NB: calls `setActiveScene` + + // Park::Update only recalculates these every ~13 seconds, so a save can hold a value that + // predates this park being loaded. Scenarios get the same treatment from ScenarioReset. + Park::updateValuations(gameState.park, gameState); #ifndef DISABLE_NETWORK if (_network.GetMode() == Network::Mode::server) { diff --git a/src/openrct2/scenario/Scenario.cpp b/src/openrct2/scenario/Scenario.cpp index d7373eef53..93ba776275 100644 --- a/src/openrct2/scenario/Scenario.cpp +++ b/src/openrct2/scenario/Scenario.cpp @@ -87,8 +87,7 @@ void ScenarioReset(GameState_t& gameState) auto& park = gameState.park; park.rating = Park::CalculateParkRating(park, gameState); - park.value = Park::CalculateParkValue(park, gameState); - park.companyValue = Park::CalculateCompanyValue(park); + Park::updateValuations(park, gameState); park.historicalProfit = gameState.scenarioOptions.initialCash - park.bankLoan; park.cash = gameState.scenarioOptions.initialCash; diff --git a/src/openrct2/world/Park.cpp b/src/openrct2/world/Park.cpp index 9445e139e0..5935a8e2e8 100644 --- a/src/openrct2/world/Park.cpp +++ b/src/openrct2/world/Park.cpp @@ -311,6 +311,12 @@ namespace OpenRCT2::Park gameState.scenarioOptions.details = String::toStd(LanguageGetString(STR_NO_DETAILS_YET)); } + void updateValuations(ParkData& park, const GameState_t& gameState) + { + park.value = CalculateParkValue(park, gameState); + park.companyValue = CalculateCompanyValue(park); + } + void Update(ParkData& park, GameState_t& gameState) { PROFILED_FUNCTION(); @@ -328,8 +334,7 @@ namespace OpenRCT2::Park if (currentTicks % 512 == 0) { park.rating = CalculateParkRating(park, gameState); - park.value = CalculateParkValue(park, gameState); - park.companyValue = CalculateCompanyValue(park); + updateValuations(park, gameState); park.totalRideValueForMoney = calculateTotalRideValueForMoney(park, gameState); park.suggestedGuestMaximum = calculateSuggestedMaxGuests(park, gameState); park.guestGenerationProbability = calculateGuestGenerationProbability(park); diff --git a/src/openrct2/world/Park.h b/src/openrct2/world/Park.h index e4e546457c..05c0375f9a 100644 --- a/src/openrct2/world/Park.h +++ b/src/openrct2/world/Park.h @@ -30,6 +30,7 @@ namespace OpenRCT2::Park int32_t CalculateParkRating(const ParkData& park, const GameState_t& gameState); money64 CalculateParkValue(const ParkData& park, const GameState_t& gameState); money64 CalculateCompanyValue(const ParkData& park); + void updateValuations(ParkData& park, const GameState_t& gameState); Guest* GenerateGuest(); From caad293b2db92076dfa0c21be010d3cf94a93e1c Mon Sep 17 00:00:00 2001 From: Sjoerd de Bruin Date: Tue, 22 Sep 2026 22:19:40 +0200 Subject: [PATCH 086/142] Fix #26222: "Follow this on Main View" follows invisible first car instead of the actual car (#27068) Add getFirstVisibleCar(), which walks a train from the head to the first car with CarEntry::isVisible(). The main-view follow used the train head directly, and the ride window's own viewport focus skipped exactly one car when rideEntry->TabCar != 0, which names the car drawn on the vehicle tab rather than the first visible one. Both now use the helper. --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/Ride.cpp | 42 +++++++++++++++++--------------- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index b63db16076..64f0726372 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -17,6 +17,7 @@ - Fix: [#21576] RCT1 Wooden wild mouse track designs with 2-car trains are not imported correctly. - Fix: [#22298] [Plugin] Crash when changing a large scenery element whose object is not loaded. - Fix: [#24457] Yellow is always rendered as third remap in Ride window. +- Fix: [#26222] ‘Follow this on Main View’ follows the invisible first car on ride types that have one, making the view turn too early. - Fix: [#26754] Switching window tabs by touch could crash the game on some Linux builds. - Fix: [#26998] Crash when generating a `Simplex Height Map` with a higher width than height. - Fix: [#27052] Unnamed rides in RCT2 base and Wacky Worlds scenarios have hardcoded English names. diff --git a/src/openrct2-ui/windows/Ride.cpp b/src/openrct2-ui/windows/Ride.cpp index 333fff4e50..7d92d3e093 100644 --- a/src/openrct2-ui/windows/Ride.cpp +++ b/src/openrct2-ui/windows/Ride.cpp @@ -764,6 +764,24 @@ namespace OpenRCT2::Ui::Windows return selectedCarIndex; } + static Vehicle* getFirstVisibleCar(EntityId trainHead) + { + auto& entities = getGameState().entities; + auto* head = entities.getEntity(trainHead); + + auto* vehicle = head; + for (auto remaining = Limits::kMaxCarsPerTrain; vehicle != nullptr && remaining > 0; remaining--) + { + const auto* carEntry = vehicle->Entry(); + if (carEntry == nullptr || carEntry->isVisible()) + return vehicle; + + vehicle = entities.getEntity(vehicle->next_vehicle_on_train); + } + + return head; + } + public: RideWindow(const Ride& ride) { @@ -1551,23 +1569,10 @@ namespace OpenRCT2::Ui::Windows if (viewSelectionIndex >= 0 && viewSelectionIndex < ride->numTrains && ride->flags.has(RideFlag::onTrack)) { - auto vehId = ride->vehicles[viewSelectionIndex]; - const auto* rideEntry = ride->getRideEntry(); - if (rideEntry != nullptr && rideEntry->TabCar != 0) + const auto* vehicle = getFirstVisibleCar(ride->vehicles[viewSelectionIndex]); + if (vehicle != nullptr) { - Vehicle* vehicle = getGameState().entities.getEntity(vehId); - if (vehicle == nullptr) - { - vehId = EntityId::GetNull(); - } - else if (!vehicle->next_vehicle_on_train.IsNull()) - { - vehId = vehicle->next_vehicle_on_train; - } - } - if (!vehId.IsNull()) - { - newFocus = Focus(vehId); + newFocus = Focus(vehicle->id); } } else if (viewSelectionIndex >= ride->numTrains && viewSelectionIndex < (ride->numTrains + ride->numStations)) @@ -2035,12 +2040,11 @@ namespace OpenRCT2::Ui::Windows { if (_viewIndex <= ride->numTrains) { - Vehicle* vehicle = getGameState().entities.getEntity(ride->vehicles[_viewIndex - 1]); + const auto* vehicle = getFirstVisibleCar(ride->vehicles[_viewIndex - 1]); if (vehicle != nullptr) { - auto headVehicleSpriteIndex = vehicle->id; WindowBase* w_main = WindowGetMain(); - WindowFollowSprite(*w_main, headVehicleSpriteIndex); + WindowFollowSprite(*w_main, vehicle->id); } } } From d99eb5dcf784b928f994ec178ea977bd7089408a Mon Sep 17 00:00:00 2001 From: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com> Date: Tue, 22 Sep 2026 22:56:53 +0200 Subject: [PATCH 087/142] Move Chat handling to UI project (#27080) --- src/openrct2-ui/UiContext.cpp | 2 +- src/openrct2-ui/WindowManager.cpp | 13 + src/openrct2-ui/input/InputManager.cpp | 2 +- src/openrct2-ui/input/Shortcuts.cpp | 2 +- src/openrct2-ui/interface/Chat.cpp | 324 ++++++++++++++++++++++++ src/openrct2-ui/interface/Chat.h | 51 ++++ src/openrct2-ui/libopenrct2ui.vcxproj | 2 + src/openrct2-ui/windows/ServerStart.cpp | 2 +- src/openrct2-ui/windows/TopToolbar.cpp | 2 +- src/openrct2/Context.cpp | 7 +- src/openrct2/interface/Chat.cpp | 322 ----------------------- src/openrct2/interface/Chat.h | 52 ---- src/openrct2/libopenrct2.vcxproj | 2 - src/openrct2/network/NetworkBase.cpp | 8 +- src/openrct2/windows/Intent.h | 3 + 15 files changed, 409 insertions(+), 385 deletions(-) create mode 100644 src/openrct2-ui/interface/Chat.cpp create mode 100644 src/openrct2-ui/interface/Chat.h delete mode 100644 src/openrct2/interface/Chat.cpp delete mode 100644 src/openrct2/interface/Chat.h diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index db0318a741..18d6d2c249 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -15,6 +15,7 @@ #include "WindowManager.h" #include "drawing/engines/DrawingEngineFactory.hpp" #include "input/ShortcutManager.h" +#include "interface/Chat.h" #include "interface/InGameConsole.h" #include "interface/Theme.h" #include "scripting/UiExtensions.h" @@ -40,7 +41,6 @@ #include #include #include -#include #include #include #include diff --git a/src/openrct2-ui/WindowManager.cpp b/src/openrct2-ui/WindowManager.cpp index 3094d68303..5bfd1bf07f 100644 --- a/src/openrct2-ui/WindowManager.cpp +++ b/src/openrct2-ui/WindowManager.cpp @@ -9,6 +9,7 @@ #include "WindowManager.h" +#include "interface/Chat.h" #include "interface/FileBrowser.h" #include "interface/Theme.h" #include "interface/Window.h" @@ -582,6 +583,18 @@ public: case INTENT_ACTION_REFRESH_PLAYER_LIST: MultiplayerRefreshList(); break; + case INTENT_ACTION_INIT_CHAT: + ChatInit(); + break; + case INTENT_ACTION_UPDATE_CHAT: + ChatUpdate(); + break; + case INTENT_ACTION_CHAT_ADD_HISTORY: + { + auto message = intent.GetStringExtra(INTENT_EXTRA_MESSAGE); + ChatAddHistory(message); + break; + } default: break; } diff --git a/src/openrct2-ui/input/InputManager.cpp b/src/openrct2-ui/input/InputManager.cpp index a87e5f2b31..b7d613e18f 100644 --- a/src/openrct2-ui/input/InputManager.cpp +++ b/src/openrct2-ui/input/InputManager.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -24,7 +25,6 @@ #include #include #include -#include #include #include #include diff --git a/src/openrct2-ui/input/Shortcuts.cpp b/src/openrct2-ui/input/Shortcuts.cpp index ef4cb066b4..59beb6c7cf 100644 --- a/src/openrct2-ui/input/Shortcuts.cpp +++ b/src/openrct2-ui/input/Shortcuts.cpp @@ -13,6 +13,7 @@ #include #include +#include #include #include #include @@ -31,7 +32,6 @@ #include #include #include -#include #include #include #include diff --git a/src/openrct2-ui/interface/Chat.cpp b/src/openrct2-ui/interface/Chat.cpp new file mode 100644 index 0000000000..5f085c56d8 --- /dev/null +++ b/src/openrct2-ui/interface/Chat.cpp @@ -0,0 +1,324 @@ +/***************************************************************************** + * Copyright (c) 2014-2026 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#include "Chat.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace OpenRCT2::Audio; +using namespace OpenRCT2::Drawing; + +namespace OpenRCT2 +{ + bool gChatOpen = false; + static u8string _chatCurrentLine; + static std::deque _chatHistory; + static std::deque _chatHistoryTime; + static uint32_t _chatCaretTicks = 0; + static int32_t _chatLeft; + static int32_t _chatTop; + static int32_t _chatRight; + static int32_t _chatBottom; + static int32_t _chatWidth; + static int32_t _chatHeight; + static TextInputSession* _chatTextInputSession; + + static const u8string& ChatGetHistory(size_t index); + static uint32_t ChatHistoryGetTime(size_t index); + static void ChatClearInput(); + static int32_t ChatHistoryDrawString(RenderTarget& rt, const char* text, const ScreenCoordsXY& screenCoords, int32_t width); + + bool ChatAvailable() + { + return Network::GetMode() != Network::Mode::none && Network::GetStatus() == Network::Status::connected + && Network::GetAuthstatus() == Network::Auth::ok; + } + + void ChatOpen() + { + gChatOpen = true; + _chatTextInputSession = ContextStartTextInput(_chatCurrentLine, kChatMaxMessageLength); + } + + void ChatClose() + { + gChatOpen = false; + ContextStopTextInput(); + } + + void ChatToggle() + { + if (gChatOpen) + { + ChatClose(); + } + else + { + ChatOpen(); + } + } + + void ChatInit() + { + _chatHistory.clear(); + _chatHistoryTime.clear(); + } + + void ChatUpdate() + { + // Flash the caret + _chatCaretTicks = (_chatCaretTicks + 1) % 30; + } + + void ChatDraw(RenderTarget& rt, ColourWithFlags chatBackgroundColor) + { + thread_local std::string lineBuffer; + + if (!ChatAvailable()) + { + gChatOpen = false; + return; + } + + _chatLeft = 10; + _chatRight = std::min((ContextGetWidth() - 10), kChatMaxWindowWidth); + _chatWidth = _chatRight - _chatLeft; + _chatBottom = ContextGetHeight() - 45; + _chatTop = _chatBottom - 10; + + const char* inputLine = _chatCurrentLine.c_str(); + int32_t inputLineHeight = 10; + + // Draw chat window + if (gChatOpen) + { + inputLineHeight = ChatStringWrappedGetHeight(inputLine, _chatWidth - 10); + _chatTop -= inputLineHeight; + + for (const auto& entry : _chatHistory) + { + if (entry.empty()) + { + continue; + } + lineBuffer = entry; + int32_t lineHeight = ChatStringWrappedGetHeight(lineBuffer, _chatWidth - 10); + _chatTop -= (lineHeight + 5); + } + + _chatHeight = _chatBottom - _chatTop; + + if (_chatTop < 50) + { + _chatTop = 50; + } + else if (_chatHeight < 150) + { // Min height + _chatTop = _chatBottom - 150; + _chatHeight = 150; + } + + ScreenCoordsXY topLeft{ _chatLeft, _chatTop }; + ScreenCoordsXY bottomRight{ _chatRight, _chatBottom }; + ScreenCoordsXY bottomLeft{ _chatLeft, _chatBottom }; + GfxSetDirtyBlocks( + { topLeft - ScreenCoordsXY{ 0, 5 }, bottomRight + ScreenCoordsXY{ 0, 5 } }); // Background area + Textbox + Rectangle::filter( + rt, { topLeft - ScreenCoordsXY{ 0, 5 }, bottomRight + ScreenCoordsXY{ 0, 5 } }, + FilterPaletteID::palette51); // Opaque grey background + Rectangle::fillInset( + rt, { topLeft - ScreenCoordsXY{ 0, 5 }, bottomRight + ScreenCoordsXY{ 0, 5 } }, chatBackgroundColor, + Rectangle::BorderStyle::outset, Rectangle::FillBrightness::light, Rectangle::FillMode::none); + Rectangle::fillInset( + rt, { topLeft + ScreenCoordsXY{ 1, -4 }, bottomRight - ScreenCoordsXY{ 1, inputLineHeight + 6 } }, + chatBackgroundColor, Rectangle::BorderStyle::inset); + Rectangle::fillInset( + rt, { bottomLeft + ScreenCoordsXY{ 1, -inputLineHeight - 5 }, bottomRight + ScreenCoordsXY{ -1, 4 } }, + chatBackgroundColor, + Rectangle::BorderStyle::inset); // Textbox + } + + auto screenCoords = ScreenCoordsXY{ _chatLeft + 5, _chatBottom - inputLineHeight - 20 }; + int32_t stringHeight = 0; + + // Draw chat history + for (size_t i = 0; i < kChatHistorySize; i++, screenCoords.y -= stringHeight) + { + if (i >= _chatHistory.size()) + break; + + uint32_t expireTime = ChatHistoryGetTime(i) + 10000; + if (!gChatOpen && Platform::GetTicks() > expireTime) + { + break; + } + + lineBuffer = ChatGetHistory(i); + auto lineCh = lineBuffer.c_str(); + stringHeight = ChatHistoryDrawString(rt, lineCh, screenCoords, _chatWidth - 10) + 5; + GfxSetDirtyBlocks( + { { screenCoords - ScreenCoordsXY{ 0, stringHeight } }, { screenCoords + ScreenCoordsXY{ _chatWidth, 20 } } }); + + if ((screenCoords.y - stringHeight) < 50) + { + break; + } + } + + // Draw current chat input + if (gChatOpen) + { + lineBuffer.assign("{OUTLINE}{CELADON}"); + lineBuffer += _chatCurrentLine; + + screenCoords.y = _chatBottom - inputLineHeight - 5; + + inputLineHeight = drawTextWrapped( + rt, screenCoords + ScreenCoordsXY{ 0, 3 }, _chatWidth - 10, lineBuffer, { OpenRCT2::Drawing::kColourNull }); + GfxSetDirtyBlocks({ screenCoords, { screenCoords + ScreenCoordsXY{ _chatWidth, inputLineHeight + 15 } } }); + + // TODO: Show caret if the input text has multiple lines + if (_chatCaretTicks < 15 && getStringWidth(lineBuffer, FontStyle::medium) < (_chatWidth - 10)) + { + lineBuffer.assign(_chatCurrentLine.c_str(), _chatTextInputSession->SelectionStart); + int32_t caretX = screenCoords.x + getStringWidth(lineBuffer, FontStyle::medium); + int32_t caretY = screenCoords.y + 14; + + Rectangle::fill(rt, { { caretX, caretY }, { caretX + 6, caretY + 1 } }, PaletteIndex::yellow10); + } + } + } + + /** + * strftime wrapper which appends to an existing string. + */ + static size_t StrCatFTime(char* buffer, size_t bufferSize, const char* format, const struct tm* tp) + { + size_t stringLen = strnlen(buffer, bufferSize); + if (stringLen < bufferSize) + { + char* dst = buffer + stringLen; + size_t dstMaxSize = bufferSize - stringLen; + return strftime(dst, dstMaxSize, format, tp); + } + return 0; + } + + void ChatAddHistory(std::string_view s) + { + // Format a timestamp + time_t timer{}; + time(&timer); + auto tmInfo = localtime(&timer); + char timeBuffer[64]{}; + StrCatFTime(timeBuffer, sizeof(timeBuffer), "[%H:%M] ", tmInfo); + + std::string buffer = timeBuffer; + buffer += s; + + if (_chatHistory.size() >= kChatHistorySize) + { + _chatHistory.pop_back(); + _chatHistoryTime.pop_back(); + } + + _chatHistory.push_front(buffer); + _chatHistoryTime.push_front(Platform::GetTicks()); + + // Log to file (src only as logging does its own timestamp) + Network::AppendChatLog(s); + + CreateAudioChannel(SoundId::newsItem, false, kMixerVolumeMax, 0.5f, 1.5f, true); + } + + void ChatInput(enum ChatInput input) + { + switch (input) + { + case ChatInput::send: + if (!_chatCurrentLine.empty()) + { + Network::SendChat(_chatCurrentLine.c_str()); + } + ChatClearInput(); + ChatClose(); + break; + case ChatInput::close: + ChatClose(); + break; + default: + break; + } + } + + static const u8string& ChatGetHistory(size_t index) + { + return _chatHistory[index]; + } + + static uint32_t ChatHistoryGetTime(size_t index) + { + return _chatHistoryTime[index]; + } + + static void ChatClearInput() + { + _chatCurrentLine.clear(); + } + + // This method is the same as gfx_draw_string_left_wrapped. + // But this adjusts the initial Y coordinate depending of the number of lines. + static int32_t ChatHistoryDrawString(RenderTarget& rt, const char* text, const ScreenCoordsXY& screenCoords, int32_t width) + { + int32_t numLines; + u8string wrappedString; + wrapString(FormatString("{OUTLINE}{WHITE}{STRING}", text), width, FontStyle::medium, &wrappedString, &numLines); + auto lineHeight = FontGetLineHeight(FontStyle::medium); + + int32_t expectedY = screenCoords.y - (numLines * lineHeight); + if (expectedY < 50) + { + return (numLines * lineHeight); // Skip drawing, return total height. + } + + const utf8* bufferPtr = wrappedString.data(); + int32_t lineY = screenCoords.y; + for (int32_t line = 0; line <= numLines; ++line) + { + drawText(rt, { screenCoords.x, lineY - (numLines * lineHeight) }, bufferPtr, { OpenRCT2::Drawing::kColourNull }); + bufferPtr = GetStringEnd(bufferPtr) + 1; + lineY += lineHeight; + } + return lineY - screenCoords.y; + } + + // Wrap string without drawing, useful to get the height of a wrapped string. + // Almost the same as gfx_draw_string_left_wrapped + int32_t ChatStringWrappedGetHeight(u8string_view args, int32_t width) + { + int32_t numLines; + wrapString(FormatStringID(STR_STRING, args), width, FontStyle::medium, nullptr, &numLines); + const int32_t lineHeight = FontGetLineHeight(FontStyle::medium); + return lineHeight * (numLines + 1); + } +} // namespace OpenRCT2 diff --git a/src/openrct2-ui/interface/Chat.h b/src/openrct2-ui/interface/Chat.h new file mode 100644 index 0000000000..744b36cab0 --- /dev/null +++ b/src/openrct2-ui/interface/Chat.h @@ -0,0 +1,51 @@ +/***************************************************************************** + * Copyright (c) 2014-2026 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#include +#include + +namespace OpenRCT2 +{ + struct ColourWithFlags; + + constexpr int8_t kChatHistorySize = 10; + constexpr int16_t kChatInputSize = 1024; + constexpr uint8_t kChatMaxMessageLength = 200; + constexpr int16_t kChatMaxWindowWidth = 600; + + enum class ChatInput : uint8_t + { + none, + send, + close, + }; + + extern bool gChatOpen; + + namespace Drawing + { + struct RenderTarget; + } + + bool ChatAvailable(); + void ChatOpen(); + void ChatClose(); + void ChatToggle(); + + void ChatInit(); + void ChatUpdate(); + void ChatDraw(Drawing::RenderTarget& rt, ColourWithFlags chatBackgroundColour); + + void ChatAddHistory(std::string_view s); + void ChatInput(ChatInput input); + + int32_t ChatStringWrappedGetHeight(u8string_view args, int32_t width); +} // namespace OpenRCT2 diff --git a/src/openrct2-ui/libopenrct2ui.vcxproj b/src/openrct2-ui/libopenrct2ui.vcxproj index 9456b6d637..54d0ec86f0 100644 --- a/src/openrct2-ui/libopenrct2ui.vcxproj +++ b/src/openrct2-ui/libopenrct2ui.vcxproj @@ -68,6 +68,7 @@ + @@ -136,6 +137,7 @@ + diff --git a/src/openrct2-ui/windows/ServerStart.cpp b/src/openrct2-ui/windows/ServerStart.cpp index 1747e09d5e..999193f193 100644 --- a/src/openrct2-ui/windows/ServerStart.cpp +++ b/src/openrct2-ui/windows/ServerStart.cpp @@ -11,6 +11,7 @@ #include "../interface/Theme.h" + #include #include #include #include @@ -19,7 +20,6 @@ #include #include #include - #include #include #include #include diff --git a/src/openrct2-ui/windows/TopToolbar.cpp b/src/openrct2-ui/windows/TopToolbar.cpp index cb36436a5e..cfa7da2c56 100644 --- a/src/openrct2-ui/windows/TopToolbar.cpp +++ b/src/openrct2-ui/windows/TopToolbar.cpp @@ -11,6 +11,7 @@ #include "../interface/InGameConsole.h" #include "../scripting/CustomMenu.h" +#include #include #include #include @@ -32,7 +33,6 @@ #include #include #include -#include #include #include #include diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 480846ffc7..5f2472b291 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -51,7 +51,6 @@ #include "drawing/PickupPeep.h" #include "entity/EntityTweener.h" #include "entity/PatrolArea.h" -#include "interface/Chat.h" #include "interface/StdInOutConsole.h" #include "interface/Viewport.h" #include "localisation/Formatter.h" @@ -470,7 +469,8 @@ namespace OpenRCT2 Audio::gGameSoundsOff = !Config::Get().sound.masterSoundEnabled; } - ChatInit(); + auto intent = Intent(INTENT_ACTION_INIT_CHAT); + _uiContext->GetWindowManager()->BroadcastIntent(intent); CopyOriginalUserFilesOver(); if (!gOpenRCT2NoGraphics) @@ -1411,7 +1411,8 @@ namespace OpenRCT2 } #endif - ChatUpdate(); + auto intent = Intent(INTENT_ACTION_UPDATE_CHAT); + _uiContext->GetWindowManager()->BroadcastIntent(intent); #ifdef ENABLE_SCRIPTING if (auto* activeScene = _sceneManager->getActiveScene(); activeScene != _sceneManager->getPreloaderScene()) { diff --git a/src/openrct2/interface/Chat.cpp b/src/openrct2/interface/Chat.cpp deleted file mode 100644 index 0f2c7f6497..0000000000 --- a/src/openrct2/interface/Chat.cpp +++ /dev/null @@ -1,322 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014-2026 OpenRCT2 developers - * - * For a complete list of all authors, please refer to contributors.md - * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 - * - * OpenRCT2 is licensed under the GNU General Public License version 3. - *****************************************************************************/ - -#include "Chat.h" - -#include "../Context.h" -#include "../Input.h" -#include "../audio/Audio.h" -#include "../audio/AudioMixer.h" -#include "../core/UTF8.h" -#include "../drawing/Drawing.String.h" -#include "../drawing/FilterPaletteIds.h" -#include "../drawing/NewDrawing.h" -#include "../drawing/Rectangle.h" -#include "../drawing/Text.h" -#include "../interface/ColourWithFlags.h" -#include "../interface/ScreenCoords.hpp" -#include "../localisation/Formatting.h" -#include "../network/Network.h" -#include "../platform/Platform.h" - -using namespace OpenRCT2; -using namespace OpenRCT2::Audio; -using namespace OpenRCT2::Drawing; - -bool gChatOpen = false; -static u8string _chatCurrentLine; -static std::deque _chatHistory; -static std::deque _chatHistoryTime; -static uint32_t _chatCaretTicks = 0; -static int32_t _chatLeft; -static int32_t _chatTop; -static int32_t _chatRight; -static int32_t _chatBottom; -static int32_t _chatWidth; -static int32_t _chatHeight; -static TextInputSession* _chatTextInputSession; - -static const u8string& ChatGetHistory(size_t index); -static uint32_t ChatHistoryGetTime(size_t index); -static void ChatClearInput(); -static int32_t ChatHistoryDrawString(RenderTarget& rt, const char* text, const ScreenCoordsXY& screenCoords, int32_t width); - -bool ChatAvailable() -{ - return Network::GetMode() != Network::Mode::none && Network::GetStatus() == Network::Status::connected - && Network::GetAuthstatus() == Network::Auth::ok; -} - -void ChatOpen() -{ - gChatOpen = true; - _chatTextInputSession = ContextStartTextInput(_chatCurrentLine, kChatMaxMessageLength); -} - -void ChatClose() -{ - gChatOpen = false; - ContextStopTextInput(); -} - -void ChatToggle() -{ - if (gChatOpen) - { - ChatClose(); - } - else - { - ChatOpen(); - } -} - -void ChatInit() -{ - _chatHistory.clear(); - _chatHistoryTime.clear(); -} - -void ChatUpdate() -{ - // Flash the caret - _chatCaretTicks = (_chatCaretTicks + 1) % 30; -} - -void ChatDraw(RenderTarget& rt, ColourWithFlags chatBackgroundColor) -{ - thread_local std::string lineBuffer; - - if (!ChatAvailable()) - { - gChatOpen = false; - return; - } - - _chatLeft = 10; - _chatRight = std::min((ContextGetWidth() - 10), kChatMaxWindowWidth); - _chatWidth = _chatRight - _chatLeft; - _chatBottom = ContextGetHeight() - 45; - _chatTop = _chatBottom - 10; - - const char* inputLine = _chatCurrentLine.c_str(); - int32_t inputLineHeight = 10; - - // Draw chat window - if (gChatOpen) - { - inputLineHeight = ChatStringWrappedGetHeight(inputLine, _chatWidth - 10); - _chatTop -= inputLineHeight; - - for (const auto& entry : _chatHistory) - { - if (entry.empty()) - { - continue; - } - lineBuffer = entry; - int32_t lineHeight = ChatStringWrappedGetHeight(lineBuffer, _chatWidth - 10); - _chatTop -= (lineHeight + 5); - } - - _chatHeight = _chatBottom - _chatTop; - - if (_chatTop < 50) - { - _chatTop = 50; - } - else if (_chatHeight < 150) - { // Min height - _chatTop = _chatBottom - 150; - _chatHeight = 150; - } - - ScreenCoordsXY topLeft{ _chatLeft, _chatTop }; - ScreenCoordsXY bottomRight{ _chatRight, _chatBottom }; - ScreenCoordsXY bottomLeft{ _chatLeft, _chatBottom }; - GfxSetDirtyBlocks( - { topLeft - ScreenCoordsXY{ 0, 5 }, bottomRight + ScreenCoordsXY{ 0, 5 } }); // Background area + Textbox - Rectangle::filter( - rt, { topLeft - ScreenCoordsXY{ 0, 5 }, bottomRight + ScreenCoordsXY{ 0, 5 } }, - FilterPaletteID::palette51); // Opaque grey background - Rectangle::fillInset( - rt, { topLeft - ScreenCoordsXY{ 0, 5 }, bottomRight + ScreenCoordsXY{ 0, 5 } }, chatBackgroundColor, - Rectangle::BorderStyle::outset, Rectangle::FillBrightness::light, Rectangle::FillMode::none); - Rectangle::fillInset( - rt, { topLeft + ScreenCoordsXY{ 1, -4 }, bottomRight - ScreenCoordsXY{ 1, inputLineHeight + 6 } }, - chatBackgroundColor, Rectangle::BorderStyle::inset); - Rectangle::fillInset( - rt, { bottomLeft + ScreenCoordsXY{ 1, -inputLineHeight - 5 }, bottomRight + ScreenCoordsXY{ -1, 4 } }, - chatBackgroundColor, - Rectangle::BorderStyle::inset); // Textbox - } - - auto screenCoords = ScreenCoordsXY{ _chatLeft + 5, _chatBottom - inputLineHeight - 20 }; - int32_t stringHeight = 0; - - // Draw chat history - for (size_t i = 0; i < kChatHistorySize; i++, screenCoords.y -= stringHeight) - { - if (i >= _chatHistory.size()) - break; - - uint32_t expireTime = ChatHistoryGetTime(i) + 10000; - if (!gChatOpen && Platform::GetTicks() > expireTime) - { - break; - } - - lineBuffer = ChatGetHistory(i); - auto lineCh = lineBuffer.c_str(); - stringHeight = ChatHistoryDrawString(rt, lineCh, screenCoords, _chatWidth - 10) + 5; - GfxSetDirtyBlocks( - { { screenCoords - ScreenCoordsXY{ 0, stringHeight } }, { screenCoords + ScreenCoordsXY{ _chatWidth, 20 } } }); - - if ((screenCoords.y - stringHeight) < 50) - { - break; - } - } - - // Draw current chat input - if (gChatOpen) - { - lineBuffer.assign("{OUTLINE}{CELADON}"); - lineBuffer += _chatCurrentLine; - - screenCoords.y = _chatBottom - inputLineHeight - 5; - - inputLineHeight = drawTextWrapped( - rt, screenCoords + ScreenCoordsXY{ 0, 3 }, _chatWidth - 10, lineBuffer, { OpenRCT2::Drawing::kColourNull }); - GfxSetDirtyBlocks({ screenCoords, { screenCoords + ScreenCoordsXY{ _chatWidth, inputLineHeight + 15 } } }); - - // TODO: Show caret if the input text has multiple lines - if (_chatCaretTicks < 15 && getStringWidth(lineBuffer, FontStyle::medium) < (_chatWidth - 10)) - { - lineBuffer.assign(_chatCurrentLine.c_str(), _chatTextInputSession->SelectionStart); - int32_t caretX = screenCoords.x + getStringWidth(lineBuffer, FontStyle::medium); - int32_t caretY = screenCoords.y + 14; - - Rectangle::fill(rt, { { caretX, caretY }, { caretX + 6, caretY + 1 } }, PaletteIndex::yellow10); - } - } -} - -/** - * strftime wrapper which appends to an existing string. - */ -static size_t StrCatFTime(char* buffer, size_t bufferSize, const char* format, const struct tm* tp) -{ - size_t stringLen = strnlen(buffer, bufferSize); - if (stringLen < bufferSize) - { - char* dst = buffer + stringLen; - size_t dstMaxSize = bufferSize - stringLen; - return strftime(dst, dstMaxSize, format, tp); - } - return 0; -} - -void ChatAddHistory(std::string_view s) -{ - // Format a timestamp - time_t timer{}; - time(&timer); - auto tmInfo = localtime(&timer); - char timeBuffer[64]{}; - StrCatFTime(timeBuffer, sizeof(timeBuffer), "[%H:%M] ", tmInfo); - - std::string buffer = timeBuffer; - buffer += s; - - if (_chatHistory.size() >= kChatHistorySize) - { - _chatHistory.pop_back(); - _chatHistoryTime.pop_back(); - } - - _chatHistory.push_front(buffer); - _chatHistoryTime.push_front(Platform::GetTicks()); - - // Log to file (src only as logging does its own timestamp) - Network::AppendChatLog(s); - - CreateAudioChannel(SoundId::newsItem, false, kMixerVolumeMax, 0.5f, 1.5f, true); -} - -void ChatInput(enum ChatInput input) -{ - switch (input) - { - case ChatInput::send: - if (!_chatCurrentLine.empty()) - { - Network::SendChat(_chatCurrentLine.c_str()); - } - ChatClearInput(); - ChatClose(); - break; - case ChatInput::close: - ChatClose(); - break; - default: - break; - } -} - -static const u8string& ChatGetHistory(size_t index) -{ - return _chatHistory[index]; -} - -static uint32_t ChatHistoryGetTime(size_t index) -{ - return _chatHistoryTime[index]; -} - -static void ChatClearInput() -{ - _chatCurrentLine.clear(); -} - -// This method is the same as gfx_draw_string_left_wrapped. -// But this adjusts the initial Y coordinate depending of the number of lines. -static int32_t ChatHistoryDrawString(RenderTarget& rt, const char* text, const ScreenCoordsXY& screenCoords, int32_t width) -{ - int32_t numLines; - u8string wrappedString; - wrapString(FormatString("{OUTLINE}{WHITE}{STRING}", text), width, FontStyle::medium, &wrappedString, &numLines); - auto lineHeight = FontGetLineHeight(FontStyle::medium); - - int32_t expectedY = screenCoords.y - (numLines * lineHeight); - if (expectedY < 50) - { - return (numLines * lineHeight); // Skip drawing, return total height. - } - - const utf8* bufferPtr = wrappedString.data(); - int32_t lineY = screenCoords.y; - for (int32_t line = 0; line <= numLines; ++line) - { - drawText(rt, { screenCoords.x, lineY - (numLines * lineHeight) }, bufferPtr, { OpenRCT2::Drawing::kColourNull }); - bufferPtr = GetStringEnd(bufferPtr) + 1; - lineY += lineHeight; - } - return lineY - screenCoords.y; -} - -// Wrap string without drawing, useful to get the height of a wrapped string. -// Almost the same as gfx_draw_string_left_wrapped -int32_t ChatStringWrappedGetHeight(u8string_view args, int32_t width) -{ - int32_t numLines; - wrapString(FormatStringID(STR_STRING, args), width, FontStyle::medium, nullptr, &numLines); - const int32_t lineHeight = FontGetLineHeight(FontStyle::medium); - return lineHeight * (numLines + 1); -} diff --git a/src/openrct2/interface/Chat.h b/src/openrct2/interface/Chat.h deleted file mode 100644 index bd1960db66..0000000000 --- a/src/openrct2/interface/Chat.h +++ /dev/null @@ -1,52 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2014-2026 OpenRCT2 developers - * - * For a complete list of all authors, please refer to contributors.md - * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 - * - * OpenRCT2 is licensed under the GNU General Public License version 3. - *****************************************************************************/ - -#pragma once - -#include "../core/StringTypes.h" - -#include - -namespace OpenRCT2 -{ - struct ColourWithFlags; -} - -constexpr int8_t kChatHistorySize = 10; -constexpr int16_t kChatInputSize = 1024; -constexpr uint8_t kChatMaxMessageLength = 200; -constexpr int16_t kChatMaxWindowWidth = 600; - -enum class ChatInput : uint8_t -{ - none, - send, - close, -}; - -extern bool gChatOpen; - -namespace OpenRCT2::Drawing -{ - struct RenderTarget; -} - -bool ChatAvailable(); -void ChatOpen(); -void ChatClose(); -void ChatToggle(); - -void ChatInit(); -void ChatUpdate(); -void ChatDraw(OpenRCT2::Drawing::RenderTarget& rt, OpenRCT2::ColourWithFlags chatBackgroundColour); - -void ChatAddHistory(std::string_view s); -void ChatInput(ChatInput input); - -int32_t ChatStringWrappedGetHeight(u8string_view args, int32_t width); diff --git a/src/openrct2/libopenrct2.vcxproj b/src/openrct2/libopenrct2.vcxproj index 3d4381de50..76b300a8c4 100644 --- a/src/openrct2/libopenrct2.vcxproj +++ b/src/openrct2/libopenrct2.vcxproj @@ -301,7 +301,6 @@ - @@ -948,7 +947,6 @@ - diff --git a/src/openrct2/network/NetworkBase.cpp b/src/openrct2/network/NetworkBase.cpp index c851cd0ee6..71cac9e7d7 100644 --- a/src/openrct2/network/NetworkBase.cpp +++ b/src/openrct2/network/NetworkBase.cpp @@ -73,7 +73,6 @@ static constexpr uint32_t kMaxPacketsPerTick = 100; #include "../core/MemoryStream.h" #include "../core/Path.hpp" #include "../core/String.hpp" - #include "../interface/Chat.h" #include "../object/ObjectManager.h" #include "../object/ObjectRepository.h" #include "../scenario/Scenario.h" @@ -104,6 +103,13 @@ namespace OpenRCT2::Network static u8string GetPrivateKeyPath(u8string_view playerName); static u8string GetPublicKeyPath(u8string_view playerName, u8string_view hash); + static void ChatAddHistory(const u8string& text) + { + auto intent = Intent(INTENT_ACTION_CHAT_ADD_HISTORY); + intent.PutExtra(INTENT_EXTRA_MESSAGE, text); + ContextBroadcastIntent(&intent); + } + NetworkBase::NetworkBase(IContext& context) : System(context) { diff --git a/src/openrct2/windows/Intent.h b/src/openrct2/windows/Intent.h index 352b34a18f..a26967d9a6 100644 --- a/src/openrct2/windows/Intent.h +++ b/src/openrct2/windows/Intent.h @@ -58,6 +58,9 @@ namespace OpenRCT2 INTENT_ACTION_REMOVE_PROVISIONAL_FOOTPATH, INTENT_ACTION_REMOVE_PROVISIONAL_TRACK_PIECE, INTENT_ACTION_REFRESH_PLAYER_LIST, + INTENT_ACTION_INIT_CHAT, + INTENT_ACTION_UPDATE_CHAT, + INTENT_ACTION_CHAT_ADD_HISTORY, INTENT_ACTION_NULL = 255, }; From b80a4a84e92be8e07904b38d1032d0bb88280bb4 Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Wed, 23 Sep 2026 04:05:43 +0000 Subject: [PATCH 088/142] Merge Localisation/master into OpenRCT2/develop --- data/language/nl-NL.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/language/nl-NL.txt b/data/language/nl-NL.txt index 7fd03d929b..ed1cb23be0 100644 --- a/data/language/nl-NL.txt +++ b/data/language/nl-NL.txt @@ -3833,7 +3833,7 @@ STR_7050 :Bezoekers die rondlopen STR_7051 :Bezoekers op weg naar {STRINGID} STR_7052 :Bezoekers in de rij voor {STRINGID} STR_7053 :Bezoekers die verdrinken -STR_7054 :Bezoekers op {STRINGID} +STR_7054 :Bezoekers in {STRINGID} STR_7055 :Bezoekers in {STRINGID} STR_7056 :Bezoekers bij {STRINGID} STR_7057 :Bezoekers die zitten From 725ba2243b063c537215af9ec3bfc8d6a837476c Mon Sep 17 00:00:00 2001 From: mix Date: Wed, 23 Sep 2026 16:01:08 +0100 Subject: [PATCH 089/142] Remove track paint function fallback for Inverted Flying RollerCoaster --- .../paint/track/coaster/FlyingRollerCoasterInverted.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp b/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp index 1be4cc16c3..575e421acd 100644 --- a/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp +++ b/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp @@ -9014,6 +9014,6 @@ TrackPaintFunction GetTrackPaintFunctionFlyingRCInverted(TrackElemType trackType return InvertedFlyingRCTrackDiagBlockBrakes; default: - return GetTrackPaintFunctionFlyingRC(trackType); + return TrackPaintFunctionDummy; } } From d4d9712535240b912bee69413d5c5ca10d040129 Mon Sep 17 00:00:00 2001 From: mix Date: Wed, 23 Sep 2026 16:16:47 +0100 Subject: [PATCH 090/142] Remove dupe quarter loop function in flying coaster and use twister --- .../track/coaster/FlyingRollerCoaster.cpp | 101 +----------------- .../track/coaster/TwisterRollerCoaster.cpp | 2 +- .../track/coaster/TwisterRollerCoaster.h | 3 + 3 files changed, 6 insertions(+), 100 deletions(-) diff --git a/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp b/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp index 925e2afdcf..9eed9d7081 100644 --- a/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp @@ -61,108 +61,11 @@ static void FlyingRCTrackStation( PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } -static void FlyingRCTrack90DegToInvertedFlatQuarterLoopUp( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement, SupportType supportType) -{ - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(18062), { 0, 0, height }, - { { 4, 6, height + 8 }, { 2, 20, 31 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(18065), { 0, 0, height }, - { { 24, 6, height + 8 }, { 2, 20, 31 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(18068), { 0, 0, height }, - { { 24, 6, height + 8 }, { 2, 20, 31 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(18071), { 0, 0, height }, - { { 4, 6, height + 8 }, { 2, 20, 31 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 88); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(18063), { 0, 0, height }, - { { -8, 6, height }, { 2, 20, 31 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(18066), { 0, 0, height }, - { { 24, 6, height + 8 }, { 2, 20, 63 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(18069), { 0, 0, height }, - { { 24, 6, height + 8 }, { 2, 20, 63 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(18072), { 0, 0, height }, - { { -8, 6, height }, { 2, 20, 31 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 64); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(18064), { 0, 0, height }, - { { 0, 6, height + 24 }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(18067), { 0, 0, height }, - { { 24, 6, height + 8 }, { 2, 20, 31 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(18070), { 0, 0, height }, - { { 24, 6, height + 8 }, { 2, 20, 31 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(18073), { 0, 0, height }, - { { 0, 6, height + 24 }, { 32, 20, 3 } }); - break; - } - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height + 16, kTunnelGroup, TunnelSubType::flat); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 48); - break; - } -} - static void FlyingRCTrackInvertedFlatTo90DegQuarterLoopDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement, SupportType supportType) { - FlyingRCTrack90DegToInvertedFlatQuarterLoopUp( + TwisterRCTrack90DegToInvertedFlatQuarterLoopUp( session, ride, 2 - trackSequence, direction, height, trackElement, supportType); } @@ -831,7 +734,7 @@ TrackPaintFunction GetTrackPaintFunctionFlyingRC(TrackElemType trackType) case TrackElemType::multiDimInvertedFlatToDown90QuarterLoop: return FlyingRCTrackInvertedFlatTo90DegQuarterLoopDown; case TrackElemType::multiDimUp90ToInvertedFlatQuarterLoop: - return FlyingRCTrack90DegToInvertedFlatQuarterLoopUp; + return TwisterRCTrack90DegToInvertedFlatQuarterLoopUp; // OpenRCT2-specific track elements case TrackElemType::leftFlyerLargeHalfLoopUninvertedUp: return TwisterRCTrackLeftLargeHalfLoopUp; diff --git a/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp b/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp index 915f8d5dec..d319e3cb71 100644 --- a/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp @@ -13047,7 +13047,7 @@ void TwisterRCTrackRightLargeHalfLoopDown( TwisterRCTrackLeftLargeHalfLoopUp(session, ride, 6 - trackSequence, direction, height, trackElement, supportType); } -static void TwisterRCTrack90DegToInvertedFlatQuarterLoopUp( +void TwisterRCTrack90DegToInvertedFlatQuarterLoopUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement, SupportType supportType) { diff --git a/src/openrct2/paint/track/coaster/TwisterRollerCoaster.h b/src/openrct2/paint/track/coaster/TwisterRollerCoaster.h index 8a4e313a16..4ef996306e 100644 --- a/src/openrct2/paint/track/coaster/TwisterRollerCoaster.h +++ b/src/openrct2/paint/track/coaster/TwisterRollerCoaster.h @@ -47,3 +47,6 @@ void TwisterRCTrackLeftLargeHalfLoopDown( void TwisterRCTrackRightLargeHalfLoopDown( PaintSession& session, const OpenRCT2::Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const OpenRCT2::TrackElement& trackElement, SupportType supportType); +void TwisterRCTrack90DegToInvertedFlatQuarterLoopUp( + PaintSession& session, const OpenRCT2::Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const OpenRCT2::TrackElement& trackElement, SupportType supportType); From 0c3382d58d86302c6ac0a6f06724e6e5a8db4ccb Mon Sep 17 00:00:00 2001 From: mix Date: Wed, 23 Sep 2026 16:29:14 +0100 Subject: [PATCH 091/142] Remove unused invert specific quarter loop function from flying coaster --- .../paint/track/coaster/FlyingRollerCoaster.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp b/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp index 9eed9d7081..a330fc737e 100644 --- a/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp @@ -61,14 +61,6 @@ static void FlyingRCTrackStation( PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } -static void FlyingRCTrackInvertedFlatTo90DegQuarterLoopDown( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement, SupportType supportType) -{ - TwisterRCTrack90DegToInvertedFlatQuarterLoopUp( - session, ride, 2 - trackSequence, direction, height, trackElement, supportType); -} - static void FlyingRCTrackHalfLoopInvertedUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement, SupportType supportType) @@ -731,8 +723,6 @@ TrackPaintFunction GetTrackPaintFunctionFlyingRC(TrackElemType trackType) case TrackElemType::middleStation: return FlyingRCTrackStation; // OpenRCT2-specific paint code - case TrackElemType::multiDimInvertedFlatToDown90QuarterLoop: - return FlyingRCTrackInvertedFlatTo90DegQuarterLoopDown; case TrackElemType::multiDimUp90ToInvertedFlatQuarterLoop: return TwisterRCTrack90DegToInvertedFlatQuarterLoopUp; // OpenRCT2-specific track elements From 859578b8d880ecbc092d0cdeae9cb472c7cbb9fe Mon Sep 17 00:00:00 2001 From: mix Date: Wed, 23 Sep 2026 16:23:14 +0100 Subject: [PATCH 092/142] Explicitly use twister quarter loop function for inverted flying coaster --- .../paint/track/coaster/FlyingRollerCoasterInverted.cpp | 3 +++ src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp | 2 +- src/openrct2/paint/track/coaster/TwisterRollerCoaster.h | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp b/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp index 575e421acd..ba286101b3 100644 --- a/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp +++ b/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp @@ -8,6 +8,7 @@ *****************************************************************************/ #include "../../../SpriteIds.h" +#include "../../../paint/track/coaster/TwisterRollerCoaster.h" #include "../../../ride/TrackPaint.h" #include "../../../ride/ted/TrackElemType.h" #include "../../../world/tile_element/TrackElement.h" @@ -9000,6 +9001,8 @@ TrackPaintFunction GetTrackPaintFunctionFlyingRCInverted(TrackElemType trackType return InvertedFlyingRCTrackRightFlyerTwistDown; case TrackElemType::flyerHalfLoopInvertedDown: return FlyingRCTrackFlyerHalfLoopDown; + case TrackElemType::multiDimInvertedFlatToDown90QuarterLoop: + return TwisterRCTrackInvertedFlatTo90DegQuarterLoopDown; // OpenRCT2-specific paint code case TrackElemType::booster: return InvertedFlyingRCTrackBooster; diff --git a/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp b/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp index d319e3cb71..32f2e8cf0c 100644 --- a/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/TwisterRollerCoaster.cpp @@ -13144,7 +13144,7 @@ void TwisterRCTrack90DegToInvertedFlatQuarterLoopUp( } } -static void TwisterRCTrackInvertedFlatTo90DegQuarterLoopDown( +void TwisterRCTrackInvertedFlatTo90DegQuarterLoopDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement, SupportType supportType) { diff --git a/src/openrct2/paint/track/coaster/TwisterRollerCoaster.h b/src/openrct2/paint/track/coaster/TwisterRollerCoaster.h index 4ef996306e..a35c60232a 100644 --- a/src/openrct2/paint/track/coaster/TwisterRollerCoaster.h +++ b/src/openrct2/paint/track/coaster/TwisterRollerCoaster.h @@ -50,3 +50,6 @@ void TwisterRCTrackRightLargeHalfLoopDown( void TwisterRCTrack90DegToInvertedFlatQuarterLoopUp( PaintSession& session, const OpenRCT2::Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const OpenRCT2::TrackElement& trackElement, SupportType supportType); +void TwisterRCTrackInvertedFlatTo90DegQuarterLoopDown( + PaintSession& session, const OpenRCT2::Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const OpenRCT2::TrackElement& trackElement, SupportType supportType); From 80a6662152cba8abbdac90b4f9d24184cfcb69b8 Mon Sep 17 00:00:00 2001 From: mix Date: Wed, 23 Sep 2026 16:39:39 +0100 Subject: [PATCH 093/142] Move inverted loop paint funcs from flying coaster to inverted flying --- src/openrct2/libopenrct2.vcxproj | 1 + .../track/coaster/FlyingRollerCoaster.cpp | 650 +----------------- .../coaster/FlyingRollerCoasterInverted.cpp | 642 +++++++++++++++++ .../coaster/FlyingRollerCoasterInverted.h | 36 + 4 files changed, 684 insertions(+), 645 deletions(-) create mode 100644 src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.h diff --git a/src/openrct2/libopenrct2.vcxproj b/src/openrct2/libopenrct2.vcxproj index 76b300a8c4..a4d4d8a49d 100644 --- a/src/openrct2/libopenrct2.vcxproj +++ b/src/openrct2/libopenrct2.vcxproj @@ -433,6 +433,7 @@ + diff --git a/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp b/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp index a330fc737e..f9d058b623 100644 --- a/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp @@ -7,6 +7,7 @@ * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ +#include "../../../paint/track/coaster/FlyingRollerCoasterInverted.h" #include "../../../ride/TrackPaint.h" #include "../../../ride/ted/TrackElemType.h" #include "../../../world/tile_element/TrackElement.h" @@ -20,8 +21,6 @@ using namespace OpenRCT2; -static constexpr TunnelGroup kTunnelGroup = TunnelGroup::square; - /** rct2: 0x007C7244, 0x007C7254, 0x007C7264 */ static void FlyingRCTrackStation( PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height, @@ -61,648 +60,19 @@ static void FlyingRCTrackStation( PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); } -static void FlyingRCTrackHalfLoopInvertedUp( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement, SupportType supportType) -{ - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27451), { 0, 6, height + 24 }, - { { 0, 6, height + 45 }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27459), { 0, 6, height + 24 }, - { { 0, 6, height + 45 }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27458), { 0, 6, height + 24 }, - { { 0, 6, height + 45 }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27466), { 0, 6, height + 24 }, - { { 0, 6, height + 45 }, { 32, 20, 3 } }); - break; - } - - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); - switch (direction) - { - case 0: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::topRightSide, 0, height + 62, session.SupportColours); - break; - case 1: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::bottomRightSide, 0, height + 62, session.SupportColours); - break; - case 2: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::bottomLeftSide, 0, height + 62, session.SupportColours); - break; - case 3: - MetalASupportsPaintSetup( - session, supportType.metal, MetalSupportPlace::topLeftSide, 0, height + 62, session.SupportColours); - break; - } - - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height - 8, kTunnelGroup, TunnelSubType::slopeStart); - } - PaintUtilSetGeneralSupportHeight(session, height + 72); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27452), { 0, 0, height + 24 }, - { { 0, 29, height + 29 }, { 32, 2, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27460), { 0, 14, height + 24 }, - { { 0, 29, height + 29 }, { 32, 2, 63 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27457), { 0, 6, height + 24 }, - { { 0, 0, height + 29 }, { 32, 2, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27465), { 0, 6, height + 24 }, - { { 29, 20, height + 29 }, { 2, 2, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 88); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27453), { 16, 0, height - 3 }, - { { 16, 29, height + 2 }, { 5, 2, 119 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27461), { 12, 0, height - 3 }, - { { 0, -6, height + 2 }, { 32, 2, 119 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27456), { 10, 16, height - 3 }, - { { 10, 0, height + 2 }, { 4, 2, 119 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27464), { 16, 16, height - 3 }, - { { 29, 29, height + 2 }, { 2, 2, 119 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::bottomLeft, PaintSegment::bottomRight }, - direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 168); - break; - case 3: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27454), { 0, 0, height + 29 }, - { { 0, 6, height + 34 }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27462), { 0, 0, height + 29 }, - { { 0, 0, height - 6 }, { 2, 2, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27455), { 0, 16, height + 29 }, - { { 0, 0, height - 6 }, { 32, 2, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27463), { 0, 16, height + 29 }, - { { 0, 6, height + 34 }, { 32, 20, 3 } }); - break; - } - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height + 32, kTunnelGroup, TunnelSubType::flat); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 64); - break; - } -} - static void FlyingRCTrackHalfLoopUninvertedDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement, SupportType supportType) { - FlyingRCTrackHalfLoopInvertedUp(session, ride, 3 - trackSequence, direction, height, trackElement, supportType); -} - -static void FlyingRCTrackLeftFlyingLargeHalfLoopInvertedUp( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement, SupportType supportType) -{ - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27639), { 0, 0, height - 4 }, - { { 0, 6, height + 29 }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27646), { 0, 0, height - 4 }, - { { 0, 6, height + 29 }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27653), { 0, 0, height - 4 }, - { { 0, 6, height + 29 }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27660), { 0, 0, height - 4 }, - { { 0, 6, height + 29 }, { 32, 20, 3 } }); - break; - } - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height - 8, kTunnelGroup, TunnelSubType::slopeStart); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27640), { 0, 0, height - 4 }, - { { 0, 6, height + 29 }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27647), { 0, 0, height - 4 }, - { { 0, 6, height + 29 }, { 32, 20, 9 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27654), { 0, 0, height - 4 }, - { { 0, 6, height + 29 }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27661), { 0, 0, height - 4 }, - { { 0, 6, height + 29 }, { 32, 20, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27641), { 0, 0, height - 4 }, - { { 8, 0, height + 40 }, { 24, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27648), { 0, 0, height - 4 }, - { { 0, 0, height }, { 32, 16, 0 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27655), { 0, 0, height - 4 }, - { { 0, 16, height }, { 32, 16, 0 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27662), { 0, 0, height - 4 }, - { { 30, 16, height + 70 }, { 2, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft }, - direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 88); - break; - case 3: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27642), { 0, 0, height - 4 }, - { { 24, 0, height + 29 }, { 8, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27649), { 0, 0, height - 4 }, - { { 0, 0, height }, { 32, 16, 0 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27656), { 0, 0, height - 4 }, - { { 0, 16, height }, { 32, 16, 0 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27663), { 0, 0, height - 4 }, - { { 30, 16, height + 100 }, { 2, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft }, - direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 224); - break; - case 4: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27643), { 0, 0, height - 4 }, - { { 30, 30, height + 80 }, { 2, 2, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27650), { 0, 0, height - 4 }, - { { 0, 16, height }, { 16, 16, 0 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27657), { 0, 0, height - 4 }, - { { 0, 0, height }, { 16, 16, 0 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27664), { 0, 0, height - 4 }, - { { 30, 0, height + 90 }, { 2, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, - direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 128); - break; - case 5: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27644), { 0, 0, height - 4 }, - { { 0, 6, height + 211 }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27651), { 0, 0, height - 4 }, - { { 0, 16, height }, { 32, 16, 0 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27658), { 0, 0, height - 4 }, - { { 0, 0, height }, { 32, 16, 0 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27665), { 0, 0, height - 4 }, - { { 0, 6, height + 211 }, { 32, 20, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight }, - direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 224); - break; - case 6: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27645), { 0, 0, height - 4 }, - { { 0, 6, height + 32 }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27652), { 0, 0, height - 4 }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27659), { 0, 0, height - 4 }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27666), { 0, 0, height - 4 }, - { { 0, 6, height + 32 }, { 32, 20, 3 } }); - break; - } - - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 25, height, session.SupportColours); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height + 32, kTunnelGroup, TunnelSubType::flat); - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight }, - direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 40); - break; - } -} - -static void FlyingRCTrackRightFlyingLargeHalfLoopInvertedUp( - PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, - const TrackElement& trackElement, SupportType supportType) -{ - switch (trackSequence) - { - case 0: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27688), { 0, 0, height - 4 }, - { { 0, 6, height + 29 }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27681), { 0, 0, height - 4 }, - { { 0, 6, height + 29 }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27674), { 0, 0, height - 4 }, - { { 0, 6, height + 29 }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27667), { 0, 0, height - 4 }, - { { 0, 6, height + 29 }, { 32, 20, 3 } }); - break; - } - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height - 8, kTunnelGroup, TunnelSubType::slopeStart); - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 56); - break; - case 1: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27689), { 0, 0, height - 4 }, - { { 0, 6, height + 29 }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27682), { 0, 0, height - 4 }, - { { 0, 6, height + 29 }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27675), { 0, 0, height - 4 }, - { { 0, 6, height + 29 }, { 32, 20, 19 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27668), { 0, 0, height - 4 }, - { { 0, 6, height + 29 }, { 32, 20, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 72); - break; - case 2: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27690), { 0, 0, height - 4 }, - { { 0, 16, height + 70 }, { 32, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27683), { 0, 0, height - 4 }, - { { 0, 16, height }, { 32, 16, 0 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27676), { 0, 0, height - 4 }, - { { 0, 0, height }, { 32, 16, 0 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27669), { 0, 0, height - 4 }, - { { 0, 0, height + 70 }, { 32, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight }, - direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 88); - break; - case 3: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27691), { 0, 0, height - 4 }, - { { 0, 16, height + 100 }, { 32, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27684), { 0, 0, height - 4 }, - { { 0, 16, height }, { 32, 16, 0 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27677), { 0, 0, height - 4 }, - { { 0, 0, height }, { 32, 16, 0 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27670), { 0, 0, height - 4 }, - { { 0, 0, height + 100 }, { 32, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, - PaintSegment::bottomLeft, PaintSegment::bottomRight }, - direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 224); - break; - case 4: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27692), { 0, 0, height - 4 }, - { { 16, 7, height + 90 }, { 16, 16, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27685), { 0, 0, height - 4 }, - { { 0, -7, height }, { 16, 16, 0 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27678), { 0, 0, height - 4 }, - { { -7, 16, height }, { 16, 16, 0 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27671), { 0, 0, height - 4 }, - { { 30, 23, height + 110 }, { 2, 16, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 128); - break; - case 5: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27693), { 0, 0, height - 4 }, - { { 0, 6, height + 211 }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27686), { 0, 0, height - 4 }, - { { 0, 0, height }, { 32, 16, 0 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27679), { 0, 0, height - 4 }, - { { 0, 16, height }, { 32, 16, 0 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27672), { 0, 0, height - 4 }, - { { 0, 6, height + 211 }, { 32, 20, 3 } }); - break; - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft }, - direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 224); - break; - case 6: - switch (direction) - { - case 0: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27694), { 0, 0, height - 4 }, - { { 0, 6, height + 32 }, { 32, 20, 3 } }); - break; - case 1: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27687), { 0, 0, height - 4 }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 2: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27680), { 0, 0, height - 4 }, - { { 0, 6, height }, { 32, 20, 3 } }); - break; - case 3: - PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(27673), { 0, 0, height - 4 }, - { { 0, 6, height + 32 }, { 32, 20, 3 } }); - break; - } - MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 25, height, session.SupportColours); - if (direction == 0 || direction == 3) - { - PaintUtilPushTunnelRotated(session, direction, height + 32, kTunnelGroup, TunnelSubType::flat); - } - PaintUtilSetSegmentSupportHeight( - session, - PaintUtilRotateSegments( - { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, - PaintSegment::topRight, PaintSegment::bottomLeft }, - direction), - 0xFFFF, 0); - PaintUtilSetGeneralSupportHeight(session, height + 40); - break; - } + FlyingRCInverted::trackPaintHalfLoopInvertedUp( + session, ride, 3 - trackSequence, direction, height, trackElement, supportType); } static void FlyingRCTrackLeftFlyingLargeHalfLoopUninvertedDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement, SupportType supportType) { - FlyingRCTrackRightFlyingLargeHalfLoopInvertedUp( + FlyingRCInverted::trackPaintRightFlyingLargeHalfLoopInvertedUp( session, ride, 6 - trackSequence, direction, height, trackElement, supportType); } @@ -710,7 +80,7 @@ static void FlyingRCTrackRightFlyingLargeHalfLoopUninvertedDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement, SupportType supportType) { - FlyingRCTrackLeftFlyingLargeHalfLoopInvertedUp( + FlyingRCInverted::trackPaintLeftFlyingLargeHalfLoopInvertedUp( session, ride, 6 - trackSequence, direction, height, trackElement, supportType); } @@ -730,18 +100,8 @@ TrackPaintFunction GetTrackPaintFunctionFlyingRC(TrackElemType trackType) return TwisterRCTrackLeftLargeHalfLoopUp; case TrackElemType::rightFlyerLargeHalfLoopUninvertedUp: return TwisterRCTrackRightLargeHalfLoopUp; - case TrackElemType::leftFlyerLargeHalfLoopInvertedDown: - return TwisterRCTrackLeftLargeHalfLoopDown; - case TrackElemType::rightFlyerLargeHalfLoopInvertedDown: - return TwisterRCTrackRightLargeHalfLoopDown; - case TrackElemType::flyerHalfLoopInvertedUp: - return FlyingRCTrackHalfLoopInvertedUp; case TrackElemType::flyerHalfLoopUninvertedDown: return FlyingRCTrackHalfLoopUninvertedDown; - case TrackElemType::leftFlyerLargeHalfLoopInvertedUp: - return FlyingRCTrackLeftFlyingLargeHalfLoopInvertedUp; - case TrackElemType::rightFlyerLargeHalfLoopInvertedUp: - return FlyingRCTrackRightFlyingLargeHalfLoopInvertedUp; case TrackElemType::leftFlyerLargeHalfLoopUninvertedDown: return FlyingRCTrackLeftFlyingLargeHalfLoopUninvertedDown; case TrackElemType::rightFlyerLargeHalfLoopUninvertedDown: diff --git a/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp b/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp index ba286101b3..f264ad1442 100644 --- a/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp +++ b/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.cpp @@ -7,6 +7,8 @@ * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ +#include "FlyingRollerCoasterInverted.h" + #include "../../../SpriteIds.h" #include "../../../paint/track/coaster/TwisterRollerCoaster.h" #include "../../../ride/TrackPaint.h" @@ -8733,6 +8735,636 @@ static void FlyingRCTrackFlyerHalfLoopDown( } } +void OpenRCT2::FlyingRCInverted::trackPaintHalfLoopInvertedUp( + PaintSession& session, const Ride& ride, const uint8_t trackSequence, const Direction direction, const int32_t height, + const TrackElement& trackElement, const SupportType supportType) +{ + switch (trackSequence) + { + case 0: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27451), { 0, 6, height + 24 }, + { { 0, 6, height + 45 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27459), { 0, 6, height + 24 }, + { { 0, 6, height + 45 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27458), { 0, 6, height + 24 }, + { { 0, 6, height + 45 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27466), { 0, 6, height + 24 }, + { { 0, 6, height + 45 }, { 32, 20, 3 } }); + break; + } + + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topRightSide, 0, height + 62, session.SupportColours); + break; + case 1: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomRightSide, 0, height + 62, session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomLeftSide, 0, height + 62, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topLeftSide, 0, height + 62, session.SupportColours); + break; + } + + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height - 8, kTunnelGroup, TunnelSubType::slopeStart); + } + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27452), { 0, 0, height + 24 }, + { { 0, 29, height + 29 }, { 32, 2, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27460), { 0, 14, height + 24 }, + { { 0, 29, height + 29 }, { 32, 2, 63 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27457), { 0, 6, height + 24 }, + { { 0, 0, height + 29 }, { 32, 2, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27465), { 0, 6, height + 24 }, + { { 29, 20, height + 29 }, { 2, 2, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight(session, kSegmentsAll, 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 88); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27453), { 16, 0, height - 3 }, + { { 16, 29, height + 2 }, { 5, 2, 119 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27461), { 12, 0, height - 3 }, + { { 0, -6, height + 2 }, { 32, 2, 119 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27456), { 10, 16, height - 3 }, + { { 10, 0, height + 2 }, { 4, 2, 119 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27464), { 16, 16, height - 3 }, + { { 29, 29, height + 2 }, { 2, 2, 119 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + { PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 168); + break; + case 3: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27454), { 0, 0, height + 29 }, + { { 0, 6, height + 34 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27462), { 0, 0, height + 29 }, + { { 0, 0, height - 6 }, { 2, 2, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27455), { 0, 16, height + 29 }, + { { 0, 0, height - 6 }, { 32, 2, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27463), { 0, 16, height + 29 }, + { { 0, 6, height + 34 }, { 32, 20, 3 } }); + break; + } + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height + 32, kTunnelGroup, TunnelSubType::flat); + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + } +} + +void OpenRCT2::FlyingRCInverted::trackPaintLeftFlyingLargeHalfLoopInvertedUp( + PaintSession& session, const Ride& ride, const uint8_t trackSequence, const Direction direction, const int32_t height, + const TrackElement& trackElement, const SupportType supportType) +{ + switch (trackSequence) + { + case 0: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27639), { 0, 0, height - 4 }, + { { 0, 6, height + 29 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27646), { 0, 0, height - 4 }, + { { 0, 6, height + 29 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27653), { 0, 0, height - 4 }, + { { 0, 6, height + 29 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27660), { 0, 0, height - 4 }, + { { 0, 6, height + 29 }, { 32, 20, 3 } }); + break; + } + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height - 8, kTunnelGroup, TunnelSubType::slopeStart); + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27640), { 0, 0, height - 4 }, + { { 0, 6, height + 29 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27647), { 0, 0, height - 4 }, + { { 0, 6, height + 29 }, { 32, 20, 9 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27654), { 0, 0, height - 4 }, + { { 0, 6, height + 29 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27661), { 0, 0, height - 4 }, + { { 0, 6, height + 29 }, { 32, 20, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27641), { 0, 0, height - 4 }, + { { 8, 0, height + 40 }, { 24, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27648), { 0, 0, height - 4 }, + { { 0, 0, height }, { 32, 16, 0 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27655), { 0, 0, height - 4 }, + { { 0, 16, height }, { 32, 16, 0 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27662), { 0, 0, height - 4 }, + { { 30, 16, height + 70 }, { 2, 16, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 88); + break; + case 3: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27642), { 0, 0, height - 4 }, + { { 24, 0, height + 29 }, { 8, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27649), { 0, 0, height - 4 }, + { { 0, 0, height }, { 32, 16, 0 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27656), { 0, 0, height - 4 }, + { { 0, 16, height }, { 32, 16, 0 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27663), { 0, 0, height - 4 }, + { { 30, 16, height + 100 }, { 2, 16, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 224); + break; + case 4: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27643), { 0, 0, height - 4 }, + { { 30, 30, height + 80 }, { 2, 2, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27650), { 0, 0, height - 4 }, + { { 0, 16, height }, { 16, 16, 0 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27657), { 0, 0, height - 4 }, + { { 0, 0, height }, { 16, 16, 0 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27664), { 0, 0, height - 4 }, + { { 30, 0, height + 90 }, { 2, 16, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + { PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight }, + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 128); + break; + case 5: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27644), { 0, 0, height - 4 }, + { { 0, 6, height + 211 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27651), { 0, 0, height - 4 }, + { { 0, 16, height }, { 32, 16, 0 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27658), { 0, 0, height - 4 }, + { { 0, 0, height }, { 32, 16, 0 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27665), { 0, 0, height - 4 }, + { { 0, 6, height + 211 }, { 32, 20, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 224); + break; + case 6: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27645), { 0, 0, height - 4 }, + { { 0, 6, height + 32 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27652), { 0, 0, height - 4 }, + { { 0, 6, height }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27659), { 0, 0, height - 4 }, + { { 0, 6, height }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27666), { 0, 0, height - 4 }, + { { 0, 6, height + 32 }, { 32, 20, 3 } }); + break; + } + + MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 25, height, session.SupportColours); + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height + 32, kTunnelGroup, TunnelSubType::flat); + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 40); + break; + } +} + +void OpenRCT2::FlyingRCInverted::trackPaintRightFlyingLargeHalfLoopInvertedUp( + PaintSession& session, const Ride& ride, const uint8_t trackSequence, const Direction direction, const int32_t height, + const TrackElement& trackElement, const SupportType supportType) +{ + switch (trackSequence) + { + case 0: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27688), { 0, 0, height - 4 }, + { { 0, 6, height + 29 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27681), { 0, 0, height - 4 }, + { { 0, 6, height + 29 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27674), { 0, 0, height - 4 }, + { { 0, 6, height + 29 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27667), { 0, 0, height - 4 }, + { { 0, 6, height + 29 }, { 32, 20, 3 } }); + break; + } + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height - 8, kTunnelGroup, TunnelSubType::slopeStart); + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27689), { 0, 0, height - 4 }, + { { 0, 6, height + 29 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27682), { 0, 0, height - 4 }, + { { 0, 6, height + 29 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27675), { 0, 0, height - 4 }, + { { 0, 6, height + 29 }, { 32, 20, 19 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27668), { 0, 0, height - 4 }, + { { 0, 6, height + 29 }, { 32, 20, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27690), { 0, 0, height - 4 }, + { { 0, 16, height + 70 }, { 32, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27683), { 0, 0, height - 4 }, + { { 0, 16, height }, { 32, 16, 0 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27676), { 0, 0, height - 4 }, + { { 0, 0, height }, { 32, 16, 0 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27669), { 0, 0, height - 4 }, + { { 0, 0, height + 70 }, { 32, 16, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 88); + break; + case 3: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27691), { 0, 0, height - 4 }, + { { 0, 16, height + 100 }, { 32, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27684), { 0, 0, height - 4 }, + { { 0, 16, height }, { 32, 16, 0 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27677), { 0, 0, height - 4 }, + { { 0, 0, height }, { 32, 16, 0 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27670), { 0, 0, height - 4 }, + { { 0, 0, height + 100 }, { 32, 16, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + { PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight }, + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 224); + break; + case 4: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27692), { 0, 0, height - 4 }, + { { 16, 7, height + 90 }, { 16, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27685), { 0, 0, height - 4 }, + { { 0, -7, height }, { 16, 16, 0 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27678), { 0, 0, height - 4 }, + { { -7, 16, height }, { 16, 16, 0 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27671), { 0, 0, height - 4 }, + { { 30, 23, height + 110 }, { 2, 16, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + { PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft }, direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 128); + break; + case 5: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27693), { 0, 0, height - 4 }, + { { 0, 6, height + 211 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27686), { 0, 0, height - 4 }, + { { 0, 0, height }, { 32, 16, 0 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27679), { 0, 0, height - 4 }, + { { 0, 16, height }, { 32, 16, 0 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27672), { 0, 0, height - 4 }, + { { 0, 6, height + 211 }, { 32, 20, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 224); + break; + case 6: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27694), { 0, 0, height - 4 }, + { { 0, 6, height + 32 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27687), { 0, 0, height - 4 }, + { { 0, 6, height }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27680), { 0, 0, height - 4 }, + { { 0, 6, height }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(27673), { 0, 0, height - 4 }, + { { 0, 6, height + 32 }, { 32, 20, 3 } }); + break; + } + MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 25, height, session.SupportColours); + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height + 32, kTunnelGroup, TunnelSubType::flat); + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + { PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft }, + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 40); + break; + } +} + TrackPaintFunction GetTrackPaintFunctionFlyingRCInverted(TrackElemType trackType) { switch (trackType) @@ -9003,6 +9635,16 @@ TrackPaintFunction GetTrackPaintFunctionFlyingRCInverted(TrackElemType trackType return FlyingRCTrackFlyerHalfLoopDown; case TrackElemType::multiDimInvertedFlatToDown90QuarterLoop: return TwisterRCTrackInvertedFlatTo90DegQuarterLoopDown; + case TrackElemType::flyerHalfLoopInvertedUp: + return FlyingRCInverted::trackPaintHalfLoopInvertedUp; + case TrackElemType::leftFlyerLargeHalfLoopInvertedDown: + return TwisterRCTrackLeftLargeHalfLoopDown; + case TrackElemType::rightFlyerLargeHalfLoopInvertedDown: + return TwisterRCTrackRightLargeHalfLoopDown; + case TrackElemType::leftFlyerLargeHalfLoopInvertedUp: + return FlyingRCInverted::trackPaintLeftFlyingLargeHalfLoopInvertedUp; + case TrackElemType::rightFlyerLargeHalfLoopInvertedUp: + return FlyingRCInverted::trackPaintRightFlyingLargeHalfLoopInvertedUp; // OpenRCT2-specific paint code case TrackElemType::booster: return InvertedFlyingRCTrackBooster; diff --git a/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.h b/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.h new file mode 100644 index 0000000000..84e6fd3f4e --- /dev/null +++ b/src/openrct2/paint/track/coaster/FlyingRollerCoasterInverted.h @@ -0,0 +1,36 @@ +/***************************************************************************** + * Copyright (c) 2014-2026 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#include + +struct PaintSession; +struct SupportType; + +using Direction = uint8_t; + +namespace OpenRCT2 +{ + struct Ride; + struct TrackElement; +} // namespace OpenRCT2 + +namespace OpenRCT2::FlyingRCInverted +{ + void trackPaintHalfLoopInvertedUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, + const OpenRCT2::TrackElement& trackElement, SupportType supportType); + void trackPaintLeftFlyingLargeHalfLoopInvertedUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, + const OpenRCT2::TrackElement& trackElement, SupportType supportType); + void trackPaintRightFlyingLargeHalfLoopInvertedUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, + const OpenRCT2::TrackElement& trackElement, SupportType supportType); +} // namespace OpenRCT2::FlyingRCInverted From 83aeb251682b3816fa5c9876723648644b0cf8c0 Mon Sep 17 00:00:00 2001 From: mix Date: Wed, 23 Sep 2026 16:55:12 +0100 Subject: [PATCH 094/142] Add changelog entry for inverted flying coaster fallthrough bug --- distribution/changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 64f0726372..b1d5ee4024 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -17,6 +17,7 @@ - Fix: [#21576] RCT1 Wooden wild mouse track designs with 2-car trains are not imported correctly. - Fix: [#22298] [Plugin] Crash when changing a large scenery element whose object is not loaded. - Fix: [#24457] Yellow is always rendered as third remap in Ride window. +- Fix: [#25400] The Inverted Flying RollerCoaster draws upright Twister track pieces for pieces it doesn’t have. - Fix: [#26222] ‘Follow this on Main View’ follows the invisible first car on ride types that have one, making the view turn too early. - Fix: [#26754] Switching window tabs by touch could crash the game on some Linux builds. - Fix: [#26998] Crash when generating a `Simplex Height Map` with a higher width than height. From 292d223e375ac2e5987412d0cb3ce2d4505d67b3 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Wed, 23 Sep 2026 23:58:29 +0200 Subject: [PATCH 095/142] Add #19755 to changelog --- distribution/changelog.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index b1d5ee4024..12cd0772e4 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -12,8 +12,8 @@ - Fix: [#17409] When reading system settings, non-US dollar currencies are not recognised correctly. - Fix: [#18151] Park value and company value are out of date after loading a save. - Fix: [#19754, #27109] Some rides in RCT1 saves have a wrong number of cars per train. +- Fix: [#19755, #21320] RCT1 allows more cars per train on some rides than OpenRCT2. - Fix: [#20882] When setting rides with preservation status in the Scenario Editor, some rides are not shown. -- Fix: [#21320] RCT1 allows more cars per train on some rides than OpenRCT2. - Fix: [#21576] RCT1 Wooden wild mouse track designs with 2-car trains are not imported correctly. - Fix: [#22298] [Plugin] Crash when changing a large scenery element whose object is not loaded. - Fix: [#24457] Yellow is always rendered as third remap in Ride window. From 42dd7e5d0e423d53fec6f571010e5905851b0ca1 Mon Sep 17 00:00:00 2001 From: James Cranston <5728573+jcranston@users.noreply.github.com> Date: Wed, 23 Sep 2026 16:01:33 -0600 Subject: [PATCH 096/142] Improve default station selection logic (#26812) Legacy object selections can leave station object slot zero empty. Use the first loaded station object as the fallback. --- contributors.md | 1 + src/openrct2/object/DefaultObjects.cpp | 25 +++++++++++++++++++ src/openrct2/object/DefaultObjects.h | 7 ++++++ src/openrct2/scenario/Scenario.cpp | 8 ++---- .../scenes/editor/EditorController.cpp | 6 +---- 5 files changed, 36 insertions(+), 11 deletions(-) diff --git a/contributors.md b/contributors.md index 32f8478da6..7999265e2d 100644 --- a/contributors.md +++ b/contributors.md @@ -270,6 +270,7 @@ Appreciation for contributors who have provided substantial work, but are no lon * (byteraidhost) * Ray (RayKoopa) * (itu-itis24-iyigun24) +* James Cranston (jcranston) ## Toolchain * (Balletie) - macOS diff --git a/src/openrct2/object/DefaultObjects.cpp b/src/openrct2/object/DefaultObjects.cpp index 23b6fef10c..a161bf764f 100644 --- a/src/openrct2/object/DefaultObjects.cpp +++ b/src/openrct2/object/DefaultObjects.cpp @@ -9,6 +9,12 @@ #include "DefaultObjects.h" +#include "ObjectLimits.h" +#include "ObjectManager.h" +#include "StationObject.h" + +using ObjectEntryIndex = uint16_t; + namespace OpenRCT2 { constexpr std::array kMinimumRequiredObjects = { @@ -163,4 +169,23 @@ namespace OpenRCT2 "rct2.terrain_edge.wood_black", "rct2.terrain_edge.ice", }; + + ObjectEntryIndex GetDefaultStationObject(IObjectManager& objectManager) + { + auto stationObjectIndex = objectManager.GetLoadedObjectEntryIndex("rct2.station.plain"); + if (stationObjectIndex != kObjectEntryIndexNull) + { + return stationObjectIndex; + } + + for (ObjectEntryIndex i = 0; i < kMaxStationObjects; i++) + { + if (objectManager.GetLoadedObject(i) != nullptr) + { + return i; + } + } + + return kObjectEntryIndexNull; + } } // namespace OpenRCT2 diff --git a/src/openrct2/object/DefaultObjects.h b/src/openrct2/object/DefaultObjects.h index 52592ee21f..dc14e8ee41 100644 --- a/src/openrct2/object/DefaultObjects.h +++ b/src/openrct2/object/DefaultObjects.h @@ -10,10 +10,15 @@ #pragma once #include +#include #include +using ObjectEntryIndex = uint16_t; + namespace OpenRCT2 { + struct IObjectManager; + /** * Used by all editor modes: Scenario Editor, Track Designer and Track Designs Manager. */ @@ -28,4 +33,6 @@ namespace OpenRCT2 * Used only by the Scenario Editor. */ extern const std::array kDefaultScenarioObjects; + + ObjectEntryIndex GetDefaultStationObject(IObjectManager& objectManager); } // namespace OpenRCT2 diff --git a/src/openrct2/scenario/Scenario.cpp b/src/openrct2/scenario/Scenario.cpp index 93ba776275..0761d465ce 100644 --- a/src/openrct2/scenario/Scenario.cpp +++ b/src/openrct2/scenario/Scenario.cpp @@ -31,6 +31,7 @@ #include "../management/NewsItem.h" #include "../management/Research.h" #include "../network/Network.h" +#include "../object/DefaultObjects.h" #include "../object/ObjectEntryManager.h" #include "../object/ObjectManager.h" #include "../object/ScenarioMetaObject.h" @@ -125,12 +126,7 @@ void ScenarioReset(GameState_t& gameState) MapCountRemainingLandRights(); Staff::resetStats(); - gameState.lastEntranceStyle = objManager.GetLoadedObjectEntryIndex("rct2.station.plain"); - if (gameState.lastEntranceStyle == kObjectEntryIndexNull) - { - // Fall back to first entrance object - gameState.lastEntranceStyle = 0; - } + gameState.lastEntranceStyle = GetDefaultStationObject(objManager); park.marketingCampaigns.clear(); park.ratingCasualtyPenalty = 0; diff --git a/src/openrct2/scenes/editor/EditorController.cpp b/src/openrct2/scenes/editor/EditorController.cpp index 87d80d1c84..7cb2d77c8d 100644 --- a/src/openrct2/scenes/editor/EditorController.cpp +++ b/src/openrct2/scenes/editor/EditorController.cpp @@ -714,11 +714,7 @@ namespace OpenRCT2::Editor SetEveryRideEntryInvented(); auto& objManager = GetContext()->GetObjectManager(); - gameState.lastEntranceStyle = objManager.GetLoadedObjectEntryIndex("rct2.station.plain"); - if (gameState.lastEntranceStyle == kObjectEntryIndexNull) - { - gameState.lastEntranceStyle = 0; - } + gameState.lastEntranceStyle = GetDefaultStationObject(objManager); gameState.editorStep = Editor::Step::rollerCoasterDesigner; Drawing::GfxInvalidateScreen(); From 53d932691cc45a7d30b531fb7327ba14611bbe9a Mon Sep 17 00:00:00 2001 From: dumpster000 Date: Thu, 24 Sep 2026 00:28:59 +0200 Subject: [PATCH 097/142] Fix tile element index counter Fix tile element index counter --- src/openrct2-ui/scripting/CustomMenu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2-ui/scripting/CustomMenu.cpp b/src/openrct2-ui/scripting/CustomMenu.cpp index 873c184fc6..a45bf91b22 100644 --- a/src/openrct2-ui/scripting/CustomMenu.cpp +++ b/src/openrct2-ui/scripting/CustomMenu.cpp @@ -216,14 +216,15 @@ namespace OpenRCT2::Scripting } else if (info.Element != nullptr) { + int32_t index = 0; for (auto* el : TileElementsView(info.Loc)) { - int32_t index = 0; if (el == info.Element) { JS_SetPropertyStr(ctx, obj, "tileElementIndex", JS_NewInt32(ctx, index)); break; } + index++; } } From b1258fa0a9d50204ed694f4fd8508b3fe9054648 Mon Sep 17 00:00:00 2001 From: HyperVize <21998533+Xerionty@users.noreply.github.com> Date: Thu, 24 Sep 2026 00:40:13 +0200 Subject: [PATCH 098/142] Fix random state desync from track design previews (#27134) TrackDesignAction.cpp (line 227) calls ScenarioRand() to choose vehicle colours, even when the track design is only being previewed. Since the preview runs locally with the ghost/noSpend flags, only that player advances the shared simulation RNG. The other clients don't, so the random state eventually differs between them. The client detects this mismatch and reports a desync. --- distribution/changelog.txt | 1 + src/openrct2/actions/track/TrackDesignAction.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 12cd0772e4..55f3a954b2 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -29,6 +29,7 @@ - Fix: [#27093] Pause and fast forward buttons are shown in multiplayer. - Fix: [#27113] Chat button is shown in editor mode. - Fix: [#27133] [Plugin] Dropdown and spinner are not fully hidden with isVisible on creation. +- Fix: [#27134] Viewing track designs may cause network desyncs. - Fix: [#27136] Guests keep waiting at a level crossing after the train has passed, due to faulty iteration over the track the train has vacated. 0.5.5 (2026-09-06) diff --git a/src/openrct2/actions/track/TrackDesignAction.cpp b/src/openrct2/actions/track/TrackDesignAction.cpp index 91cb993219..c2baa78d68 100644 --- a/src/openrct2/actions/track/TrackDesignAction.cpp +++ b/src/openrct2/actions/track/TrackDesignAction.cpp @@ -18,6 +18,7 @@ #include "../../ride/RideConstruction.h" #include "../../ride/TrackDesign.h" #include "../../scenario/Scenario.h" +#include "../../util/Util.h" #include "../GameActionRunner.h" #include "../ride/RideCreateAction.h" #include "../ride/RideDemolishAction.h" @@ -223,8 +224,9 @@ namespace OpenRCT2::GameActions if (entryIndex != kObjectEntryIndexNull) { - // This runs inside a networked game action's Execute, and therefore needs to use ScenarioRand - auto colour = RideGetUnusedPresetVehicleColour(entryIndex, ScenarioRand()); + // Local previews must not advance the shared simulation RNG. + auto randomValue = (GetActionFlags() & Flags::ClientOnly) ? UtilRand() : ScenarioRand(); + auto colour = RideGetUnusedPresetVehicleColour(entryIndex, randomValue); auto rideSetVehicleAction = RideSetVehicleAction(ride->id, RideSetVehicleType::rideEntry, entryIndex, colour); ExecuteNested(&rideSetVehicleAction, gameState); } From 5f823fa85d00494b596aa7020c46844166efae08 Mon Sep 17 00:00:00 2001 From: Sjoerd de Bruin Date: Thu, 24 Sep 2026 20:56:12 +0200 Subject: [PATCH 099/142] Change default gamepad deadzone to 25% (#27194) --- distribution/changelog.txt | 1 + src/openrct2/config/Config.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 55f3a954b2..b841ae208d 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -5,6 +5,7 @@ - Improved: [#26947] Rain is now drawn next to the bottom info panels (in RCT2 style). - Improved: [#27097] On Linux, Flatpak Steam RCTC/RCT2 paths are now auto-detected. - Improved: [#27110] The option to automatically open shops after construction now also closes them before construction. +- Change: [#27071] The gamepad deadzone has been raised from 11% to 25% by default to compensate for stick drift. - Change: [#27100] Negative G-forces no longer turn red in the stats window and graph when below -2.50. - Fix: [#1514] Wrong capitalisation for strings in the Guest List window. - Fix: [#12516] Sprites past 65,536 pixels are drawn in the wrong place by the software renderer, most visibly in long scenario lists. diff --git a/src/openrct2/config/Config.cpp b/src/openrct2/config/Config.cpp index 3fa19d75ec..8590b14692 100644 --- a/src/openrct2/config/Config.cpp +++ b/src/openrct2/config/Config.cpp @@ -250,7 +250,7 @@ namespace OpenRCT2::Config model->autoOpenShops = reader->GetBoolean("auto_open_shops", false); // Gamepad settings - model->gamepadDeadzone = reader->GetInt32("gamepad_deadzone", 3600); + model->gamepadDeadzone = reader->GetInt32("gamepad_deadzone", 8192); model->gamepadSensitivity = reader->GetFloat("gamepad_sensitivity", 1.5f); model->scenarioUnlockingEnabled = reader->GetBoolean("scenario_unlocking_enabled", true); model->scenarioHideMegaPark = reader->GetBoolean("scenario_hide_mega_park", true); From b6be0498e44f9508ed91cc5658ada8f7702059d8 Mon Sep 17 00:00:00 2001 From: Yoshi Tacke <77861115+YoshKoz@users.noreply.github.com> Date: Fri, 25 Sep 2026 23:43:22 +0200 Subject: [PATCH 100/142] Close #23147: Use Fixed16_2dp for negative G requirements (#27203) The LIM and LSM launched roller coasters used a bare `10` for their negative G stat requirement, whereas every other coaster expresses it with MakeFixed16_2dp(0, 10). The resulting value is identical, so this is a notation-only change that makes the data consistent. --- contributors.md | 1 + src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h | 2 +- src/openrct2/ride/rtd/coaster/LSMLaunchedRollerCoaster.h | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/contributors.md b/contributors.md index 7999265e2d..0f6e8eb4a5 100644 --- a/contributors.md +++ b/contributors.md @@ -271,6 +271,7 @@ Appreciation for contributors who have provided substantial work, but are no lon * Ray (RayKoopa) * (itu-itis24-iyigun24) * James Cranston (jcranston) +* Yoshi Tacke (YoshKoz) ## Toolchain * (Balletie) - macOS diff --git a/src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h b/src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h index 669757b582..d959ad70e5 100644 --- a/src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h @@ -83,7 +83,7 @@ constexpr RideTypeDescriptor kLIMLaunchedRollerCoasterRTD = { RatingsModifierType::bonusScenery, 0, 6693, 0, 0 }, { RatingsModifierType::requirementDropHeight, 10, 2, 2, 2 }, { RatingsModifierType::requirementMaxSpeed, 0xA0000, 2, 2, 2 }, - { RatingsModifierType::requirementNegativeGs, 10, 2, 2, 2 }, + { RatingsModifierType::requirementNegativeGs, MakeFixed16_2dp(0, 10), 2, 2, 2 }, { RatingsModifierType::requirementNumDrops, 2, 2, 2, 2 }, { RatingsModifierType::penaltyLateralGs, 0, 24576, 35746, 49648 }, }, diff --git a/src/openrct2/ride/rtd/coaster/LSMLaunchedRollerCoaster.h b/src/openrct2/ride/rtd/coaster/LSMLaunchedRollerCoaster.h index 98b3673524..5e0cd4df4e 100644 --- a/src/openrct2/ride/rtd/coaster/LSMLaunchedRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/LSMLaunchedRollerCoaster.h @@ -82,7 +82,7 @@ constexpr RideTypeDescriptor kLSMLaunchedRollerCoasterRTD = { RatingsModifierType::bonusScenery, 0, 6693, 0, 0 }, { RatingsModifierType::requirementDropHeight, 10, 2, 2, 2 }, { RatingsModifierType::requirementMaxSpeed, 0xA0000, 2, 2, 2 }, - { RatingsModifierType::requirementNegativeGs, 10, 2, 2, 2 }, + { RatingsModifierType::requirementNegativeGs, MakeFixed16_2dp(0, 10), 2, 2, 2 }, { RatingsModifierType::requirementNumDrops, 2, 2, 2, 2 }, { RatingsModifierType::penaltyLateralGs, 0, 24576, 35746, 49648 }, }, From 460dbafdeb59adebef7b28af138a1c771e87e132 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 26 Sep 2026 15:56:02 +0200 Subject: [PATCH 101/142] Use _parkData in more places in Finances and Park windows (#27187) * Finances window: use _parkData in more places * Park window: use _parkData in more places * Rephrase comment regarding initialCash variable --- src/openrct2-ui/windows/Finances.cpp | 4 +-- src/openrct2-ui/windows/Park.cpp | 43 ++++++++++++---------------- src/openrct2/park/ParkFile.cpp | 3 +- 3 files changed, 23 insertions(+), 27 deletions(-) diff --git a/src/openrct2-ui/windows/Finances.cpp b/src/openrct2-ui/windows/Finances.cpp index d22b1545bb..72c533bc94 100644 --- a/src/openrct2-ui/windows/Finances.cpp +++ b/src/openrct2-ui/windows/Finances.cpp @@ -667,7 +667,7 @@ namespace OpenRCT2::Ui::Windows void onPrepareDrawMarketing() { // Count number of active campaigns - int32_t numActiveCampaigns = static_cast(getGameState().park.marketingCampaigns.size()); + int32_t numActiveCampaigns = static_cast(_parkData.marketingCampaigns.size()); int32_t y = widgets[WIDX_TAB_1].top + std::max(1, numActiveCampaigns) * kListRowHeight + 75; // Update group box positions @@ -729,7 +729,7 @@ namespace OpenRCT2::Ui::Windows break; default: { - auto parkName = getGameState().park.name.c_str(); + auto parkName = _parkData.name.c_str(); ft.Add(STR_STRING); ft.Add(parkName); } diff --git a/src/openrct2-ui/windows/Park.cpp b/src/openrct2-ui/windows/Park.cpp index 14770fcd64..025c64ad02 100644 --- a/src/openrct2-ui/windows/Park.cpp +++ b/src/openrct2-ui/windows/Park.cpp @@ -393,18 +393,17 @@ namespace OpenRCT2::Ui::Windows void SetDisabledTabs() { // Disable price tab if money is disabled - setWidgetDisabled(WIDX_TAB_4, getGameState().park.flags.has(ParkFlag::noMoney)); + setWidgetDisabled(WIDX_TAB_4, _parkData.flags.has(ParkFlag::noMoney)); } void PrepareWindowTitleText() { - widgets[WIDX_TITLE].setString(getGameState().park.name.c_str()); + widgets[WIDX_TITLE].setString(_parkData.name.c_str()); } #pragma region Entrance page void onMouseUpEntrance(WidgetIndex widgetIndex) { - auto& park = getGameState().park; switch (widgetIndex) { case WIDX_BUY_LAND_RIGHTS: @@ -416,14 +415,15 @@ namespace OpenRCT2::Ui::Windows case WIDX_RENAME: { WindowTextInputRawOpen( - this, WIDX_RENAME, STR_PARK_NAME, STR_ENTER_PARK_NAME, {}, park.name.c_str(), kUserStringMaxLength); + this, WIDX_RENAME, STR_PARK_NAME, STR_ENTER_PARK_NAME, {}, _parkData.name.c_str(), + kUserStringMaxLength); break; } case WIDX_CLOSE_LIGHT: - Park::SetOpen(park, false); + Park::SetOpen(_parkData, false); break; case WIDX_OPEN_LIGHT: - Park::SetOpen(park, true); + Park::SetOpen(_parkData, true); break; } } @@ -446,7 +446,7 @@ namespace OpenRCT2::Ui::Windows { windowPos.x + widget.left, windowPos.y + widget.top }, widget.height(), colours[1], { Dropdown::Flag::autoClose }, 2); - if (Park::IsOpen(getGameState().park)) + if (Park::IsOpen(_parkData)) { gDropdown.defaultIndex = 0; gDropdown.items[1].setChecked(true); @@ -461,7 +461,6 @@ namespace OpenRCT2::Ui::Windows void onDropdownEntrance(WidgetIndex widgetIndex, int32_t dropdownIndex) { - auto& park = getGameState().park; if (widgetIndex == WIDX_OPEN_OR_CLOSE) { if (dropdownIndex == -1) @@ -469,11 +468,11 @@ namespace OpenRCT2::Ui::Windows if (dropdownIndex != 0) { - Park::SetOpen(park, true); + Park::SetOpen(_parkData, true); } else { - Park::SetOpen(park, false); + Park::SetOpen(_parkData, false); } } } @@ -581,7 +580,7 @@ namespace OpenRCT2::Ui::Windows // Draw park closed / open label auto ft = Formatter(); - ft.Add(Park::IsOpen(getGameState().park) ? STR_PARK_OPEN : STR_PARK_CLOSED); + ft.Add(Park::IsOpen(_parkData) ? STR_PARK_OPEN : STR_PARK_CLOSED); auto* labelWidget = &widgets[WIDX_STATUS]; drawTextEllipsised( @@ -665,7 +664,7 @@ namespace OpenRCT2::Ui::Windows _ratingProps.min = 0; _ratingProps.max = 1000; - _ratingProps.series = getGameState().park.ratingHistory; + _ratingProps.series = _parkData.ratingHistory; const Widget* background = &widgets[WIDX_PAGE_BACKGROUND]; _ratingGraphBounds = { windowPos + ScreenCoordsXY{ background->left + 4, background->top + 15 }, windowPos + ScreenCoordsXY{ background->right - 4, background->bottom - 4 } }; @@ -689,7 +688,7 @@ namespace OpenRCT2::Ui::Windows // Current value Formatter ft; - ft.Add(getGameState().park.rating); + ft.Add(_parkData.rating); drawText(rt, windowPos + ScreenCoordsXY{ widget->left + 3, widget->top + 2 }, STR_PARK_RATING_LABEL, ft); // Graph border @@ -769,7 +768,7 @@ namespace OpenRCT2::Ui::Windows // Current value Formatter ft; - ft.Add(getGameState().park.numGuestsInPark); + ft.Add(_parkData.numGuestsInPark); drawText(rt, windowPos + ScreenCoordsXY{ widget->left + 3, widget->top + 2 }, STR_GUESTS_IN_PARK_LABEL, ft); // Graph border @@ -840,16 +839,14 @@ namespace OpenRCT2::Ui::Windows widgets[WIDX_PRICE_LABEL].tooltip = kStringIdNone; widgets[WIDX_PRICE].tooltip = kStringIdNone; - auto& park = getGameState().park; - - if (!Park::EntranceFeeUnlocked(park)) + if (!Park::EntranceFeeUnlocked(_parkData)) { widgets[WIDX_PRICE_LABEL].tooltip = STR_ADMISSION_PRICE_PAY_PER_RIDE_TIP; widgets[WIDX_PRICE].tooltip = STR_ADMISSION_PRICE_PAY_PER_RIDE_TIP; } // If the entry price is locked at free, disable the widget, unless the unlock_all_prices cheat is active. - if (park.flags.has(ParkFlag::noMoney) || !Park::EntranceFeeUnlocked(park)) + if (_parkData.flags.has(ParkFlag::noMoney) || !Park::EntranceFeeUnlocked(_parkData)) { widgets[WIDX_PRICE].type = WidgetType::labelCentred; widgets[WIDX_INCREASE_PRICE].setHidden(); @@ -873,12 +870,10 @@ namespace OpenRCT2::Ui::Windows auto screenCoords = windowPos + ScreenCoordsXY{ widgets[WIDX_PAGE_BACKGROUND].left + 4, widgets[WIDX_PAGE_BACKGROUND].top + 30 }; auto ft = Formatter(); - ft.Add(getGameState().park.totalIncomeFromAdmissions); + ft.Add(_parkData.totalIncomeFromAdmissions); drawText(rt, screenCoords, STR_INCOME_FROM_ADMISSIONS, ft); - auto& park = getGameState().park; - - money64 parkEntranceFee = Park::GetEntranceFee(park); + money64 parkEntranceFee = Park::GetEntranceFee(_parkData); ft = Formatter(); ft.Add(parkEntranceFee); @@ -1040,7 +1035,7 @@ namespace OpenRCT2::Ui::Windows PrepareWindowTitleText(); // Show name input button on scenario completion. - if (getGameState().park.flags.has(ParkFlag::scenarioCompleteNameInput)) + if (_parkData.flags.has(ParkFlag::scenarioCompleteNameInput)) { widgets[WIDX_ENTER_NAME].setVisible(); widgets[WIDX_ENTER_NAME].top = height - 19; @@ -1126,7 +1121,7 @@ namespace OpenRCT2::Ui::Windows auto screenCoords = windowPos + ScreenCoordsXY{ widgets[WIDX_PAGE_BACKGROUND].left + 4, widgets[WIDX_PAGE_BACKGROUND].top + 4 }; - auto& currentAwards = getGameState().park.currentAwards; + const auto& currentAwards = _parkData.currentAwards; for (const auto& award : currentAwards) { diff --git a/src/openrct2/park/ParkFile.cpp b/src/openrct2/park/ParkFile.cpp index 2227c288dc..49c58c56f1 100644 --- a/src/openrct2/park/ParkFile.cpp +++ b/src/openrct2/park/ParkFile.cpp @@ -171,7 +171,8 @@ namespace OpenRCT2 UpdateTrackElementsRideType(); } - // Initial cash will eventually be removed + // Initial cash is currently a legacy variable. However, it should be reworked + // so parks that share a map can start with the same amount. gameState.scenarioOptions.initialCash = gameState.park.cash; } From 5f6c73488ddbe2d1590caf2423bd36eb5d56e622 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 26 Sep 2026 16:37:47 +0200 Subject: [PATCH 102/142] Rename _entityLists and _entitySpatialIndex properties (#27207) --- src/openrct2/entity/EntityRegistry.cpp | 20 ++++++++++---------- src/openrct2/entity/EntityRegistry.h | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/openrct2/entity/EntityRegistry.cpp b/src/openrct2/entity/EntityRegistry.cpp index 7a653a78a8..fc9c1bc4c7 100644 --- a/src/openrct2/entity/EntityRegistry.cpp +++ b/src/openrct2/entity/EntityRegistry.cpp @@ -80,7 +80,7 @@ namespace OpenRCT2 // TODO: make part of EntityList unit? uint16_t EntityRegistry::getEntityListCount(EntityType type) { - return static_cast(gEntityLists[EnumValue(type)].size()); + return static_cast(_entityLists[EnumValue(type)].size()); } // TODO: make part of EntityList unit? @@ -112,12 +112,12 @@ namespace OpenRCT2 const std::vector& EntityRegistry::getEntityTileList(const CoordsXY& spritePos) { - return gEntitySpatialIndex[ComputeSpatialIndex(spritePos)]; + return _entitySpatialIndex[ComputeSpatialIndex(spritePos)]; } void EntityRegistry::resetEntityLists() { - for (auto& list : gEntityLists) + for (auto& list : _entityLists) { list.clear(); } @@ -138,7 +138,7 @@ namespace OpenRCT2 const std::list& EntityRegistry::getEntityList(const EntityType id) { - return gEntityLists[EnumValue(id)]; + return _entityLists[EnumValue(id)]; } /** @@ -186,7 +186,7 @@ namespace OpenRCT2 */ void EntityRegistry::resetEntitySpatialIndices() { - for (auto& vec : gEntitySpatialIndex) + for (auto& vec : _entitySpatialIndex) { vec.clear(); } @@ -233,7 +233,7 @@ namespace OpenRCT2 void EntityRegistry::addToEntityList(EntityBase& entity) { - auto& list = gEntityLists[EnumValue(entity.type)]; + auto& list = _entityLists[EnumValue(entity.type)]; // Entity list is sorted by id to prevent desyncs. Algorithm::sortedInsert(list, entity.id); @@ -247,7 +247,7 @@ namespace OpenRCT2 void EntityRegistry::removeFromEntityList(EntityBase& entity) { - auto& list = gEntityLists[EnumValue(entity.type)]; + auto& list = _entityLists[EnumValue(entity.type)]; auto ptr = Algorithm::binaryFind(std::begin(list), std::end(list), entity.id); if (ptr != std::end(list)) { @@ -366,7 +366,7 @@ namespace OpenRCT2 { const auto newIndex = ComputeSpatialIndex(newLoc); - auto& spatialVector = gEntitySpatialIndex[newIndex]; + auto& spatialVector = _entitySpatialIndex[newIndex]; Algorithm::sortedInsert(spatialVector, entity.id); @@ -377,7 +377,7 @@ namespace OpenRCT2 { const auto currentIndex = GetSpatialIndex(entity); - auto& spatialVector = gEntitySpatialIndex[currentIndex]; + auto& spatialVector = _entitySpatialIndex[currentIndex]; auto index = Algorithm::binaryFind(std::begin(spatialVector), std::end(spatialVector), entity.id); if (index != std::end(spatialVector)) { @@ -406,7 +406,7 @@ namespace OpenRCT2 void EntityRegistry::updateEntitiesSpatialIndex() { - for (auto& entityList : gEntityLists) + for (auto& entityList : _entityLists) { for (auto& entityId : entityList) { diff --git a/src/openrct2/entity/EntityRegistry.h b/src/openrct2/entity/EntityRegistry.h index bab8b1168a..ecaab5796b 100644 --- a/src/openrct2/entity/EntityRegistry.h +++ b/src/openrct2/entity/EntityRegistry.h @@ -57,12 +57,12 @@ namespace OpenRCT2 { private: Entity_t entities[kMaxEntities]{}; - std::array, EnumValue(EntityType::count)> gEntityLists; + std::array, EnumValue(EntityType::count)> _entityLists; std::vector _freeIdList; bool _entityFlashingList[kMaxEntities]; - std::array, kSpatialIndexSize> gEntitySpatialIndex; + std::array, kSpatialIndexSize> _entitySpatialIndex; public: uint16_t getEntityListCount(EntityType type); From ed32dddd483c15216830580ddd6626a98f7016d5 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com> Date: Sun, 27 Sep 2026 18:13:27 +0200 Subject: [PATCH 103/142] Close #16014: Allow recolouring of terrain surfaces/edges (#27151) --- assets.json | 4 +- distribution/changelog.txt | 2 + src/openrct2-ui/interface/LandTool.cpp | 30 ++- src/openrct2-ui/interface/LandTool.h | 7 + src/openrct2-ui/windows/Land.cpp | 93 ++++++-- src/openrct2-ui/windows/Map.cpp | 5 +- src/openrct2-ui/windows/MapGen.cpp | 75 ++++-- src/openrct2/GameState.cpp | 2 +- .../terraform/SurfaceSetStyleAction.cpp | 79 +++++-- .../actions/terraform/SurfaceSetStyleAction.h | 15 +- src/openrct2/drawing/Colour.cpp | 12 + src/openrct2/drawing/Colour.h | 3 + src/openrct2/drawing/ColourMap.cpp | 7 + src/openrct2/drawing/ColourMap.h | 1 + src/openrct2/object/DefaultObjects.cpp | 11 +- src/openrct2/object/DefaultObjects.h | 7 +- src/openrct2/object/TerrainEdgeObject.cpp | 29 ++- src/openrct2/object/TerrainEdgeObject.h | 15 +- src/openrct2/object/TerrainSurfaceObject.cpp | 222 ++++++++++++++++-- src/openrct2/object/TerrainSurfaceObject.h | 43 +++- .../paint/tile_element/Paint.Surface.cpp | 87 +++---- src/openrct2/park/Legacy.cpp | 24 ++ src/openrct2/park/Legacy.h | 16 ++ src/openrct2/park/ParkFile.cpp | 84 ++++++- src/openrct2/park/ParkFile.h | 3 +- src/openrct2/park/ParkPreview.cpp | 3 +- src/openrct2/rct1/S4Importer.cpp | 43 ++-- src/openrct2/rct1/Tables.cpp | 74 +++--- src/openrct2/rct1/Tables.h | 9 +- src/openrct2/rct2/RCT2.h | 54 ++++- src/openrct2/rct2/S6Importer.cpp | 20 +- src/openrct2/ride/Vehicle.SceneryDoors.cpp | 4 +- .../scenes/editor/EditorController.cpp | 3 +- src/openrct2/world/Map.cpp | 7 +- src/openrct2/world/Map.h | 5 +- src/openrct2/world/map_generator/MapGen.cpp | 4 +- src/openrct2/world/map_generator/MapGen.h | 8 + .../map_generator/PngTerrainGenerator.cpp | 2 +- .../world/tile_element/SurfaceElement.cpp | 22 ++ .../world/tile_element/SurfaceElement.h | 15 +- test/tests/Pathfinding.cpp | 21 +- 41 files changed, 941 insertions(+), 229 deletions(-) diff --git a/assets.json b/assets.json index 174ad646a3..796d6eb6ab 100644 --- a/assets.json +++ b/assets.json @@ -1,7 +1,7 @@ { "objects": { - "url": "https://github.com/OpenRCT2/objects/releases/download/v1.7.11/objects.zip", - "sha256": "74e73bbd012339511bb359dd0fbb148fda899790ae37d7d69861d88183b19452" + "url": "https://github.com/OpenRCT2/objects/releases/download/v1.8.0/objects.zip", + "sha256": "949bee5cac9e941be63bb923b792738a507c155a6fea73edab0b23bede21d302" }, "openmusic": { "url": "https://github.com/OpenRCT2/OpenMusic/releases/download/v1.6.1/openmusic.zip", diff --git a/distribution/changelog.txt b/distribution/changelog.txt index b841ae208d..7de521c26f 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,6 +1,8 @@ 0.5.6 (in development) ------------------------------------------------------------------------ +- Feature: [#16014] Land surfaces and edges can now be recoloured. - Feature: [#27153] [Plugin] Add `guestsEntertained` to `Entertainer` interface. +- Feature: [objects#447] Track designer grid can now be used outside the Track Designer. - Improved: [#21400] The selector for setting staff patrol areas is now drawn on the water as well as on the surface under water. - Improved: [#26947] Rain is now drawn next to the bottom info panels (in RCT2 style). - Improved: [#27097] On Linux, Flatpak Steam RCTC/RCT2 paths are now auto-detected. diff --git a/src/openrct2-ui/interface/LandTool.cpp b/src/openrct2-ui/interface/LandTool.cpp index 83d7fb3a25..b4f90bacd8 100644 --- a/src/openrct2-ui/interface/LandTool.cpp +++ b/src/openrct2-ui/interface/LandTool.cpp @@ -60,10 +60,7 @@ void LandTool::ShowSurfaceStyleDropdown(WindowBase* w, Widget* widget, ObjectEnt // If fallback images are loaded, the RCT1 styles will just look like copies of already existing styles, so hide them. if (surfaceObj != nullptr && !surfaceObj->UsesFallbackImages()) { - auto imageId = ImageId(surfaceObj->IconImageId); - if (surfaceObj->Colour != Drawing::kColourNull) - imageId = imageId.WithPrimary(surfaceObj->Colour); - + auto imageId = ImageId(surfaceObj->IconImageId, surfaceObj->getPreviewColour()); gDropdown.items[itemIndex] = Dropdown::ImageItem(imageId, surfaceObj->NameStringId); if (i == currentSurfaceType) { @@ -114,7 +111,8 @@ void LandTool::ShowEdgeStyleDropdown(WindowBase* w, Widget* widget, ObjectEntryI // If fallback images are loaded, the RCT1 styles will just look like copies of already existing styles, so hide them. if (edgeObj != nullptr && !edgeObj->UsesFallbackImages()) { - gDropdown.items[itemIndex] = Dropdown::ImageItem(ImageId(edgeObj->IconImageId), edgeObj->NameStringId); + gDropdown.items[itemIndex] = Dropdown::ImageItem( + ImageId(edgeObj->IconImageId, edgeObj->getPreviewColour()), edgeObj->NameStringId); if (i == currentEdgeType) { defaultIndex = itemIndex; @@ -152,3 +150,25 @@ ObjectEntryIndex LandTool::GetEdgeStyleFromDropdownIndex(size_t index) } return kObjectEntryIndexNull; } + +void LandTool::resetSurfaceColourSelection(ObjectEntryIndex selectedSurfaceIndex, Drawing::Colour& surfaceColour1) +{ + surfaceColour1 = Drawing::Colour::black; + + auto& objManager = GetContext()->GetObjectManager(); + + const auto* surfaceObject = objManager.GetLoadedObject(selectedSurfaceIndex); + if (surfaceObject != nullptr && surfaceObject->Flags.has(TerrainSurfaceFlag::hasPrimaryColour)) + surfaceColour1 = surfaceObject->Colour; +} + +void LandTool::resetEdgeColourSelection(ObjectEntryIndex selectedEdgeIndex, Drawing::Colour& edgeColour1) +{ + edgeColour1 = Drawing::Colour::black; + + auto& objManager = GetContext()->GetObjectManager(); + + const auto* edgeObject = objManager.GetLoadedObject(selectedEdgeIndex); + if (edgeObject != nullptr && edgeObject->flags.has(TerrainEdgeFlag::hasPrimaryColour)) + edgeColour1 = edgeObject->colour; +} diff --git a/src/openrct2-ui/interface/LandTool.h b/src/openrct2-ui/interface/LandTool.h index 395abbc68a..b31062be55 100644 --- a/src/openrct2-ui/interface/LandTool.h +++ b/src/openrct2-ui/interface/LandTool.h @@ -24,6 +24,11 @@ namespace OpenRCT2 { struct WindowBase; struct Widget; + + namespace Drawing + { + enum class Colour : uint8_t; + } } // namespace OpenRCT2 namespace OpenRCT2::LandTool @@ -33,4 +38,6 @@ namespace OpenRCT2::LandTool ObjectEntryIndex GetSurfaceStyleFromDropdownIndex(size_t index); void ShowEdgeStyleDropdown(WindowBase* w, Widget* widget, ObjectEntryIndex currentEdgeType); ObjectEntryIndex GetEdgeStyleFromDropdownIndex(size_t index); + void resetSurfaceColourSelection(ObjectEntryIndex selectedSurfaceIndex, Drawing::Colour& surfaceColour1); + void resetEdgeColourSelection(ObjectEntryIndex selectedEdgeIndex, Drawing::Colour& edgeColour1); } // namespace OpenRCT2::LandTool diff --git a/src/openrct2-ui/windows/Land.cpp b/src/openrct2-ui/windows/Land.cpp index 8177eeffd5..2507d2cc37 100644 --- a/src/openrct2-ui/windows/Land.cpp +++ b/src/openrct2-ui/windows/Land.cpp @@ -38,8 +38,11 @@ using OpenRCT2::GameActions::CommandFlag; namespace OpenRCT2::Ui::Windows { + static Drawing::Colour _surfaceColour1 = Drawing::Colour::black; + static Drawing::Colour _edgeColour1 = Drawing::Colour::black; + static constexpr StringId kWindowTitle = STR_LAND; - static constexpr ScreenSize kWindowSize = { 98, 160 }; + static constexpr ScreenSize kWindowSize = { 98, 180 }; enum WindowLandWidgetIdx : WidgetIndex { @@ -53,6 +56,8 @@ namespace OpenRCT2::Ui::Windows WIDX_INCREMENT, WIDX_FLOOR, WIDX_WALL, + WIDX_SURFACE_COLOUR_1, + WIDX_EDGE_COLOUR_1, }; enum class SelectionMode @@ -64,13 +69,15 @@ namespace OpenRCT2::Ui::Windows // clang-format off static constexpr auto window_land_widgets = makeWidgets( makeWindowShim(kWindowTitle, kWindowSize), - makeWidget ({19, 19}, {24, 24}, WidgetType::flatBtn, WindowColour::secondary, ImageId(SPR_RIDE_CONSTRUCTION_SLOPE_UP), STR_ENABLE_MOUNTAIN_TOOL_TIP), // mountain mode - makeWidget ({55, 19}, {24, 24}, WidgetType::flatBtn, WindowColour::secondary, ImageId(SPR_PAINTBRUSH), STR_DISABLE_ELEVATION), // paint mode - makeWidget ({27, 48}, {44, 32}, WidgetType::imgBtn, WindowColour::primary , ImageId(SPR_LAND_TOOL_SIZE_0), kStringIdNone), // preview box - makeRemapWidget({28, 49}, {16, 16}, WidgetType::trnBtn, WindowColour::secondary, SPR_LAND_TOOL_DECREASE, STR_ADJUST_SMALLER_LAND_TIP), // decrement size - makeRemapWidget({54, 63}, {16, 16}, WidgetType::trnBtn, WindowColour::secondary, SPR_LAND_TOOL_INCREASE, STR_ADJUST_LARGER_LAND_TIP), // increment size - makeWidget ({ 2, 106}, {47, 36}, WidgetType::flatBtn, WindowColour::secondary, 0xFFFFFFFF, STR_CHANGE_BASE_LAND_TIP), // floor texture - makeWidget ({49, 106}, {47, 36}, WidgetType::flatBtn, WindowColour::secondary, 0xFFFFFFFF, STR_CHANGE_VERTICAL_LAND_TIP) // wall texture + makeWidget ({19, 19}, {24, 24}, WidgetType::flatBtn, WindowColour::secondary, ImageId(SPR_RIDE_CONSTRUCTION_SLOPE_UP), STR_ENABLE_MOUNTAIN_TOOL_TIP), // mountain mode + makeWidget ({55, 19}, {24, 24}, WidgetType::flatBtn, WindowColour::secondary, ImageId(SPR_PAINTBRUSH), STR_DISABLE_ELEVATION), // paint mode + makeWidget ({27, 48}, {44, 32}, WidgetType::imgBtn, WindowColour::primary , ImageId(SPR_LAND_TOOL_SIZE_0), kStringIdNone), // preview box + makeRemapWidget({28, 49}, {16, 16}, WidgetType::trnBtn, WindowColour::secondary, SPR_LAND_TOOL_DECREASE, STR_ADJUST_SMALLER_LAND_TIP), // decrement size + makeRemapWidget({54, 63}, {16, 16}, WidgetType::trnBtn, WindowColour::secondary, SPR_LAND_TOOL_INCREASE, STR_ADJUST_LARGER_LAND_TIP), // increment size + makeWidget ({ 2, 106}, {47, 36}, WidgetType::flatBtn, WindowColour::secondary, 0xFFFFFFFF, STR_CHANGE_BASE_LAND_TIP), // floor texture + makeWidget ({49, 106}, {47, 36}, WidgetType::flatBtn, WindowColour::secondary, 0xFFFFFFFF, STR_CHANGE_VERTICAL_LAND_TIP), // wall texture + makeWidget ({20, 146}, {12, 12}, WidgetType::colourBtn, WindowColour::secondary, 0xFFFFFFFF, STR_SELECT_COLOUR), // surface colour 1 + makeWidget ({67, 146}, {12, 12}, WidgetType::colourBtn, WindowColour::secondary, 0xFFFFFFFF, STR_SELECT_COLOUR) // edge colour 1 ); // clang-format on @@ -87,6 +94,9 @@ namespace OpenRCT2::Ui::Windows ObjectEntryIndex _selectedFloorTexture = 0; ObjectEntryIndex _selectedWallTexture = 0; + bool _surfaceColour1Enabled = false; + bool _edgeColour1Enabled = false; + void InputSize() { Formatter ft; @@ -155,6 +165,14 @@ namespace OpenRCT2::Ui::Windows case WIDX_WALL: LandTool::ShowEdgeStyleDropdown(this, widget, _selectedWallTexture); break; + case WIDX_SURFACE_COLOUR_1: + WindowDropdownShowColour( + this, widget, colours[1].withFlag(ColourFlag::translucent, true), _surfaceColour1, true); + break; + case WIDX_EDGE_COLOUR_1: + WindowDropdownShowColour( + this, widget, colours[1].withFlag(ColourFlag::translucent, true), _edgeColour1, true); + break; case WIDX_PREVIEW: InputSize(); break; @@ -198,6 +216,7 @@ namespace OpenRCT2::Ui::Windows gLandToolTerrainSurface = type; _selectedFloorTexture = type; } + LandTool::resetSurfaceColourSelection(gLandToolTerrainSurface, _surfaceColour1); invalidate(); break; case WIDX_WALL: @@ -216,8 +235,27 @@ namespace OpenRCT2::Ui::Windows gLandToolTerrainEdge = type; _selectedWallTexture = type; } + LandTool::resetEdgeColourSelection(gLandToolTerrainEdge, _edgeColour1); invalidate(); break; + case WIDX_SURFACE_COLOUR_1: + { + if (dropdownIndex == -1) + break; + + _surfaceColour1 = ColourDropDownIndexToColour(dropdownIndex); + invalidate(); + break; + } + case WIDX_EDGE_COLOUR_1: + { + if (dropdownIndex == -1) + break; + + _edgeColour1 = ColourDropDownIndexToColour(dropdownIndex); + invalidate(); + break; + } } } @@ -247,13 +285,21 @@ namespace OpenRCT2::Ui::Windows void onPrepareDraw() override { - setWidgetPressed(WIDX_FLOOR, gLandToolTerrainSurface != kObjectEntryIndexNull); + auto surfaceButtonSelected = gLandToolTerrainSurface != kObjectEntryIndexNull; + auto edgeButtonSelected = gLandToolTerrainEdge != kObjectEntryIndexNull; + setWidgetPressed(WIDX_FLOOR, surfaceButtonSelected); setWidgetPressed(WIDX_WALL, gLandToolTerrainEdge != kObjectEntryIndexNull); setWidgetPressed(WIDX_MOUNTAINMODE, _landToolMountainMode); setWidgetPressed(WIDX_PAINTMODE, _landToolPaintMode); + widgets[WIDX_SURFACE_COLOUR_1].setVisible(_surfaceColour1Enabled && surfaceButtonSelected); + widgets[WIDX_EDGE_COLOUR_1].setVisible(_edgeColour1Enabled && edgeButtonSelected); + // Update the preview image (for tool sizes up to 7) widgets[WIDX_PREVIEW].image = ImageId(LandTool::SizeToSpriteIndex(gLandToolSize)); + + widgets[WIDX_SURFACE_COLOUR_1].image = getColourButtonImage(_surfaceColour1); + widgets[WIDX_EDGE_COLOUR_1].image = getColourButtonImage(_edgeColour1); } void onDraw(Drawing::RenderTarget& rt) override @@ -303,7 +349,6 @@ namespace OpenRCT2::Ui::Windows ft.Add(_landToolLowerCost); drawText(rt, screenCoords, STR_LOWER_COST_AMOUNT, ft, { TextAlignment::centre }); } - screenCoords.y += 50; // Draw paint price const bool mapCtrlPressed = GetInputManager().isModifierKeyPressed(ModifierKey::ctrl); @@ -324,6 +369,7 @@ namespace OpenRCT2::Ui::Windows if (price != 0) { + screenCoords.y = windowPos.y + height - 16; auto ft = Formatter(); ft.Add(price); drawText(rt, screenCoords, STR_COST_AMOUNT, ft, { TextAlignment::centre }); @@ -538,7 +584,7 @@ namespace OpenRCT2::Ui::Windows { auto surfaceSetStyleAction = GameActions::SurfaceSetStyleAction( { gMapSelectPositionA.x, gMapSelectPositionA.y, gMapSelectPositionB.x, gMapSelectPositionB.y }, - gLandToolTerrainSurface, gLandToolTerrainEdge); + gLandToolTerrainSurface, gLandToolTerrainEdge, _surfaceColour1, _edgeColour1); GameActions::Execute(&surfaceSetStyleAction, getGameState()); @@ -565,7 +611,7 @@ namespace OpenRCT2::Ui::Windows { auto surfaceSetStyleAction = GameActions::SurfaceSetStyleAction( { gMapSelectPositionA.x, gMapSelectPositionA.y, gMapSelectPositionB.x, gMapSelectPositionB.y }, - gLandToolTerrainSurface, gLandToolTerrainEdge); + gLandToolTerrainSurface, gLandToolTerrainEdge, _surfaceColour1, _edgeColour1); GameActions::Execute(&surfaceSetStyleAction, getGameState()); @@ -854,16 +900,31 @@ namespace OpenRCT2::Ui::Windows ImageId surfaceImage; if (surfaceObj != nullptr) { - surfaceImage = ImageId(surfaceObj->IconImageId); - if (surfaceObj->Colour != Drawing::kColourNull) - surfaceImage = surfaceImage.WithPrimary(surfaceObj->Colour); + auto surfaceColour1ShouldBeEnabled = surfaceObj->Flags.has(TerrainSurfaceFlag::hasPrimaryColour); + if (_surfaceColour1Enabled != surfaceColour1ShouldBeEnabled) + { + _surfaceColour1Enabled = surfaceColour1ShouldBeEnabled; + invalidate(); + } + + auto colour = widgets[WIDX_SURFACE_COLOUR_1].isVisible() ? surfaceObj->getPrimaryColour(_surfaceColour1) + : surfaceObj->getPreviewColour(); + surfaceImage = ImageId(surfaceObj->IconImageId, colour); } const auto edgeObj = objManager.GetLoadedObject(_selectedWallTexture); ImageId edgeImage; if (edgeObj != nullptr) { - edgeImage = ImageId(edgeObj->IconImageId); + auto edgeColour1ShouldBeEnabled = edgeObj->flags.has(TerrainEdgeFlag::hasPrimaryColour); + if (_edgeColour1Enabled != edgeColour1ShouldBeEnabled) + { + _edgeColour1Enabled = edgeColour1ShouldBeEnabled; + invalidate(); + } + + auto colour = widgets[WIDX_EDGE_COLOUR_1].isVisible() ? _edgeColour1 : edgeObj->getPreviewColour(); + edgeImage = ImageId(edgeObj->IconImageId, colour); } DrawDropdownButton(rt, WIDX_FLOOR, surfaceImage); diff --git a/src/openrct2-ui/windows/Map.cpp b/src/openrct2-ui/windows/Map.cpp index 5991a29a85..d46c67d073 100644 --- a/src/openrct2-ui/windows/Map.cpp +++ b/src/openrct2-ui/windows/Map.cpp @@ -853,7 +853,10 @@ namespace OpenRCT2::Ui::Windows auto colour = ColourPair(PaletteIndex::transparent); const auto* surfaceObject = surfaceElement->getSurfaceObject(); if (surfaceObject != nullptr) - colour = ColourPair(surfaceObject->MapColours[0], surfaceObject->MapColours[1]); + { + auto mapColour = surfaceObject->getMapColours(surfaceElement->getPrimarySurfaceColour()); + colour = ColourPair(mapColour[0], mapColour[1]); + } if (surfaceElement->getWaterHeight() > 0) colour = kWaterColour; diff --git a/src/openrct2-ui/windows/MapGen.cpp b/src/openrct2-ui/windows/MapGen.cpp index 6217e8e28d..73b1fcd762 100644 --- a/src/openrct2-ui/windows/MapGen.cpp +++ b/src/openrct2-ui/windows/MapGen.cpp @@ -93,6 +93,8 @@ namespace OpenRCT2::Ui::Windows WIDX_HEIGHTMAP_HIGH_DOWN, WIDX_FLOOR_TEXTURE, WIDX_WALL_TEXTURE, + WIDX_SURFACE_COLOUR_1, + WIDX_EDGE_COLOUR_1, WIDX_RANDOM_TERRAIN, WIDX_HEIGHTMAP_SMOOTH_TILE_EDGES, @@ -154,6 +156,8 @@ namespace OpenRCT2::Ui::Windows makeHoldableSpinnerWidgets({179, 70}, {109, 14}, WidgetType::spinner, WindowColour::secondary ), // WIDX_HEIGHTMAP_HIGH{,_UP,_DOWN} makeWidget ({179, 88}, { 47, 36}, WidgetType::flatBtn, WindowColour::secondary, 0xFFFFFFFF, STR_CHANGE_BASE_LAND_TIP ), makeWidget ({236, 88}, { 47, 36}, WidgetType::flatBtn, WindowColour::secondary, 0xFFFFFFFF, STR_CHANGE_VERTICAL_LAND_TIP), + makeWidget ({197, 128}, {12, 12}, WidgetType::colourBtn, WindowColour::secondary, 0xFFFFFFFF, STR_SELECT_COLOUR), // surface colour 1 + makeWidget ({254, 128}, {12, 12}, WidgetType::colourBtn, WindowColour::secondary, 0xFFFFFFFF, STR_SELECT_COLOUR), // edge colour 1 makeWidget ({ 10, 106}, {150, 12}, WidgetType::checkbox, WindowColour::secondary, STR_MAPGEN_OPTION_RANDOM_TERRAIN ), makeWidget ({ 10, 122}, {150, 12}, WidgetType::checkbox, WindowColour::secondary, STR_MAPGEN_SMOOTH_TILE ) // WIDX_HEIGHTMAP_SMOOTH_TILE_EDGES ); @@ -225,6 +229,9 @@ namespace OpenRCT2::Ui::Windows u8string _xSpinnerCaption{}; u8string _ySpinnerCaption{}; + bool _surfaceColour1Enabled = false; + bool _edgeColour1Enabled = false; + void setPage(int32_t newPage) { // Skip setting page if we're already on this page, unless we're initialising the window @@ -1018,6 +1025,14 @@ namespace OpenRCT2::Ui::Windows _settings.heightmapLow = std::min(_settings.heightmapLow, _settings.heightmapHigh - 2); invalidateWidget(WIDX_HEIGHTMAP_HIGH); break; + case WIDX_SURFACE_COLOUR_1: + WindowDropdownShowColour( + this, widget, colours[1].withFlag(ColourFlag::translucent, true), _settings.surfaceColour1, true); + break; + case WIDX_EDGE_COLOUR_1: + WindowDropdownShowColour( + this, widget, colours[1].withFlag(ColourFlag::translucent, true), _settings.edgeColour1, true); + break; } } @@ -1059,14 +1074,11 @@ namespace OpenRCT2::Ui::Windows type = (dropdownIndex == -1) ? _settings.landTexture : dropdownIndex; - if (gLandToolTerrainSurface == type) - { - gLandToolTerrainSurface = kObjectEntryIndexNull; - } - else + if (_settings.landTexture != type) { gLandToolTerrainSurface = type; _settings.landTexture = type; + LandTool::resetSurfaceColourSelection(type, _settings.surfaceColour1); } invalidate(); break; @@ -1076,17 +1088,31 @@ namespace OpenRCT2::Ui::Windows type = (dropdownIndex == -1) ? _settings.edgeTexture : dropdownIndex; - if (gLandToolTerrainEdge == type) + if (_settings.edgeTexture != type) { - gLandToolTerrainEdge = kObjectEntryIndexNull; - } - else - { - gLandToolTerrainEdge = type; _settings.edgeTexture = type; + LandTool::resetEdgeColourSelection(type, _settings.edgeColour1); } invalidate(); break; + case WIDX_SURFACE_COLOUR_1: + { + if (dropdownIndex == -1) + break; + + _settings.surfaceColour1 = ColourDropDownIndexToColour(dropdownIndex); + invalidate(); + break; + } + case WIDX_EDGE_COLOUR_1: + { + if (dropdownIndex == -1) + break; + + _settings.edgeColour1 = ColourDropDownIndexToColour(dropdownIndex); + invalidate(); + break; + } } } @@ -1119,18 +1145,31 @@ namespace OpenRCT2::Ui::Windows ImageId surfaceImage; if (surfaceObj != nullptr) { - surfaceImage = ImageId(surfaceObj->IconImageId); - if (surfaceObj->Colour != kColourNull) + auto surfaceColour1ShouldBeEnabled = surfaceObj->Flags.has(TerrainSurfaceFlag::hasPrimaryColour); + if (_surfaceColour1Enabled != surfaceColour1ShouldBeEnabled) { - surfaceImage = surfaceImage.WithPrimary(surfaceObj->Colour); + _surfaceColour1Enabled = surfaceColour1ShouldBeEnabled; + invalidate(); } + auto colour = widgets[WIDX_SURFACE_COLOUR_1].isVisible() + ? surfaceObj->getPrimaryColour(_settings.surfaceColour1) + : surfaceObj->getPreviewColour(); + surfaceImage = ImageId(surfaceObj->IconImageId, colour); } ImageId edgeImage; const auto* edgeObj = objManager.GetLoadedObject(_settings.edgeTexture); if (edgeObj != nullptr) { - edgeImage = ImageId(edgeObj->IconImageId); + auto edgeColour1ShouldBeEnabled = edgeObj->flags.has(TerrainEdgeFlag::hasPrimaryColour); + if (_edgeColour1Enabled != edgeColour1ShouldBeEnabled) + { + _edgeColour1Enabled = edgeColour1ShouldBeEnabled; + invalidate(); + } + + auto colour = widgets[WIDX_EDGE_COLOUR_1].isVisible() ? _settings.edgeColour1 : edgeObj->getPreviewColour(); + edgeImage = ImageId(edgeObj->IconImageId, colour); } DrawDropdownButton(rt, floorWidgetIndex, surfaceImage); @@ -1151,6 +1190,12 @@ namespace OpenRCT2::Ui::Windows // only offer terrain edge smoothing if we don't use flatland terrain setWidgetEnabled(WIDX_HEIGHTMAP_SMOOTH_TILE_EDGES, _settings.algorithm != MapGenerator::Algorithm::blank); + + widgets[WIDX_SURFACE_COLOUR_1].setVisible(_surfaceColour1Enabled && !_randomTerrain); + widgets[WIDX_EDGE_COLOUR_1].setVisible(_edgeColour1Enabled && !_randomTerrain); + + widgets[WIDX_SURFACE_COLOUR_1].image = getColourButtonImage(_settings.surfaceColour1); + widgets[WIDX_EDGE_COLOUR_1].image = getColourButtonImage(_settings.edgeColour1); } void TerrainDraw(RenderTarget& rt) diff --git a/src/openrct2/GameState.cpp b/src/openrct2/GameState.cpp index 37aca8d4d2..1e47cf8998 100644 --- a/src/openrct2/GameState.cpp +++ b/src/openrct2/GameState.cpp @@ -61,7 +61,7 @@ namespace OpenRCT2 gInMapInitCode = true; gameState.currentTicks = 0; - MapInit(mapSize); + MapInit(mapSize, isInTrackDesignerOrManager() ? Drawing::Colour::darkBlue : Drawing::Colour::black); Park::Initialise(gameState.park, gameState); FinanceInit(); BannerInit(gameState); diff --git a/src/openrct2/actions/terraform/SurfaceSetStyleAction.cpp b/src/openrct2/actions/terraform/SurfaceSetStyleAction.cpp index 7f7d6bbc88..ac768de34a 100644 --- a/src/openrct2/actions/terraform/SurfaceSetStyleAction.cpp +++ b/src/openrct2/actions/terraform/SurfaceSetStyleAction.cpp @@ -23,10 +23,14 @@ namespace OpenRCT2::GameActions { - SurfaceSetStyleAction::SurfaceSetStyleAction(MapRange range, ObjectEntryIndex surfaceStyle, ObjectEntryIndex edgeStyle) + SurfaceSetStyleAction::SurfaceSetStyleAction( + MapRange range, ObjectEntryIndex surfaceStyle, ObjectEntryIndex edgeStyle, Drawing::Colour surfaceColour1, + Drawing::Colour edgeColour1) : _range(range) , _surfaceStyle(surfaceStyle) , _edgeStyle(edgeStyle) + , _surfaceColour1(surfaceColour1) + , _edgeColour1(edgeColour1) { } @@ -35,13 +39,34 @@ namespace OpenRCT2::GameActions visitor.Visit(_range); visitor.Visit("surfaceStyle", _surfaceStyle); visitor.Visit("edgeStyle", _edgeStyle); + visitor.Visit("surfaceColour1", _surfaceColour1); + visitor.Visit("edgeColour1", _edgeColour1); } void SurfaceSetStyleAction::Serialise(DataSerialiser& stream) { GameAction::Serialise(stream); - stream << DS_TAG(_range) << DS_TAG(_surfaceStyle) << DS_TAG(_edgeStyle); + stream << DS_TAG(_range) << DS_TAG(_surfaceStyle) << DS_TAG(_edgeStyle) << DS_TAG(_surfaceColour1) + << DS_TAG(_edgeColour1); + } + + bool SurfaceSetStyleAction::surfaceColour1NeedsRecolour( + const SurfaceElement& surfaceElement, const TerrainSurfaceObject& surfaceObject) const + { + if (!surfaceObject.Flags.has(TerrainSurfaceFlag::hasPrimaryColour)) + return false; + + return _surfaceColour1 != surfaceElement.getPrimarySurfaceColour(); + } + + bool SurfaceSetStyleAction::edgeColour1NeedsRecolour( + const SurfaceElement& surfaceElement, const TerrainEdgeObject& edgeObject) const + { + if (!edgeObject.flags.has(TerrainEdgeFlag::hasPrimaryColour)) + return false; + + return _edgeColour1 != surfaceElement.getPrimaryEdgeColour(); } Result SurfaceSetStyleAction::Query(GameState_t& gameState, Park::ParkData& park) const @@ -113,12 +138,11 @@ namespace OpenRCT2::GameActions if (_surfaceStyle != kObjectEntryIndexNull) { - uint8_t curSurfaceStyle = surfaceElement->getSurfaceObjectIndex(); - - if (_surfaceStyle != curSurfaceStyle) + const auto* surfaceObject = objManager.GetLoadedObject(_surfaceStyle); + if (surfaceObject != nullptr) { - const auto* surfaceObject = objManager.GetLoadedObject(_surfaceStyle); - if (surfaceObject != nullptr) + auto curSurfaceStyle = surfaceElement->getSurfaceObjectIndex(); + if (_surfaceStyle != curSurfaceStyle || surfaceColour1NeedsRecolour(*surfaceElement, *surfaceObject)) { surfaceCost += surfaceObject->Price; } @@ -127,11 +151,14 @@ namespace OpenRCT2::GameActions if (_edgeStyle != kObjectEntryIndexNull) { - uint8_t curEdgeStyle = surfaceElement->getEdgeObjectIndex(); - - if (_edgeStyle != curEdgeStyle) + const auto* edgeObject = objManager.GetLoadedObject(_edgeStyle); + if (edgeObject != nullptr) { - edgeCost += 100; + auto curEdgeStyle = surfaceElement->getEdgeObjectIndex(); + if (_edgeStyle != curEdgeStyle || edgeColour1NeedsRecolour(*surfaceElement, *edgeObject)) + { + edgeCost += 100; + } } } } @@ -180,17 +207,18 @@ namespace OpenRCT2::GameActions if (_surfaceStyle != kObjectEntryIndexNull) { - uint8_t curSurfaceStyle = surfaceElement->getSurfaceObjectIndex(); - - if (_surfaceStyle != curSurfaceStyle) + auto& objManager = GetContext()->GetObjectManager(); + const auto* surfaceObject = objManager.GetLoadedObject(_surfaceStyle); + if (surfaceObject != nullptr) { - auto& objManager = GetContext()->GetObjectManager(); - const auto* surfaceObject = objManager.GetLoadedObject(_surfaceStyle); - if (surfaceObject != nullptr) + auto curSurfaceStyle = surfaceElement->getSurfaceObjectIndex(); + if (_surfaceStyle != curSurfaceStyle || surfaceColour1NeedsRecolour(*surfaceElement, *surfaceObject)) { surfaceCost += surfaceObject->Price; surfaceElement->setSurfaceObjectIndex(_surfaceStyle); + if (surfaceObject->Flags.has(TerrainSurfaceFlag::hasPrimaryColour)) + surfaceElement->setPrimarySurfaceColour(surfaceObject->getPrimaryColour(_surfaceColour1)); MapInvalidateTileFull(coords); FootpathRemoveLitter({ coords, TileElementHeight(coords) }); @@ -200,14 +228,19 @@ namespace OpenRCT2::GameActions if (_edgeStyle != kObjectEntryIndexNull) { - uint8_t curEdgeStyle = surfaceElement->getEdgeObjectIndex(); - - if (_edgeStyle != curEdgeStyle) + auto& objManager = GetContext()->GetObjectManager(); + const auto* edgeObject = objManager.GetLoadedObject(_edgeStyle); + if (edgeObject != nullptr) { - edgeCost += 100; + auto curEdgeStyle = surfaceElement->getEdgeObjectIndex(); + if (_edgeStyle != curEdgeStyle || edgeColour1NeedsRecolour(*surfaceElement, *edgeObject)) + { + edgeCost += 100; - surfaceElement->setEdgeObjectIndex(_edgeStyle); - MapInvalidateTileFull(coords); + surfaceElement->setEdgeObjectIndex(_edgeStyle); + surfaceElement->setPrimaryEdgeColour(_edgeColour1); + MapInvalidateTileFull(coords); + } } } diff --git a/src/openrct2/actions/terraform/SurfaceSetStyleAction.h b/src/openrct2/actions/terraform/SurfaceSetStyleAction.h index 4c2661bb0e..296bf4d8c6 100644 --- a/src/openrct2/actions/terraform/SurfaceSetStyleAction.h +++ b/src/openrct2/actions/terraform/SurfaceSetStyleAction.h @@ -11,6 +11,12 @@ #include "../GameAction.hpp" +namespace OpenRCT2 +{ + class TerrainEdgeObject; + class TerrainSurfaceObject; +} // namespace OpenRCT2 + namespace OpenRCT2::GameActions { class SurfaceSetStyleAction final : public GameActionBase @@ -19,10 +25,17 @@ namespace OpenRCT2::GameActions MapRange _range; ObjectEntryIndex _surfaceStyle{}; ObjectEntryIndex _edgeStyle{}; + Drawing::Colour _surfaceColour1{}; + Drawing::Colour _edgeColour1{}; + + bool surfaceColour1NeedsRecolour(const SurfaceElement& surfaceElement, const TerrainSurfaceObject& surfaceObject) const; + bool edgeColour1NeedsRecolour(const SurfaceElement& surfaceElement, const TerrainEdgeObject& surfaceObject) const; public: SurfaceSetStyleAction() = default; - SurfaceSetStyleAction(MapRange range, ObjectEntryIndex surfaceStyle, ObjectEntryIndex edgeStyle); + SurfaceSetStyleAction( + MapRange range, ObjectEntryIndex surfaceStyle, ObjectEntryIndex edgeStyle, Drawing::Colour surfaceColour1, + Drawing::Colour edgeColour1); void AcceptParameters(GameActionParameterVisitor&) final; diff --git a/src/openrct2/drawing/Colour.cpp b/src/openrct2/drawing/Colour.cpp index 98c78822b1..c23fbb1e4e 100644 --- a/src/openrct2/drawing/Colour.cpp +++ b/src/openrct2/drawing/Colour.cpp @@ -13,6 +13,8 @@ #include "../scenario/Scenario.h" #include "../util/Util.h" +#include + namespace OpenRCT2::Drawing { static const EnumMap kLookupTable{ @@ -103,4 +105,14 @@ namespace OpenRCT2::Drawing { return Colour((ticks / 32) % kColourNumNormal); } + + Colour clampColour(uint8_t colour) + { + return static_cast(std::clamp(colour, 0, kColourNumTotal - 1)); + } + + Colour clampColour(Colour colour) + { + return clampColour(EnumValue(colour)); + } } // namespace OpenRCT2::Drawing diff --git a/src/openrct2/drawing/Colour.h b/src/openrct2/drawing/Colour.h index 5867258387..b84370b442 100644 --- a/src/openrct2/drawing/Colour.h +++ b/src/openrct2/drawing/Colour.h @@ -92,6 +92,9 @@ namespace OpenRCT2::Drawing return EnumValue(colour) < kColourNumTotal; } + Colour clampColour(uint8_t colour); + Colour clampColour(Colour colour); + Colour colourFromString(u8string s, Colour defaultValue = Colour::black); u8string colourToString(Colour colour); diff --git a/src/openrct2/drawing/ColourMap.cpp b/src/openrct2/drawing/ColourMap.cpp index 8bad7b188f..028bfcd57b 100644 --- a/src/openrct2/drawing/ColourMap.cpp +++ b/src/openrct2/drawing/ColourMap.cpp @@ -59,4 +59,11 @@ namespace OpenRCT2::Drawing Guard::Assert(EnumValue(colour) < _colourMap.size()); return _colourMap[EnumValue(colour)]; } + + PaletteIndex getColourMapShade(Colour colour, uint8_t shade) + { + const auto& map = getColourMap(colour); + const auto* pointer = &map.colour0; + return *(pointer + shade); + } } // namespace OpenRCT2::Drawing diff --git a/src/openrct2/drawing/ColourMap.h b/src/openrct2/drawing/ColourMap.h index 438e902e0f..87c5a0791a 100644 --- a/src/openrct2/drawing/ColourMap.h +++ b/src/openrct2/drawing/ColourMap.h @@ -33,6 +33,7 @@ namespace OpenRCT2::Drawing }; ColourShadeMap getColourMap(Colour colour); + PaletteIndex getColourMapShade(Colour colour, uint8_t shade); void initColourMaps(); } // namespace OpenRCT2::Drawing diff --git a/src/openrct2/object/DefaultObjects.cpp b/src/openrct2/object/DefaultObjects.cpp index a161bf764f..7430869fa1 100644 --- a/src/openrct2/object/DefaultObjects.cpp +++ b/src/openrct2/object/DefaultObjects.cpp @@ -23,6 +23,12 @@ namespace OpenRCT2 "rct2.station.plain", }; + constexpr std::array kMinimumRequiredObjectsDesigner = { + "rct2.terrain_surface.designer_grid", + "rct2.terrain_edge.rock", + + "rct2.station.plain", + }; constexpr std::array kCommonScenarioAndTrackDesignerObjects = { // An initial default selection @@ -157,10 +163,7 @@ namespace OpenRCT2 "rct2.terrain_surface.chequerboard", "rct2.terrain_surface.grass_clumps", "rct2.terrain_surface.ice", - "rct2.terrain_surface.grid_red", - "rct2.terrain_surface.grid_yellow", - "rct2.terrain_surface.grid_purple", - "rct2.terrain_surface.grid_green", + "rct2.terrain_surface.grid", "rct2.terrain_surface.sand_red", "rct2.terrain_surface.sand_brown", diff --git a/src/openrct2/object/DefaultObjects.h b/src/openrct2/object/DefaultObjects.h index dc14e8ee41..cdece336bb 100644 --- a/src/openrct2/object/DefaultObjects.h +++ b/src/openrct2/object/DefaultObjects.h @@ -20,10 +20,15 @@ namespace OpenRCT2 struct IObjectManager; /** - * Used by all editor modes: Scenario Editor, Track Designer and Track Designs Manager. + * Used by Scenario Editor, Track Designer and Track Designs Manager. */ extern const std::array kMinimumRequiredObjects; + /** + * Used by Track Designer and Track Designs Manager. + */ + extern const std::array kMinimumRequiredObjectsDesigner; + /** * Used by the Scenario Editor and Track Designer. */ diff --git a/src/openrct2/object/TerrainEdgeObject.cpp b/src/openrct2/object/TerrainEdgeObject.cpp index 6377d7d45c..46675f4a8b 100644 --- a/src/openrct2/object/TerrainEdgeObject.cpp +++ b/src/openrct2/object/TerrainEdgeObject.cpp @@ -42,7 +42,7 @@ namespace OpenRCT2 { auto screenCoords = ScreenCoordsXY{ width / 2, height / 2 }; - auto imageId = ImageId(BaseImageId + 5); + auto imageId = ImageId(BaseImageId + 5, getPreviewColour()); GfxDrawSprite(rt, imageId, screenCoords + ScreenCoordsXY{ 8, -8 }); GfxDrawSprite(rt, imageId, screenCoords + ScreenCoordsXY{ 8, 8 }); } @@ -55,12 +55,29 @@ namespace OpenRCT2 if (properties.is_object()) { - HasDoors = Json::GetBoolean(properties["hasDoors"]); const uint32_t doorSoundNumber = Json::GetNumber(properties["doorSound"]); if (doorSoundNumber < Audio::kDoorSoundTypeCount) { doorSound = static_cast(doorSoundNumber); } + + flags = Json::GetFlagHolder( + properties, + { + { "hasDoors", TerrainEdgeFlag::hasDoors }, + { "hasPrimaryColour", TerrainEdgeFlag::hasPrimaryColour }, + }); + if (flags.has(TerrainEdgeFlag::hasPrimaryColour)) + { + const auto colourSettings = properties["colourSettings"]; + if (!colourSettings.is_object()) + throw std::runtime_error( + "Terrain edge object is recolourable, but does not have a colourSettings property!"); + + colour = colourFromString(Json::GetString(colourSettings["defaultPrimary"]), Drawing::kColourNull); + if (colour == Drawing::kColourNull) + throw std::runtime_error("Terrain edge object is recolourable, but does not set a default colour."); + } } PopulateTablesFromJson(context, root); @@ -71,4 +88,12 @@ namespace OpenRCT2 auto& objMgr = GetContext()->GetObjectManager(); return objMgr.GetLoadedObject(entryIndex); } + + Drawing::Colour TerrainEdgeObject::getPreviewColour() const + { + if (colour != Drawing::kColourNull) + return colour; + + return kDefaultTerrainEdgeColour1; + } } // namespace OpenRCT2 diff --git a/src/openrct2/object/TerrainEdgeObject.h b/src/openrct2/object/TerrainEdgeObject.h index 5a5ffdfc14..2d510cc2b4 100644 --- a/src/openrct2/object/TerrainEdgeObject.h +++ b/src/openrct2/object/TerrainEdgeObject.h @@ -10,10 +10,21 @@ #pragma once #include "../audio/Audio.h" +#include "../core/FlagHolder.hpp" +#include "../drawing/Colour.h" #include "Object.h" namespace OpenRCT2 { + constexpr auto kDefaultTerrainEdgeColour1 = Drawing::Colour::beige; + + enum class TerrainEdgeFlag : uint8_t + { + hasDoors, + hasPrimaryColour, + }; + using TerrainEdgeFlags = FlagHolder; + class TerrainEdgeObject final : public Object { private: @@ -23,8 +34,9 @@ namespace OpenRCT2 StringId NameStringId{}; uint32_t IconImageId{}; uint32_t BaseImageId{}; - bool HasDoors{}; Audio::DoorSoundType doorSound{}; + TerrainEdgeFlags flags; + Drawing::Colour colour = Drawing::kColourNull; void ReadJson(IReadObjectContext* context, json_t& root) override; void Load() override; @@ -33,5 +45,6 @@ namespace OpenRCT2 void DrawPreview(Drawing::RenderTarget& rt, int32_t width, int32_t height) const override; static TerrainEdgeObject* GetById(ObjectEntryIndex entryIndex); + Drawing::Colour getPreviewColour() const; }; } // namespace OpenRCT2 diff --git a/src/openrct2/object/TerrainSurfaceObject.cpp b/src/openrct2/object/TerrainSurfaceObject.cpp index 14ab2527f9..64085ddb16 100644 --- a/src/openrct2/object/TerrainSurfaceObject.cpp +++ b/src/openrct2/object/TerrainSurfaceObject.cpp @@ -12,13 +12,74 @@ #include "../Context.h" #include "../core/Guard.hpp" #include "../core/Json.hpp" +#include "../drawing/ColourMap.h" +#include "../drawing/Drawing.Sprite.h" #include "../drawing/Drawing.h" +#include "../drawing/FilterPaletteIds.h" +#include "../drawing/Image.h" +#include "../drawing/PaletteMap.h" +#include "../drawing/RenderTarget.h" #include "../interface/ScreenCoords.hpp" #include "../world/Location.hpp" #include "ObjectManager.h" +using OpenRCT2::Drawing::FilterPaletteID; +using OpenRCT2::Drawing::PaletteIndex; +using OpenRCT2::Drawing::PaletteMap; + namespace OpenRCT2 { + static constexpr MapColour kInvalidMapColour = { MapColourType::paletteIndex, Drawing::Colour::black, + PaletteIndex::transparent }; + + void TerrainSurfaceObject::precolourPatternImages() + { + for (size_t colourNum = 0; colourNum < Drawing::kColourNumTotal; colourNum++) + { + for (uint8_t patternOffset = 0; patternOffset < kNumSmoothingPatternImages; patternOffset++) + { + // TODO: this is a lot of ceremony for what on the face of it should be a simple task: applying a colour to the + // primary remap and saving that in a G1Element. Especially the need to get 3 structures (G1Element, + // RenderTarget and ImageId) involved. + G1Element newElement = *(GfxGetG1Element(PatternBaseImageId + patternOffset)); + size_t numPixels = newElement.width * newElement.height; + auto pixels8 = new uint8_t[numPixels]; + // Copy unmodified image so we can colour it + std::copy_n(newElement.offset, numPixels, pixels8); + newElement.offset = pixels8; + + auto primaryPaletteMap = GetPaletteMapForColour(static_cast(colourNum)) + .value_or(PaletteMap::GetDefault()); + + Drawing::RenderTarget rt; + rt.bits = reinterpret_cast(pixels8); + rt.x = 0; + rt.y = 0; + rt.width = newElement.width; + rt.height = newElement.height; + rt.pitch = 0; + rt.zoom_level = ZoomLevel{ 0 }; + + auto dummyImage = ImageId().WithPrimary(static_cast(colourNum)); + DrawSpriteArgs args( + dummyImage, primaryPaletteMap, newElement, 0, 0, newElement.width, newElement.height, rt.bits); + GfxSpriteToBuffer(rt, args); + + precolouredPatternImages.AddImage(&newElement); + delete[] pixels8; + } + } + + precolouredPatternImageId = GfxObjectAllocateImages( + precolouredPatternImages.GetImages(), precolouredPatternImages.GetCount()); + } + + void TerrainSurfaceObject::unloadPrecolouredPatternImages() + { + GfxObjectFreeImages(precolouredPatternImageId, precolouredPatternImages.GetCount()); + precolouredPatternImageId = 0; + } + void TerrainSurfaceObject::Load() { GetStringTable().Sort(); @@ -27,7 +88,10 @@ namespace OpenRCT2 if (Flags.hasAny(TerrainSurfaceFlag::smoothWithSelf, TerrainSurfaceFlag::smoothWithOther)) { PatternBaseImageId = IconImageId + 1; - EntryBaseImageId = PatternBaseImageId + 6; + EntryBaseImageId = PatternBaseImageId + kNumSmoothingPatternImages; + + if (Flags.has(TerrainSurfaceFlag::hasPrimaryColour)) + precolourPatternImages(); } else { @@ -40,6 +104,8 @@ namespace OpenRCT2 { LanguageFreeObjectString(NameStringId); UnloadImages(); + if (Flags.has(TerrainSurfaceFlag::hasPrimaryColour)) + unloadPrecolouredPatternImages(); NameStringId = 0; IconImageId = 0; @@ -50,11 +116,7 @@ namespace OpenRCT2 void TerrainSurfaceObject::DrawPreview(Drawing::RenderTarget& rt, int32_t width, int32_t height) const { - auto imageId = ImageId(GetImageId({}, 1, 0, 0, false, false)); - if (Colour != Drawing::kColourNull) - { - imageId = imageId.WithPrimary(Colour); - } + auto imageId = GetImageId({}, 1, 0, 0, false, false, getPreviewColour()); ScreenCoordsXY screenCoords{}; int32_t x0 = 0; @@ -83,23 +145,27 @@ namespace OpenRCT2 if (properties.is_object()) { - Colour = colourFromString(Json::GetString(properties["colour"]), Drawing::kColourNull); Rotations = Json::GetNumber(properties["rotations"], 1); Price = Json::GetNumber(properties["price"]); Flags = Json::GetFlagHolder( properties, { { "smoothWithSelf", TerrainSurfaceFlag::smoothWithSelf }, { "smoothWithOther", TerrainSurfaceFlag::smoothWithOther }, - { "canGrow", TerrainSurfaceFlag::canGrow } }); + { "canGrow", TerrainSurfaceFlag::canGrow }, + { "hasPrimaryColour", TerrainSurfaceFlag::hasPrimaryColour } }); - const auto mapColours = properties["mapColours"]; - const bool mapColoursAreValid = mapColours.is_array() && mapColours.size() == std::size(MapColours); - for (size_t i = 0; i < std::size(MapColours); i++) + const auto colourSettings = properties["colourSettings"]; + if (colourSettings.is_object() && colourSettings["parkMap"].is_array()) { - if (mapColoursAreValid) - MapColours[i] = mapColours[i]; - else - MapColours[i] = Drawing::PaletteIndex::transparent; + readColourSettingsProperty(colourSettings); + } + else + { + if (Flags.has(TerrainSurfaceFlag::hasPrimaryColour)) + throw std::runtime_error( + "Recolourable terrain surface objects need to have a valid colourSettings property!"); + + readOldColourSettings(properties); } for (auto& el : properties["special"]) @@ -139,8 +205,73 @@ namespace OpenRCT2 PopulateTablesFromJson(context, root); } + void TerrainSurfaceObject::readColourSettingsProperty(const json_t& colourSettings) + { + Colour = Drawing::kColourNull; + if (Flags.has(TerrainSurfaceFlag::hasPrimaryColour)) + { + const auto primary = colourSettings["defaultPrimary"]; + Colour = colourFromString(Json::GetString(primary), Drawing::kColourNull); + if (Colour == Drawing::kColourNull) + throw std::runtime_error( + "Recolourable terrain surface object need to have a valid colourSettings property and set a default " + "primary colour."); + } + + const auto mapColours = colourSettings["parkMap"]; + const auto mapColoursAreValid = mapColours.is_array() && mapColours.size() == std::size(MapColours); + if (!mapColoursAreValid) + throw std::runtime_error("colourSettings.parkMap is not valid!"); + + for (size_t i = 0; i < std::size(MapColours); i++) + { + const auto& mapColour = mapColours[i]; + if (!mapColour.is_object()) + throw std::runtime_error("Park map colour entry is not a valid object!"); + + const auto shadeOffset = Json::GetNumber(mapColour["shade"], -1); + if (shadeOffset < 0 || shadeOffset > 11) + throw std::runtime_error("Park map colour shade must be between 0 and 11!"); + + MapColour entry{}; + entry.shadeOffset = shadeOffset; + + const auto parkMapColour = Json::GetString(mapColour["colour"]); + if (parkMapColour == "primary") + { + entry.type = MapColourType::primaryColour; + } + else + { + const auto converted = Drawing::colourFromString(parkMapColour, Drawing::kColourNull); + if (converted == Drawing::kColourNull) + throw std::runtime_error("Park map colour is not valid!"); + + entry.fixedColour = converted; + } + + MapColours[i] = entry; + } + } + + void TerrainSurfaceObject::readOldColourSettings(json_t& properties) + { + Colour = colourFromString(Json::GetString(properties["colour"]), Drawing::kColourNull); + const auto mapColours = properties["mapColours"]; + const auto mapColoursAreValid = mapColours.is_array() && mapColours.size() == std::size(MapColours); + for (size_t i = 0; i < std::size(MapColours); i++) + { + if (mapColoursAreValid && mapColours[i].is_number_integer()) + MapColours[i] = { .type = MapColourType::paletteIndex, + .paletteIndex = static_cast(mapColours[i]) }; + else + MapColours[i] = kInvalidMapColour; + } + } + ImageId TerrainSurfaceObject::GetImageId( - const CoordsXY& position, uint8_t length, uint8_t rotation, uint8_t offset, bool grid, bool underground) const + const CoordsXY& position, uint8_t length, uint8_t rotation, uint8_t offset, bool grid, bool underground, + Drawing::Colour selectedColour1) const { uint32_t result = DefaultEntry; std::span entries(SpecialEntries); @@ -170,17 +301,66 @@ namespace OpenRCT2 } } - ImageId image(EntryBaseImageId + (result * kNumImagesInEntry) + offset); - if (Colour != Drawing::kColourNull) - { - image = image.WithPrimary(Colour); - } + ImageId image(EntryBaseImageId + (result * kNumImagesInEntry) + offset, getPrimaryColour(selectedColour1)); + return image; } + Drawing::Colour TerrainSurfaceObject::getPrimaryColour(Drawing::Colour selectedColour) const + { + if (Flags.has(TerrainSurfaceFlag::hasPrimaryColour)) + return selectedColour; + + if (Colour == Drawing::kColourNull) + return selectedColour; + + return Colour; + } + + Drawing::Colour TerrainSurfaceObject::getPreviewColour() const + { + if (Colour != Drawing::kColourNull) + return Colour; + + return kDefaultTerrainSurfaceColour1; + } + + std::array TerrainSurfaceObject::getMapColours(Drawing::Colour selectedColour) const + { + std::array result; + assert(result.size() == std::size(MapColours)); + + for (size_t i = 0; i < result.size(); i++) + { + switch (MapColours[i].type) + { + case MapColourType::paletteIndex: + result[i] = MapColours[i].paletteIndex; + break; + case MapColourType::fixedColour: + result[i] = Drawing::getColourMapShade(MapColours[i].fixedColour, MapColours[i].shadeOffset); + break; + case MapColourType::primaryColour: + result[i] = Drawing::getColourMapShade(selectedColour, MapColours[i].shadeOffset); + break; + } + } + + return result; + } + TerrainSurfaceObject* TerrainSurfaceObject::GetById(ObjectEntryIndex entryIndex) { auto& objMgr = GetContext()->GetObjectManager(); return objMgr.GetLoadedObject(entryIndex); } + + ImageIndex TerrainSurfaceObject::getPatternImage(Drawing::Colour selectedColour, uint8_t offset) const + { + assert(offset < kNumSmoothingPatternImages); + if (Flags.has(TerrainSurfaceFlag::hasPrimaryColour)) + return precolouredPatternImageId + (EnumValue(selectedColour) * kNumSmoothingPatternImages) + offset; + + return PatternBaseImageId + offset; + } } // namespace OpenRCT2 diff --git a/src/openrct2/object/TerrainSurfaceObject.h b/src/openrct2/object/TerrainSurfaceObject.h index acad3d568e..2e5ddbca2d 100644 --- a/src/openrct2/object/TerrainSurfaceObject.h +++ b/src/openrct2/object/TerrainSurfaceObject.h @@ -19,11 +19,34 @@ struct ImageId; namespace OpenRCT2 { + constexpr auto kNumSmoothingPatternImages = 6; + + constexpr auto kDefaultTerrainSurfaceColour1 = Drawing::Colour::brightPurple; + + enum class MapColourType : uint8_t + { + paletteIndex, + fixedColour, + primaryColour, + }; + + struct MapColour + { + MapColourType type = MapColourType::paletteIndex; + Drawing::Colour fixedColour{}; + union + { + Drawing::PaletteIndex paletteIndex{}; + uint8_t shadeOffset; + }; + }; + enum class TerrainSurfaceFlag : uint8_t { smoothWithSelf, smoothWithOther, canGrow, + hasPrimaryColour, }; using TerrainSurfaceFlags = FlagHolder; @@ -40,6 +63,9 @@ namespace OpenRCT2 static constexpr auto kNumImagesInEntry = 19; + void precolourPatternImages(); + void unloadPrecolouredPatternImages(); + public: static constexpr ObjectType kObjectType = ObjectType::terrainSurface; @@ -47,6 +73,7 @@ namespace OpenRCT2 StringId NameStringId{}; uint32_t IconImageId{}; uint32_t PatternBaseImageId{}; + ImageIndex precolouredPatternImageId{}; uint32_t EntryBaseImageId{}; uint32_t NumEntries{}; @@ -61,7 +88,9 @@ namespace OpenRCT2 uint8_t Rotations{}; money64 Price{}; TerrainSurfaceFlags Flags{}; - Drawing::PaletteIndex MapColours[2]{}; + MapColour MapColours[2]{}; + + ImageTable precolouredPatternImages{}; void ReadJson(IReadObjectContext* context, json_t& root) override; void Load() override; @@ -69,9 +98,19 @@ namespace OpenRCT2 void DrawPreview(Drawing::RenderTarget& rt, int32_t width, int32_t height) const override; + void readColourSettingsProperty(const json_t& colourSettings); + void readOldColourSettings(json_t& colourSettings); ImageId GetImageId( - const CoordsXY& position, uint8_t length, uint8_t rotation, uint8_t offset, bool grid, bool underground) const; + const CoordsXY& position, uint8_t length, uint8_t rotation, uint8_t offset, bool grid, bool underground, + Drawing::Colour selectedColour1) const; + Drawing::Colour getPrimaryColour(Drawing::Colour selectedColour) const; + /** + * Returns a colour suitable for use in previews, like the Object Selection and the land surfaces selector. + */ + Drawing::Colour getPreviewColour() const; + std::array getMapColours(Drawing::Colour selectedColour) const; static TerrainSurfaceObject* GetById(ObjectEntryIndex entryIndex); + ImageIndex getPatternImage(Drawing::Colour selectedColour, uint8_t offset) const; }; } // namespace OpenRCT2 diff --git a/src/openrct2/paint/tile_element/Paint.Surface.cpp b/src/openrct2/paint/tile_element/Paint.Surface.cpp index ae8ef6812e..5403bfb66a 100644 --- a/src/openrct2/paint/tile_element/Paint.Surface.cpp +++ b/src/openrct2/paint/tile_element/Paint.Surface.cpp @@ -235,16 +235,13 @@ static constexpr TileSurfaceBoundaryData _tileSurfaceBoundaries[4] = { }, }; -static ImageId GetSurfacePattern(const TerrainSurfaceObject* surfaceObject, int32_t offset) +static ImageId GetSurfacePattern(Colour surfacePrimaryColour, const TerrainSurfaceObject* surfaceObject, int32_t offset) { ImageId image; if (surfaceObject != nullptr) { - image = ImageId(surfaceObject->PatternBaseImageId + offset); - if (surfaceObject->Colour != kColourNull) - { - image = image.WithPrimary(surfaceObject->Colour); - } + auto primaryColour = surfaceObject->getPrimaryColour(surfacePrimaryColour); + image = ImageId(surfaceObject->getPatternImage(primaryColour, offset)); } return image; } @@ -265,17 +262,17 @@ static bool SurfaceShouldSmooth(const TerrainSurfaceObject* surfaceObject) return surfaceObject->Flags.has(TerrainSurfaceFlag::smoothWithOther); } -static ImageId GetEdgeImageWithOffset(const TerrainEdgeObject* edgeObject, uint32_t offset) +static ImageId GetEdgeImageWithOffset(const TerrainEdgeObject* edgeObject, uint32_t offset, Colour selectedColour1) { ImageId result; if (edgeObject != nullptr) { - result = ImageId(edgeObject->BaseImageId + offset); + result = ImageId(edgeObject->BaseImageId + offset, selectedColour1); } return result; } -static ImageId GetEdgeImage(const TerrainEdgeObject* edgeObject, uint8_t type) +static ImageId GetEdgeImage(const TerrainEdgeObject* edgeObject, uint8_t type, Colour selectedColour1) { static constexpr uint32_t offsets[] = { 0, @@ -287,23 +284,23 @@ static ImageId GetEdgeImage(const TerrainEdgeObject* edgeObject, uint8_t type) ImageId result; if (type < std::size(offsets)) { - result = GetEdgeImageWithOffset(edgeObject, offsets[type]); + result = GetEdgeImageWithOffset(edgeObject, offsets[type], selectedColour1); } return result; } -static ImageId GetTunnelImage(const TerrainEdgeObject* edgeObject, TunnelType type, edge_t edge) +static ImageId GetTunnelImage(const TerrainEdgeObject* edgeObject, TunnelType type, edge_t edge, Colour selectedColour1) { bool hasDoors = false; if (edgeObject != nullptr) { - hasDoors = edgeObject->HasDoors && !edgeObject->UsesFallbackImages(); + hasDoors = edgeObject->flags.has(TerrainEdgeFlag::hasDoors) && !edgeObject->UsesFallbackImages(); } if (!hasDoors && EnumValue(type) >= kRegularTunnelTypeCount) type = TunnelType::standardFlat; - ImageId result = GetEdgeImageWithOffset(edgeObject, kTunnels[EnumValue(type)].imageOffset) + ImageId result = GetEdgeImageWithOffset(edgeObject, kTunnels[EnumValue(type)].imageOffset, selectedColour1) .WithIndexOffset(edge == EDGE_BOTTOMRIGHT ? 2 : 0); return result; @@ -399,7 +396,10 @@ static void ViewportSurfaceSmoothenEdge( break; } - if (self.surfaceObject == neighbour.surfaceObject) + auto ownSurfaceColour = self.tile_element->asSurface()->getPrimarySurfaceColour(); + bool sameTextureAndColour = (self.surfaceObject == neighbour.surfaceObject) + && (ownSurfaceColour == neighbour.tile_element->asSurface()->getPrimarySurfaceColour()); + if (sameTextureAndColour) { // same tint if (cl == dh) @@ -423,7 +423,10 @@ static void ViewportSurfaceSmoothenEdge( { AttachedPaintStruct* out = session.LastAttachedPS; // set content and enable masking - out->ColourImageId = GetSurfacePattern(neighbour.surfaceObject, cl); + auto surfacePrimaryColour = Colour::black; + if (neighbour.tile_element != nullptr) + surfacePrimaryColour = neighbour.tile_element->asSurface()->getPrimarySurfaceColour(); + out->ColourImageId = GetSurfacePattern(surfacePrimaryColour, neighbour.surfaceObject, cl); out->IsMasked = true; } } @@ -447,7 +450,7 @@ static bool TileIsInsideClipView(const TileDescriptor& tile) static void ViewportSurfaceDrawTileSideBottom( PaintSession& session, enum edge_t edge, uint16_t height, const TerrainEdgeObject* edgeObject, const TileDescriptor& self, - const TileDescriptor& neighbour, bool isWater) + const TileDescriptor& neighbour, bool isWater, Colour selectedColour1) { PROFILED_FUNCTION(); @@ -524,10 +527,10 @@ static void ViewportSurfaceDrawTileSideBottom( return; } - auto baseImageId = GetEdgeImage(edgeObject, 0); + auto baseImageId = GetEdgeImage(edgeObject, 0, selectedColour1); if (session.ViewFlags.has(ViewportFlag::undergroundInside)) { - baseImageId = GetEdgeImage(edgeObject, 1); + baseImageId = GetEdgeImage(edgeObject, 1, selectedColour1); } if (edge == EDGE_BOTTOMRIGHT) @@ -600,7 +603,7 @@ static void ViewportSurfaceDrawTileSideBottom( boundBoxLength -= 16; } - auto imageId = GetTunnelImage(edgeObject, tunnelType, edge); + auto imageId = GetTunnelImage(edgeObject, tunnelType, edge, selectedColour1); PaintAddImageAsParent( session, imageId, { offset, zOffset }, { { 0, 0, boundBoxOffsetZ }, { tunnelBounds, boundBoxLength - 1 } }); @@ -613,7 +616,7 @@ static void ViewportSurfaceDrawTileSideBottom( boundBoxLength -= 16; } - imageId = GetTunnelImage(edgeObject, tunnelType, edge).WithIndexOffset(1); + imageId = GetTunnelImage(edgeObject, tunnelType, edge, selectedColour1).WithIndexOffset(1); PaintAddImageAsParent( session, imageId, { offset, curHeight * kCoordsZPerTinyZ }, { { tunnelTopBoundBoxOffset, boundBoxOffsetZ }, { tunnelBounds, boundBoxLength - 1 } }); @@ -639,7 +642,7 @@ static void ViewportSurfaceDrawTileSideBottom( static void ViewportSurfaceDrawTileSideTop( PaintSession& session, enum edge_t edge, uint16_t height, const TerrainEdgeObject* edgeObject, const TileDescriptor& self, - const TileDescriptor& neighbour, bool isWater) + const TileDescriptor& neighbour, bool isWater, Drawing::Colour selectedColour1) { PROFILED_FUNCTION(); @@ -711,10 +714,10 @@ static void ViewportSurfaceDrawTileSideTop( ImageId baseImageId; if (isWater) { - baseImageId = GetEdgeImage(edgeObject, 2); // var_08 + baseImageId = GetEdgeImage(edgeObject, 2, selectedColour1); // var_08 if (session.ViewFlags.has(ViewportFlag::undergroundInside)) { - baseImageId = GetEdgeImage(edgeObject, 1); // var_04 + baseImageId = GetEdgeImage(edgeObject, 1, selectedColour1); // var_04 } baseImageId = baseImageId.WithIndexOffset(edge == EDGE_TOPLEFT ? 5 : 0); @@ -726,12 +729,13 @@ static void ViewportSurfaceDrawTileSideTop( if (!(session.ViewFlags.has(ViewportFlag::undergroundInside))) { const uint8_t incline = (cornerHeight2 - cornerHeight1) + 1; - const auto imageId = GetEdgeImage(edgeObject, 3).WithIndexOffset((edge == EDGE_TOPLEFT ? 3 : 0) + incline); + const auto imageId = GetEdgeImage(edgeObject, 3, selectedColour1) + .WithIndexOffset((edge == EDGE_TOPLEFT ? 3 : 0) + incline); const int16_t y = (height - cornerHeight1) * kCoordsZPerTinyZ; PaintAttachToPreviousPS(session, imageId, 0, y); return; } - baseImageId = GetEdgeImage(edgeObject, 1).WithIndexOffset(edge == EDGE_TOPLEFT ? 5 : 0); + baseImageId = GetEdgeImage(edgeObject, 1, selectedColour1).WithIndexOffset(edge == EDGE_TOPLEFT ? 5 : 0); } uint8_t cur_height = std::min(neighbourCornerHeight2, neighbourCornerHeight1); @@ -1025,11 +1029,7 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con const uint8_t image_offset = Byte97B444[surfaceShape]; ImageId imageId; - if (isInTrackDesignerOrManager()) - { - imageId = ImageId(SPR_TERRAIN_TRACK_DESIGNER); - } - else if (surfaceObject != nullptr) + if (surfaceObject != nullptr) { uint8_t grassLength = TerrainSurfaceObject::kNoValue; if (zoomLevel <= ZoomLevel{ 0 }) @@ -1039,7 +1039,9 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con grassLength = tileElement.getGrassLength() & 0x7; } } - imageId = surfaceObject->GetImageId(session.MapPosition, grassLength, rotation, image_offset, showGridlines, false); + imageId = surfaceObject->GetImageId( + session.MapPosition, grassLength, rotation, image_offset, showGridlines, false, + tileElement.getPrimarySurfaceColour()); } if (session.ViewFlags.hasAny(ViewportFlag::undergroundInside, ViewportFlag::hideBase)) { @@ -1213,18 +1215,22 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con const uint8_t image_offset = Byte97B444[surfaceShape]; ImageId imageId; if (surfaceObject != nullptr) - imageId = surfaceObject->GetImageId(session.MapPosition, 1, rotation, image_offset, false, true); + imageId = surfaceObject->GetImageId( + session.MapPosition, 1, rotation, image_offset, false, true, tileElement.getPrimarySurfaceColour()); PaintAttachToPreviousPS(session, imageId, 0, 0); } if (!session.ViewFlags.has(ViewportFlag::hideVertical)) { - ViewportSurfaceDrawTileSideTop(session, EDGE_TOPLEFT, height, edgeObject, selfDescriptor, tileDescriptors[2], false); - ViewportSurfaceDrawTileSideTop(session, EDGE_TOPRIGHT, height, edgeObject, selfDescriptor, tileDescriptors[3], false); + auto edgeColour1 = tileElement.getPrimaryEdgeColour(); + ViewportSurfaceDrawTileSideTop( + session, EDGE_TOPLEFT, height, edgeObject, selfDescriptor, tileDescriptors[2], false, edgeColour1); + ViewportSurfaceDrawTileSideTop( + session, EDGE_TOPRIGHT, height, edgeObject, selfDescriptor, tileDescriptors[3], false, edgeColour1); ViewportSurfaceDrawTileSideBottom( - session, EDGE_BOTTOMLEFT, height, edgeObject, selfDescriptor, tileDescriptors[0], false); + session, EDGE_BOTTOMLEFT, height, edgeObject, selfDescriptor, tileDescriptors[0], false, edgeColour1); ViewportSurfaceDrawTileSideBottom( - session, EDGE_BOTTOMRIGHT, height, edgeObject, selfDescriptor, tileDescriptors[1], false); + session, EDGE_BOTTOMRIGHT, height, edgeObject, selfDescriptor, tileDescriptors[1], false, edgeColour1); } const uint16_t waterHeight = tileElement.getWaterHeight(); @@ -1256,14 +1262,15 @@ void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, con if (!session.ViewFlags.has(ViewportFlag::hideVertical)) { + auto edgeColour1 = tileElement.getPrimaryEdgeColour(); ViewportSurfaceDrawTileSideBottom( - session, EDGE_BOTTOMLEFT, waterHeight, edgeObject, selfDescriptor, tileDescriptors[0], true); + session, EDGE_BOTTOMLEFT, waterHeight, edgeObject, selfDescriptor, tileDescriptors[0], true, edgeColour1); ViewportSurfaceDrawTileSideBottom( - session, EDGE_BOTTOMRIGHT, waterHeight, edgeObject, selfDescriptor, tileDescriptors[1], true); + session, EDGE_BOTTOMRIGHT, waterHeight, edgeObject, selfDescriptor, tileDescriptors[1], true, edgeColour1); ViewportSurfaceDrawTileSideTop( - session, EDGE_TOPLEFT, waterHeight, edgeObject, selfDescriptor, tileDescriptors[2], true); + session, EDGE_TOPLEFT, waterHeight, edgeObject, selfDescriptor, tileDescriptors[2], true, edgeColour1); ViewportSurfaceDrawTileSideTop( - session, EDGE_TOPRIGHT, waterHeight, edgeObject, selfDescriptor, tileDescriptors[3], true); + session, EDGE_TOPRIGHT, waterHeight, edgeObject, selfDescriptor, tileDescriptors[3], true, edgeColour1); } } diff --git a/src/openrct2/park/Legacy.cpp b/src/openrct2/park/Legacy.cpp index df41a6c131..64b50188b0 100644 --- a/src/openrct2/park/Legacy.cpp +++ b/src/openrct2/park/Legacy.cpp @@ -22,6 +22,8 @@ #include "../rct2/RCT2.h" #include "../ride/Ride.h" #include "../ride/ted/TrackElemType.h" +#include "../world/TileElementsView.h" +#include "../world/tile_element/SurfaceElement.h" #include "../world/tile_element/TrackElement.h" #include "ParkFile.h" @@ -3149,3 +3151,25 @@ std::pair splitCombinedNumDropsPoweredLifts(uint8_t combinedVa return std::make_pair(numDrops, numPoweredLifts); } + +void updateSurfaceElementsColour( + GameState_t& gameState, std::span terrainSurfaceMap, + std::span terrainEdgeMap) +{ + for (int32_t y = 0; y < gameState.mapSize.y; y++) + { + for (int32_t x = 0; x < gameState.mapSize.x; x++) + { + for (auto* surfaceElement : TileElementsView(TileCoordsXY{ x, y })) + { + const auto originalSurfaceIndex = surfaceElement->getSurfaceObjectIndex(); + const auto& surfaceMapping = terrainSurfaceMap[originalSurfaceIndex]; + surfaceElement->setSurfaceObjectIndex(surfaceMapping.newEntryIndex); + surfaceElement->setPrimarySurfaceColour(surfaceMapping.colour); + + const auto edgeIndex = surfaceElement->getEdgeObjectIndex(); + surfaceElement->setPrimaryEdgeColour(terrainEdgeMap[edgeIndex]); + } + } + } +} diff --git a/src/openrct2/park/Legacy.h b/src/openrct2/park/Legacy.h index e0c8d38afe..04fbf23c15 100644 --- a/src/openrct2/park/Legacy.h +++ b/src/openrct2/park/Legacy.h @@ -38,10 +38,23 @@ namespace OpenRCT2 enum class SpecialElement : uint8_t; using SpecialElements = FlagHolder; + + using ObjectEntryIndex = uint16_t; + + namespace Drawing + { + enum class Colour : uint8_t; + } } // namespace OpenRCT2 using ride_type_t = uint16_t; +struct TerrainSurfaceMapping +{ + OpenRCT2::ObjectEntryIndex newEntryIndex; + OpenRCT2::Drawing::Colour colour; +}; + std::string_view MapToNewObjectIdentifier(std::string_view s); std::optional GetDATPathName(std::string_view newPathName); const OpenRCT2::RCT2::FootpathMapping* GetFootpathMapping(const OpenRCT2::ObjectEntryDescriptor& desc); @@ -69,3 +82,6 @@ bool TrackTypeMustBeMadeInvisible(const OpenRCT2::TrackElement& trackElement, in std::pair splitCombinedHelicesAndSpecialElements(uint8_t combinedValue); std::pair splitCombinedNumDropsPoweredLifts(uint8_t combinedValue); +void updateSurfaceElementsColour( + OpenRCT2::GameState_t& gameState, std::span terrainSurfaceMap, + std::span terrainEdgeMap); diff --git a/src/openrct2/park/ParkFile.cpp b/src/openrct2/park/ParkFile.cpp index 49c58c56f1..dbbe565460 100644 --- a/src/openrct2/park/ParkFile.cpp +++ b/src/openrct2/park/ParkFile.cpp @@ -57,6 +57,7 @@ #include "../world/Weather.h" #include "../world/tile_element/PathElement.h" #include "../world/tile_element/SmallSceneryElement.h" +#include "../world/tile_element/SurfaceElement.h" #include "../world/tile_element/TrackElement.h" #include "Legacy.h" #include "ParkPreview.h" @@ -99,6 +100,13 @@ namespace OpenRCT2 // clang-format on }; + constexpr auto kGridMap = std::to_array>({ + { "#RCT2SIR", Drawing::Colour::brightRed }, + { "#RCT2SIY", Drawing::Colour::yellow }, + { "#RCT2SIG", Drawing::Colour::brightGreen }, + { "#RCT2SIP", Drawing::Colour::brightPurple }, + }); + class ParkFile { public: @@ -112,6 +120,9 @@ namespace OpenRCT2 ObjectEntryIndex _pathToQueueSurfaceMap[kMaxPathObjects]; ObjectEntryIndex _pathToRailingsMap[kMaxPathObjects]; + std::array _terrainSurfaceMap{}; + std::array _terrainEdgeMap{}; + void ThrowIfIncompatibleVersion() { const auto& header = _os->getHeader(); @@ -166,10 +177,17 @@ namespace OpenRCT2 ReadWriteCheatsChunk(gameState, os); ReadWriteRestrictedObjectsChunk(gameState, os); ReadWritePluginStorageChunk(gameState, os); - if (os.getHeader().targetVersion < 0x4) + + auto targetVersion = os.getHeader().targetVersion; + + if (targetVersion < 0x4) { UpdateTrackElementsRideType(); } + if (targetVersion < kColourableTerrainVersion) + { + updateSurfaceElementsColour(gameState, _terrainSurfaceMap, _terrainEdgeMap); + } // Initial cash is currently a legacy variable. However, it should be reworked // so parks that share a map can start with the same amount. @@ -319,8 +337,20 @@ namespace OpenRCT2 const RCT2::FootpathMapping& mapping; }; std::vector legacyPathMappings; + + for (ObjectEntryIndex i = 0; i < _terrainSurfaceMap.size(); i++) + { + _terrainSurfaceMap[i] = { i, Drawing::Colour::black }; + } + std::fill(_terrainEdgeMap.begin(), _terrainEdgeMap.end(), Drawing::Colour::black); + ObjectEntryIndex newGridIndex = kObjectEntryIndexNull; + auto& terrainSurfaceMap = _terrainSurfaceMap; + auto& terrainEdgeMap = _terrainEdgeMap; + os.readWriteChunk( - ParkFileChunkType::objects, [&requiredObjects, version, &legacyPathMappings](OrcaStream::ChunkStream& cs) { + ParkFileChunkType::objects, + [&requiredObjects, version, &legacyPathMappings, &terrainSurfaceMap, &terrainEdgeMap, + &newGridIndex](OrcaStream::ChunkStream& cs) { auto numSubLists = cs.read(); for (size_t i = 0; i < numSubLists; i++) { @@ -348,6 +378,45 @@ namespace OpenRCT2 continue; } } + // Void surface and edges are not handled specifically as the default colour is black + // anyway. This saves us some cycles. + if (version < kColourableTerrainVersion) + { + auto datName = u8string(datEntry.GetName()); + // Grey sandstone + if (datName == "#RCT1ESG") + { + terrainEdgeMap[j] = Drawing::Colour::grey; + } + else if (datName.starts_with("#RCT2SI")) + { + // There were four grid objects. Make sure we only try to allocate one. + auto skip = false; + + for (const auto& pair : kGridMap) + { + if (datName == pair.first) + { + if (newGridIndex == kObjectEntryIndexNull) + newGridIndex = j; + else + skip = true; + + terrainSurfaceMap[j] = { newGridIndex, pair.second }; + + desc = ObjectEntryDescriptor(); + desc.Type = objectType; + desc.Identifier = "rct2.terrain_surface.grid"; + desc.Version = std::make_tuple(1, 0, 0); + + break; + } + } + + if (skip) + continue; + } + } requiredObjects.SetObject(j, desc); break; @@ -365,7 +434,7 @@ namespace OpenRCT2 identifier = newIdentifier; } } - else if (version <= 12) + if (version <= 12) { if (identifier == "openrct2.ride.rmct1") { @@ -376,13 +445,20 @@ namespace OpenRCT2 identifier = "openrct2.ride.single_rail_coaster"; } } - else if (version <= 14) + if (version <= 14) { if (identifier == "openrct2.ride.alp1") { identifier = "openrct2.ride.alpine_coaster"; } } + + if (identifier == "rct1beta.terrain_edge.brick" + || identifier == "rct1beta.terrain_edge.rock") + { + terrainEdgeMap[j] = Drawing::Colour::lightBrown; + } + desc.Identifier = identifier; desc.Version = VersionTuple(cs.read()); diff --git a/src/openrct2/park/ParkFile.h b/src/openrct2/park/ParkFile.h index b28206527b..3bc88009d9 100644 --- a/src/openrct2/park/ParkFile.h +++ b/src/openrct2/park/ParkFile.h @@ -19,7 +19,7 @@ namespace OpenRCT2 struct ObjectRepositoryItem; // Current version that is saved. - constexpr uint32_t kParkFileCurrentVersion = 61; + constexpr uint32_t kParkFileCurrentVersion = 62; // The minimum version that is forwards compatible with the current version. constexpr uint32_t kParkFileMinVersion = 57; @@ -61,6 +61,7 @@ namespace OpenRCT2 constexpr uint16_t kRevertToVanillaFairRidePriceCalculation = 58; constexpr uint16_t kParkFileVersionUprightQuarterHelices = 60; constexpr uint16_t kExtendedInvertedRollerCoasterVersion = 61; + constexpr uint16_t kColourableTerrainVersion = 62; class ParkFileExporter { diff --git a/src/openrct2/park/ParkPreview.cpp b/src/openrct2/park/ParkPreview.cpp index 71859c5877..a8db4a16aa 100644 --- a/src/openrct2/park/ParkPreview.cpp +++ b/src/openrct2/park/ParkPreview.cpp @@ -91,7 +91,8 @@ namespace OpenRCT2 const auto* surfaceObject = surfaceElement->getSurfaceObject(); if (surfaceObject != nullptr) { - surfaceColour = paletteIndex = surfaceObject->MapColours[_tileColourIndex]; + auto mapColours = surfaceObject->getMapColours(surfaceElement->getPrimarySurfaceColour()); + surfaceColour = paletteIndex = mapColours[_tileColourIndex]; } } diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index 5d8126e1f2..411425e2ae 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -94,6 +94,12 @@ namespace OpenRCT2::RCT1 class S4Importer final : public IParkImporter { private: + struct TerrainEntryMapping + { + ObjectEntryIndex index = kObjectEntryIndexNull; + Drawing::Colour colour = Drawing::Colour::black; + }; + std::string _s4Path; S4 _s4 = {}; uint8_t _gameVersion = 0; @@ -125,8 +131,8 @@ namespace OpenRCT2::RCT1 ObjectEntryIndex _pathTypeToEntryMap[24]{}; ObjectEntryIndex _pathAdditionTypeToEntryMap[16]{}; ObjectEntryIndex _sceneryThemeTypeToEntryMap[24]{}; - ObjectEntryIndex _terrainSurfaceTypeToEntryMap[16]{}; - ObjectEntryIndex _terrainEdgeTypeToEntryMap[16]{}; + TerrainEntryMapping _terrainSurfaceTypeToEntryMap[16]{}; + TerrainEntryMapping _terrainEdgeTypeToEntryMap[16]{}; ObjectEntryIndex _footpathSurfaceTypeToEntryMap[32]{}; // Research @@ -374,8 +380,8 @@ namespace OpenRCT2::RCT1 std::fill(std::begin(_pathAdditionTypeToEntryMap), std::end(_pathAdditionTypeToEntryMap), kObjectEntryIndexNull); std::fill(std::begin(_sceneryThemeTypeToEntryMap), std::end(_sceneryThemeTypeToEntryMap), kObjectEntryIndexNull); std::fill( - std::begin(_terrainSurfaceTypeToEntryMap), std::end(_terrainSurfaceTypeToEntryMap), kObjectEntryIndexNull); - std::fill(std::begin(_terrainEdgeTypeToEntryMap), std::end(_terrainEdgeTypeToEntryMap), kObjectEntryIndexNull); + std::begin(_terrainSurfaceTypeToEntryMap), std::end(_terrainSurfaceTypeToEntryMap), TerrainEntryMapping()); + std::fill(std::begin(_terrainEdgeTypeToEntryMap), std::end(_terrainEdgeTypeToEntryMap), TerrainEntryMapping()); std::fill( std::begin(_footpathSurfaceTypeToEntryMap), std::end(_footpathSurfaceTypeToEntryMap), kObjectEntryIndexNull); } @@ -430,8 +436,7 @@ namespace OpenRCT2::RCT1 _terrainSurfaceEntries.AddRange( { "rct2.terrain_surface.grass", "rct2.terrain_surface.sand", "rct2.terrain_surface.dirt", "rct2.terrain_surface.rock", "rct2.terrain_surface.martian", "rct2.terrain_surface.chequerboard", - "rct2.terrain_surface.grass_clumps", "rct2.terrain_surface.ice", "rct2.terrain_surface.grid_red", - "rct2.terrain_surface.grid_yellow", "rct2.terrain_surface.grid_purple", "rct2.terrain_surface.grid_green", + "rct2.terrain_surface.grass_clumps", "rct2.terrain_surface.ice", "rct2.terrain_surface.grid", "rct2.terrain_surface.sand_red", "rct2.terrain_surface.sand_brown", "rct1aa.terrain_surface.roof_red", "rct1ll.terrain_surface.roof_grey", "rct1ll.terrain_surface.rust", "rct1ll.terrain_surface.wood" }); @@ -775,13 +780,13 @@ namespace OpenRCT2::RCT1 void AddEntryForTerrainSurface(ObjectEntryIndex terrainSurfaceType) { assert(terrainSurfaceType < std::size(_terrainSurfaceTypeToEntryMap)); - if (_terrainSurfaceTypeToEntryMap[terrainSurfaceType] == kObjectEntryIndexNull) + if (_terrainSurfaceTypeToEntryMap[terrainSurfaceType].index == kObjectEntryIndexNull) { - auto identifier = GetTerrainSurfaceObject(terrainSurfaceType); - if (!identifier.empty()) + auto mapping = GetTerrainSurfaceMapping(terrainSurfaceType); + if (!mapping.identifier.empty()) { - auto entryIndex = _terrainSurfaceEntries.GetOrAddEntry(identifier); - _terrainSurfaceTypeToEntryMap[terrainSurfaceType] = entryIndex; + auto entryIndex = _terrainSurfaceEntries.GetOrAddEntry(mapping.identifier); + _terrainSurfaceTypeToEntryMap[terrainSurfaceType] = { entryIndex, mapping.colour }; } } } @@ -789,13 +794,13 @@ namespace OpenRCT2::RCT1 void AddEntryForTerrainEdge(ObjectEntryIndex terrainEdgeType) { assert(terrainEdgeType < std::size(_terrainEdgeTypeToEntryMap)); - if (_terrainEdgeTypeToEntryMap[terrainEdgeType] == kObjectEntryIndexNull) + if (_terrainEdgeTypeToEntryMap[terrainEdgeType].index == kObjectEntryIndexNull) { - auto identifier = GetTerrainEdgeObject(terrainEdgeType); - if (!identifier.empty()) + auto mapping = GetTerrainEdgeMapping(terrainEdgeType); + if (!mapping.identifier.empty()) { - auto entryIndex = _terrainEdgeEntries.GetOrAddEntry(identifier); - _terrainEdgeTypeToEntryMap[terrainEdgeType] = entryIndex; + auto entryIndex = _terrainEdgeEntries.GetOrAddEntry(mapping.identifier); + _terrainEdgeTypeToEntryMap[terrainEdgeType] = { entryIndex, mapping.colour }; } } } @@ -1659,8 +1664,10 @@ namespace OpenRCT2::RCT1 auto edgeStyle = _terrainEdgeTypeToEntryMap[src2->GetEdgeStyle()]; dst2->setSlope(src2->GetSlope()); - dst2->setSurfaceObjectIndex(surfaceStyle); - dst2->setEdgeObjectIndex(edgeStyle); + dst2->setSurfaceObjectIndex(surfaceStyle.index); + dst2->setPrimarySurfaceColour(surfaceStyle.colour); + dst2->setEdgeObjectIndex(edgeStyle.index); + dst2->setPrimaryEdgeColour(edgeStyle.colour); dst2->setGrassLength(src2->GetGrassLength()); dst2->setOwnership(src2->GetOwnership()); dst2->setParkFences(src2->GetParkFences()); diff --git a/src/openrct2/rct1/Tables.cpp b/src/openrct2/rct1/Tables.cpp index 9f2d4e9c94..c22e8f8251 100644 --- a/src/openrct2/rct1/Tables.cpp +++ b/src/openrct2/rct1/Tables.cpp @@ -113,51 +113,51 @@ namespace OpenRCT2::RCT1 return map[EnumValue(rct1AnimationGroup)]; } - std::string_view GetTerrainSurfaceObject(uint8_t terrainSurface) + TerrainMapping GetTerrainSurfaceMapping(uint8_t terrainSurface) { - static constexpr std::string_view map[Limits::kNumTerrainSurfaces] = + static constexpr TerrainMapping kMap[Limits::kNumTerrainSurfaces] = { - "rct2.terrain_surface.grass", - "rct2.terrain_surface.sand", - "rct2.terrain_surface.dirt", - "rct2.terrain_surface.rock", - "rct2.terrain_surface.martian", - "rct2.terrain_surface.chequerboard", - "rct2.terrain_surface.grass_clumps", - "rct1aa.terrain_surface.roof_red", - "rct2.terrain_surface.ice", - "rct1ll.terrain_surface.wood", - "rct1ll.terrain_surface.rust", - "rct1ll.terrain_surface.roof_grey", - "rct2.terrain_surface.grid_red", - "rct2.terrain_surface.grid_yellow", - "rct2.terrain_surface.grid_purple", - "rct2.terrain_surface.grid_green", + { "rct2.terrain_surface.grass", Drawing::Colour::black }, + { "rct2.terrain_surface.sand", Drawing::Colour::black }, + { "rct2.terrain_surface.dirt", Drawing::Colour::black }, + { "rct2.terrain_surface.rock", Drawing::Colour::black }, + { "rct2.terrain_surface.martian", Drawing::Colour::black }, + { "rct2.terrain_surface.chequerboard", Drawing::Colour::black }, + { "rct2.terrain_surface.grass_clumps", Drawing::Colour::black }, + { "rct1aa.terrain_surface.roof_red", Drawing::Colour::black }, + { "rct2.terrain_surface.ice", Drawing::Colour::black }, + { "rct1ll.terrain_surface.wood", Drawing::Colour::black }, + { "rct1ll.terrain_surface.rust", Drawing::Colour::black }, + { "rct1ll.terrain_surface.roof_grey", Drawing::Colour::black }, + { "rct2.terrain_surface.grid", Drawing::Colour::brightRed }, + { "rct2.terrain_surface.grid", Drawing::Colour::yellow }, + { "rct2.terrain_surface.grid", Drawing::Colour::brightPurple }, + { "rct2.terrain_surface.grid", Drawing::Colour::brightGreen }, }; - return terrainSurface < std::size(map) ? map[terrainSurface] : map[0]; + return terrainSurface < std::size(kMap) ? kMap[terrainSurface] : kMap[0]; } - std::string_view GetTerrainEdgeObject(uint8_t terrainEdge) + TerrainMapping GetTerrainEdgeMapping(uint8_t terrainEdge) { - static constexpr std::string_view map[Limits::kNumTerrainEdges] = + static constexpr TerrainMapping kMap[Limits::kNumTerrainEdges] = { - "rct2.terrain_edge.rock", - "rct1.terrain_edge.brick", - "rct1.terrain_edge.iron", - "rct2.terrain_edge.wood_red", - "rct1aa.terrain_edge.grey", - "rct1aa.terrain_edge.yellow", - "rct2.terrain_edge.wood_black", - "rct1aa.terrain_edge.red", - "rct2.terrain_edge.ice", - "rct1ll.terrain_edge.purple", - "rct1ll.terrain_edge.green", - "rct1ll.terrain_edge.stone_brown", - "rct1ll.terrain_edge.stone_grey", - "rct1ll.terrain_edge.skyscraper_a", - "rct1ll.terrain_edge.skyscraper_b", + { "rct2.terrain_edge.rock", Drawing::Colour::black }, + { "rct1.terrain_edge.brick", Drawing::Colour::black }, + { "rct1.terrain_edge.iron", Drawing::Colour::black }, + { "rct2.terrain_edge.wood_red", Drawing::Colour::black }, + { "rct1aa.terrain_edge.grey", Drawing::Colour::black }, + { "rct1aa.terrain_edge.yellow", Drawing::Colour::black }, + { "rct2.terrain_edge.wood_black", Drawing::Colour::black }, + { "rct1aa.terrain_edge.red", Drawing::Colour::black }, + { "rct2.terrain_edge.ice", Drawing::Colour::black }, + { "rct1ll.terrain_edge.purple", Drawing::Colour::black }, + { "rct1ll.terrain_edge.green", Drawing::Colour::black }, + { "rct1ll.terrain_edge.stone_brown", Drawing::Colour::black }, + { "rct1ll.terrain_edge.stone_grey", Drawing::Colour::grey }, + { "rct1ll.terrain_edge.skyscraper_a", Drawing::Colour::black }, + { "rct1ll.terrain_edge.skyscraper_b", Drawing::Colour::black }, }; - return terrainEdge < std::size(map) ? map[terrainEdge] : map[0]; + return terrainEdge < std::size(kMap) ? kMap[terrainEdge] : kMap[0]; } uint8_t GetRideType(RideType rideType, VehicleType vehicleType) diff --git a/src/openrct2/rct1/Tables.h b/src/openrct2/rct1/Tables.h index 8970b56086..a1fc1e8e1b 100644 --- a/src/openrct2/rct1/Tables.h +++ b/src/openrct2/rct1/Tables.h @@ -20,6 +20,11 @@ namespace OpenRCT2::RCT1 { Drawing::Colour colour1, colour2, colour3; }; + struct TerrainMapping + { + std::string_view identifier; + Drawing::Colour colour; + }; enum class BannerType : uint8_t; enum class PeepAnimationGroup : uint8_t; @@ -51,8 +56,8 @@ namespace OpenRCT2::RCT1 std::string_view GetFootpathRailingsObject(uint8_t footpathRailingsType); std::string_view GetSceneryGroupObject(uint8_t sceneryGroupType); std::string_view GetWaterObject(uint8_t waterType); - std::string_view GetTerrainSurfaceObject(uint8_t terrain); - std::string_view GetTerrainEdgeObject(uint8_t terrainEdge); + TerrainMapping GetTerrainSurfaceMapping(uint8_t terrain); + TerrainMapping GetTerrainEdgeMapping(uint8_t terrainEdge); const std::vector GetSceneryObjects(uint8_t sceneryType); diff --git a/src/openrct2/rct2/RCT2.h b/src/openrct2/rct2/RCT2.h index d4097f66ed..5d1a5db7c2 100644 --- a/src/openrct2/rct2/RCT2.h +++ b/src/openrct2/rct2/RCT2.h @@ -1070,22 +1070,45 @@ namespace OpenRCT2::RCT2 const ObjectEntryDescriptor& desc, bool ideallyLoaded = false, bool isQueue = false); std::optional GetBestObjectEntryForSurface(std::string_view surface, std::string_view railings); - static constexpr std::string_view DefaultTerrainSurfaces[] = { - "rct2.terrain_surface.grass", "rct2.terrain_surface.sand", "rct2.terrain_surface.dirt", - "rct2.terrain_surface.rock", "rct2.terrain_surface.martian", "rct2.terrain_surface.chequerboard", - "rct2.terrain_surface.grass_clumps", "rct2.terrain_surface.ice", "rct2.terrain_surface.grid_red", - "rct2.terrain_surface.grid_yellow", "rct2.terrain_surface.grid_purple", "rct2.terrain_surface.grid_green", + static constexpr std::string_view kDefaultTerrainSurfaces[] = { + "rct2.terrain_surface.grass", "rct2.terrain_surface.sand", "rct2.terrain_surface.dirt", + "rct2.terrain_surface.rock", "rct2.terrain_surface.martian", "rct2.terrain_surface.chequerboard", + "rct2.terrain_surface.grass_clumps", "rct2.terrain_surface.ice", "rct2.terrain_surface.grid", + "rct2.terrain_surface.grid", "rct2.terrain_surface.grid", "rct2.terrain_surface.grid", "rct2.terrain_surface.sand_red", "rct2.terrain_surface.sand_brown", }; // Additional surface styles added to OpenRCT2 as a feature if RCT1 linked - static constexpr std::string_view OpenRCT2HybridTerrainSurfaces[] = { + static constexpr std::string_view kOpenRCT2HybridTerrainSurfaces[] = { "rct1aa.terrain_surface.roof_red", "rct1ll.terrain_surface.roof_grey", "rct1ll.terrain_surface.rust", "rct1ll.terrain_surface.wood", }; + static constexpr auto kTerrainSurfaceColours = std::to_array({ + Drawing::Colour::black, // grass + Drawing::Colour::black, // sand + Drawing::Colour::black, // dirt + Drawing::Colour::black, // rock + Drawing::Colour::black, // martian + Drawing::Colour::black, // chequerboard + Drawing::Colour::black, // grass_clumps + Drawing::Colour::black, // ice + Drawing::Colour::brightRed, // grid_red + Drawing::Colour::yellow, // grid_yellow + Drawing::Colour::brightPurple, // grid_purple + Drawing::Colour::brightGreen, // grid_green + Drawing::Colour::black, // sand_red + Drawing::Colour::black, // sand_brown + Drawing::Colour::black, // roof_red + Drawing::Colour::black, // roof_grey + Drawing::Colour::black, // rust + Drawing::Colour::black, // wood + }); + static_assert( + std::size(kTerrainSurfaceColours) == std::size(kDefaultTerrainSurfaces) + std::size(kOpenRCT2HybridTerrainSurfaces)); + static constexpr std::string_view DefaultTerrainEdges[] = { "rct2.terrain_edge.rock", "rct2.terrain_edge.wood_red", @@ -1100,6 +1123,25 @@ namespace OpenRCT2::RCT2 "rct1ll.terrain_edge.green", "rct1ll.terrain_edge.stone_brown", "rct1ll.terrain_edge.stone_grey", "rct1ll.terrain_edge.skyscraper_a", "rct1ll.terrain_edge.skyscraper_b", }; + + static constexpr auto kTerrainEdgeColours = std::to_array({ + Drawing::Colour::black, // rock + Drawing::Colour::black, // wood_red + Drawing::Colour::black, // wood_black + Drawing::Colour::black, // ice + Drawing::Colour::black, // brick + Drawing::Colour::black, // iron + Drawing::Colour::black, // white stucco + Drawing::Colour::black, // yellow stucco + Drawing::Colour::black, // red stucco + Drawing::Colour::black, // purple stucco + Drawing::Colour::black, // green stucco + Drawing::Colour::black, // brown standstone + Drawing::Colour::grey, // grey sandstone + Drawing::Colour::black, // skyscraper a + Drawing::Colour::black, // skyscraper b + }); + static_assert(std::size(kTerrainEdgeColours) == std::size(DefaultTerrainEdges) + std::size(OpenRCT2HybridTerrainEdges)); } // namespace OpenRCT2::RCT2 std::vector DecryptSea(const fs::path& path); diff --git a/src/openrct2/rct2/S6Importer.cpp b/src/openrct2/rct2/S6Importer.cpp index 8055ec9580..d20c02276c 100644 --- a/src/openrct2/rct2/S6Importer.cpp +++ b/src/openrct2/rct2/S6Importer.cpp @@ -87,6 +87,7 @@ namespace OpenRCT2::RCT2 bool _isSV7 = false; bool _isScenario = false; OpenRCT2::BitSet _isFlatRide{}; + ObjectEntryIndex _terrainSurfaceTypeToEntryMap[32]{}; ObjectEntryIndex _pathToSurfaceMap[16]; ObjectEntryIndex _pathToQueueSurfaceMap[16]; ObjectEntryIndex _pathToRailingMap[16]; @@ -623,7 +624,10 @@ namespace OpenRCT2::RCT2 void AddDefaultEntries() { // Add default surfaces - _terrainSurfaceEntries.AddRange(DefaultTerrainSurfaces); + for (size_t i = 0; i < std::size(kDefaultTerrainSurfaces); i++) + { + _terrainSurfaceTypeToEntryMap[i] = _terrainSurfaceEntries.GetOrAddEntry(kDefaultTerrainSurfaces[i]); + } // Add default edges _terrainEdgeEntries.AddRange(DefaultTerrainEdges); @@ -1334,7 +1338,7 @@ namespace OpenRCT2::RCT2 dst2->setSlope(src2->GetSlope()); - dst2->setSurfaceObjectIndex(src2->GetSurfaceStyle()); + dst2->setSurfaceObjectIndex(_terrainSurfaceTypeToEntryMap[src2->GetSurfaceStyle()]); dst2->setEdgeObjectIndex(src2->GetEdgeStyle()); dst2->setGrassLength(src2->GetGrassLength()); @@ -1342,6 +1346,8 @@ namespace OpenRCT2::RCT2 dst2->setParkFences(src2->GetParkFences()); dst2->setWaterHeight(src2->GetWaterHeight()); dst2->setHasTrackThatNeedsWater(src2->HasTrackThatNeedsWater()); + dst2->setPrimarySurfaceColour(kTerrainSurfaceColours[src2->GetSurfaceStyle()]); + dst2->setPrimaryEdgeColour(kTerrainEdgeColours[src2->GetEdgeStyle()]); break; } @@ -1915,7 +1921,7 @@ namespace OpenRCT2::RCT2 { return false; } - if (surface->GetSurfaceStyle() >= std::size(DefaultTerrainSurfaces)) + if (surface->GetSurfaceStyle() >= std::size(kDefaultTerrainSurfaces)) { return true; } @@ -1929,7 +1935,13 @@ namespace OpenRCT2::RCT2 // If an rct1 surface or edge then load all the Hybrid surfaces and edges if (hasRCT1Terrain) { - _terrainSurfaceEntries.AddRange(OpenRCT2HybridTerrainSurfaces); + const auto numRegularEntries = std::size(kDefaultTerrainSurfaces); + for (size_t i = 0; i < std::size(kOpenRCT2HybridTerrainSurfaces); i++) + { + _terrainSurfaceTypeToEntryMap[numRegularEntries + i] = _terrainSurfaceEntries.GetOrAddEntry( + kOpenRCT2HybridTerrainSurfaces[i]); + } + _terrainEdgeEntries.AddRange(OpenRCT2HybridTerrainEdges); } diff --git a/src/openrct2/ride/Vehicle.SceneryDoors.cpp b/src/openrct2/ride/Vehicle.SceneryDoors.cpp index 3d213476c5..444365c11f 100644 --- a/src/openrct2/ride/Vehicle.SceneryDoors.cpp +++ b/src/openrct2/ride/Vehicle.SceneryDoors.cpp @@ -181,7 +181,7 @@ void Vehicle::UpdateLandscapeDoors(const int32_t previousTrackHeight) const if (surfaceElement != nullptr && surfaceElement->getBaseZ() > previousTrackLocation.z) { const auto* const edgeObject = surfaceElement->getEdgeObject(); - if (edgeObject != nullptr && edgeObject->HasDoors) + if (edgeObject != nullptr && edgeObject->flags.has(TerrainEdgeFlag::hasDoors)) { AnimateLandscapeDoor( previousTrackLocation, *previousTrackElement->asTrack(), next_vehicle_on_train.IsNull(), @@ -195,7 +195,7 @@ void Vehicle::UpdateLandscapeDoors(const int32_t previousTrackHeight) const if (surfaceElement != nullptr && surfaceElement->getBaseZ() > TrackLocation.z) { const auto* const edgeObject = surfaceElement->getEdgeObject(); - if (edgeObject != nullptr && edgeObject->HasDoors) + if (edgeObject != nullptr && edgeObject->flags.has(TerrainEdgeFlag::hasDoors)) { AnimateLandscapeDoor( TrackLocation, *currentTrackElement->asTrack(), next_vehicle_on_train.IsNull(), edgeObject->doorSound, diff --git a/src/openrct2/scenes/editor/EditorController.cpp b/src/openrct2/scenes/editor/EditorController.cpp index 7cb2d77c8d..3e601e451c 100644 --- a/src/openrct2/scenes/editor/EditorController.cpp +++ b/src/openrct2/scenes/editor/EditorController.cpp @@ -81,7 +81,8 @@ namespace OpenRCT2::Editor // Reset loaded objects to just defaults // Load minimum required objects (like surface and edge) - for (const auto& entry : kMinimumRequiredObjects) + const auto& objectList = isInTrackDesignerOrManager() ? kMinimumRequiredObjectsDesigner : kMinimumRequiredObjects; + for (const auto& entry : objectList) { objectManager.LoadObject(entry); } diff --git a/src/openrct2/world/Map.cpp b/src/openrct2/world/Map.cpp index f663946c41..7b50da42c2 100644 --- a/src/openrct2/world/Map.cpp +++ b/src/openrct2/world/Map.cpp @@ -133,7 +133,7 @@ namespace OpenRCT2 _tileElementsInUse = gameState.tileElements.size(); } - static TileElement GetDefaultSurfaceElement() + static TileElement GetDefaultSurfaceElement(Drawing::Colour colour = Drawing::Colour::black) { TileElement el; el.clearAs(TileElementType::surface); @@ -147,6 +147,7 @@ namespace OpenRCT2 el.asSurface()->setParkFences(0); el.asSurface()->setSurfaceObjectIndex(0); el.asSurface()->setEdgeObjectIndex(0); + el.asSurface()->setPrimarySurfaceColour(colour); return el; } @@ -435,12 +436,12 @@ namespace OpenRCT2 * * rct2: 0x0068AB4C */ - void MapInit(const TileCoordsXY& size) + void MapInit(const TileCoordsXY& size, Drawing::Colour surfaceColour1) { auto numTiles = kMaximumMapSizeTechnical * kMaximumMapSizeTechnical; auto& gameState = getGameState(); - SetTileElements(gameState, std::vector(numTiles, GetDefaultSurfaceElement())); + SetTileElements(gameState, std::vector(numTiles, GetDefaultSurfaceElement(surfaceColour1))); gameState.grassSceneryTileLoopPosition = 0; gameState.widePathTileLoopPosition = {}; diff --git a/src/openrct2/world/Map.h b/src/openrct2/world/Map.h index af9a2b064a..95782aca19 100644 --- a/src/openrct2/world/Map.h +++ b/src/openrct2/world/Map.h @@ -61,7 +61,10 @@ namespace OpenRCT2 void UnstashMap(); std::vector GetReorganisedTileElementsWithoutGhosts(); - void MapInit(const TileCoordsXY& size); + /** + * @param surfaceColour1 Should always be Drawing::Colour::black, unless we’re in the Track Designer. + */ + void MapInit(const TileCoordsXY& size, Drawing::Colour surfaceColour1); void MapCountRemainingLandRights(); void MapStripGhostFlagFromElements(); diff --git a/src/openrct2/world/map_generator/MapGen.cpp b/src/openrct2/world/map_generator/MapGen.cpp index 83193062e9..8282ed8413 100644 --- a/src/openrct2/world/map_generator/MapGen.cpp +++ b/src/openrct2/world/map_generator/MapGen.cpp @@ -55,7 +55,7 @@ namespace OpenRCT2::World::MapGenerator void resetSurfaces(Settings* settings) { MapClearAllElements(); - MapInit(settings->mapSize); + MapInit(settings->mapSize, Drawing::Colour::black); const auto surfaceTextureId = generateSurfaceTextureId(settings); const auto edgeTextureId = generateEdgeTextureId(settings, surfaceTextureId); @@ -69,6 +69,8 @@ namespace OpenRCT2::World::MapGenerator { surfaceElement->setSurfaceObjectIndex(surfaceTextureId); surfaceElement->setEdgeObjectIndex(edgeTextureId); + surfaceElement->setPrimarySurfaceColour(settings->surfaceColour1); + surfaceElement->setPrimaryEdgeColour(settings->edgeColour1); surfaceElement->baseHeight = settings->heightmapLow; surfaceElement->clearanceHeight = settings->heightmapLow; } diff --git a/src/openrct2/world/map_generator/MapGen.h b/src/openrct2/world/map_generator/MapGen.h index 88474c88f5..5451c2e650 100644 --- a/src/openrct2/world/map_generator/MapGen.h +++ b/src/openrct2/world/map_generator/MapGen.h @@ -9,8 +9,14 @@ #pragma once +#include "../../drawing/Colour.h" #include "../Location.hpp" +namespace OpenRCT2::Drawing +{ + enum class Colour : uint8_t; +} + namespace OpenRCT2::World::MapGenerator { enum class Algorithm : uint8_t @@ -27,7 +33,9 @@ namespace OpenRCT2::World::MapGenerator TileCoordsXY mapSize{ 150, 150 }; int32_t waterLevel = 6; int32_t landTexture = 0; + Drawing::Colour surfaceColour1 = Drawing::Colour::black; int32_t edgeTexture = 0; + Drawing::Colour edgeColour1 = Drawing::Colour::black; int32_t heightmapLow = 14; int32_t heightmapHigh = 60; bool smoothTileEdges = true; diff --git a/src/openrct2/world/map_generator/PngTerrainGenerator.cpp b/src/openrct2/world/map_generator/PngTerrainGenerator.cpp index 583eb60018..73eb50e9cb 100644 --- a/src/openrct2/world/map_generator/PngTerrainGenerator.cpp +++ b/src/openrct2/world/map_generator/PngTerrainGenerator.cpp @@ -161,7 +161,7 @@ namespace OpenRCT2::World::MapGenerator // The x and y axis are flipped in the world, so this uses y for x and x for y. TileCoordsXY flippedMapSize{ mapHeight, mapWidth }; - MapInit(flippedMapSize); + MapInit(flippedMapSize, Drawing::Colour::black); if (settings->smooth_height_map) { diff --git a/src/openrct2/world/tile_element/SurfaceElement.cpp b/src/openrct2/world/tile_element/SurfaceElement.cpp index 3ca83e5f5e..efeef4d7f0 100644 --- a/src/openrct2/world/tile_element/SurfaceElement.cpp +++ b/src/openrct2/world/tile_element/SurfaceElement.cpp @@ -241,4 +241,26 @@ namespace OpenRCT2 if (on) type |= SURFACE_ELEMENT_HAS_TRACK_THAT_NEEDS_WATER; } + + Drawing::Colour SurfaceElement::getPrimarySurfaceColour() const + { + return surfaceColour1; + } + + void SurfaceElement::setPrimarySurfaceColour(Drawing::Colour newColour) + { + newColour = (newColour == Drawing::Colour::invisible) ? Drawing::Colour::black : clampColour(newColour); + surfaceColour1 = newColour; + } + + Drawing::Colour SurfaceElement::getPrimaryEdgeColour() const + { + return edgeColour1; + } + + void SurfaceElement::setPrimaryEdgeColour(Drawing::Colour newColour) + { + newColour = (newColour == Drawing::Colour::invisible) ? Drawing::Colour::black : clampColour(newColour); + edgeColour1 = newColour; + } } // namespace OpenRCT2 diff --git a/src/openrct2/world/tile_element/SurfaceElement.h b/src/openrct2/world/tile_element/SurfaceElement.h index bcca6b6545..066181e0e5 100644 --- a/src/openrct2/world/tile_element/SurfaceElement.h +++ b/src/openrct2/world/tile_element/SurfaceElement.h @@ -15,6 +15,11 @@ namespace OpenRCT2 { + namespace Drawing + { + enum class Colour : uint8_t; + } + enum { SURFACE_ELEMENT_HAS_TRACK_THAT_NEEDS_WATER = (1 << 6), @@ -49,9 +54,11 @@ namespace OpenRCT2 uint8_t ownership; uint8_t surfaceStyle; uint8_t edgeObjectIndex; + Drawing::Colour surfaceColour1; + Drawing::Colour edgeColour1; #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunused-private-field" - uint8_t pad0B[5]; + uint8_t pad0D[3]; #pragma clang diagnostic pop public: @@ -84,6 +91,12 @@ namespace OpenRCT2 bool hasTrackThatNeedsWater() const; void setHasTrackThatNeedsWater(bool on); + + Drawing::Colour getPrimarySurfaceColour() const; + void setPrimarySurfaceColour(Drawing::Colour newColour); + + Drawing::Colour getPrimaryEdgeColour() const; + void setPrimaryEdgeColour(Drawing::Colour newColour); }; static_assert(sizeof(SurfaceElement) == kTileElementSize); #pragma pack(pop) diff --git a/test/tests/Pathfinding.cpp b/test/tests/Pathfinding.cpp index 98931b6664..c61f079f9a 100644 --- a/test/tests/Pathfinding.cpp +++ b/test/tests/Pathfinding.cpp @@ -133,13 +133,13 @@ protected: static testing::AssertionResult AssertIsStartPosition(const char*, const TileCoordsXYZ& location) { - const uint32_t expectedSurfaceStyle = 11u; - const uint32_t style = MapGetSurfaceElementAt(location.toCoordsXYZ())->getSurfaceObjectIndex(); + const auto expectedSurfaceColour = EnumValue(Drawing::Colour::brightGreen); + const auto colour = EnumValue(MapGetSurfaceElementAt(location.toCoordsXYZ())->getPrimarySurfaceColour()); - if (style != expectedSurfaceStyle) + if (colour != expectedSurfaceColour) return testing::AssertionFailure() - << "Start location " << location << " should have surface style " << expectedSurfaceStyle - << " but actually has style " << style + << "Start location " << location << " should have surface colour " << expectedSurfaceColour + << " but actually has style " << colour << ". Either the test map is not set up correctly, or you got the coordinates wrong."; return testing::AssertionSuccess(); @@ -147,14 +147,13 @@ protected: static testing::AssertionResult AssertIsNotForbiddenPosition(const char*, const TileCoordsXYZ& location) { - const uint32_t forbiddenSurfaceStyle = 8u; + const uint32_t forbiddenSurfaceColour = EnumValue(Drawing::Colour::brightRed); + const auto colour = EnumValue(MapGetSurfaceElementAt(location.toCoordsXYZ())->getPrimarySurfaceColour()); - const uint32_t style = MapGetSurfaceElementAt(location.toCoordsXYZ())->getSurfaceObjectIndex(); - - if (style == forbiddenSurfaceStyle) + if (colour == forbiddenSurfaceColour) return testing::AssertionFailure() - << "Path traversed location " << location << ", but it is marked as a forbidden location (surface style " - << forbiddenSurfaceStyle << "). Either the map is set up incorrectly, or the pathfinder went the wrong way."; + << "Path traversed location " << location << ", but it is marked as a forbidden location (surface colour " + << forbiddenSurfaceColour << "). Either the map is set up incorrectly, or the pathfinder went the wrong way."; return testing::AssertionSuccess(); } From e2d9cbf2f3d3069fd41423f95446d8cbaed5b6fd Mon Sep 17 00:00:00 2001 From: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com> Date: Sun, 27 Sep 2026 20:52:51 +0200 Subject: [PATCH 104/142] Bump network version for terrain recolouring --- src/openrct2/network/NetworkBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/network/NetworkBase.cpp b/src/openrct2/network/NetworkBase.cpp index 71cac9e7d7..c37757486d 100644 --- a/src/openrct2/network/NetworkBase.cpp +++ b/src/openrct2/network/NetworkBase.cpp @@ -47,7 +47,7 @@ // It is used for making sure only compatible builds get connected, even within // single OpenRCT2 version. -constexpr uint8_t kStreamVersion = 0; +constexpr uint8_t kStreamVersion = 1; const std::string kStreamID = std::string(kOpenRCT2Version) + "-" + std::to_string(kStreamVersion); From 75ffdd23a10e6d132457b12685c570a98d8cf10c Mon Sep 17 00:00:00 2001 From: mix <167040362+mixiate@users.noreply.github.com> Date: Sun, 27 Sep 2026 21:21:20 +0100 Subject: [PATCH 105/142] Fix blue chains with UpdatePaletteEffects in CommandLineForScreenshot (#27212) --- distribution/changelog.txt | 1 + src/openrct2/interface/Screenshot.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 7de521c26f..946b8c76c9 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -34,6 +34,7 @@ - Fix: [#27133] [Plugin] Dropdown and spinner are not fully hidden with isVisible on creation. - Fix: [#27134] Viewing track designs may cause network desyncs. - Fix: [#27136] Guests keep waiting at a level crossing after the train has passed, due to faulty iteration over the track the train has vacated. +- Fix: [#27212] Chain lifts are blue in screenshots taken from the command line. 0.5.5 (2026-09-06) ------------------------------------------------------------------------ diff --git a/src/openrct2/interface/Screenshot.cpp b/src/openrct2/interface/Screenshot.cpp index 89f733c0ee..19ecb0ccf5 100644 --- a/src/openrct2/interface/Screenshot.cpp +++ b/src/openrct2/interface/Screenshot.cpp @@ -563,6 +563,7 @@ int32_t CommandLineForScreenshot(const char** argv, int32_t argc, ScreenshotOpti rt = CreateRT(viewport); + UpdatePaletteEffects(); RenderViewport(nullptr, viewport, rt); WriteRTToFile(outputPath, rt, gPalette); } From e93160cebbfc835c4992ab885305ed1278f92e46 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com> Date: Tue, 29 Sep 2026 13:02:25 +0200 Subject: [PATCH 106/142] Close #22933: Provide a way to toggle between short and long base flat-to-steep (#27182) --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/RideConstruction.cpp | 109 +++++++++++------- .../rtd/coaster/ClassicStandUpRollerCoaster.h | 2 +- .../ride/rtd/coaster/CorkscrewRollerCoaster.h | 2 +- src/openrct2/ride/rtd/coaster/GigaCoaster.h | 2 +- src/openrct2/ride/rtd/coaster/Hypercoaster.h | 2 +- .../ride/rtd/coaster/InvertedRollerCoaster.h | 2 +- .../rtd/coaster/LSMLaunchedRollerCoaster.h | 2 +- .../ride/rtd/coaster/StandUpRollerCoaster.h | 2 +- .../ride/rtd/coaster/TwisterRollerCoaster.h | 2 +- 10 files changed, 76 insertions(+), 50 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 946b8c76c9..ea0301a1fb 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -4,6 +4,7 @@ - Feature: [#27153] [Plugin] Add `guestsEntertained` to `Entertainer` interface. - Feature: [objects#447] Track designer grid can now be used outside the Track Designer. - Improved: [#21400] The selector for setting staff patrol areas is now drawn on the water as well as on the surface under water. +- Improved: [#22933] You can now toggle between long and short base flat-to-steep pieces if the ride has both available. - Improved: [#26947] Rain is now drawn next to the bottom info panels (in RCT2 style). - Improved: [#27097] On Linux, Flatpak Steam RCTC/RCT2 paths are now auto-detected. - Improved: [#27110] The option to automatically open shops after construction now also closes them before construction. diff --git a/src/openrct2-ui/windows/RideConstruction.cpp b/src/openrct2-ui/windows/RideConstruction.cpp index 1fb7511be5..7d02a74e30 100644 --- a/src/openrct2-ui/windows/RideConstruction.cpp +++ b/src/openrct2-ui/windows/RideConstruction.cpp @@ -210,6 +210,8 @@ namespace OpenRCT2::Ui::Windows static StringId _trackPlaceErrorMessage; static bool _autoRotatingShop; static bool _gotoStartPlacementMode = false; + // Allows toggling between variations of the same element. Currently used for long vs. short base flat-to-steep pieces. + static bool _alternateClick = false; static constexpr StringId kSeatAngleRotationStrings[] = { STR_RIDE_CONSTRUCTION_SEAT_ROTATION_ANGLE_NEG_180, STR_RIDE_CONSTRUCTION_SEAT_ROTATION_ANGLE_NEG_135, @@ -290,6 +292,7 @@ namespace OpenRCT2::Ui::Windows _autoRotatingShop = true; _trackPlaceCtrlState = false; _trackPlaceShiftState = false; + _alternateClick = false; UpdateTrackPieceWidgets(); } @@ -1288,6 +1291,12 @@ namespace OpenRCT2::Ui::Windows } } + // If this button was already active, toggle the state + if (widgets[widgetIndex].flags.has(WidgetFlag::isPressed)) + _alternateClick = !_alternateClick; + else + _alternateClick = false; + UpdateLiftHillSelected(TrackPitch::down60); break; case WIDX_SLOPE_DOWN: @@ -1299,6 +1308,12 @@ namespace OpenRCT2::Ui::Windows UpdateLiftHillSelected(TrackPitch::down25); break; case WIDX_LEVEL: + // If this button was already active, toggle the state + if (widgets[widgetIndex].flags.has(WidgetFlag::isPressed)) + _alternateClick = !_alternateClick; + else + _alternateClick = false; + RideConstructionInvalidateCurrentTrack(); if (_rideConstructionState == RideConstructionState::front && _previousTrackPitchEnd == TrackPitch::down25) { @@ -1417,6 +1432,12 @@ namespace OpenRCT2::Ui::Windows } } + // If this button was already active, toggle the state + if (widgets[widgetIndex].flags.has(WidgetFlag::isPressed)) + _alternateClick = !_alternateClick; + else + _alternateClick = false; + UpdateLiftHillSelected(TrackPitch::up60); break; case WIDX_SLOPE_UP_VERTICAL: @@ -4786,6 +4807,40 @@ namespace OpenRCT2::Ui::Windows } } + static TrackElemType shortBaseToLongBaseOrthogonal(TrackElemType trackType) + { + switch (trackType) + { + case TrackElemType::flatToUp60: + return TrackElemType::flatToUp60LongBase; + case TrackElemType::up60ToFlat: + return TrackElemType::up60ToFlatLongBase; + case TrackElemType::flatToDown60: + return TrackElemType::flatToDown60LongBase; + case TrackElemType::down60ToFlat: + return TrackElemType::down60ToFlatLongBase; + default: + return trackType; + } + } + + static TrackElemType shortBaseToLongBaseDiagonal(TrackElemType trackType) + { + switch (trackType) + { + case TrackElemType::diagFlatToUp60: + return TrackElemType::diagFlatToUp60LongBase; + case TrackElemType::diagUp60ToFlat: + return TrackElemType::diagUp60ToFlatLongBase; + case TrackElemType::diagFlatToDown60: + return TrackElemType::diagFlatToDown60LongBase; + case TrackElemType::diagDown60ToFlat: + return TrackElemType::diagDown60ToFlatLongBase; + default: + return trackType; + } + } + /** * rct2: 0x006CA2DF * @@ -4834,52 +4889,22 @@ namespace OpenRCT2::Ui::Windows if (IsTrackEnabled(TrackGroup::slopeSteepLong)) { - switch (trackType) - { - case TrackElemType::flatToUp60: - trackType = TrackElemType::flatToUp60LongBase; - break; + // This allows toggling between short and long base + const auto shortBaseSupported = IsTrackEnabled(TrackGroup::flatToSteepSlope); + const auto useShortBase = shortBaseSupported && _alternateClick; - case TrackElemType::up60ToFlat: - trackType = TrackElemType::up60ToFlatLongBase; - break; - - case TrackElemType::flatToDown60: - trackType = TrackElemType::flatToDown60LongBase; - break; - - case TrackElemType::down60ToFlat: - trackType = TrackElemType::down60ToFlatLongBase; - break; - - default: - break; - } + if (!useShortBase) + trackType = shortBaseToLongBaseOrthogonal(trackType); } if (IsTrackEnabled(TrackGroup::diagSlopeSteepLong)) { - switch (trackType) - { - case TrackElemType::diagFlatToUp60: - trackType = TrackElemType::diagFlatToUp60LongBase; - break; + // This allows toggling between short and long base + const auto shortBaseSupported = IsTrackEnabled(TrackGroup::flatToSteepSlope); + const auto useShortBase = shortBaseSupported && _alternateClick; - case TrackElemType::diagUp60ToFlat: - trackType = TrackElemType::diagUp60ToFlatLongBase; - break; - - case TrackElemType::diagFlatToDown60: - trackType = TrackElemType::diagFlatToDown60LongBase; - break; - - case TrackElemType::diagDown60ToFlat: - trackType = TrackElemType::diagDown60ToFlatLongBase; - break; - - default: - break; - } + if (!useShortBase) + trackType = shortBaseToLongBaseDiagonal(trackType); } const auto& rtd = ride->getRideTypeDescriptor(); @@ -4987,8 +5012,8 @@ namespace OpenRCT2::Ui::Windows if (_currentTrackSelectionFlags.has(TrackSelectionFlag::track)) { RideId rideIndex; - int32_t direction; - TrackElemType type; + int32_t direction{}; + TrackElemType type{}; SelectedLiftAndInverted liftHillAndAlternativeState{}; CoordsXYZ trackPos; if (WindowRideConstructionUpdateState( diff --git a/src/openrct2/ride/rtd/coaster/ClassicStandUpRollerCoaster.h b/src/openrct2/ride/rtd/coaster/ClassicStandUpRollerCoaster.h index 845fc9d794..8c056e42ab 100644 --- a/src/openrct2/ride/rtd/coaster/ClassicStandUpRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/ClassicStandUpRollerCoaster.h @@ -25,7 +25,7 @@ constexpr RideTypeDescriptor kClassicStandUpRollerCoasterRTD = .trackStyle = TrackStyle::classicStandUpRollerCoaster, .supportType = MetalSupportType::tubes, .enabledTrackGroups = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes, TrackGroup::slopeSteepLong, TrackGroup::slopeCurveLarge, TrackGroup::corkscrewLarge, TrackGroup::halfLoopMedium, TrackGroup::halfLoopLarge, TrackGroup::diagSlope, TrackGroup::diagSlopeSteepUp, TrackGroup::diagSlopeSteepDown, TrackGroup::helixUpUnbankedQuarter, TrackGroup::helixDownUnbankedQuarter }, - .extraTrackGroups = {TrackGroup::slopeVertical, TrackGroup::slopeCurveSteep, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::barrelRoll, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge}, + .extraTrackGroups = {TrackGroup::slopeVertical, TrackGroup::slopeCurveSteep, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::barrelRoll, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge, TrackGroup::flatToSteepSlope}, }), .InvertedTrackPaintFunctions = {}, .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | diff --git a/src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h b/src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h index ca5661e455..4276cd9ccf 100644 --- a/src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h @@ -25,7 +25,7 @@ constexpr RideTypeDescriptor kCorkscrewRollerCoasterRTD = .trackStyle = TrackStyle::corkscrewRollerCoaster, .supportType = MetalSupportType::tubes, .enabledTrackGroups = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes,TrackGroup::booster, TrackGroup::slopeSteepLong, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes, TrackGroup::slopeRollBanking, TrackGroup::slopeCurveBanked, TrackGroup::slopeCurveLarge, TrackGroup::corkscrewLarge, TrackGroup::halfLoopMedium, TrackGroup::halfLoopLarge, TrackGroup::diagSlopeSteepLong, TrackGroup::diagSlope, TrackGroup::diagSlopeSteepUp, TrackGroup::diagSlopeSteepDown, TrackGroup::helixUpUnbankedQuarter, TrackGroup::helixDownUnbankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::helixDownBankedQuarter }, - .extraTrackGroups = {TrackGroup::twist, TrackGroup::slopeVertical, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::barrelRoll, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge, TrackGroup::diveLoop}, + .extraTrackGroups = {TrackGroup::twist, TrackGroup::slopeVertical, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::barrelRoll, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge, TrackGroup::diveLoop, TrackGroup::flatToSteepSlope}, }), .InvertedTrackPaintFunctions = {}, .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | diff --git a/src/openrct2/ride/rtd/coaster/GigaCoaster.h b/src/openrct2/ride/rtd/coaster/GigaCoaster.h index a1e1ffc508..13dfda701d 100644 --- a/src/openrct2/ride/rtd/coaster/GigaCoaster.h +++ b/src/openrct2/ride/rtd/coaster/GigaCoaster.h @@ -25,7 +25,7 @@ constexpr RideTypeDescriptor kGigaCoasterRTD = .trackStyle = TrackStyle::latticeTriangle, .supportType = MetalSupportType::tubes, .enabledTrackGroups = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::slopeSteepLong, TrackGroup::liftHillCable, TrackGroup::slopeCurveBanked, TrackGroup::slopeCurveLarge, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes, TrackGroup::slopeVertical, TrackGroup::curveVertical, TrackGroup::diagSlopeSteepLong, TrackGroup::diagSlope, TrackGroup::diagSlopeSteepUp, TrackGroup::diagSlopeSteepDown, TrackGroup::helixUpUnbankedQuarter, TrackGroup::helixDownUnbankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::helixDownBankedQuarter }, - .extraTrackGroups = {TrackGroup::barrelRoll, TrackGroup::quarterLoop, TrackGroup::halfLoop, TrackGroup::halfLoopMedium, TrackGroup::halfLoopLarge, TrackGroup::verticalLoop, TrackGroup::corkscrew, TrackGroup::corkscrewLarge, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge, TrackGroup::booster, TrackGroup::diagBooster, TrackGroup::diveLoop, TrackGroup::poweredLift}, + .extraTrackGroups = {TrackGroup::barrelRoll, TrackGroup::quarterLoop, TrackGroup::halfLoop, TrackGroup::halfLoopMedium, TrackGroup::halfLoopLarge, TrackGroup::verticalLoop, TrackGroup::corkscrew, TrackGroup::corkscrewLarge, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge, TrackGroup::booster, TrackGroup::diagBooster, TrackGroup::diveLoop, TrackGroup::poweredLift, TrackGroup::flatToSteepSlope}, }), .InvertedTrackPaintFunctions = {}, .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | diff --git a/src/openrct2/ride/rtd/coaster/Hypercoaster.h b/src/openrct2/ride/rtd/coaster/Hypercoaster.h index 6582e1c17e..deb8f1f7d0 100644 --- a/src/openrct2/ride/rtd/coaster/Hypercoaster.h +++ b/src/openrct2/ride/rtd/coaster/Hypercoaster.h @@ -25,7 +25,7 @@ constexpr RideTypeDescriptor kHypercoasterRTD = .trackStyle = TrackStyle::corkscrewRollerCoaster, .supportType = MetalSupportType::tubes, .enabledTrackGroups = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeSteepLong, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes, TrackGroup::slopeRollBanking, TrackGroup::slopeCurveBanked, TrackGroup::slopeCurveLarge, TrackGroup::diagSlopeSteepLong, TrackGroup::diagSlope, TrackGroup::diagSlopeSteepUp, TrackGroup::diagSlopeSteepDown, TrackGroup::helixUpUnbankedQuarter, TrackGroup::helixDownUnbankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::helixDownBankedQuarter }, - .extraTrackGroups = { TrackGroup::verticalLoop, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::booster, TrackGroup::corkscrewLarge, TrackGroup::halfLoopMedium, TrackGroup::halfLoopLarge, TrackGroup::twist, TrackGroup::slopeVertical, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::barrelRoll, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge, TrackGroup::diveLoop }, + .extraTrackGroups = { TrackGroup::verticalLoop, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::booster, TrackGroup::corkscrewLarge, TrackGroup::halfLoopMedium, TrackGroup::halfLoopLarge, TrackGroup::twist, TrackGroup::slopeVertical, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::barrelRoll, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge, TrackGroup::diveLoop, TrackGroup::flatToSteepSlope }, }), .InvertedTrackPaintFunctions = {}, .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | diff --git a/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h b/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h index e7b0e307d4..4d73ddcda3 100644 --- a/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h @@ -25,7 +25,7 @@ constexpr RideTypeDescriptor kInvertedRollerCoasterRTD = .trackStyle = TrackStyle::invertedRollerCoaster, .supportType = MetalSupportType::boxed, .enabledTrackGroups = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::twist, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::halfLoopLarge, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes, TrackGroup::diagSlope, TrackGroup::diagSlopeSteepUp, TrackGroup::diagSlopeSteepDown, TrackGroup::halfLoopMedium, TrackGroup::corkscrewLarge, TrackGroup::diveLoop, TrackGroup::slopeSteepLong, TrackGroup::slopeVertical, TrackGroup::curveVertical,TrackGroup::quarterLoop, TrackGroup::diagSlopeSteepLong, TrackGroup::slopeCurveBanked, TrackGroup::slopeRollBanking,TrackGroup::slopeCurveLarge, TrackGroup::slopeCurveLargeBanked, TrackGroup::helixUpUnbankedQuarter, TrackGroup::helixDownUnbankedQuarter }, - .extraTrackGroups = { TrackGroup::booster, TrackGroup::barrelRoll, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge }, + .extraTrackGroups = { TrackGroup::booster, TrackGroup::barrelRoll, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge, TrackGroup::flatToSteepSlope }, }), .InvertedTrackPaintFunctions = {}, .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | diff --git a/src/openrct2/ride/rtd/coaster/LSMLaunchedRollerCoaster.h b/src/openrct2/ride/rtd/coaster/LSMLaunchedRollerCoaster.h index 5e0cd4df4e..6b477e99c6 100644 --- a/src/openrct2/ride/rtd/coaster/LSMLaunchedRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/LSMLaunchedRollerCoaster.h @@ -25,7 +25,7 @@ constexpr RideTypeDescriptor kLSMLaunchedRollerCoasterRTD = .trackStyle = TrackStyle::latticeTriangleAlt, .supportType = MetalSupportType::tubes, .enabledTrackGroups = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::slopeSteepLong, TrackGroup::slopeCurveBanked, TrackGroup::slopeCurveLarge, TrackGroup::slopeCurveLargeBanked, TrackGroup::booster, TrackGroup::diagBooster, TrackGroup::poweredLift, TrackGroup::slopeVertical, TrackGroup::curveVertical, TrackGroup::barrelRoll, TrackGroup::quarterLoop, TrackGroup::halfLoop, TrackGroup::halfLoopMedium, TrackGroup::halfLoopLarge, TrackGroup::verticalLoop, TrackGroup::corkscrew, TrackGroup::corkscrewLarge, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge, TrackGroup::diagSlopeSteepLong, TrackGroup::diveLoop, TrackGroup::diagSlope, TrackGroup::diagSlopeSteepUp, TrackGroup::diagSlopeSteepDown, TrackGroup::helixUpUnbankedQuarter, TrackGroup::helixDownUnbankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::helixDownBankedQuarter }, - .extraTrackGroups = {TrackGroup::liftHill, TrackGroup::liftHillCable}, + .extraTrackGroups = {TrackGroup::liftHill, TrackGroup::liftHillCable, TrackGroup::flatToSteepSlope}, }), .InvertedTrackPaintFunctions = {}, .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | diff --git a/src/openrct2/ride/rtd/coaster/StandUpRollerCoaster.h b/src/openrct2/ride/rtd/coaster/StandUpRollerCoaster.h index db13f54e2e..72a12e305e 100644 --- a/src/openrct2/ride/rtd/coaster/StandUpRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/StandUpRollerCoaster.h @@ -25,7 +25,7 @@ constexpr RideTypeDescriptor kStandUpRollerCoasterRTD = .trackStyle = TrackStyle::standUpRollerCoaster, .supportType = MetalSupportType::tubes, .enabledTrackGroups = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes, TrackGroup::slopeSteepLong, TrackGroup::slopeRollBanking, TrackGroup::slopeCurveBanked, TrackGroup::slopeCurveLarge, TrackGroup::corkscrewLarge, TrackGroup::halfLoopMedium, TrackGroup::halfLoopLarge, TrackGroup::diagSlope, TrackGroup::diagSlopeSteepUp, TrackGroup::diagSlopeSteepDown, TrackGroup::helixUpUnbankedQuarter, TrackGroup::helixDownUnbankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::helixDownBankedQuarter }, - .extraTrackGroups = {TrackGroup::slopeVertical, TrackGroup::slopeCurveSteep, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::barrelRoll, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge}, + .extraTrackGroups = {TrackGroup::slopeVertical, TrackGroup::slopeCurveSteep, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::barrelRoll, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge, TrackGroup::flatToSteepSlope}, }), .InvertedTrackPaintFunctions = {}, .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | diff --git a/src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h b/src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h index 85e279ead3..55da349368 100644 --- a/src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h @@ -26,7 +26,7 @@ constexpr RideTypeDescriptor kTwisterRollerCoasterRTD = .trackStyle = TrackStyle::twisterRollerCoaster, .supportType = MetalSupportType::tubes, .enabledTrackGroups = { TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeVertical, TrackGroup::barrelRoll, TrackGroup::poweredLift, TrackGroup::halfLoopLarge, TrackGroup::slopeCurveBanked, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::slopeSteepLong, TrackGroup::curveVertical, TrackGroup::quarterLoop, TrackGroup::booster, TrackGroup::twist, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes, TrackGroup::slopeCurveLarge, TrackGroup::corkscrewLarge, TrackGroup::halfLoopMedium, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge, TrackGroup::diagSlopeSteepLong, TrackGroup::diveLoop, TrackGroup::diagSlope, TrackGroup::diagSlopeSteepUp, TrackGroup::diagSlopeSteepDown, TrackGroup::helixUpUnbankedQuarter, TrackGroup::helixDownUnbankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::helixDownBankedQuarter }, - .extraTrackGroups = {TrackGroup::liftHillSteep, TrackGroup::brakeForDrop}, + .extraTrackGroups = {TrackGroup::liftHillSteep, TrackGroup::brakeForDrop, TrackGroup::flatToSteepSlope}, }), .InvertedTrackPaintFunctions = {}, .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | From 5efce335827efc3835064f20f24f834149a6d24f Mon Sep 17 00:00:00 2001 From: RayKoopa <9631152+RayKoopa@users.noreply.github.com> Date: Tue, 29 Sep 2026 16:43:08 +0200 Subject: [PATCH 107/142] Increase tile inspector coordinate widget widths to fit coordinate 1000 (#27218) --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/TileInspector.cpp | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index ea0301a1fb..0c599b091a 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -36,6 +36,7 @@ - Fix: [#27134] Viewing track designs may cause network desyncs. - Fix: [#27136] Guests keep waiting at a level crossing after the train has passed, due to faulty iteration over the track the train has vacated. - Fix: [#27212] Chain lifts are blue in screenshots taken from the command line. +- Fix: [#27218] Tile inspector coordinate spinners are too short for coordinate 1000. 0.5.5 (2026-09-06) ------------------------------------------------------------------------ diff --git a/src/openrct2-ui/windows/TileInspector.cpp b/src/openrct2-ui/windows/TileInspector.cpp index d3e58371eb..9d870bce87 100644 --- a/src/openrct2-ui/windows/TileInspector.cpp +++ b/src/openrct2-ui/windows/TileInspector.cpp @@ -278,9 +278,9 @@ namespace OpenRCT2::Ui::Windows makeWidget({3, 57}, {kWindowSize.width - 6, kWindowSize.height - kBottomPadding - 58}, WidgetType::scroll, WindowColour::secondary, SCROLL_VERTICAL), /* Element list */ /* X and Y spinners */ makeWidget ({ 4, 24}, {38, 12}, WidgetType::label, WindowColour::secondary, STR_TILE_INSPECTOR_X_LABEL), - makeHoldableSpinnerWidgets({20, 23}, {51, 14}, WidgetType::spinner, WindowColour::secondary), /* Spinner X (3 widgets) */ - makeWidget ({74, 24}, {38, 12}, WidgetType::label, WindowColour::secondary, STR_TILE_INSPECTOR_Y_LABEL), - makeHoldableSpinnerWidgets({90, 23}, {51, 14}, WidgetType::spinner, WindowColour::secondary), /* Spinner Y (3 widgets) */ + makeHoldableSpinnerWidgets({20, 23}, {58, 14}, WidgetType::spinner, WindowColour::secondary), /* Spinner X (3 widgets) */ + makeWidget ({81, 24}, {38, 12}, WidgetType::label, WindowColour::secondary, STR_TILE_INSPECTOR_Y_LABEL), + makeHoldableSpinnerWidgets({97, 23}, {58, 14}, WidgetType::spinner, WindowColour::secondary), /* Spinner Y (3 widgets) */ /* Top buttons */ makeWidget(kToolbarButtonAnchor + kToolbarButtonOffsetX * 0, kToolbarButtonSize, WidgetType::flatBtn, WindowColour::secondary, ImageId(SPR_DEMOLISH), STR_REMOVE_SELECTED_ELEMENT_TIP ), /* Remove button */ makeWidget(kToolbarButtonAnchor + kToolbarButtonOffsetX * 1, kToolbarButtonHalfSize, WidgetType::button, WindowColour::secondary, STR_UP, STR_MOVE_SELECTED_ELEMENT_UP_TIP), /* Move up */ @@ -1046,18 +1046,18 @@ namespace OpenRCT2::Ui::Windows auto ft = Formatter(); ft.Add(tileCoords.x); drawText( - rt, screenCoords + ScreenCoordsXY{ 43, yOffset }, STR_FORMAT_INTEGER, ft, + rt, screenCoords + ScreenCoordsXY{ 50, yOffset }, STR_FORMAT_INTEGER, ft, { colours[1], TextAlignment::right }); ft = Formatter(); ft.Add(tileCoords.y); drawText( - rt, screenCoords + ScreenCoordsXY{ 113, yOffset }, STR_FORMAT_INTEGER, ft, + rt, screenCoords + ScreenCoordsXY{ 127, yOffset }, STR_FORMAT_INTEGER, ft, { colours[1], TextAlignment::right }); } else { - drawText(rt, screenCoords + ScreenCoordsXY(43 - 7, yOffset), "-", { colours[1] }); - drawText(rt, screenCoords + ScreenCoordsXY(113 - 7, yOffset), "-", { colours[1] }); + drawText(rt, screenCoords + ScreenCoordsXY(50 - 7, yOffset), "-", { colours[1] }); + drawText(rt, screenCoords + ScreenCoordsXY(127 - 7, yOffset), "-", { colours[1] }); } if (windowTileInspectorSelectedIndex != -1) From f3b5edf82365d4102e0282a951c54acca43c2e96 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Tue, 29 Sep 2026 19:25:50 +0200 Subject: [PATCH 108/142] Fix news ticker showing up when toolbars are hidden (#27217) --- src/openrct2-ui/windows/NewsTicker.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/openrct2-ui/windows/NewsTicker.cpp b/src/openrct2-ui/windows/NewsTicker.cpp index d2b45655c9..3a33d69ad2 100644 --- a/src/openrct2-ui/windows/NewsTicker.cpp +++ b/src/openrct2-ui/windows/NewsTicker.cpp @@ -274,6 +274,10 @@ namespace OpenRCT2::Ui::Windows if (sceneMgr->getActiveScene() != sceneMgr->getGameScene()) return nullptr; + auto* windowMgr = GetWindowManager(); + if (windowMgr->FindByClass(WindowClass::topToolbar) == nullptr) + return nullptr; + // TODO: query ParkInfoPanel, DateInfoPanel constexpr auto kPanelWidth = 142; @@ -285,7 +289,6 @@ namespace OpenRCT2::Ui::Windows uint32_t lineHeight = FontGetLineHeight(FontStyle::medium); int32_t toolbarHeight = lineHeight * 2 + 12; - auto* windowMgr = GetWindowManager(); auto* window = windowMgr->Create( WindowClass::newsTicker, ScreenCoordsXY(kPanelWidth, ContextGetHeight() - toolbarHeight), { toolbarWidth, toolbarHeight }, From 2b91ae8641e1d866d23f89c3c999bb6dfd251de3 Mon Sep 17 00:00:00 2001 From: ZeeMaji <42477864+ZeeMaji@users.noreply.github.com> Date: Wed, 30 Sep 2026 22:15:28 +0000 Subject: [PATCH 109/142] Add small flat to steep to more coasters (#27222) --- src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h | 2 +- src/openrct2/ride/rtd/coaster/HyperTwister.h | 2 +- src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h b/src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h index e84819f302..e905ea3d1d 100644 --- a/src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h @@ -26,7 +26,7 @@ constexpr RideTypeDescriptor kFlyingRollerCoasterRTD = .trackStyle = TrackStyle::flyingRollerCoaster, .supportType = MetalSupportType::tubesInverted, .enabledTrackGroups = { TrackGroup::straight, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::inlineTwistUninverted, TrackGroup::flyingHalfLoopUninvertedUp, TrackGroup::quarterLoopUninvertedUp, TrackGroup::flyingLargeHalfLoopUninvertedUp, TrackGroup::slopeVertical, TrackGroup::slopeCurveBanked, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes, TrackGroup::slopeCurveLarge, TrackGroup::diagSlope, TrackGroup::diagSlopeSteepUp, TrackGroup::diagSlopeSteepDown, TrackGroup::helixUpUnbankedQuarter, TrackGroup::helixDownUnbankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::helixDownBankedQuarter }, - .extraTrackGroups = {TrackGroup::booster, TrackGroup::slopeSteepLong, TrackGroup::diagSlopeSteepLong, TrackGroup::flyingLargeHalfLoopUninvertedDown, TrackGroup::flyingHalfLoopUninvertedDown, TrackGroup::stationEnd, TrackGroup::verticalLoop, TrackGroup::poweredLift}, + .extraTrackGroups = {TrackGroup::booster, TrackGroup::slopeSteepLong, TrackGroup::diagSlopeSteepLong, TrackGroup::flyingLargeHalfLoopUninvertedDown, TrackGroup::flyingHalfLoopUninvertedDown, TrackGroup::stationEnd, TrackGroup::verticalLoop, TrackGroup::poweredLift, TrackGroup::flatToSteepSlope}, }), .InvertedTrackPaintFunctions = TrackDrawerDescriptor({ .trackStyle = TrackStyle::flyingRollerCoasterInverted, diff --git a/src/openrct2/ride/rtd/coaster/HyperTwister.h b/src/openrct2/ride/rtd/coaster/HyperTwister.h index f53185d4a6..be1fe7010b 100644 --- a/src/openrct2/ride/rtd/coaster/HyperTwister.h +++ b/src/openrct2/ride/rtd/coaster/HyperTwister.h @@ -26,7 +26,7 @@ constexpr RideTypeDescriptor kHyperTwisterRTD = .trackStyle = TrackStyle::twisterRollerCoaster, .supportType = MetalSupportType::tubes, .enabledTrackGroups = { TrackGroup::flat, TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::slopeCurveBanked, TrackGroup::blockBrakes, TrackGroup::slopeRollBanking, TrackGroup::slopeSteepLong, TrackGroup::slopeVertical, TrackGroup::curveVertical, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes, TrackGroup::slopeCurveLarge, TrackGroup::diagSlopeSteepLong, TrackGroup::diagSlope, TrackGroup::diagSlopeSteepUp, TrackGroup::diagSlopeSteepDown, TrackGroup::helixUpUnbankedQuarter, TrackGroup::helixDownUnbankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::helixDownBankedQuarter }, - .extraTrackGroups = { TrackGroup::liftHillSteep, TrackGroup::brakeForDrop, TrackGroup::booster, TrackGroup::poweredLift, TrackGroup::verticalLoop, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::barrelRoll, TrackGroup::halfLoopLarge, TrackGroup::quarterLoop, TrackGroup::twist, TrackGroup::corkscrewLarge, TrackGroup::halfLoopMedium, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge, TrackGroup::diveLoop }, + .extraTrackGroups = { TrackGroup::liftHillSteep, TrackGroup::brakeForDrop, TrackGroup::booster, TrackGroup::poweredLift, TrackGroup::verticalLoop, TrackGroup::halfLoop, TrackGroup::corkscrew, TrackGroup::barrelRoll, TrackGroup::halfLoopLarge, TrackGroup::quarterLoop, TrackGroup::twist, TrackGroup::corkscrewLarge, TrackGroup::halfLoopMedium, TrackGroup::zeroGRoll, TrackGroup::zeroGRollLarge, TrackGroup::diveLoop, TrackGroup::flatToSteepSlope }, }), .InvertedTrackPaintFunctions = {}, .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt | diff --git a/src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h b/src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h index 87310b470a..351978d2a5 100644 --- a/src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h @@ -26,7 +26,7 @@ constexpr RideTypeDescriptor kLayDownRollerCoasterRTD = .trackStyle = TrackStyle::corkscrewRollerCoaster, .supportType = MetalSupportType::tubesInverted, .enabledTrackGroups = { TrackGroup::straight, TrackGroup::stationEnd, TrackGroup::liftHill, TrackGroup::flatRollBanking, TrackGroup::verticalLoop, TrackGroup::slope, TrackGroup::slopeSteepUp, TrackGroup::slopeSteepDown, TrackGroup::slopeCurve, TrackGroup::slopeCurveSteep, TrackGroup::sBend, TrackGroup::curveSmall, TrackGroup::curve, TrackGroup::curveLarge, TrackGroup::helixDownBankedHalf, TrackGroup::helixUpBankedHalf, TrackGroup::brakes, TrackGroup::onridePhoto, TrackGroup::blockBrakes, TrackGroup::inlineTwistUninverted, TrackGroup::flyingHalfLoopUninvertedUp, TrackGroup::corkscrewUninverted, TrackGroup::slopeSteepLong, TrackGroup::diagSlopeSteepLong, TrackGroup::diagBrakes, TrackGroup::diagBlockBrakes, TrackGroup::slopeRollBanking, TrackGroup::slopeCurveBanked, TrackGroup::slopeCurveLarge, TrackGroup::diagSlope, TrackGroup::diagSlopeSteepUp, TrackGroup::diagSlopeSteepDown, TrackGroup::helixUpUnbankedQuarter, TrackGroup::helixDownUnbankedQuarter, TrackGroup::helixUpBankedQuarter, TrackGroup::helixDownBankedQuarter }, - .extraTrackGroups = { TrackGroup::flyingHalfLoopUninvertedDown, TrackGroup::booster }, + .extraTrackGroups = { TrackGroup::flyingHalfLoopUninvertedDown, TrackGroup::booster, TrackGroup::flatToSteepSlope }, } ), .InvertedTrackPaintFunctions = TrackDrawerDescriptor( From e9fedc198f4f01781e5a36ff8c1b0bfe911adee3 Mon Sep 17 00:00:00 2001 From: GhostCoder6969 Date: Thu, 1 Oct 2026 17:58:52 +0000 Subject: [PATCH 110/142] Fix typo in footpath error flag name (#27224) Rename _footpathErrorOccured to _footpathErrorOccurred in the footpath window. Add first-time contributor entry. --- contributors.md | 1 + src/openrct2-ui/windows/Footpath.cpp | 34 ++++++++++++++-------------- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/contributors.md b/contributors.md index 0f6e8eb4a5..f05c48b141 100644 --- a/contributors.md +++ b/contributors.md @@ -272,6 +272,7 @@ Appreciation for contributors who have provided substantial work, but are no lon * (itu-itis24-iyigun24) * James Cranston (jcranston) * Yoshi Tacke (YoshKoz) +* (GhostCoder6969) ## Toolchain * (Balletie) - macOS diff --git a/src/openrct2-ui/windows/Footpath.cpp b/src/openrct2-ui/windows/Footpath.cpp index b258fe76fc..6152629da8 100644 --- a/src/openrct2-ui/windows/Footpath.cpp +++ b/src/openrct2-ui/windows/Footpath.cpp @@ -242,7 +242,7 @@ namespace OpenRCT2::Ui::Windows money64 _windowFootpathCost; uint32_t _footpathConstructionNextArrowPulse = 0; uint8_t _lastUpdatedCameraRotation = UINT8_MAX; - bool _footpathErrorOccured = false; + bool _footpathErrorOccurred = false; bool _footpathPlaceCtrlState; int32_t _footpathPlaceCtrlZ; @@ -271,7 +271,7 @@ namespace OpenRCT2::Ui::Windows _footpathConstructionMode = PathConstructionMode::onLand; ToolSet(*this, WIDX_CONSTRUCT_ON_LAND, Tool::pathDown); gInputFlags.set(InputFlag::allowRightMouseRemoval); - _footpathErrorOccured = false; + _footpathErrorOccurred = false; WindowFootpathSetEnabledAndPressedWidgets(); _footpathPlaceCtrlState = false; @@ -376,7 +376,7 @@ namespace OpenRCT2::Ui::Windows _footpathConstructionMode = PathConstructionMode::dragArea; ToolSet(*this, WIDX_CONSTRUCT_DRAG_AREA, Tool::pathDown); gInputFlags.set(InputFlag::allowRightMouseRemoval); - _footpathErrorOccured = false; + _footpathErrorOccurred = false; WindowFootpathSetEnabledAndPressedWidgets(); } @@ -400,7 +400,7 @@ namespace OpenRCT2::Ui::Windows _footpathConstructionMode = PathConstructionMode::onLand; ToolSet(*this, WIDX_CONSTRUCT_ON_LAND, Tool::pathDown); gInputFlags.set(InputFlag::allowRightMouseRemoval); - _footpathErrorOccured = false; + _footpathErrorOccurred = false; WindowFootpathSetEnabledAndPressedWidgets(); break; case WIDX_CONSTRUCT_DRAG_AREA: @@ -424,7 +424,7 @@ namespace OpenRCT2::Ui::Windows _footpathConstructionMode = PathConstructionMode::bridgeOrTunnelPick; ToolSet(*this, WIDX_CONSTRUCT_BRIDGE_OR_TUNNEL, Tool::crosshair); gInputFlags.set(InputFlag::allowRightMouseRemoval); - _footpathErrorOccured = false; + _footpathErrorOccurred = false; WindowFootpathSetEnabledAndPressedWidgets(); break; } @@ -496,12 +496,12 @@ namespace OpenRCT2::Ui::Windows { if (widgetIndex == WIDX_CONSTRUCT_ON_LAND) { - _footpathErrorOccured = false; + _footpathErrorOccurred = false; } else if (widgetIndex == WIDX_CONSTRUCT_DRAG_AREA) { WindowFootpathPlacePath(); - _footpathErrorOccured = false; + _footpathErrorOccurred = false; } } @@ -543,7 +543,7 @@ namespace OpenRCT2::Ui::Windows enableDragAreaMode(); // When this tool is aborted, the mouse button is still down. // Set this to prevent a stray piece of path from being placed under the mouse pointer. - _footpathErrorOccured = true; + _footpathErrorOccurred = true; } } @@ -1263,7 +1263,7 @@ namespace OpenRCT2::Ui::Windows void WindowFootpathPlaceDragAreaSetStart(const ScreenCoordsXY& screenCoords) { - if (_footpathErrorOccured) + if (_footpathErrorOccurred) { return; } @@ -1287,7 +1287,7 @@ namespace OpenRCT2::Ui::Windows void WindowFootpathPlaceDragAreaSetEnd(const ScreenCoordsXY& screenCoords) { - if (_footpathErrorOccured) + if (_footpathErrorOccurred) { return; } @@ -1336,7 +1336,7 @@ namespace OpenRCT2::Ui::Windows void WindowFootpathPlacePath() { - if (_footpathErrorOccured) + if (_footpathErrorOccurred) { return; } @@ -1351,7 +1351,7 @@ namespace OpenRCT2::Ui::Windows windowManager->ShowError( _provisionalFootpath.lastError.getErrorTitle(), _provisionalFootpath.lastError.getErrorMessage()); } - _footpathErrorOccured = true; + _footpathErrorOccurred = true; return; } @@ -1383,7 +1383,7 @@ namespace OpenRCT2::Ui::Windows if (anyQueryFailed) { Audio::Play3D(Audio::SoundId::error, lastLocation); - _footpathErrorOccured = true; + _footpathErrorOccurred = true; // Show error with accumulated cost for insufficient funds auto* windowMgr = GetWindowManager(); @@ -1403,7 +1403,7 @@ namespace OpenRCT2::Ui::Windows if (!getGameState().park.flags.has(ParkFlag::noMoney) && totalCost > getGameState().park.cash) { Audio::Play3D(Audio::SoundId::error, lastLocation); - _footpathErrorOccured = true; + _footpathErrorOccurred = true; auto* windowMgr = GetWindowManager(); Formatter ft; @@ -1447,7 +1447,7 @@ namespace OpenRCT2::Ui::Windows { // Play error sound once for the entire failed operation Audio::Play3D(Audio::SoundId::error, lastLocation); - _footpathErrorOccured = true; + _footpathErrorOccurred = true; } } @@ -1457,7 +1457,7 @@ namespace OpenRCT2::Ui::Windows */ void WindowFootpathPlacePathAtPoint(const ScreenCoordsXY& screenCoords) { - if (_footpathErrorOccured) + if (_footpathErrorOccurred) { return; } @@ -1488,7 +1488,7 @@ namespace OpenRCT2::Ui::Windows } else { - _footpathErrorOccured = true; + _footpathErrorOccurred = true; } }); GameActions::Execute(&footpathPlaceAction, getGameState()); From bac7b67e927fb2f1763f2b8463d145e8163bfb7d Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 2 Oct 2026 07:41:17 +0200 Subject: [PATCH 111/142] Close #27184: Double misc entity limit (#27185) --- distribution/changelog.txt | 1 + src/openrct2/entity/EntityRegistry.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 0c599b091a..767ba7a6b7 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -2,6 +2,7 @@ ------------------------------------------------------------------------ - Feature: [#16014] Land surfaces and edges can now be recoloured. - Feature: [#27153] [Plugin] Add `guestsEntertained` to `Entertainer` interface. +- Feature: [#27184] [Plugin] Double limit of miscellaneous entities (e.g. crash particles, steam plumes and balloons) to 6400. - Feature: [objects#447] Track designer grid can now be used outside the Track Designer. - Improved: [#21400] The selector for setting staff patrol areas is now drawn on the water as well as on the surface under water. - Improved: [#22933] You can now toggle between long and short base flat-to-steep pieces if the ride has both available. diff --git a/src/openrct2/entity/EntityRegistry.h b/src/openrct2/entity/EntityRegistry.h index ecaab5796b..ae19845334 100644 --- a/src/openrct2/entity/EntityRegistry.h +++ b/src/openrct2/entity/EntityRegistry.h @@ -23,7 +23,7 @@ struct CoordsXY; namespace OpenRCT2 { constexpr uint16_t kMaxEntities = 65535; - constexpr uint16_t kMaxMiscEntities = 3200; + constexpr uint16_t kMaxMiscEntities = 6400; constexpr const uint32_t kSpatialIndexSize = (kMaximumMapSizeTechnical * kMaximumMapSizeTechnical) + 1; constexpr uint32_t kSpatialIndexNullBucket = kSpatialIndexSize - 1; From 11513222890717e81431c83a28aafb7555f2ccd2 Mon Sep 17 00:00:00 2001 From: Richard Fine Date: Fri, 2 Oct 2026 01:44:19 -0400 Subject: [PATCH 112/142] Close #25210: Make scenario objective checks constant (#27162) --- src/openrct2/GameState.h | 1 - src/openrct2/park/ParkFile.cpp | 2 +- src/openrct2/rct2/S6Importer.cpp | 2 +- src/openrct2/scenario/Scenario.cpp | 35 ++++++++ src/openrct2/scenario/ScenarioObjective.cpp | 87 +++++++------------ src/openrct2/scenario/ScenarioObjective.h | 23 ++--- .../scripting/bindings/world/ScScenario.hpp | 4 +- src/openrct2/world/ParkData.h | 1 + 8 files changed, 83 insertions(+), 72 deletions(-) diff --git a/src/openrct2/GameState.h b/src/openrct2/GameState.h index 5b7a7ffc5b..bb678c78c7 100644 --- a/src/openrct2/GameState.h +++ b/src/openrct2/GameState.h @@ -48,7 +48,6 @@ namespace OpenRCT2 uint32_t nextGuestNumber; - uint16_t scenarioParkRatingWarningDays; money64 scenarioCompletedCompanyValue; money64 scenarioCompanyValueRecord; random_engine_t scenarioRand; diff --git a/src/openrct2/park/ParkFile.cpp b/src/openrct2/park/ParkFile.cpp index dbbe565460..efd5ffca2b 100644 --- a/src/openrct2/park/ParkFile.cpp +++ b/src/openrct2/park/ParkFile.cpp @@ -568,7 +568,7 @@ namespace OpenRCT2 cs.readWrite(gameState.scenarioOptions.objective.NumGuests); cs.readWrite(gameState.scenarioOptions.objective.Currency); - cs.readWrite(gameState.scenarioParkRatingWarningDays); + cs.readWrite(gameState.park.scenarioParkRatingWarningDays); cs.readWrite(gameState.scenarioCompletedCompanyValue); if (gameState.scenarioCompletedCompanyValue == kMoney64Undefined diff --git a/src/openrct2/rct2/S6Importer.cpp b/src/openrct2/rct2/S6Importer.cpp index d20c02276c..c42651eda4 100644 --- a/src/openrct2/rct2/S6Importer.cpp +++ b/src/openrct2/rct2/S6Importer.cpp @@ -523,7 +523,7 @@ namespace OpenRCT2::RCT2 park.samePriceThroughoutPark = _s6.SamePriceThroughout | (static_cast(_s6.SamePriceThroughoutExtended) << 32); park.suggestedGuestMaximum = _s6.SuggestedMaxGuests; - gameState.scenarioParkRatingWarningDays = _s6.ParkRatingWarningDays; + park.scenarioParkRatingWarningDays = _s6.ParkRatingWarningDays; gameState.lastEntranceStyle = _s6.LastEntranceStyle; // rct1_water_colour // Pad01358842 diff --git a/src/openrct2/scenario/Scenario.cpp b/src/openrct2/scenario/Scenario.cpp index 0761d465ce..cf0eb19f27 100644 --- a/src/openrct2/scenario/Scenario.cpp +++ b/src/openrct2/scenario/Scenario.cpp @@ -160,6 +160,7 @@ static void ScenarioEnd() void ScenarioFailure(GameState_t& gameState) { gameState.scenarioCompletedCompanyValue = kCompanyValueOnFailedObjective; + gameState.scenarioOptions.objective.onFailure(gameState.park, gameState); ScenarioEnd(); } @@ -259,10 +260,44 @@ void ScenarioAutosaveCheck() } } +static void scenarioUpdateLowRatingDayCount(Park::ParkData& park, GameState_t& gameState) +{ + if (park.rating < Scenario::Objective::kLowParkRatingThreshold && gameState.date.monthsElapsed >= 1) + { + park.scenarioParkRatingWarningDays++; + + if (gameState.scenarioOptions.objective.Type == ObjectiveType::guestsAndRating + && Config::Get().notifications.parkRatingWarnings) + { + switch (park.scenarioParkRatingWarningDays) + { + case 1: + News::AddItemToQueue(News::ItemType::graph, STR_PARK_RATING_WARNING_4_WEEKS_REMAINING, 0, {}); + break; + case 8: + News::AddItemToQueue(News::ItemType::graph, STR_PARK_RATING_WARNING_3_WEEKS_REMAINING, 0, {}); + break; + case 15: + News::AddItemToQueue(News::ItemType::graph, STR_PARK_RATING_WARNING_2_WEEKS_REMAINING, 0, {}); + break; + case 22: + News::AddItemToQueue(News::ItemType::graph, STR_PARK_RATING_WARNING_1_WEEK_REMAINING, 0, {}); + break; + } + } + } + else if (gameState.scenarioCompletedCompanyValue != kCompanyValueOnFailedObjective) + { + park.scenarioParkRatingWarningDays = 0; + } +} + static void ScenarioDayUpdate(GameState_t& gameState) { FinanceUpdateDailyProfit(); PeepUpdateDaysInQueue(); + scenarioUpdateLowRatingDayCount(gameState.park, gameState); + switch (gameState.scenarioOptions.objective.Type) { case ObjectiveType::tenRollercoasters: diff --git a/src/openrct2/scenario/ScenarioObjective.cpp b/src/openrct2/scenario/ScenarioObjective.cpp index 5b82714d8e..61be14fca4 100644 --- a/src/openrct2/scenario/ScenarioObjective.cpp +++ b/src/openrct2/scenario/ScenarioObjective.cpp @@ -20,7 +20,7 @@ namespace OpenRCT2::Scenario { - ObjectiveStatus Objective::CheckGuestsBy(Park::ParkData& park, GameState_t& gameState) const + ObjectiveStatus Objective::CheckGuestsBy(const Park::ParkData& park, const GameState_t& gameState) const { auto parkRating = park.rating; int32_t currentMonthYear = GetDate().GetMonthsElapsed(); @@ -41,7 +41,7 @@ namespace OpenRCT2::Scenario return ObjectiveStatus::undecided; } - ObjectiveStatus Objective::CheckParkValueBy(Park::ParkData& park, GameState_t& gameState) const + ObjectiveStatus Objective::CheckParkValueBy(const Park::ParkData& park, const GameState_t& gameState) const { int32_t currentMonthYear = GetDate().GetMonthsElapsed(); money64 objectiveParkValue = Currency; @@ -68,7 +68,7 @@ namespace OpenRCT2::Scenario * excitement >= 600 . * rct2: **/ - ObjectiveStatus Objective::Check10RollerCoasters(Park::ParkData& park, GameState_t& gameState) const + ObjectiveStatus Objective::Check10RollerCoasters(const Park::ParkData& park, const GameState_t& gameState) const { auto rcs = 0; BitSet type_already_counted; @@ -100,61 +100,18 @@ namespace OpenRCT2::Scenario * * rct2: 0x0066A13C */ - ObjectiveStatus Objective::CheckGuestsAndRating(Park::ParkData& park, GameState_t& gameState) const + ObjectiveStatus Objective::CheckGuestsAndRating(const Park::ParkData& park, const GameState_t& gameState) const { - // TODO: make park-specific - if (park.rating < 700 && GetDate().GetMonthsElapsed() >= 1) - { - gameState.scenarioParkRatingWarningDays++; - if (gameState.scenarioParkRatingWarningDays == 1) - { - if (Config::Get().notifications.parkRatingWarnings) - { - News::AddItemToQueue(News::ItemType::graph, STR_PARK_RATING_WARNING_4_WEEKS_REMAINING, 0, {}); - } - } - else if (gameState.scenarioParkRatingWarningDays == 8) - { - if (Config::Get().notifications.parkRatingWarnings) - { - News::AddItemToQueue(News::ItemType::graph, STR_PARK_RATING_WARNING_3_WEEKS_REMAINING, 0, {}); - } - } - else if (gameState.scenarioParkRatingWarningDays == 15) - { - if (Config::Get().notifications.parkRatingWarnings) - { - News::AddItemToQueue(News::ItemType::graph, STR_PARK_RATING_WARNING_2_WEEKS_REMAINING, 0, {}); - } - } - else if (gameState.scenarioParkRatingWarningDays == 22) - { - if (Config::Get().notifications.parkRatingWarnings) - { - News::AddItemToQueue(News::ItemType::graph, STR_PARK_RATING_WARNING_1_WEEK_REMAINING, 0, {}); - } - } - else if (gameState.scenarioParkRatingWarningDays == 29) - { - News::AddItemToQueue(News::ItemType::graph, STR_PARK_HAS_BEEN_CLOSED_DOWN, 0, {}); - park.flags.unset(ParkFlag::parkOpen); - gameState.scenarioOptions.guestInitialHappiness = 50; - return ObjectiveStatus::failure; - } - } - else if (gameState.scenarioCompletedCompanyValue != kCompanyValueOnFailedObjective) - { - gameState.scenarioParkRatingWarningDays = 0; - } + if (park.rating >= kLowParkRatingThreshold && park.numGuestsInPark >= NumGuests) + return ObjectiveStatus::success; - if (park.rating >= 700) - if (park.numGuestsInPark >= NumGuests) - return ObjectiveStatus::success; + if (park.scenarioParkRatingWarningDays == 29) + return ObjectiveStatus::failure; return ObjectiveStatus::undecided; } - ObjectiveStatus Objective::CheckMonthlyRideIncome(Park::ParkData& park, GameState_t& gameState) const + ObjectiveStatus Objective::CheckMonthlyRideIncome(const Park::ParkData& park, const GameState_t& gameState) const { money64 lastMonthRideIncome = park.expenditureTable[1][EnumValue(ExpenditureType::parkRideTickets)]; if (lastMonthRideIncome >= Currency) @@ -170,7 +127,7 @@ namespace OpenRCT2::Scenario * excitement > 700 and a minimum length; * rct2: 0x0066A6B5 */ - ObjectiveStatus Objective::Check10RollerCoastersLength(Park::ParkData& park, GameState_t& gameState) const + ObjectiveStatus Objective::Check10RollerCoastersLength(const Park::ParkData& park, const GameState_t& gameState) const { BitSet type_already_counted; auto rcs = 0; @@ -201,7 +158,7 @@ namespace OpenRCT2::Scenario return ObjectiveStatus::undecided; } - ObjectiveStatus Objective::CheckFinish5RollerCoasters(Park::ParkData& park, GameState_t& gameState) const + ObjectiveStatus Objective::CheckFinish5RollerCoasters(const Park::ParkData& park, const GameState_t& gameState) const { // Originally, this did not check for null rides, neither did it check if // the rides are even rollercoasters, never mind the right rollercoasters to be finished. @@ -229,7 +186,7 @@ namespace OpenRCT2::Scenario return ObjectiveStatus::undecided; } - ObjectiveStatus Objective::CheckRepayLoanAndParkValue(Park::ParkData& park, GameState_t& gameState) const + ObjectiveStatus Objective::CheckRepayLoanAndParkValue(const Park::ParkData& park, const GameState_t& gameState) const { money64 parkValue = park.value; money64 currentLoan = park.bankLoan; @@ -242,7 +199,7 @@ namespace OpenRCT2::Scenario return ObjectiveStatus::undecided; } - ObjectiveStatus Objective::CheckMonthlyFoodIncome(Park::ParkData& park, GameState_t& gameState) const + ObjectiveStatus Objective::CheckMonthlyFoodIncome(const Park::ParkData& park, const GameState_t& gameState) const { const auto* lastMonthExpenditure = park.expenditureTable[1]; auto lastMonthProfit = lastMonthExpenditure[EnumValue(ExpenditureType::shopSales)] @@ -262,7 +219,7 @@ namespace OpenRCT2::Scenario * Checks the win/lose conditions of the current objective. * rct2: 0x0066A4B2 */ - ObjectiveStatus Objective::Check(Park::ParkData& park, GameState_t& gameState) const + ObjectiveStatus Objective::Check(const Park::ParkData& park, const GameState_t& gameState) const { if (gameState.scenarioCompletedCompanyValue != kMoney64Undefined) { @@ -294,6 +251,22 @@ namespace OpenRCT2::Scenario } } + void Objective::onFailure(Park::ParkData& park, GameState_t& gameState) const + { + switch (Type) + { + case ObjectiveType::guestsAndRating: + { + News::AddItemToQueue(News::ItemType::graph, STR_PARK_HAS_BEEN_CLOSED_DOWN, 0, {}); + park.flags.unset(ParkFlag::parkOpen); + gameState.scenarioOptions.guestInitialHappiness = 50; + break; + } + default: + break; + } + } + bool ObjectiveNeedsMoney(const ObjectiveType objective) { switch (objective) diff --git a/src/openrct2/scenario/ScenarioObjective.h b/src/openrct2/scenario/ScenarioObjective.h index e3029a94b9..9b52738bd4 100644 --- a/src/openrct2/scenario/ScenarioObjective.h +++ b/src/openrct2/scenario/ScenarioObjective.h @@ -68,6 +68,8 @@ namespace OpenRCT2::Scenario RideRating_t MinimumExcitement; // For the "Finish 5 coaster with a minimum excitement rating" objective. }; + static constexpr uint16_t kLowParkRatingThreshold = 700; + bool NeedsMoney() const { return ObjectiveNeedsMoney(Type); @@ -81,17 +83,18 @@ namespace OpenRCT2::Scenario return objectiveAllowedByMoneyUsage && objectiveAllowedByPaymentSettings; } - ObjectiveStatus Check(Park::ParkData& park, GameState_t& gameState) const; + ObjectiveStatus Check(const Park::ParkData& park, const GameState_t& gameState) const; + void onFailure(Park::ParkData& park, GameState_t& gameState) const; private: - ObjectiveStatus CheckGuestsBy(Park::ParkData& park, GameState_t& gameState) const; - ObjectiveStatus CheckParkValueBy(Park::ParkData& park, GameState_t& gameState) const; - ObjectiveStatus Check10RollerCoasters(Park::ParkData& park, GameState_t& gameState) const; - ObjectiveStatus CheckGuestsAndRating(Park::ParkData& park, GameState_t& gameState) const; - ObjectiveStatus CheckMonthlyRideIncome(Park::ParkData& park, GameState_t& gameState) const; - ObjectiveStatus Check10RollerCoastersLength(Park::ParkData& park, GameState_t& gameState) const; - ObjectiveStatus CheckFinish5RollerCoasters(Park::ParkData& park, GameState_t& gameState) const; - ObjectiveStatus CheckRepayLoanAndParkValue(Park::ParkData& park, GameState_t& gameState) const; - ObjectiveStatus CheckMonthlyFoodIncome(Park::ParkData& park, GameState_t& gameState) const; + ObjectiveStatus CheckGuestsBy(const Park::ParkData& park, const GameState_t& gameState) const; + ObjectiveStatus CheckParkValueBy(const Park::ParkData& park, const GameState_t& gameState) const; + ObjectiveStatus Check10RollerCoasters(const Park::ParkData& park, const GameState_t& gameState) const; + ObjectiveStatus CheckGuestsAndRating(const Park::ParkData& park, const GameState_t& gameState) const; + ObjectiveStatus CheckMonthlyRideIncome(const Park::ParkData& park, const GameState_t& gameState) const; + ObjectiveStatus Check10RollerCoastersLength(const Park::ParkData& park, const GameState_t& gameState) const; + ObjectiveStatus CheckFinish5RollerCoasters(const Park::ParkData& park, const GameState_t& gameState) const; + ObjectiveStatus CheckRepayLoanAndParkValue(const Park::ParkData& park, const GameState_t& gameState) const; + ObjectiveStatus CheckMonthlyFoodIncome(const Park::ParkData& park, const GameState_t& gameState) const; }; } // namespace OpenRCT2::Scenario diff --git a/src/openrct2/scripting/bindings/world/ScScenario.hpp b/src/openrct2/scripting/bindings/world/ScScenario.hpp index ea6288a1fd..f740844f2f 100644 --- a/src/openrct2/scripting/bindings/world/ScScenario.hpp +++ b/src/openrct2/scripting/bindings/world/ScScenario.hpp @@ -278,14 +278,14 @@ namespace OpenRCT2::Scripting static JSValue parkRatingWarningDays_get(JSContext* ctx, JSValue) { - return JS_NewUint32(ctx, getGameState().scenarioParkRatingWarningDays); + return JS_NewUint32(ctx, getGameState().park.scenarioParkRatingWarningDays); } static JSValue parkRatingWarningDays_set(JSContext* ctx, JSValue, JSValue jsValue) { JS_UNPACK_UINT32(value, ctx, jsValue); JS_THROW_IF_GAME_STATE_NOT_MUTABLE(); - getGameState().scenarioParkRatingWarningDays = value; + getGameState().park.scenarioParkRatingWarningDays = value; return JS_UNDEFINED; } diff --git a/src/openrct2/world/ParkData.h b/src/openrct2/world/ParkData.h index d6212531e0..f20523977d 100644 --- a/src/openrct2/world/ParkData.h +++ b/src/openrct2/world/ParkData.h @@ -70,6 +70,7 @@ namespace OpenRCT2::Park uint16_t rating; uint16_t ratingHistory[kParkRatingHistorySize]; int16_t ratingCasualtyPenalty; + uint16_t scenarioParkRatingWarningDays; money64 entranceFee; std::vector entrances; uint32_t size; From b8b946f304a3beaf0aa5534746bed97ce931a4e9 Mon Sep 17 00:00:00 2001 From: RayKoopa <9631152+RayKoopa@users.noreply.github.com> Date: Fri, 2 Oct 2026 22:05:19 +0200 Subject: [PATCH 113/142] Fix land color buttons not being shown/hidden instantly (#27211) --- src/openrct2-ui/interface/LandTool.cpp | 13 +++++++++++-- src/openrct2-ui/interface/LandTool.h | 4 ++-- src/openrct2-ui/windows/Land.cpp | 23 ++++++----------------- src/openrct2-ui/windows/MapGen.cpp | 20 +++++--------------- 4 files changed, 24 insertions(+), 36 deletions(-) diff --git a/src/openrct2-ui/interface/LandTool.cpp b/src/openrct2-ui/interface/LandTool.cpp index b4f90bacd8..dfcac640e8 100644 --- a/src/openrct2-ui/interface/LandTool.cpp +++ b/src/openrct2-ui/interface/LandTool.cpp @@ -151,24 +151,33 @@ ObjectEntryIndex LandTool::GetEdgeStyleFromDropdownIndex(size_t index) return kObjectEntryIndexNull; } -void LandTool::resetSurfaceColourSelection(ObjectEntryIndex selectedSurfaceIndex, Drawing::Colour& surfaceColour1) +void LandTool::resetSurfaceColourSelection( + ObjectEntryIndex selectedSurfaceIndex, Drawing::Colour& surfaceColour1, bool& hasColour) { surfaceColour1 = Drawing::Colour::black; + hasColour = false; auto& objManager = GetContext()->GetObjectManager(); const auto* surfaceObject = objManager.GetLoadedObject(selectedSurfaceIndex); if (surfaceObject != nullptr && surfaceObject->Flags.has(TerrainSurfaceFlag::hasPrimaryColour)) + { surfaceColour1 = surfaceObject->Colour; + hasColour = true; + } } -void LandTool::resetEdgeColourSelection(ObjectEntryIndex selectedEdgeIndex, Drawing::Colour& edgeColour1) +void LandTool::resetEdgeColourSelection(ObjectEntryIndex selectedEdgeIndex, Drawing::Colour& edgeColour1, bool& hasColour) { edgeColour1 = Drawing::Colour::black; + hasColour = false; auto& objManager = GetContext()->GetObjectManager(); const auto* edgeObject = objManager.GetLoadedObject(selectedEdgeIndex); if (edgeObject != nullptr && edgeObject->flags.has(TerrainEdgeFlag::hasPrimaryColour)) + { edgeColour1 = edgeObject->colour; + hasColour = true; + } } diff --git a/src/openrct2-ui/interface/LandTool.h b/src/openrct2-ui/interface/LandTool.h index b31062be55..53d7424695 100644 --- a/src/openrct2-ui/interface/LandTool.h +++ b/src/openrct2-ui/interface/LandTool.h @@ -38,6 +38,6 @@ namespace OpenRCT2::LandTool ObjectEntryIndex GetSurfaceStyleFromDropdownIndex(size_t index); void ShowEdgeStyleDropdown(WindowBase* w, Widget* widget, ObjectEntryIndex currentEdgeType); ObjectEntryIndex GetEdgeStyleFromDropdownIndex(size_t index); - void resetSurfaceColourSelection(ObjectEntryIndex selectedSurfaceIndex, Drawing::Colour& surfaceColour1); - void resetEdgeColourSelection(ObjectEntryIndex selectedEdgeIndex, Drawing::Colour& edgeColour1); + void resetSurfaceColourSelection(ObjectEntryIndex selectedSurfaceIndex, Drawing::Colour& surfaceColour1, bool& hasColour); + void resetEdgeColourSelection(ObjectEntryIndex selectedEdgeIndex, Drawing::Colour& edgeColour1, bool& hasColour); } // namespace OpenRCT2::LandTool diff --git a/src/openrct2-ui/windows/Land.cpp b/src/openrct2-ui/windows/Land.cpp index 2507d2cc37..f7b1ff4d95 100644 --- a/src/openrct2-ui/windows/Land.cpp +++ b/src/openrct2-ui/windows/Land.cpp @@ -122,6 +122,9 @@ namespace OpenRCT2::Ui::Windows _selectedFloorTexture = LandTool::GetSurfaceStyleFromDropdownIndex(0); _selectedWallTexture = LandTool::GetEdgeStyleFromDropdownIndex(0); + + LandTool::resetSurfaceColourSelection(_selectedFloorTexture, _surfaceColour1, _surfaceColour1Enabled); + LandTool::resetEdgeColourSelection(_selectedWallTexture, _edgeColour1, _edgeColour1Enabled); } void onClose() override @@ -216,7 +219,7 @@ namespace OpenRCT2::Ui::Windows gLandToolTerrainSurface = type; _selectedFloorTexture = type; } - LandTool::resetSurfaceColourSelection(gLandToolTerrainSurface, _surfaceColour1); + LandTool::resetSurfaceColourSelection(gLandToolTerrainSurface, _surfaceColour1, _surfaceColour1Enabled); invalidate(); break; case WIDX_WALL: @@ -235,7 +238,7 @@ namespace OpenRCT2::Ui::Windows gLandToolTerrainEdge = type; _selectedWallTexture = type; } - LandTool::resetEdgeColourSelection(gLandToolTerrainEdge, _edgeColour1); + LandTool::resetEdgeColourSelection(gLandToolTerrainEdge, _edgeColour1, _edgeColour1Enabled); invalidate(); break; case WIDX_SURFACE_COLOUR_1: @@ -900,29 +903,15 @@ namespace OpenRCT2::Ui::Windows ImageId surfaceImage; if (surfaceObj != nullptr) { - auto surfaceColour1ShouldBeEnabled = surfaceObj->Flags.has(TerrainSurfaceFlag::hasPrimaryColour); - if (_surfaceColour1Enabled != surfaceColour1ShouldBeEnabled) - { - _surfaceColour1Enabled = surfaceColour1ShouldBeEnabled; - invalidate(); - } - auto colour = widgets[WIDX_SURFACE_COLOUR_1].isVisible() ? surfaceObj->getPrimaryColour(_surfaceColour1) : surfaceObj->getPreviewColour(); surfaceImage = ImageId(surfaceObj->IconImageId, colour); } - const auto edgeObj = objManager.GetLoadedObject(_selectedWallTexture); + const auto* edgeObj = objManager.GetLoadedObject(_selectedWallTexture); ImageId edgeImage; if (edgeObj != nullptr) { - auto edgeColour1ShouldBeEnabled = edgeObj->flags.has(TerrainEdgeFlag::hasPrimaryColour); - if (_edgeColour1Enabled != edgeColour1ShouldBeEnabled) - { - _edgeColour1Enabled = edgeColour1ShouldBeEnabled; - invalidate(); - } - auto colour = widgets[WIDX_EDGE_COLOUR_1].isVisible() ? _edgeColour1 : edgeObj->getPreviewColour(); edgeImage = ImageId(edgeObj->IconImageId, colour); } diff --git a/src/openrct2-ui/windows/MapGen.cpp b/src/openrct2-ui/windows/MapGen.cpp index 73b1fcd762..443f3c9e8e 100644 --- a/src/openrct2-ui/windows/MapGen.cpp +++ b/src/openrct2-ui/windows/MapGen.cpp @@ -1078,7 +1078,7 @@ namespace OpenRCT2::Ui::Windows { gLandToolTerrainSurface = type; _settings.landTexture = type; - LandTool::resetSurfaceColourSelection(type, _settings.surfaceColour1); + LandTool::resetSurfaceColourSelection(type, _settings.surfaceColour1, _surfaceColour1Enabled); } invalidate(); break; @@ -1091,7 +1091,7 @@ namespace OpenRCT2::Ui::Windows if (_settings.edgeTexture != type) { _settings.edgeTexture = type; - LandTool::resetEdgeColourSelection(type, _settings.edgeColour1); + LandTool::resetEdgeColourSelection(type, _settings.edgeColour1, _edgeColour1Enabled); } invalidate(); break; @@ -1145,12 +1145,6 @@ namespace OpenRCT2::Ui::Windows ImageId surfaceImage; if (surfaceObj != nullptr) { - auto surfaceColour1ShouldBeEnabled = surfaceObj->Flags.has(TerrainSurfaceFlag::hasPrimaryColour); - if (_surfaceColour1Enabled != surfaceColour1ShouldBeEnabled) - { - _surfaceColour1Enabled = surfaceColour1ShouldBeEnabled; - invalidate(); - } auto colour = widgets[WIDX_SURFACE_COLOUR_1].isVisible() ? surfaceObj->getPrimaryColour(_settings.surfaceColour1) : surfaceObj->getPreviewColour(); @@ -1161,13 +1155,6 @@ namespace OpenRCT2::Ui::Windows const auto* edgeObj = objManager.GetLoadedObject(_settings.edgeTexture); if (edgeObj != nullptr) { - auto edgeColour1ShouldBeEnabled = edgeObj->flags.has(TerrainEdgeFlag::hasPrimaryColour); - if (_edgeColour1Enabled != edgeColour1ShouldBeEnabled) - { - _edgeColour1Enabled = edgeColour1ShouldBeEnabled; - invalidate(); - } - auto colour = widgets[WIDX_EDGE_COLOUR_1].isVisible() ? _settings.edgeColour1 : edgeObj->getPreviewColour(); edgeImage = ImageId(edgeObj->IconImageId, colour); } @@ -1336,6 +1323,9 @@ namespace OpenRCT2::Ui::Windows initScrollWidgets(); _heightmapLoaded = false; + + LandTool::resetSurfaceColourSelection(_settings.landTexture, _settings.surfaceColour1, _surfaceColour1Enabled); + LandTool::resetEdgeColourSelection(_settings.edgeTexture, _settings.edgeColour1, _edgeColour1Enabled); } void onClose() override From 360cf04c3602b0c0e73afa17c9dfcc8784d5d3a4 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 3 Oct 2026 11:09:01 +0200 Subject: [PATCH 114/142] Remove duplicate includes --- src/openrct2/rct1/S4Importer.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index 411425e2ae..3e10e72cf8 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -42,8 +42,6 @@ #include "../object/ScenarioMetaObject.h" #include "../park/Legacy.h" #include "../peep/RideUseSystem.h" -#include "../rct1/RCT1.h" -#include "../rct1/Tables.h" #include "../rct12/CSStringConverter.h" #include "../rct12/EntryList.h" #include "../rct12/ScenarioPatcher.h" From ad3fbd3f9978a641b9ace6110a063be17c0d6cde Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 3 Oct 2026 10:42:38 +0200 Subject: [PATCH 115/142] Move RCT1 file detection to its own files, use enum classes --- src/openrct2/FileClassifier.cpp | 14 +++--- src/openrct2/libopenrct2.vcxproj | 2 + src/openrct2/rct1/RCT1File.cpp | 55 +++++++++++++++++++++ src/openrct2/rct1/RCT1File.h | 37 ++++++++++++++ src/openrct2/rct1/S4Importer.cpp | 52 ++++++++++--------- src/openrct2/sawyer_coding/SawyerCoding.cpp | 38 -------------- src/openrct2/sawyer_coding/SawyerCoding.h | 17 ------- 7 files changed, 125 insertions(+), 90 deletions(-) create mode 100644 src/openrct2/rct1/RCT1File.cpp create mode 100644 src/openrct2/rct1/RCT1File.h diff --git a/src/openrct2/FileClassifier.cpp b/src/openrct2/FileClassifier.cpp index 70f857a640..67193d1811 100644 --- a/src/openrct2/FileClassifier.cpp +++ b/src/openrct2/FileClassifier.cpp @@ -15,6 +15,7 @@ #include "core/Path.hpp" #include "core/String.hpp" #include "park/ParkFile.h" +#include "rct1/RCT1File.h" #include "rct2/RCT2.h" #include "sawyer_coding/SawyerChunkReader.h" #include "sawyer_coding/SawyerCoding.h" @@ -134,21 +135,18 @@ static bool TryClassifyAsS4(IStream* stream, ClassifiedFileInfo* result) size_t dataLength = static_cast(stream->GetLength()); auto data = stream->ReadArray(dataLength); stream->SetPosition(originalPosition); - int32_t fileTypeVersion = DetectFileType(data.get(), dataLength); + auto fileTypeVersion = RCT1::detectFileType(data.get(), dataLength); - int32_t type = fileTypeVersion & FILE_TYPE_MASK; - int32_t version = fileTypeVersion & FILE_VERSION_MASK; - - if (type == FILE_TYPE_SV4) + if (fileTypeVersion.fileType == RCT1::RCT1FileType::sv4) { result->Type = FileType::savedGame; - result->Version = version; + result->Version = EnumValue(fileTypeVersion.version); success = true; } - else if (type == FILE_TYPE_SC4) + else if (fileTypeVersion.fileType == RCT1::RCT1FileType::sc4) { result->Type = FileType::scenario; - result->Version = version; + result->Version = EnumValue(fileTypeVersion.version); success = true; } } diff --git a/src/openrct2/libopenrct2.vcxproj b/src/openrct2/libopenrct2.vcxproj index a4d4d8a49d..60b10e0631 100644 --- a/src/openrct2/libopenrct2.vcxproj +++ b/src/openrct2/libopenrct2.vcxproj @@ -468,6 +468,7 @@ + @@ -1170,6 +1171,7 @@ + diff --git a/src/openrct2/rct1/RCT1File.cpp b/src/openrct2/rct1/RCT1File.cpp new file mode 100644 index 0000000000..27472877bf --- /dev/null +++ b/src/openrct2/rct1/RCT1File.cpp @@ -0,0 +1,55 @@ +/***************************************************************************** + * Copyright (c) 2014-2026 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#include "RCT1File.h" + +#include "../core/Numerics.hpp" + +#include + +namespace OpenRCT2::RCT1 +{ + RCT1VersionAndFileType detectFileType(const uint8_t* src, size_t length) + { + if (length < 4) + { + throw std::length_error("Stream is (nearly) empty!"); + } + + // Currently can't detect TD4, as the checksum is the same as SC4 (need alternative method) + + uint32_t checksum = *(reinterpret_cast(&src[length - 4])); + uint32_t actualChecksum = 0; + for (size_t i = 0; i < length - 4; i++) + { + actualChecksum = (actualChecksum & 0xFFFFFF00) | (((actualChecksum & 0xFF) + static_cast(src[i])) & 0xFF); + actualChecksum = Numerics::rol32(actualChecksum, 3); + } + + return detectRCT1Version(checksum - actualChecksum); + } + + RCT1VersionAndFileType detectRCT1Version(int32_t gameVersion) + { + auto fileType = (gameVersion) > 0 ? RCT1FileType::sv4 : RCT1FileType::sc4; + gameVersion = abs(gameVersion); + + if (gameVersion >= 108000 && gameVersion < 110000) + return RCT1VersionAndFileType(RCT1Version::baseGame, fileType); + if (gameVersion >= 110000 && gameVersion < 120000) + return RCT1VersionAndFileType(RCT1Version::addedAttractions, fileType); + if (gameVersion >= 120000 && gameVersion < 130000) + return RCT1VersionAndFileType(RCT1Version::loopyLandscapes, fileType); + // RCTOA Acres sets this, and possibly some other user-created scenarios as well + if (gameVersion == 0) + return RCT1VersionAndFileType(RCT1Version::loopyLandscapes, fileType); + + throw std::length_error("Unrecognised game version!"); + } +} // namespace OpenRCT2::RCT1 diff --git a/src/openrct2/rct1/RCT1File.h b/src/openrct2/rct1/RCT1File.h new file mode 100644 index 0000000000..9803cec4ab --- /dev/null +++ b/src/openrct2/rct1/RCT1File.h @@ -0,0 +1,37 @@ +/***************************************************************************** + * Copyright (c) 2014-2026 OpenRCT2 developers + * + * For a complete list of all authors, please refer to contributors.md + * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 + * + * OpenRCT2 is licensed under the GNU General Public License version 3. + *****************************************************************************/ + +#pragma once + +#include +#include + +namespace OpenRCT2::RCT1 +{ + enum class RCT1Version : uint8_t + { + baseGame, + addedAttractions, + loopyLandscapes, + }; + enum class RCT1FileType : uint8_t + { + td4, + sv4, + sc4, + }; + struct RCT1VersionAndFileType + { + RCT1Version version; + RCT1FileType fileType; + }; + + RCT1VersionAndFileType detectFileType(const uint8_t* src, size_t length); + RCT1VersionAndFileType detectRCT1Version(int32_t gameVersion); +} // namespace OpenRCT2::RCT1 diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index 3e10e72cf8..9b97a8ef95 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -73,6 +73,7 @@ #include "../world/tile_element/TrackElement.h" #include "../world/tile_element/WallElement.h" #include "RCT1.h" +#include "RCT1File.h" #include "Tables.h" #include @@ -100,7 +101,7 @@ namespace OpenRCT2::RCT1 std::string _s4Path; S4 _s4 = {}; - uint8_t _gameVersion = 0; + RCT1Version _gameVersion = RCT1Version::baseGame; uint8_t _parkValueConversionFactor = kDefaultParkValueConversionFactor; bool _isScenario = false; @@ -176,7 +177,7 @@ namespace OpenRCT2::RCT1 _s4 = *ReadAndDecodeS4(stream, isScenario); _s4Path = path; _isScenario = isScenario; - _gameVersion = DetectRCT1Version(_s4.GameVersion) & FILE_VERSION_MASK; + _gameVersion = detectRCT1Version(_s4.GameVersion).version; // Only determine what objects we required to import this saved game InitialiseEntryMaps(); @@ -320,8 +321,8 @@ namespace OpenRCT2::RCT1 auto decodedData = std::make_unique(sizeof(S4)); size_t decodedSize; - int32_t fileType = DetectFileType(data.get(), dataSize); - if (isScenario && (fileType & FILE_VERSION_MASK) != FILE_VERSION_RCT1) + auto fileType = detectFileType(data.get(), dataSize); + if (isScenario && fileType.version != RCT1Version::baseGame) { decodedSize = DecodeSC4(data.get(), decodedData.get(), dataSize, sizeof(S4)); } @@ -625,14 +626,11 @@ namespace OpenRCT2::RCT1 void AddEntryForWater() { std::string_view entryName; - if (_gameVersion < FILE_VERSION_RCT1_LL) - { - entryName = GetWaterObject(RCT1_WATER_CYAN); - } - else - { + if (_gameVersion == RCT1Version::loopyLandscapes) entryName = GetWaterObject(_s4.WaterColour); - } + else + entryName = GetWaterObject(RCT1_WATER_CYAN); + _waterEntry.GetOrAddEntry(entryName); } @@ -642,7 +640,7 @@ namespace OpenRCT2::RCT1 if (_rideTypeToRideEntryMap[EnumValue(rideType)] == kObjectEntryIndexNull) { - auto entryName = GetRideTypeObject(rideType, _gameVersion == FILE_VERSION_RCT1_LL); + auto entryName = GetRideTypeObject(rideType, _gameVersion == RCT1Version::loopyLandscapes); if (!entryName.empty()) { auto entryIndex = _rideEntries.GetOrAddEntry(entryName); @@ -859,7 +857,7 @@ namespace OpenRCT2::RCT1 // Flags dst->flags.holder = src->flags; // These flags were not in the base game - if (_gameVersion == FILE_VERSION_RCT1) + if (_gameVersion == RCT1Version::baseGame) { dst->flags.unset(RideFlag::music, RideFlag::indestructible, RideFlag::indestructibleTrack); } @@ -964,7 +962,7 @@ namespace OpenRCT2::RCT1 dst->music = kObjectEntryIndexNull; if (GetRideTypeDescriptor(dst->type).flags.has(RtdFlag::allowMusic)) { - if (_gameVersion == FILE_VERSION_RCT1) + if (_gameVersion == RCT1Version::baseGame) { // Original RCT had no music settings, take default style auto style = GetStyleFromMusicIdentifier(GetRideTypeDescriptor(dst->type).DefaultMusic); @@ -1102,7 +1100,7 @@ namespace OpenRCT2::RCT1 { // Colours dst->vehicleColourSettings = src->vehicleColourSettings; - if (_gameVersion == FILE_VERSION_RCT1) + if (_gameVersion == RCT1Version::baseGame) { dst->trackColours[0].main = GetColour(src->trackPrimaryColour); dst->trackColours[0].additional = GetColour(src->trackSecondaryColour); @@ -1132,7 +1130,7 @@ namespace OpenRCT2::RCT1 if (dst->getRideTypeDescriptor().flags.has(RtdFlag::hasEntranceAndExit)) { // Entrance styles were introduced with AA. They correspond directly with those in RCT2. - if (_gameVersion == FILE_VERSION_RCT1) + if (_gameVersion == RCT1Version::baseGame) { dst->entranceStyle = 0; // plain entrance } @@ -1142,7 +1140,7 @@ namespace OpenRCT2::RCT1 } } - if (_gameVersion < FILE_VERSION_RCT1_LL && src->type == RideType::merryGoRound) + if (_gameVersion != RCT1Version::loopyLandscapes && src->type == RideType::merryGoRound) { // The merry-go-round in pre-LL versions was always yellow with red dst->vehicleColours[0].Body = Drawing::Colour::yellow; @@ -1199,7 +1197,7 @@ namespace OpenRCT2::RCT1 // LL has 4 types, like RCT2. For LL, only guard against invalid values. if (src->type == RideType::hedgeMaze) { - if (_gameVersion < FILE_VERSION_RCT1_LL || src->trackColourSupports[0] > 3) + if (_gameVersion != RCT1Version::loopyLandscapes || src->trackColourSupports[0] > 3) dst->trackColours[0].supports = static_cast(hedges); else dst->trackColours[0].supports = static_cast(src->trackColourSupports[0]); @@ -1708,7 +1706,7 @@ namespace OpenRCT2::RCT1 } uint8_t railingsType = RCT1_PATH_SUPPORT_TYPE_TRUSS; - if (_gameVersion == FILE_VERSION_RCT1_LL) + if (_gameVersion == RCT1Version::loopyLandscapes) { railingsType = src2->GetRCT1SupportType(); } @@ -2066,7 +2064,7 @@ namespace OpenRCT2::RCT1 { InsertResearchVehicle(researchItem, researched); } - else if (!rideTypeInResearch[researchItem.RelatedRide] && _gameVersion == FILE_VERSION_RCT1_LL) + else if (!rideTypeInResearch[researchItem.RelatedRide] && _gameVersion == RCT1Version::loopyLandscapes) { vehiclesWithMissingRideTypes.push_back(researchItem); } @@ -2322,7 +2320,7 @@ namespace OpenRCT2::RCT1 park.size = _s4.ParkSize; park.totalRideValueForMoney = _s4.TotalRideValueForMoney; park.samePriceThroughoutPark = 0; - if (_gameVersion == FILE_VERSION_RCT1_LL) + if (_gameVersion == RCT1Version::loopyLandscapes) { park.samePriceThroughoutPark = _s4.SamePriceThroughout; } @@ -2618,7 +2616,7 @@ namespace OpenRCT2::RCT1 const ResearchItem* GetResearchList(size_t* count) { // Loopy Landscapes stores research items in a different place - if (_gameVersion == FILE_VERSION_RCT1_LL) + if (_gameVersion == RCT1Version::loopyLandscapes) { *count = std::size(_s4.ResearchItemsLL); return _s4.ResearchItemsLL; @@ -2931,7 +2929,7 @@ namespace OpenRCT2::RCT1 dst->vandalismSeen = src->VandalismSeen; // Balloons were always blue in RCT1 without AA/LL, umbrellas always red - if (_gameVersion == FILE_VERSION_RCT1) + if (_gameVersion == RCT1Version::baseGame) { dst->umbrellaColour = Drawing::Colour::brightRed; dst->balloonColour = Drawing::Colour::lightBlue; @@ -2978,7 +2976,7 @@ namespace OpenRCT2::RCT1 RideUse::GetTypeHistory().Set(dst->id, RCT12GetRideTypesBeenOn(src)); dst->photo1RideRef = RCT12RideIdToOpenRCT2RideId(src->Photo1RideRef); - dst->peepFlags.holder = src->getPeepFlags(_gameVersion == FILE_VERSION_RCT1_LL); + dst->peepFlags.holder = src->getPeepFlags(_gameVersion == RCT1Version::loopyLandscapes); for (size_t i = 0; i < std::size(src->Thoughts); i++) { @@ -3000,7 +2998,7 @@ namespace OpenRCT2::RCT1 dst->guestNextInQueue = EntityId::FromUnderlying(src->NextInQueue); // Guests' favourite ride was only saved in LL. // Set it to N/A if the save comes from the original or AA. - if (_gameVersion == FILE_VERSION_RCT1_LL) + if (_gameVersion == RCT1Version::loopyLandscapes) { dst->favouriteRide = RCT12RideIdToOpenRCT2RideId(src->FavouriteRide); dst->favouriteRideRating = src->FavouriteRideRating; @@ -3011,7 +3009,7 @@ namespace OpenRCT2::RCT1 dst->favouriteRideRating = 0; } - dst->setItemFlags(src->GetItemFlags(_gameVersion == FILE_VERSION_RCT1)); + dst->setItemFlags(src->GetItemFlags(_gameVersion == RCT1Version::baseGame)); } template<> @@ -3147,7 +3145,7 @@ namespace OpenRCT2::RCT1 dst->popped = src->Popped; dst->timeToMove = src->TimeToMove; // Balloons were always blue in RCT1 without AA/LL - if (_gameVersion == FILE_VERSION_RCT1) + if (_gameVersion == RCT1Version::baseGame) { dst->colour = Drawing::Colour::lightBlue; } diff --git a/src/openrct2/sawyer_coding/SawyerCoding.cpp b/src/openrct2/sawyer_coding/SawyerCoding.cpp index 234f68db07..dcfea1ab22 100644 --- a/src/openrct2/sawyer_coding/SawyerCoding.cpp +++ b/src/openrct2/sawyer_coding/SawyerCoding.cpp @@ -381,42 +381,4 @@ namespace OpenRCT2::SawyerCoding } #pragma endregion - - int32_t DetectFileType(const uint8_t* src, size_t length) - { - if (length < 4) - { - throw std::length_error("Stream is (nearly) empty!"); - } - - // Currently can't detect TD4, as the checksum is the same as SC4 (need alternative method) - - uint32_t checksum = *(reinterpret_cast(&src[length - 4])); - uint32_t actualChecksum = 0; - for (size_t i = 0; i < length - 4; i++) - { - actualChecksum = (actualChecksum & 0xFFFFFF00) | (((actualChecksum & 0xFF) + static_cast(src[i])) & 0xFF); - actualChecksum = Numerics::rol32(actualChecksum, 3); - } - - return DetectRCT1Version(checksum - actualChecksum); - } - - int32_t DetectRCT1Version(int32_t gameVersion) - { - int32_t fileType = (gameVersion) > 0 ? FILE_TYPE_SV4 : FILE_TYPE_SC4; - gameVersion = abs(gameVersion); - - if (gameVersion >= 108000 && gameVersion < 110000) - return (FILE_VERSION_RCT1 | fileType); - if (gameVersion >= 110000 && gameVersion < 120000) - return (FILE_VERSION_RCT1_AA | fileType); - if (gameVersion >= 120000 && gameVersion < 130000) - return (FILE_VERSION_RCT1_LL | fileType); - // RCTOA Acres sets this, and possibly some other user-created scenarios as well - if (gameVersion == 0) - return (FILE_VERSION_RCT1_LL | fileType); - - return -1; - } } // namespace OpenRCT2::SawyerCoding diff --git a/src/openrct2/sawyer_coding/SawyerCoding.h b/src/openrct2/sawyer_coding/SawyerCoding.h index 71794b3020..3629212bd7 100644 --- a/src/openrct2/sawyer_coding/SawyerCoding.h +++ b/src/openrct2/sawyer_coding/SawyerCoding.h @@ -16,20 +16,6 @@ namespace OpenRCT2::SawyerCoding { - // TODO: make enum class in SawyerCoding namespace - enum - { - FILE_VERSION_MASK = (3 << 0), - FILE_VERSION_RCT1 = (0 << 0), - FILE_VERSION_RCT1_AA = (1 << 0), - FILE_VERSION_RCT1_LL = (2 << 0), - - FILE_TYPE_MASK = (3 << 2), - FILE_TYPE_TD4 = (0 << 2), - FILE_TYPE_SV4 = (1 << 2), - FILE_TYPE_SC4 = (2 << 2) - }; - uint32_t CalculateChecksum(const uint8_t* buffer, size_t length); size_t WriteChunkBuffer(uint8_t* dst_file, const uint8_t* src_buffer, ChunkHeader chunkHeader); size_t DecodeSV4(const uint8_t* src, uint8_t* dst, size_t length, size_t bufferLength); @@ -41,7 +27,4 @@ namespace OpenRCT2::SawyerCoding size_t EncodeChunkRLE(const uint8_t* src_buffer, uint8_t* dst_buffer, size_t length); size_t EncodeChunkRepeat(const uint8_t* src_buffer, uint8_t* dst_buffer, size_t length); void EncodeChunkRotate(uint8_t* buffer, size_t length); - - int32_t DetectFileType(const uint8_t* src, size_t length); - int32_t DetectRCT1Version(int32_t gameVersion); } // namespace OpenRCT2::SawyerCoding From f5d18def7ce677670b936a6fcc42f9467baf365c Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 3 Oct 2026 11:12:38 +0200 Subject: [PATCH 116/142] Make kPaletteTotalOffsets uint16_t, clarify its value --- src/openrct2/drawing/Drawing.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2/drawing/Drawing.h b/src/openrct2/drawing/Drawing.h index 360cd20399..2864a34af6 100644 --- a/src/openrct2/drawing/Drawing.h +++ b/src/openrct2/drawing/Drawing.h @@ -39,7 +39,8 @@ namespace OpenRCT2::Drawing }; } // namespace OpenRCT2::Drawing -constexpr uint8_t kPaletteTotalOffsets = 192; +// Every colour is represented two times as a FilterPaletteID, once as a regular colour and once as a glass colour. +constexpr uint16_t kPaletteTotalOffsets = 80 + (2 * OpenRCT2::Drawing::kColourNumTotal); extern const OpenRCT2::Drawing::TranslucentWindowPalette kTranslucentWindowPalettes[OpenRCT2::Drawing::kColourNumTotal]; From 3a291aacbbbcf6babf316c634721da20f619b611 Mon Sep 17 00:00:00 2001 From: ZeeMaji <42477864+ZeeMaji@users.noreply.github.com> Date: Tue, 24 Mar 2026 19:45:14 +0100 Subject: [PATCH 117/142] Add eighteen new colours, including five from the RCT1 base game --- data/language/en-GB.txt | 18 ++ .../palettes/map_base/palette_map_amber.png | Bin 0 -> 1231 bytes .../map_base/palette_map_amethyst.png | Bin 0 -> 1231 bytes .../map_base/palette_map_asparagus.png | Bin 0 -> 1231 bytes .../palettes/map_base/palette_map_brown.png | Bin 0 -> 1231 bytes .../map_base/palette_map_burnt_pink.png | Bin 0 -> 1231 bytes .../palettes/map_base/palette_map_cactus.png | Bin 0 -> 1231 bytes .../palettes/map_base/palette_map_caramel.png | Bin 0 -> 1231 bytes .../palettes/map_base/palette_map_copper.png | Bin 0 -> 1231 bytes .../palettes/map_base/palette_map_crimson.png | Bin 0 -> 1231 bytes .../map_base/palette_map_darker_water.png | Bin 0 -> 1231 bytes .../map_base/palette_map_deep_blue.png | Bin 0 -> 1231 bytes .../palettes/map_base/palette_map_emerald.png | Bin 0 -> 1231 bytes .../palettes/map_base/palette_map_gold.png | Bin 0 -> 5237 bytes .../palettes/map_base/palette_map_indigo.png | Bin 0 -> 1231 bytes .../palettes/map_base/palette_map_pesto.png | Bin 0 -> 1231 bytes .../map_base/palette_map_pine_green.png | Bin 0 -> 1231 bytes .../palettes/map_base/palette_map_ruby.png | Bin 0 -> 1218 bytes .../palettes/map_base/palette_map_silver.png | Bin 0 -> 1231 bytes .../map_glass/palette_map_glass_amber.png | Bin 0 -> 1147 bytes .../map_glass/palette_map_glass_amethyst.png | Bin 0 -> 1145 bytes .../map_glass/palette_map_glass_asparagus.png | Bin 0 -> 1143 bytes .../map_glass/palette_map_glass_brown.png | Bin 0 -> 1145 bytes .../palette_map_glass_burnt_pink.png | Bin 0 -> 1147 bytes .../map_glass/palette_map_glass_cactus.png | Bin 0 -> 1145 bytes .../map_glass/palette_map_glass_caramel.png | Bin 0 -> 1145 bytes .../map_glass/palette_map_glass_copper.png | Bin 0 -> 1145 bytes .../map_glass/palette_map_glass_crimson.png | Bin 0 -> 1139 bytes .../palette_map_glass_darker_water.png | Bin 0 -> 1147 bytes .../map_glass/palette_map_glass_deep_blue.png | Bin 0 -> 873 bytes .../map_glass/palette_map_glass_emerald.png | Bin 0 -> 1145 bytes .../map_glass/palette_map_glass_gold.png | Bin 0 -> 4996 bytes .../map_glass/palette_map_glass_indigo.png | Bin 0 -> 1145 bytes .../map_glass/palette_map_glass_pesto.png | Bin 0 -> 1145 bytes .../palette_map_glass_pine_green.png | Bin 0 -> 1146 bytes .../map_glass/palette_map_glass_ruby.png | Bin 0 -> 879 bytes .../map_glass/palette_map_glass_silver.png | Bin 0 -> 1143 bytes resources/palettes/sprites.json | 180 ++++++++++++++++++ src/openrct2-ui/UiStringIds.h | 18 ++ src/openrct2-ui/windows/Dropdown.cpp | 35 +++- src/openrct2/SpriteIds.h | 36 ++++ src/openrct2/drawing/Colour.cpp | 32 +++- src/openrct2/drawing/Colour.h | 22 ++- src/openrct2/drawing/Drawing.cpp | 72 +++++++ src/openrct2/drawing/FilterPaletteIds.h | 18 ++ src/openrct2/park/ParkFile.h | 4 +- 46 files changed, 426 insertions(+), 9 deletions(-) create mode 100644 resources/palettes/map_base/palette_map_amber.png create mode 100644 resources/palettes/map_base/palette_map_amethyst.png create mode 100644 resources/palettes/map_base/palette_map_asparagus.png create mode 100644 resources/palettes/map_base/palette_map_brown.png create mode 100644 resources/palettes/map_base/palette_map_burnt_pink.png create mode 100644 resources/palettes/map_base/palette_map_cactus.png create mode 100644 resources/palettes/map_base/palette_map_caramel.png create mode 100644 resources/palettes/map_base/palette_map_copper.png create mode 100644 resources/palettes/map_base/palette_map_crimson.png create mode 100644 resources/palettes/map_base/palette_map_darker_water.png create mode 100644 resources/palettes/map_base/palette_map_deep_blue.png create mode 100644 resources/palettes/map_base/palette_map_emerald.png create mode 100644 resources/palettes/map_base/palette_map_gold.png create mode 100644 resources/palettes/map_base/palette_map_indigo.png create mode 100644 resources/palettes/map_base/palette_map_pesto.png create mode 100644 resources/palettes/map_base/palette_map_pine_green.png create mode 100644 resources/palettes/map_base/palette_map_ruby.png create mode 100644 resources/palettes/map_base/palette_map_silver.png create mode 100644 resources/palettes/map_glass/palette_map_glass_amber.png create mode 100644 resources/palettes/map_glass/palette_map_glass_amethyst.png create mode 100644 resources/palettes/map_glass/palette_map_glass_asparagus.png create mode 100644 resources/palettes/map_glass/palette_map_glass_brown.png create mode 100644 resources/palettes/map_glass/palette_map_glass_burnt_pink.png create mode 100644 resources/palettes/map_glass/palette_map_glass_cactus.png create mode 100644 resources/palettes/map_glass/palette_map_glass_caramel.png create mode 100644 resources/palettes/map_glass/palette_map_glass_copper.png create mode 100644 resources/palettes/map_glass/palette_map_glass_crimson.png create mode 100644 resources/palettes/map_glass/palette_map_glass_darker_water.png create mode 100644 resources/palettes/map_glass/palette_map_glass_deep_blue.png create mode 100644 resources/palettes/map_glass/palette_map_glass_emerald.png create mode 100644 resources/palettes/map_glass/palette_map_glass_gold.png create mode 100644 resources/palettes/map_glass/palette_map_glass_indigo.png create mode 100644 resources/palettes/map_glass/palette_map_glass_pesto.png create mode 100644 resources/palettes/map_glass/palette_map_glass_pine_green.png create mode 100644 resources/palettes/map_glass/palette_map_glass_ruby.png create mode 100644 resources/palettes/map_glass/palette_map_glass_silver.png diff --git a/data/language/en-GB.txt b/data/language/en-GB.txt index 35031abed8..61f0604f5e 100644 --- a/data/language/en-GB.txt +++ b/data/language/en-GB.txt @@ -3854,3 +3854,21 @@ STR_7060 :Guests watching construction of {STRINGID} STR_7061 :Guests looking at scenery STR_7062 :Guests leaving the park STR_7063 :Guests watching new ride being constructed +STR_7064 :Gold +STR_7065 :Amber +STR_7066 :Amethyst +STR_7067 :Asparagus +STR_7068 :Brown +STR_7069 :Burnt pink +STR_7070 :Cactus +STR_7071 :Caramel +STR_7072 :Copper +STR_7073 :Crimson +STR_7074 :Darker water +STR_7075 :Emerald +STR_7076 :Indigo +STR_7077 :Pesto +STR_7078 :Pine green +STR_7079 :Ruby +STR_7080 :Deep blue +STR_7081 :Silver diff --git a/resources/palettes/map_base/palette_map_amber.png b/resources/palettes/map_base/palette_map_amber.png new file mode 100644 index 0000000000000000000000000000000000000000..202b0e15db099e05d5bc9a69743d48017083b1df GIT binary patch literal 1231 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1D`af*Z7ofvPP)Tw7+U|>mi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>d#>URh&cVUK$;m0MtgLKotnch>9~|tR zoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TTTTh?uzkGfC z?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1-`^j0mu869 zW+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;(^VdsD_p7Tf zwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ>wfE%R!HZAF zZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B`2nREWr!&Y` zGpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y@cHKC>(h%L zuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z^5ysM-~VTj z&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bWU0yj@TR+*_ zy4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@oql|E{q_B` zpI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcDpMLuH_WS>@ zzgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$XZU}c;s1XI z_5OD0=4$rzc!v0J{__0e|NqZ^{5W|1dgIyCt52VHj*bq_&Q7kb&NtR?HrJnSZ@k*s zc)z#)WqVJkiH(a-NK8sjNli=7$jr*l z$<50zC@d;2DJ?6nsI024sjaJTXl!b3X>Duo=Fw*EFmcl4DO0CSpD}aR>^XDi z&0nx^(c&dbmn~nha@FcJYuBycuyNDoEnBy3-?4Mo?mc_=?LTnv(BUITj~zd8^3>@w zXV0C#aPiXRD_5^wzj5={?K^kx-GA`#(c>pipFMx^^404%Z{NND@bS~8O$a0Yrwi1Z TsV)6K9Tb|Lu6{1-oD!M<^+X7E literal 0 HcmV?d00001 diff --git a/resources/palettes/map_base/palette_map_amethyst.png b/resources/palettes/map_base/palette_map_amethyst.png new file mode 100644 index 0000000000000000000000000000000000000000..d53c873c4639c24e3155f959c06c172561ae9162 GIT binary patch literal 1231 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1D`af*Z7ofvPP)Tw7+U|>mi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>d#>URh&cVUK$;m0MtgLKotnch>9~|tR zoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TTTTh?uzkGfC z?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1-`^j0mu869 zW+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;(^VdsD_p7Tf zwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ>wfE%R!HZAF zZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B`2nREWr!&Y` zGpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y@cHKC>(h%L zuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z^5ysM-~VTj z&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bWU0yj@TR+*_ zy4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@oql|E{q_B` zpI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcDpMLuH_WS>@ zzgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$XZU}c;s1XI z_5OD0=4$rzc!v0J{__0e|NqZ^{5W|1dgIyCt52VHj*bq_&Q7kb&NtR?HrJnSZ@k*s zc)z#)WqVJkiH(a-NK8sjNli=7$jr*l z$<50zC@d;2DJ?6nsI024sjaJTXl!b3X>Duo=Fw*EFmcl4DO0CSpD}aR>^XDi z&0nx^(c&dbmn~nha@FcJYuBycuyNDoEnBy3-?4Mo?mc_=?LTnv(BUITj~zd8^3>@w zXV0C#aPiXRD_5^wzj5={?K^kx-GA`#(c>pipFMx^^404%Z{NND@bS|uB$NNgJ*-ox S=iqq<3QbQ}KbLh*2~7a1Vh0ES literal 0 HcmV?d00001 diff --git a/resources/palettes/map_base/palette_map_asparagus.png b/resources/palettes/map_base/palette_map_asparagus.png new file mode 100644 index 0000000000000000000000000000000000000000..9c0ecf529e7ddeb1dfa7b2fabc63a20736dcbbe9 GIT binary patch literal 1231 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1D`af*Z7ofvPP)Tw7+U|>mi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>d#>URh&cVUK$;m0MtgLKotnch>9~|tR zoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TTTTh?uzkGfC z?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1-`^j0mu869 zW+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;(^VdsD_p7Tf zwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ>wfE%R!HZAF zZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B`2nREWr!&Y` zGpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y@cHKC>(h%L zuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z^5ysM-~VTj z&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bWU0yj@TR+*_ zy4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@oql|E{q_B` zpI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcDpMLuH_WS>@ zzgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$XZU}c;s1XI z_5OD0=4$rzc!v0J{__0e|NqZ^{5W|1dgIyCt52VHj*bq_&Q7kb&NtR?HrJnSZ@k*s zc)z#)WqVJkiH(a-NK8sjNli=7$jr*l z$<50zC@d;2DJ?6nsI024sjaJTXl!b3X>Duo=Fw*EFmcl4DO0CSpD}aR>^XDi z&0nx^(c&dbmn~nha@FcJYuBycuyNDoEnBy3-?4Mo?mc_=?LTnv(BUITj~zd8^3>@w zXV0C#aPiXRD_5^wzj5={?K^kx-GA`#(c>pipFMx^^404%Z{NND@bOa+k_-R4POLgm T^6Z~BC^S7?{an^LB{Ts5Ks*Ja literal 0 HcmV?d00001 diff --git a/resources/palettes/map_base/palette_map_brown.png b/resources/palettes/map_base/palette_map_brown.png new file mode 100644 index 0000000000000000000000000000000000000000..48923c709cee4d7977d135f7d8443cba902c3749 GIT binary patch literal 1231 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1D`af*Z7ofvPP)Tw7+U|>mi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>d#>URh&cVUK$;m0MtgLKotnch>9~|tR zoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TTTTh?uzkGfC z?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1-`^j0mu869 zW+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;(^VdsD_p7Tf zwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ>wfE%R!HZAF zZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B`2nREWr!&Y` zGpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y@cHKC>(h%L zuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z^5ysM-~VTj z&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bWU0yj@TR+*_ zy4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@oql|E{q_B` zpI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcDpMLuH_WS>@ zzgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$XZU}c;s1XI z_5OD0=4$rzc!v0J{__0e|NqZ^{5W|1dgIyCt52VHj*bq_&Q7kb&NtR?HrJnSZ@k*s zc)z#)WqdA%2A7x@-VC3<1aSV~T%*e?2?;iuh=PzGb zSlQS)IJvlac=`AR1cih}M8(7Lc_u%BBP>XV&mcy5|ffsQq$5iGPAOC za`W;F3X6(MO3TVCDyyn%YU}D78k?G1THD$?I=i}idi(k(Oq?`%%G7DoXUv>6d(PZ> z^A{{!w0OzVWy@ErT(x@5+I8zUY}~YY%hqk%ckJA?d(Yl|`wtvEboj{8W5-XNJazia z*>mSFT)cGo%GGPvZ`{0f`_A2a_a8ib^!UlsXU|`}eD(Ux+js9jeEftg`M<=i;kQ82 R5^hjvdb;|#taD0e0swKf31$EQ literal 0 HcmV?d00001 diff --git a/resources/palettes/map_base/palette_map_burnt_pink.png b/resources/palettes/map_base/palette_map_burnt_pink.png new file mode 100644 index 0000000000000000000000000000000000000000..a1f6d57543787e3f94bf0b639790e13aeb9df027 GIT binary patch literal 1231 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1D`af*Z7ofvPP)Tw7+U|>mi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>d#>URh&cVUK$;m0MtgLKotnch>9~|tR zoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TTTTh?uzkGfC z?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1-`^j0mu869 zW+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;(^VdsD_p7Tf zwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ>wfE%R!HZAF zZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B`2nREWr!&Y` zGpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y@cHKC>(h%L zuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z^5ysM-~VTj z&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bWU0yj@TR+*_ zy4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@oql|E{q_B` zpI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcDpMLuH_WS>@ zzgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$XZU}c;s1XI z_5OD0=4$rzc!v0J{__0e|NqZ^{5W|1dgIyCt52VHj*bq_&Q7kb&NtR?HrJnSZ@k*s zc)z#)Wqkx|hxv2pPUiAl*RscGpMnOWI6 zxq0~og+;|BrDf$6l~vU>wRQCkjZMuht!?ccon75My?y-?CQh0>W$Lu)GiJ`3J!kH` z`3n{J9h5cy=U*f{Ra*nI(+2lvEwIBo;rQz z?78z7E?&BP<+v*#~fzIy%U?Ys9MK7KlN3Ze9WenUf; Ts`4FBp~T?n>gTe~DWM4fACL%~ literal 0 HcmV?d00001 diff --git a/resources/palettes/map_base/palette_map_cactus.png b/resources/palettes/map_base/palette_map_cactus.png new file mode 100644 index 0000000000000000000000000000000000000000..bafff786d1e248ba71373129bbe21084646bf4e0 GIT binary patch literal 1231 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1D`af*Z7ofvPP)Tw7+U|>mi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>d#>URh&cVUK$;m0MtgLKotnch>9~|tR zoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TTTTh?uzkGfC z?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1-`^j0mu869 zW+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;(^VdsD_p7Tf zwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ>wfE%R!HZAF zZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B`2nREWr!&Y` zGpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y@cHKC>(h%L zuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z^5ysM-~VTj z&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bWU0yj@TR+*_ zy4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@oql|E{q_B` zpI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcDpMLuH_WS>@ zzgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$XZU}c;s1XI z_5OD0=4$rzc!v0J{__0e|NqZ^{5W|1dgIyCt52VHj*bq_&Q7kb&NtR?HrJnSZ@k*s zc)z#)Wq zu(GjpaB^|;@bd8s2nq>{h>D3zNJ>e|$jZqpC@LwdsH&-JXliNe=<4Yk7#bOyn3|be zSXx=z*xK1UI667IxVpJ}czSvJ`1<(=1O^3%gocGjL`Fr&#Ky%ZBqk-Nq^6~3WM*aO zYz*tlu)maW^i@7TF(_ny7`_8&NS=mi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>d#>URh&cVUK$;m0MtgLKotnch>9~|tR zoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TTTTh?uzkGfC z?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1-`^j0mu869 zW+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;(^VdsD_p7Tf zwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ>wfE%R!HZAF zZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B`2nREWr!&Y` zGpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y@cHKC>(h%L zuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z^5ysM-~VTj z&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bWU0yj@TR+*_ zy4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@oql|E{q_B` zpI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcDpMLuH_WS>@ zzgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$XZU}c;s1XI z_5OD0=4$rzc!v0J{__0e|NqZ^{5W|1dgIyCt52VHj*bq_&Q7kb&NtR?HrJnSZ@k*s zc)z#)WqLc_u%BBP>XV&mcy5|ffsQq$5iGPAOC za`W;F3X6(MO3TVCDyyn%YU}D78k?G1THD$?I=i}idi(k(Oq?`%%G7DoXUv>6d(PZ> z^A{{!w0OzVWy@ErT(x@5+I8zUY}~YY%hqk%ckJA?d(Yl|`wtvEboj{8W5-XNJazia z*>mSFT)cGo%GGPvZ`{0f`_A2a_a8ib^!UlsXU|`}eD(Ux+js9jeEg)Ogz(aTlY)ve T#)A{Sfmi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>d#>URh&cVUK$;m0MtgLKotnch>9~|tR zoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TTTTh?uzkGfC z?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1-`^j0mu869 zW+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;(^VdsD_p7Tf zwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ>wfE%R!HZAF zZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B`2nREWr!&Y` zGpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y@cHKC>(h%L zuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z^5ysM-~VTj z&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bWU0yj@TR+*_ zy4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@oql|E{q_B` zpI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcDpMLuH_WS>@ zzgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$XZU}c;s1XI z_5OD0=4$rzc!v0J{__0e|NqZ^{5W|1dgIyCt52VHj*bq_&Q7kb&NtR?HrJnSZ@k*s zc)z#)Wq zu(GjpaB^|;@bd8s2nq>{h>D3zNJ>e|$jZqpC@LwdsH&-JXliNe=<4Yk7#bOyn3|be zSXx=z*xK1UI667IxVpJ}czSvJ`1<(=1O^3%gocGjL`Fr&#Ky%ZBqk-Nq^6~3WM*aO zYz*tlu)maW^i@7TF(_ny7`_8&NS=mi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>d#>URh&cVUK$;m0MtgLKotnch>9~|tR zoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TTTTh?uzkGfC z?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1-`^j0mu869 zW+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;(^VdsD_p7Tf zwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ>wfE%R!HZAF zZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B`2nREWr!&Y` zGpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y@cHKC>(h%L zuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z^5ysM-~VTj z&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bWU0yj@TR+*_ zy4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@oql|E{q_B` zpI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcDpMLuH_WS>@ zzgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$XZU}c;s1XI z_5OD0=4$rzc!v0J{__0e|NqZ^{5W|1dgIyCt52VHj*bq_&Q7kb&NtR?HrJnSZ@k*s zc)z#)Wq zu(GjpaB^|;@bd8s2nq>{h>D3zNJ>e|$jZqpC@LwdsH&-JXliNe=<4Yk7#bOyn3|be zSXx=z*xK1UI667IxVpJ}czSvJ`1<(=1O^3%gocGjL`Fr&#Ky%ZBqk-Nq^6~3WM*aO zYz*tlu)maW^i@7TF(_ny7`_8&NS=mi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>d#>URh&cVUK$;m0MtgLKotnch>9~|tR zoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TTTTh?uzkGfC z?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1-`^j0mu869 zW+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;(^VdsD_p7Tf zwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ>wfE%R!HZAF zZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B`2nREWr!&Y` zGpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y@cHKC>(h%L zuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z^5ysM-~VTj z&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bWU0yj@TR+*_ zy4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@oql|E{q_B` zpI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcDpMLuH_WS>@ zzgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$XZU}c;s1XI z_5OD0=4$rzc!v0J{__0e|NqZ^{5W|1dgIyCt52VHj*bq_&Q7kb&NtR?HrJnSZ@k*s zc)z#)Wq9A>7vWPz{un2;us=vnURt4-#-S1&tJZ> zu(GjpaB^|;@bd8s2nq>{h>D3zNJ>e|$jZqpC@LwdsH&-JXliNe=<4Yk7#bOyn3|be zSXx=z*xK1UI667IxVpJ}czSvJ`1<(=1O^3%gocGjL`Fr&#Ky%ZBqk-Nq^6~3WM*aO zYz*tlu)maW^i@7TF(_ny7`_8&NS=mi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>d#>URh&cVUK$;m0MtgLKotnch>9~|tR zoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TTTTh?uzkGfC z?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1-`^j0mu869 zW+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;(^VdsD_p7Tf zwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ>wfE%R!HZAF zZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B`2nREWr!&Y` zGpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y@cHKC>(h%L zuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z^5ysM-~VTj z&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bWU0yj@TR+*_ zy4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@oql|E{q_B` zpI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcDpMLuH_WS>@ zzgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$XZU}c;s1XI z_5OD0=4$rzc!v0J{__0e|NqZ^{5W|1dgIyCt52VHj*bq_&Q7kb&NtR?HrJnSZ@k*s zc)z#)WqVJkiH(a-NK8sjNli=7$jr*l z$<50zC@d;2DJ?6nsI024sjaJTXl!b3X>Duo=Fw*EFmcl4DO0CSpD}aR>^XDi z&0nx^(c&dbmn~nha@FcJYuBycuyNDoEnBy3-?4Mo?mc_=?LTnv(BUITj~zd8^3>@w zXV0C#aPiXRD_5^wzj5={?K^kx-GA`#(c>pipFMx^^404%Z{NND@bObwSy>s((*MEB VYPSA8F^3%#nx3wHF6*2UngCQ92X_Df literal 0 HcmV?d00001 diff --git a/resources/palettes/map_base/palette_map_emerald.png b/resources/palettes/map_base/palette_map_emerald.png new file mode 100644 index 0000000000000000000000000000000000000000..f5990eb96f791a8fc34d7c8a6c16d460db0ca1f7 GIT binary patch literal 1231 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1D`af*Z7ofvPP)Tw7+U|>mi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>d#>URh&cVUK$;m0MtgLKotnch>9~|tR zoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TTTTh?uzkGfC z?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1-`^j0mu869 zW+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;(^VdsD_p7Tf zwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ>wfE%R!HZAF zZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B`2nREWr!&Y` zGpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y@cHKC>(h%L zuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z^5ysM-~VTj z&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bWU0yj@TR+*_ zy4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@oql|E{q_B` zpI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcDpMLuH_WS>@ zzgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$XZU}c;s1XI z_5OD0=4$rzc!v0J{__0e|NqZ^{5W|1dgIyCt52VHj*bq_&Q7kb&NtR?HrJnSZ@k*s zc)z#)Wq zu(GjpaB^|;@bd8s2nq>{h>D3zNJ>e|$jZqpC@LwdsH&-JXliNe=<4Yk7#bOyn3|be zSXx=z*xK1UI667IxVpJ}czSvJ`1<(=1O^3%gocGjL`Fr&#Ky%ZBqk-Nq^6~3WM*aO zYz*tlu)maW^i@7TF(_ny7`_8&NS=gTe~DWM4f#TEpE literal 0 HcmV?d00001 diff --git a/resources/palettes/map_base/palette_map_gold.png b/resources/palettes/map_base/palette_map_gold.png new file mode 100644 index 0000000000000000000000000000000000000000..48aba1404b77cb137ea9c53f43c40799e0e25e30 GIT binary patch literal 5237 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1F6U|={{6%tVrlvu7%P?VpR znUkteQdy9ykXn(M#=uZvYvAhROJpJ-Pv1~FTmsy4)1$EWz~Kd7@&iw8i`~B=JSx%FNqOtmxASX0zm&ar zztMxWc~0XMX@_o+fS3c33+g5$u4{a8W=5Lbg!;U~J8Fb`J1# zc7}O|fuUkf?Zo}whaF^&#z!wz5@od(DLfItdQdO)$i}dR9HLHZFRW@lxpe;mPv=RG z9%<|lllikTqO_p!+SP-h0xb0nKiE4aFY2E1WABm+O2?WX+wIx?eMdF>kJ+KiX4!H& zT-8yY?8UY7&nkf$R|Y{I#Xio?nZM>}EPH6V@7=@4uVZ`CE9d_%=FwoC%xKqWaj@jD z(mjQFH@B3W`+X!aY?{cU;zyp%dLDmHl-_)5eonRhuZ?j|it*y**;%s!=7R~^R|2FcQpfYw%twNjdDMqB28 z`Ot4sH!;R&r&hv~2nSv*mE-*X*!S-??G7$9*POyq6`%7vnTO*Y)7rM&dimRBuUR;3 zn8Txv$7eHbp1;K0D(VY|#2q%hb=I@?u*bY(n5Z6Wq~gwX;fr|pf!~s~!EzG&Sbtr= zbMMw~i&}ga_K(FyH{Z0piDqEnt;h_CD2ed( zu}aR*)k{ptPfFFR$SnXRLIxZAih{)C?9>v4q}24xJX@vryZ0+8WTx0Eg`4^s_!c;) zW@LI)6{QAO`Gq7`WhYyvDB0U_*;H6nnkaM zm6T-LDnjVC87bLuDcBUHq*(>IxIv95N=dU-$|xx*u+rBr zFE7_CH`dE9O4m2Ew6xSWFw!?N(k)6!(=D#dD@m--%_~+0838fFCAB!YD6^m>Ge1uO zWM*PgerbuVk`kAKf&$d=irfNUU%2sk#n4bl&d=4aNG#Ad)HBe}&DBTNQC#9$R)Swg zaY$uBs(w&vaeir0a;j@tYF>#lvJolCaQy|PMLA&aq$KO7=A`DP=9Lud8|oRNSn2NR z8vxe<3WD^^+ybz!irfMel_i;Jh`>Ve4M+y;9b|`86#=b8R;ga7+dNlC8ZiBT9_uA8e5to z8ReN*T#}fVoC-3kBDX*#2jQ-fs9JYOtCUIOEb4fGf&b@O-(k_HAyo_)wN7BHqkXoG)c9z zG&D9#Gcg1km6B}bmS2>cSYoS`nVXoNs$Y&Bao&iE6ASbaTEx#z& zR>>zbue1Uo5t5mk8eEbH3Qa?Ea}#58V{=0TV@oqjGZTcOu+*aB%=|o%nT7^>#%5p{ zP_$V27iFgAl_Y}FsjU*kX%)EzR?bDKi6!|(A^G_^wn`u;DH!P)LYxDV_DwBGOi3(B zbV)2pwN)}QFfy|;Ft#!>2{E*=GB&j`G|)CMv@$?apP!PMR!K;;9Vm0yK%(3uv$!O` zs1hs$$x*?ng%BQuo0ADrt)QR)&JiS(>hiaaxjYQfiWgZjyPDu|bM?qETvE8aVLarWfa@m6RtIr8=gk z=9Sngxo74UfWt~b0~}GBsH)2|QbDm`U}UCiV62N7VEPa*+USGI4498?^fAH&q5!Fo zvEx#Jhy}U0*>TzEgG)M4sRuC-RO-+YL*s&$RwyWpT0&Czjt19gaFG-OBq<(EU8BK8 zQV5Wwcr-fca7w*T_=@w@jIpFZDx|M6mHZT4_$?tE|Y`f&OFWcB&Q z#+#d+_fHQ$y*~f;@%HDp7k__$*j<_-UYnuZo}oXOeR)3n{%-#3%Y{Fmmj3@-|NrOs z|G)eH|39qEz~Ilo5YNt@&(B{kE#0rKzS!D&v%mlG^z`fX^{?m8|G$5~w6U~d%kvfy>W8Cb@6QH=GESlcLy&%9l!l{y1coxzPqw@u(o%yd33&We!GAB{P_9X z^S7U`KYV-g`RB{;f8Wn<&mbJkAfC=3U(KN2&u%_n+6S&#(Uf_%Oe)xw>|^v3a_^b9r!Z zcXIOV^78fF-TUXyKfitZ{mYl%zkmOqK{}s7eLB1Ga(?IC(!r;-)9*XCKaO7fynOfj z{>z`&KmUFG`+sh2etvUtad&y;U~TU)>(Odv^Nq)%Dl+&whUW@aNC3|JyS#gflP{GcfcsFsx=^IL^TE zn4RH2JHvl}=l|8k|5q>mfBU+>IzzrO!(@Ag?d}Y>{TcoTGyKmN|KDx=f3g4n?b-iN zxBtJrm;n^=<_zA>4B`Il*~#Md<=T_`-Ip&;-o3l|{Q1?-pP&E#-=0A_ox!-8+rD4i zf3bZ0cJ=(**8T6JSAQ|G+BrHpI6FJJx;o!jzu8=Wy1nsgXXE|e`j`E+pNA{|kC*>nul|3w@&E1i|Id5> z|NsBQ%|_6u17k^$UoeBivm0rkaj+zBcNc~ZR#^`Q1_sUokH}&M25w;xW@MN(M}mQY zfxX1j*OmPhvxJ~B*QaAPR=f_ zZtfnQUfw>we*OW0LBS!RVc`*xQPDB6aq$U>Ny#axY3Ui6S=l+cdHDr}Ma3nhW#tu> zRn;}Mb@dI6P0cN>ZS5VMUEMvsef<+APMSPr>a^)IX3m;DXYRcD3l=U~ykzOJ$dGXcJA7}XYaoK2M!)OeB|h{<0np@I(_Esx$_q;Ub=kc>b2`P zZr-|m=kC4x4<0^x{N(Ag=PzEqdj00@yZ0YHe$vxJc;mmtib^)6mrIv}g4Wa3&t;uc GLK6V#r?$@k literal 0 HcmV?d00001 diff --git a/resources/palettes/map_base/palette_map_indigo.png b/resources/palettes/map_base/palette_map_indigo.png new file mode 100644 index 0000000000000000000000000000000000000000..07cf5f444e9e87ecb04931119e0eb40bc607dd01 GIT binary patch literal 1231 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1D`af*Z7ofvPP)Tw7+U|>mi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>d#>URh&cVUK$;m0MtgLKotnch>9~|tR zoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TTTTh?uzkGfC z?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1-`^j0mu869 zW+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;(^VdsD_p7Tf zwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ>wfE%R!HZAF zZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B`2nREWr!&Y` zGpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y@cHKC>(h%L zuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z^5ysM-~VTj z&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bWU0yj@TR+*_ zy4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@oql|E{q_B` zpI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcDpMLuH_WS>@ zzgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$XZU}c;s1XI z_5OD0=4$rzc!v0J{__0e|NqZ^{5W|1dgIyCt52VHj*bq_&Q7kb&NtR?HrJnSZ@k*s zc)z#)Wq zu(GjpaB^|;@bd8s2nq>{h>D3zNJ>e|$jZqpC@LwdsH&-JXliNe=<4Yk7#bOyn3|be zSXx=z*xK1UI667IxVpJ}czSvJ`1<(=1O^3%gocGjL`Fr&#Ky%ZBqk-Nq^6~3WM*aO zYz*tlu)maW^i@7TF(_ny7`_8&NS=gTe~DWM4fhzSMb literal 0 HcmV?d00001 diff --git a/resources/palettes/map_base/palette_map_pesto.png b/resources/palettes/map_base/palette_map_pesto.png new file mode 100644 index 0000000000000000000000000000000000000000..52190406729f44c7c61430eb74239d434dcb8977 GIT binary patch literal 1231 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1D`af*Z7ofvPP)Tw7+U|>mi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>d#>URh&cVUK$;m0MtgLKotnch>9~|tR zoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TTTTh?uzkGfC z?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1-`^j0mu869 zW+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;(^VdsD_p7Tf zwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ>wfE%R!HZAF zZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B`2nREWr!&Y` zGpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y@cHKC>(h%L zuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z^5ysM-~VTj z&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bWU0yj@TR+*_ zy4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@oql|E{q_B` zpI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcDpMLuH_WS>@ zzgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$XZU}c;s1XI z_5OD0=4$rzc!v0J{__0e|NqZ^{5W|1dgIyCt52VHj*bq_&Q7kb&NtR?HrJnSZ@k*s zc)z#)Wq zu(GjpaB^|;@bd8s2nq>{h>D3zNJ>e|$jZqpC@LwdsH&-JXliNe=<4Yk7#bOyn3|be zSXx=z*xK1UI667IxVpJ}czSvJ`1<(=1O^3%gocGjL`Fr&#Ky%ZBqk-Nq^6~3WM*aO zYz*tlu)maW^i@7TF(_ny7`_8&NS=mi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>d#>URh&cVUK$;m0MtgLKotnch>9~|tR zoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TTTTh?uzkGfC z?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1-`^j0mu869 zW+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;(^VdsD_p7Tf zwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ>wfE%R!HZAF zZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B`2nREWr!&Y` zGpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y@cHKC>(h%L zuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z^5ysM-~VTj z&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bWU0yj@TR+*_ zy4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@oql|E{q_B` zpI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcDpMLuH_WS>@ zzgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$XZU}c;s1XI z_5OD0=4$rzc!v0J{__0e|NqZ^{5W|1dgIyCt52VHj*bq_&Q7kb&NtR?HrJnSZ@k*s zc)z#)Wq8i(`nyWkyEEfBzU5K7aYj z!pg?Z!O6wV!^_7nASfg(A}S^>At@y-BP%Dbps1v*qN=8@p{b>IRvK4a#r*>mR3 zo4;V;qQy&=E?d50<*LVdJLFTefc7zGLUE-Fx=#+kfETp~FXx9y@;GWe&gn?+js8XyZ_+fqsLF4K70P+<*V0k-oAVP;p3;iK7=*@qcUpS T?$6oi0}4$~S3j3^P6mi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>d#>URh&cVUK$;m0MtgLKotnch>9~|tR zoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TTTTh?uzkGfC z?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1-`^j0mu869 zW+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;(^VdsD_p7Tf zwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ>wfE%R!HZAF zZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B`2nREWr!&Y` zGpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y@cHKC>(h%L zuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z^5ysM-~VTj z&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bWU0yj@TR+*_ zy4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@oql|E{q_B` zpI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcDpMLuH_WS>@ zzgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$XZU}c;s1XI z_5OD0=4$rzc!v0J{__0e|NqZ^{5W|1dgIyCt52VHj*bq_&Q7kb&NtR?HrJnSZ@k*s zc)z#)WqQL70(Y)*J~2 z1_t&LPhVH|SIp9UI#zxH%ViiC7bP0 Hl+XkK754(r literal 0 HcmV?d00001 diff --git a/resources/palettes/map_base/palette_map_silver.png b/resources/palettes/map_base/palette_map_silver.png new file mode 100644 index 0000000000000000000000000000000000000000..1ba4f090b40ae7da99f338f9693d90787ab7fe77 GIT binary patch literal 1231 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1D`af*Z7ofvPP)Tw7+U|>mi z^mSxl*x1kgCy|wbfk7eJBgmJ5p-PQ`p`nF=;THn~L&FOOhEf9thF1v;3|2E37{m+a z>d#>URh&cVUK$;m0MtgLKotnch>9~|tR zoE%+ToZsBsJbn87_3O7EK79H1?f0KQ8|yRJTQm53b4N!DXJ^ZoSL?TTTTh?uzkGfC z?)}B5&v)N{yx3WrJ=~f*-&?#sT)sb9eSWd==4R*p)5A}%&%b@V{rT<1-`^j0mu869 zW+=C3=nrOJp3lC&oB#T9;m@a~|3BCN|2h8u@BaV)4=Xb;_%krXv$N;(^VdsD_p7Tf zwzl5v?|(c!{d#@<>-qEl@82(NEUauVuJ12z9k1@5uN_`*oZN3+JlnZ>wfE%R!HZAF zZ@--`Z!WFxu52Bw?VW5Mo$s9A?%zH?e*X6S?dR(c-=2K_`SSbU_w(B`2nREWr!&Y` zGpP5oo6i?_U#}j$-#-6*c=!F{#qawM|KIGdEu3sFUGA>k9d5lm*?D(y@cHKC>(h%L zuWo+7fBN_HtN%Yf%r9)Nt{rY{o^J149vs}AoIJa{e0_KK{`vFIZ{L3Z^5ysM-~VTj z&Sy}c&ThP%-+8xm@M-Pz`_Ao;qZdCf-~GP-^5^x>e_#LppIe)s-&|bWU0yj@TR+*_ zy4c&lJwADMdG-44$;X$kzkT@p=lk{y@!ssk!Tj~{^8MM`v#ae_w+HW@oql|E{q_B` zpI<-x`Sa`l_6!W+3=G8#4E+oYs~H%MGcY`6XZX*~@ZaD0e|7Qy)r3Fs|md?-%!9EFZsJJ^!|K|NH3GpUZcDpMLuH_WS>@ zzgHJ#Fqda{*XNJ6m(LD1u1@#vug_jQxqkQR$>$HRet!G#|Ihc$y}kc$XZU}c;s1XI z_5OD0=4$rzc!v0J{__0e|NqZ^{5W|1dgIyCt52VHj*bq_&Q7kb&NtR?HrJnSZ@k*s zc)z#)Wqkx|hxv2pPUiAl*RscGpMnOWI6 zxq0~og+;|BrDf$6l~vU>wRQCkjZMuht!?ccon75My?y-?CQh0>W$Lu)GiJ`3J!kH` z`3n{J9h5cy=U*f{Ra*nI(+2lvEwIBo;rQz z?78z7E?&BP<+v*#~fzIy%U?Ys9MK7Qgt^67sa$MS^D StmmhJLetaL&t;ucLK6VZk^e#f literal 0 HcmV?d00001 diff --git a/resources/palettes/map_glass/palette_map_glass_amber.png b/resources/palettes/map_glass/palette_map_glass_amber.png new file mode 100644 index 0000000000000000000000000000000000000000..3ee629adedc616254768be88618a995fdba91c35 GIT binary patch literal 1147 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1F6U|?nl@Ck7R2{JM=F)=YS zGqbR;u(GnUv9YnUvvY88aB^~rD=RA-8|yne+Xn}GCnrZ27w0!OH&35FfBpLHhYw%A zef$0A&&K);_SOvk-rUjA!r9sK<<GR$9A1`*+W)HXK&i59t z50~#xR-a#Nyt&zV|Mc+F>+^3PZ-0J!@%Q(K-K81gwHeCo8Ty0Sm*=zZ@8-Y0T=?^8 z>Hp95|9_7E|GWSH|HH}*4E_uZ@$BsR{QULO(*5e{i><9U`}-eHPrqJY|9bxX|NHk# z8w)Gji|hN#TgR)r=WB=88z=W$7teNXUhO@3cktrV@!M~w%bQEu(=E z|M|W>L%cV8aWH>Ooh)8ou06Tmefi?#-MgF5pI`m_`T760Acz5V|G>+jWt8O-I`-SzpS?d7wBjjPkW z`|Gn8Pp;p+dh+?htDoOK{QvWPb8qke+Zq1fX88Y~LA}3Sy1AM?J)R*xoWDH(`2YX2 zA3qLWzutKE^y<^6oui|Jv$K<{tMiTZo6Ys7+Z(TTHs0^8f7xIAdARcbc=`YJ>i=gO z|KD!^|GfAA|Nl?iYy@QihLRw^V21xA8*okkV#C0|pylb}7$Pw>`9=yW^K7%+TYFMp xZ+mN9_U@MLnj6+-?^>!aWqp388|LxAo*`CcIftRK$rn)B;_2$=vd$@?2>>S`eD44N literal 0 HcmV?d00001 diff --git a/resources/palettes/map_glass/palette_map_glass_amethyst.png b/resources/palettes/map_glass/palette_map_glass_amethyst.png new file mode 100644 index 0000000000000000000000000000000000000000..b6ddad85060816a112aba4dd4bd9ba4840c499f7 GIT binary patch literal 1145 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1F6U|?nl@Ck7R2{JM=F)=YS zGqbR;u(GnUv9YnUvvY88aB^~rD=RA-8|yne+Xn}GCnrZ27w0!OH&35FfBpLHhYw%A zef$0A&&K);_SOvk-rUjA!r9sK<<GR$9A1`*+W)HXK&i59t z50~#xR-a#Nyt&zV|Mc+F>+^3PZ-0J!@%Q(K-K81gwHeCo8Ty0Sm*=zZ@8-Y0T=?^8 z>Hp95|9_7E|GWSH|HH}*4E_uZ@$BsR{QULO(*5e{i><9U`}-eHPrqJY|9bxX|NHk# z8w)Gji|hN#TgR)r=WB=88z=W$7teNXUhO@3cktrV@!M~w%bQEu(=E z|M|W>L%cV8aWH>Ooh)8ou06Tmefi?#-MgF5pI`m_`T760Acz5V|G>+jWt8O-I`-SzpS?d7wBjjPkW z`|Gn8Pp;p+dh+?htDoOK{QvWPb8qke+Zq1fX88Y~LA}3Sy1AM?J)R*xoWDH(`2YX2 zA3qLWzutKE^y<^6oui|Jv$K<{tMiTZo6Ys7+Z(TTHs0^8f7xIAdARcbc=`YJ>i=gO z|KD!^|GfAA|Nl?iYy@QihLRw^V21xA8*okkV#C0|pyBD_7$Pw>c}6NL^X9a(^Nh>y v{bA)6*Nropb7OO(#5+&z1sg<#e(*Cax-jWv{bc=pppwPY)z4*}Q$iB}u>pCk literal 0 HcmV?d00001 diff --git a/resources/palettes/map_glass/palette_map_glass_asparagus.png b/resources/palettes/map_glass/palette_map_glass_asparagus.png new file mode 100644 index 0000000000000000000000000000000000000000..7af210a317729be200f504c69a2827173365e72e GIT binary patch literal 1143 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1F6U|?nl@Ck7R2{JM=F)=YS zGqbR;u(GnUv9YnUvvY88aB^~rD=RA-8|yne+Xn}GCnrZ27w0!OH&35FfBpLHhYw%A zef$0A&&K);_SOvk-rUjA!r9sK<<GR$9A1`*+W)HXK&i59t z50~#xR-a#Nyt&zV|Mc+F>+^3PZ-0J!@%Q(K-K81gwHeCo8Ty0Sm*=zZ@8-Y0T=?^8 z>Hp95|9_7E|GWSH|HH}*4E_uZ@$BsR{QULO(*5e{i><9U`}-eHPrqJY|9bxX|NHk# z8w)Gji|hN#TgR)r=WB=88z=W$7teNXUhO@3cktrV@!M~w%bQEu(=E z|M|W>L%cV8aWH>Ooh)8ou06Tmefi?#-MgF5pI`m_`T760Acz5V|G>+jWt8O-I`-SzpS?d7wBjjPkW z`|Gn8Pp;p+dh+?htDoOK{QvWPb8qke+Zq1fX88Y~LA}3Sy1AM?J)R*xoWDH(`2YX2 zA3qLWzutKE^y<^6oui|Jv$K<{tMiTZo6Ys7+Z(TTHs0^8f7xIAdARcbc=`YJ>i=gO z|KD!^|GfAA|Nl?iYy@QihLRw^V21xA8*okkV#C0|pyuh~7$Pw>nPXE^zx;FF7vox2DsS3F()T-G@yGywoxzkLD# literal 0 HcmV?d00001 diff --git a/resources/palettes/map_glass/palette_map_glass_brown.png b/resources/palettes/map_glass/palette_map_glass_brown.png new file mode 100644 index 0000000000000000000000000000000000000000..bf8d05266f0add17f62845ce792f5e6ccc323078 GIT binary patch literal 1145 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1F6U|?nl@Ck7R2{JM=F)=YS zGqbR;u(GnUv9YnUvvY88aB^~rD=RA-8|yne+Xn}GCnrZ27w0!OH&35FfBpLHhYw%A zef$0A&&K);_SOvk-rUjA!r9sK<<GR$9A1`*+W)HXK&i59t z50~#xR-a#Nyt&zV|Mc+F>+^3PZ-0J!@%Q(K-K81gwHeCo8Ty0Sm*=zZ@8-Y0T=?^8 z>Hp95|9_7E|GWSH|HH}*4E_uZ@$BsR{QULO(*5e{i><9U`}-eHPrqJY|9bxX|NHk# z8w)Gji|hN#TgR)r=WB=88z=W$7teNXUhO@3cktrV@!M~w%bQEu(=E z|M|W>L%cV8aWH>Ooh)8ou06Tmefi?#-MgF5pI`m_`T760Acz5V|G>+jWt8O-I`-SzpS?d7wBjjPkW z`|Gn8Pp;p+dh+?htDoOK{QvWPb8qke+Zq1fX88Y~LA}3Sy1AM?J)R*xoWDH(`2YX2 zA3qLWzutKE^y<^6oui|Jv$K<{tMiTZo6Ys7+Z(TTHs0^8f7xIAdARcbc=`YJ>i=gO z|KD!^|GfAA|Nl?iYy@QihLRw^V21xA8*okkV#C0|pyBD_7$Pw>c}E&6^YwN2cT~Rq vHh1^;clH$)b8eV7NWAmZUa&z_=m$T;mBlB-7;ogg1eGkFu6{1-oD!MGR$9A1`*+W)HXK&i59t z50~#xR-a#Nyt&zV|Mc+F>+^3PZ-0J!@%Q(K-K81gwHeCo8Ty0Sm*=zZ@8-Y0T=?^8 z>Hp95|9_7E|GWSH|HH}*4E_uZ@$BsR{QULO(*5e{i><9U`}-eHPrqJY|9bxX|NHk# z8w)Gji|hN#TgR)r=WB=88z=W$7teNXUhO@3cktrV@!M~w%bQEu(=E z|M|W>L%cV8aWH>Ooh)8ou06Tmefi?#-MgF5pI`m_`T760Acz5V|G>+jWt8O-I`-SzpS?d7wBjjPkW z`|Gn8Pp;p+dh+?htDoOK{QvWPb8qke+Zq1fX88Y~LA}3Sy1AM?J)R*xoWDH(`2YX2 zA3qLWzutKE^y<^6oui|Jv$K<{tMiTZo6Ys7+Z(TTHs0^8f7xIAdARcbc=`YJ>i=gO z|KD!^|GfAA|Nl?iYy@QihLRw^V21xA8*okkV#C0|pylb}7$Pw>*&>yddAZ+QtJ-I8 xc77Jui`!+h=7zXlTub$(S6^Nlhj~1(XQ&L^!{K^v%5_lL;_2$=vd$@?2>{z4d=UTu literal 0 HcmV?d00001 diff --git a/resources/palettes/map_glass/palette_map_glass_cactus.png b/resources/palettes/map_glass/palette_map_glass_cactus.png new file mode 100644 index 0000000000000000000000000000000000000000..f2cfeb3fa9cf6f73ce42d707bd54824c208a447c GIT binary patch literal 1145 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1F6U|?nl@Ck7R2{JM=F)=YS zGqbR;u(GnUv9YnUvvY88aB^~rD=RA-8|yne+Xn}GCnrZ27w0!OH&35FfBpLHhYw%A zef$0A&&K);_SOvk-rUjA!r9sK<<GR$9A1`*+W)HXK&i59t z50~#xR-a#Nyt&zV|Mc+F>+^3PZ-0J!@%Q(K-K81gwHeCo8Ty0Sm*=zZ@8-Y0T=?^8 z>Hp95|9_7E|GWSH|HH}*4E_uZ@$BsR{QULO(*5e{i><9U`}-eHPrqJY|9bxX|NHk# z8w)Gji|hN#TgR)r=WB=88z=W$7teNXUhO@3cktrV@!M~w%bQEu(=E z|M|W>L%cV8aWH>Ooh)8ou06Tmefi?#-MgF5pI`m_`T760Acz5V|G>+jWt8O-I`-SzpS?d7wBjjPkW z`|Gn8Pp;p+dh+?htDoOK{QvWPb8qke+Zq1fX88Y~LA}3Sy1AM?J)R*xoWDH(`2YX2 zA3qLWzutKE^y<^6oui|Jv$K<{tMiTZo6Ys7+Z(TTHs0^8f7xIAdARcbc=`YJ>i=gO z|KD!^|GfAA|Nl?iYy@QihLRw^V21xA8*okkV#C0|pyBD_7$Pw>xnOe>qq(_xIlsSt vzI?p>|HPx;K7MVjzI5vD-NRg*f7lt~f;>9(?yi{+Dp@>T{an^LB{Ts5&CYtz literal 0 HcmV?d00001 diff --git a/resources/palettes/map_glass/palette_map_glass_caramel.png b/resources/palettes/map_glass/palette_map_glass_caramel.png new file mode 100644 index 0000000000000000000000000000000000000000..ce5e9831aba299890ac6e1fc354a82d7de1e20fc GIT binary patch literal 1145 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1F6U|?nl@Ck7R2{JM=F)=YS zGqbR;u(GnUv9YnUvvY88aB^~rD=RA-8|yne+Xn}GCnrZ27w0!OH&35FfBpLHhYw%A zef$0A&&K);_SOvk-rUjA!r9sK<<GR$9A1`*+W)HXK&i59t z50~#xR-a#Nyt&zV|Mc+F>+^3PZ-0J!@%Q(K-K81gwHeCo8Ty0Sm*=zZ@8-Y0T=?^8 z>Hp95|9_7E|GWSH|HH}*4E_uZ@$BsR{QULO(*5e{i><9U`}-eHPrqJY|9bxX|NHk# z8w)Gji|hN#TgR)r=WB=88z=W$7teNXUhO@3cktrV@!M~w%bQEu(=E z|M|W>L%cV8aWH>Ooh)8ou06Tmefi?#-MgF5pI`m_`T760Acz5V|G>+jWt8O-I`-SzpS?d7wBjjPkW z`|Gn8Pp;p+dh+?htDoOK{QvWPb8qke+Zq1fX88Y~LA}3Sy1AM?J)R*xoWDH(`2YX2 zA3qLWzutKE^y<^6oui|Jv$K<{tMiTZo6Ys7+Z(TTHs0^8f7xIAdARcbc=`YJ>i=gO z|KD!^|GfAA|Nl?iYy@QihLRw^V21xA8*okkV#C0|pyBD_7$Pw>Ibc&0qpGTEs%WTb uDX*{Y+r*>SE?jA;zT_1dd6bLu4?Dvac1?~MvFCn(N)}I7KbLh*2~7ZY#dse8 literal 0 HcmV?d00001 diff --git a/resources/palettes/map_glass/palette_map_glass_copper.png b/resources/palettes/map_glass/palette_map_glass_copper.png new file mode 100644 index 0000000000000000000000000000000000000000..4f4120253c574f03d7816f8da2f5788b41e17bf7 GIT binary patch literal 1145 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1F6U|?nl@Ck7R2{JM=F)=YS zGqbR;u(GnUv9YnUvvY88aB^~rD=RA-8|yne+Xn}GCnrZ27w0!OH&35FfBpLHhYw%A zef$0A&&K);_SOvk-rUjA!r9sK<<GR$9A1`*+W)HXK&i59t z50~#xR-a#Nyt&zV|Mc+F>+^3PZ-0J!@%Q(K-K81gwHeCo8Ty0Sm*=zZ@8-Y0T=?^8 z>Hp95|9_7E|GWSH|HH}*4E_uZ@$BsR{QULO(*5e{i><9U`}-eHPrqJY|9bxX|NHk# z8w)Gji|hN#TgR)r=WB=88z=W$7teNXUhO@3cktrV@!M~w%bQEu(=E z|M|W>L%cV8aWH>Ooh)8ou06Tmefi?#-MgF5pI`m_`T760Acz5V|G>+jWt8O-I`-SzpS?d7wBjjPkW z`|Gn8Pp;p+dh+?htDoOK{QvWPb8qke+Zq1fX88Y~LA}3Sy1AM?J)R*xoWDH(`2YX2 zA3qLWzutKE^y<^6oui|Jv$K<{tMiTZo6Ys7+Z(TTHs0^8f7xIAdARcbc=`YJ>i=gO z|KD!^|GfAA|Nl?iYy@QihLRw^V21xA8*okkV#C0|pyBD_7$Pw>`NXEC#x-l!yqR-n v&!474iykE&)zi>vslKFTZGD`J^A9@%$J`8#4M8dLppwPY)z4*}Q$iB}Lo$0r literal 0 HcmV?d00001 diff --git a/resources/palettes/map_glass/palette_map_glass_crimson.png b/resources/palettes/map_glass/palette_map_glass_crimson.png new file mode 100644 index 0000000000000000000000000000000000000000..522e27bc86f7388568e6c8e9cb8b9667bd064d42 GIT binary patch literal 1139 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1F6U|?nl@Ck7R2{JM=F)=YS zGqbR;u(GnUv9YnUvvY88aB^~rD=RA-8|yne+Xn}GCnrZ27w0!OH&35FfBpLHhYw%A zef$0A&&K);_SOvk-rUjA!r9sK<<GR$9A1`*+W)HXK&i59t z50~#xR-a#Nyt&zV|Mc+F>+^3PZ-0J!@%Q(K-K81gwHeCo8Ty0Sm*=zZ@8-Y0T=?^8 z>Hp95|9_7E|GWSH|HH}*4E_uZ@$BsR{QULO(*5e{i><9U`}-eHPrqJY|9bxX|NHk# z8w)Gji|hN#TgR)r=WB=88z=W$7teNXUhO@3cktrV@!M~w%bQEu(=E z|M|W>L%cV8aWH>Ooh)8ou06Tmefi?#-MgF5pI`m_`T760Acz5V|G>+jWt8O-I`-SzpS?d7wBjjPkW z`|Gn8Pp;p+dh+?htDoOK{QvWPb8qke+Zq1fX88Y~LA}3Sy1AM?J)R*xoWDH(`2YX2 zA3qLWzutKE^y<^6oui|Jv$K<{tMiTZo6Ys7+Z(TTHs0^8f7xIAdARcbc=`YJ>i=gO z|KD!^|GfAA|Nl?iYy@QihLRw^V21xA8*okkV#C0|pycV|7$Pw>d4m(%HM4DH-}w6c o&K>T0``|^#6W46%6#4(`3>Qr7IC70E)`7|tPgg&ebxsLQ01}~h`2YX_ literal 0 HcmV?d00001 diff --git a/resources/palettes/map_glass/palette_map_glass_darker_water.png b/resources/palettes/map_glass/palette_map_glass_darker_water.png new file mode 100644 index 0000000000000000000000000000000000000000..8b29ee30c02dc41605c18fc817496df8b832f0e9 GIT binary patch literal 1147 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1F6U|?nl@Ck7R2{JM=F)=YS zGqbR;u(GnUv9YnUvvY88aB^~rD=RA-8|yne+Xn}GCnrZ27w0!OH&35FfBpLHhYw%A zef$0A&&K);_SOvk-rUjA!r9sK<<GR$9A1`*+W)HXK&i59t z50~#xR-a#Nyt&zV|Mc+F>+^3PZ-0J!@%Q(K-K81gwHeCo8Ty0Sm*=zZ@8-Y0T=?^8 z>Hp95|9_7E|GWSH|HH}*4E_uZ@$BsR{QULO(*5e{i><9U`}-eHPrqJY|9bxX|NHk# z8w)Gji|hN#TgR)r=WB=88z=W$7teNXUhO@3cktrV@!M~w%bQEu(=E z|M|W>L%cV8aWH>Ooh)8ou06Tmefi?#-MgF5pI`m_`T760Acz5V|G>+jWt8O-I`-SzpS?d7wBjjPkW z`|Gn8Pp;p+dh+?htDoOK{QvWPb8qke+Zq1fX88Y~LA}3Sy1AM?J)R*xoWDH(`2YX2 zA3qLWzutKE^y<^6oui|Jv$K<{tMiTZo6Ys7+Z(TTHs0^8f7xIAdARcbc=`YJ>i=gO z|KD!^|GfAA|Nl?iYy@QihLRw^V21xA8*okkV#C0|pylb}7$Pw>`9?Y`^Y3qOZ`VI~ xu<)>ZpPaSbnj7wYa;?>uvi|>L4)b_m&+yuKW5+QrsUT3<;_2$=vd$@?2>?L>ePaLs literal 0 HcmV?d00001 diff --git a/resources/palettes/map_glass/palette_map_glass_deep_blue.png b/resources/palettes/map_glass/palette_map_glass_deep_blue.png new file mode 100644 index 0000000000000000000000000000000000000000..30e6af10406d2164578877e6703c51ec381bb6bc GIT binary patch literal 873 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1F6U|?nl@Ck7R2{JM=F)=YS zGqbR;u(GnUv9YnUvvY88aB^~rD=RA-8|yne+Xn}GCnrZ27w0!OH&35FfBpLHhYw%A zef$0A&&K);_SOvk-rUjA!r9sK<<GR$9A1`*+W)HXK&i59t z50~#xR-a#Nyt&zV|Mc+F>+^3PZ-0J!@%Q(K-K81gwHeCo8Ty0Sm*=zZ@8-Y0T=?^8 z>Hp95|9_7E|GWSH|HH}*4E_uZ@$BsR{QULO(*5e{i><9U`}-eHPrqJY|9bxX|NHk# z8w)Gji|hN#TgR)r=WB=88z=W$7teNXUhO@3cktrV@!M~w%bQEu(=E z|M|W>L%cV8aWH>Ooh)8ou06Tmefi?#-MgF5pI`m_`T760Acz5V|G>+jWt8O-I`-SzpS?d7wBjjPkW z`|Gn8Pp;p+dh+?htDoOK{QvWPb8qke+Zq1fX88Y~LA}3Sy1AM?J)R*xoWDH(`2YX2 zA3qLWzutKE^y<^6oui|Jv$K<{tMiTZo6Ys7+Z(TTHs0^8f7xIAdARcbc=`YJ>i=gO z|KD!^|GfAA|Nl?iYy@Qt6;Bt(5Q(YD8k?IMjTADn@-lO?-@lLvd$a9ZnYK#2S)^j) Ze})Mq6*i?yl_!BTc)I$ztaD0e0szE?c5eUx literal 0 HcmV?d00001 diff --git a/resources/palettes/map_glass/palette_map_glass_emerald.png b/resources/palettes/map_glass/palette_map_glass_emerald.png new file mode 100644 index 0000000000000000000000000000000000000000..049710ac1f0b10f0fd381aa76f691feb213fb411 GIT binary patch literal 1145 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1F6U|?nl@Ck7R2{JM=F)=YS zGqbR;u(GnUv9YnUvvY88aB^~rD=RA-8|yne+Xn}GCnrZ27w0!OH&35FfBpLHhYw%A zef$0A&&K);_SOvk-rUjA!r9sK<<GR$9A1`*+W)HXK&i59t z50~#xR-a#Nyt&zV|Mc+F>+^3PZ-0J!@%Q(K-K81gwHeCo8Ty0Sm*=zZ@8-Y0T=?^8 z>Hp95|9_7E|GWSH|HH}*4E_uZ@$BsR{QULO(*5e{i><9U`}-eHPrqJY|9bxX|NHk# z8w)Gji|hN#TgR)r=WB=88z=W$7teNXUhO@3cktrV@!M~w%bQEu(=E z|M|W>L%cV8aWH>Ooh)8ou06Tmefi?#-MgF5pI`m_`T760Acz5V|G>+jWt8O-I`-SzpS?d7wBjjPkW z`|Gn8Pp;p+dh+?htDoOK{QvWPb8qke+Zq1fX88Y~LA}3Sy1AM?J)R*xoWDH(`2YX2 zA3qLWzutKE^y<^6oui|Jv$K<{tMiTZo6Ys7+Z(TTHs0^8f7xIAdARcbc=`YJ>i=gO z|KD!^|GfAA|Nl?iYy@QihLRw^V21xA8*okkV#C0|pyBD_7$Pw>xnpxvP|4!y>gTe~DWM4fTbg{w literal 0 HcmV?d00001 diff --git a/resources/palettes/map_glass/palette_map_glass_gold.png b/resources/palettes/map_glass/palette_map_glass_gold.png new file mode 100644 index 0000000000000000000000000000000000000000..502f69e0130fba7881e889fb6f698baa54582086 GIT binary patch literal 4996 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1F6U|={{6%tVrlvu7%P?VpR znUkteQdy9ykXn(M#=uZuMV=&%CEp5I+|juA-@ESGtv|7y0|FR?}V_Pd_fTsxFr zR@lnFymmmvb6RNk)Jd{QNine*d{-uGo<7NZrLt?eKjZGE_Z^F;)ny;a+;lP|R##kk z@Ao5S>OQ;n*GU%UWXPKCEmwZ+_P`^+e8tDLF+SH{i*Hjte<5P!#20tIov-}*@@@Bi z=4Z?;Z+NC;Fyu~cdBt>&=c7~8T)`qW9%K0v`z?8wm|r~~$-d`$%1H(W#@0+{=KxP< zXP9Rg7%Jw}PTcQ(*g@uKeDqQ!QC4e_!V>|k2lYaaYz$k-A?mdD!m8$zOZPAEbe{C+ zk;V=&nLisNN(&0FT|F2oz*67vgS}(&qV6d__Aa@gbgcQY-JadwcT}_gm>s%omMy2l zRUPHYUR*o>tP-ekWf0_1?Bnd5`D>2GvWJ%Y-aUN$I<_aha{ljP9u3yXjCPF{2TKks z-BXx%b4$s&-$xR|rinZ%e&pG#=ke!6>CLC+=TzJO+8F1g7=J#Jn6&W9(IWB9n-&WB z3%iSkF0QFRm)iPSEPZQK`rGPH;%!{FP8nU#>{DuW)p2ZLkSq-eXl<2PE2XJsv}OL6 z5B(N(6Jv~aY9&00aNyNaInMu&egAIL?%+am%_%HZ@j1Vfc{tuNt!>M#m%m;1nuWuL zIXvokd^XeO`Af{LqP}oQ++ovOXFY2Vd(1nAiR!UND(+ktzKC}p_$^r*EGMy#_1E<~ z_ip{RsAbr6CG;1Yg$2to?IbD3=a&{Gr@EG<=9MTT8*I!UtlmqroO0s@xPHJvyUP-aOp`Ia%mF}Lt z0dO6lAV|;5EdcAP$SpuoS(2HC2rLxefMmelL3T(*ZUNj}6xA@lgB63r$jT)@xfJ9) zPZwJyko{IE`N^3nR$!))aiV3KWtydKN|J@Su8C=yg>F)kfr+k#S*oFhfr+W9S+XgT zQJ#6lC5d^-sUV{&atrh_GgGXLj4cdO3`{L_6H`n~bxlkx4RsUElTvjJOe`%8OwE$b zO$?KfjPNhYOwY_q%t3Y)$f%Ue6f29AG-G4qBy(LOGjju76APmh-9$5!R9&MK6GP(^ zvt)BK!xXSlDalrD`9-;jCALbLxryni`UQFEU#VjxJ`H?<@&C9x#Y zC9x#cR>{b~$jr*X*viNx#L&{pz|hLjK-<933hDr``uvp4v`Rv%?Le8s1`_2SnZ+gf zMU`M7NRA3lErjqO+?-61Y6S%aaHgKY9$ zl0twa#iOZY=uV~PrPwN!E7{v!D495efq|JJz$XOM(`RI4WMX1sW@ct#VPR!u zWn*JwXJ_Z&;Naxs6jxSOHa6CGcD4@=_D)WYE-ub*Zf>4Feg69O+YcYUeEatM&!3I; z8SJeY{JpuOqlL4x<;$z}+q}Dbtj!*7&7JQpULP*spR7K= z*m!fZ^Zx1Kr`PA-KHmQP_TumF54%e<#A`E@+cWeBvoFtQ-`~xDeYx=G)6)N+>;L~8 z|NnRY|Nn=T85sN-7~{fGZ= z_SY6pHkU4U*X|CtUY_i{yEyoKbMp1+#gA7vzu!Oo`}x)XA0OryHdogUH#SeVcPEwm-xFV21zs;{Usi|1b9czdif^ z>GuD(7c+n&-kibPnIYVtJv&*vzFd29zx(pV$-8$qpFh9)`SbJt|JyT2r!yE=bKCce z`!AM{->#m2+q(aK^y<&$yT4CA{d@cU|JUEE3p1F@v%Bl_N88J12OC$Xd-vC8FP>b# zd-de=hgUzpefa<9`{v%>|F<*zzs>OfKZAOIyL59kdwM)Wd^mr3{_+3+XFq-%ynem$ z?CI5~Pdi6P2WMv|S6Am7>o=S0Pq#N-?QFc?TmQ1Z_VaM%|MBww>(&3yHvYfe{{MOJ z|NsA=xY-CAbzn^Lc6VXuV3qY?U|`@Z@Q5sCVBi)8VMc~ob0ioT7}!fZeO=jKF-r(B za`|UjEM;I|(C~C|43W5;d|`7FqphuNEwi(7vT(5R=ftCChNi96m%QTdAK>Er!_MHO WYTPm9(Utiin>=0pT-G@yGywofp+ATK literal 0 HcmV?d00001 diff --git a/resources/palettes/map_glass/palette_map_glass_indigo.png b/resources/palettes/map_glass/palette_map_glass_indigo.png new file mode 100644 index 0000000000000000000000000000000000000000..3019b8f544c3efce69d47f4eca68a90c17e34c78 GIT binary patch literal 1145 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1F6U|?nl@Ck7R2{JM=F)=YS zGqbR;u(GnUv9YnUvvY88aB^~rD=RA-8|yne+Xn}GCnrZ27w0!OH&35FfBpLHhYw%A zef$0A&&K);_SOvk-rUjA!r9sK<<GR$9A1`*+W)HXK&i59t z50~#xR-a#Nyt&zV|Mc+F>+^3PZ-0J!@%Q(K-K81gwHeCo8Ty0Sm*=zZ@8-Y0T=?^8 z>Hp95|9_7E|GWSH|HH}*4E_uZ@$BsR{QULO(*5e{i><9U`}-eHPrqJY|9bxX|NHk# z8w)Gji|hN#TgR)r=WB=88z=W$7teNXUhO@3cktrV@!M~w%bQEu(=E z|M|W>L%cV8aWH>Ooh)8ou06Tmefi?#-MgF5pI`m_`T760Acz5V|G>+jWt8O-I`-SzpS?d7wBjjPkW z`|Gn8Pp;p+dh+?htDoOK{QvWPb8qke+Zq1fX88Y~LA}3Sy1AM?J)R*xoWDH(`2YX2 zA3qLWzutKE^y<^6oui|Jv$K<{tMiTZo6Ys7+Z(TTHs0^8f7xIAdARcbc=`YJ>i=gO z|KD!^|GfAA|Nl?iYy@QihLRw^V21xA8*okkV#C0|pyBD_7$Pw>Sz~ik85boFyt=akR{0G~sDO#lD@ literal 0 HcmV?d00001 diff --git a/resources/palettes/map_glass/palette_map_glass_pesto.png b/resources/palettes/map_glass/palette_map_glass_pesto.png new file mode 100644 index 0000000000000000000000000000000000000000..19c381b4135643ea8f0b9bd3866dec332eb625d2 GIT binary patch literal 1145 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1F6U|?nl@Ck7R2{JM=F)=YS zGqbR;u(GnUv9YnUvvY88aB^~rD=RA-8|yne+Xn}GCnrZ27w0!OH&35FfBpLHhYw%A zef$0A&&K);_SOvk-rUjA!r9sK<<GR$9A1`*+W)HXK&i59t z50~#xR-a#Nyt&zV|Mc+F>+^3PZ-0J!@%Q(K-K81gwHeCo8Ty0Sm*=zZ@8-Y0T=?^8 z>Hp95|9_7E|GWSH|HH}*4E_uZ@$BsR{QULO(*5e{i><9U`}-eHPrqJY|9bxX|NHk# z8w)Gji|hN#TgR)r=WB=88z=W$7teNXUhO@3cktrV@!M~w%bQEu(=E z|M|W>L%cV8aWH>Ooh)8ou06Tmefi?#-MgF5pI`m_`T760Acz5V|G>+jWt8O-I`-SzpS?d7wBjjPkW z`|Gn8Pp;p+dh+?htDoOK{QvWPb8qke+Zq1fX88Y~LA}3Sy1AM?J)R*xoWDH(`2YX2 zA3qLWzutKE^y<^6oui|Jv$K<{tMiTZo6Ys7+Z(TTHs0^8f7xIAdARcbc=`YJ>i=gO z|KD!^|GfAA|Nl?iYy@QihLRw^V21xA8*okkV#C0|pyBD_7$Pw>SzvP$qoJW;A*ZKi urevh$&%~qCCQfawzT_1XbBK%c4?BbE54n!R&mYHtN)}I7KbLh*2~7ZNjCflB literal 0 HcmV?d00001 diff --git a/resources/palettes/map_glass/palette_map_glass_pine_green.png b/resources/palettes/map_glass/palette_map_glass_pine_green.png new file mode 100644 index 0000000000000000000000000000000000000000..01eea0975ceabacee319236ff3059bd006cec171 GIT binary patch literal 1146 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1F6U|?nl@Ck7R2{JM=F)=YS zGqbR;u(GnUv9YnUvvY88aB^~rD=RA-8|yne+Xn}GCnrZ27w0!OH&35FfBpLHhYw%A zef$0A&&K);_SOvk-rUjA!r9sK<<GR$9A1`*+W)HXK&i59t z50~#xR-a#Nyt&zV|Mc+F>+^3PZ-0J!@%Q(K-K81gwHeCo8Ty0Sm*=zZ@8-Y0T=?^8 z>Hp95|9_7E|GWSH|HH}*4E_uZ@$BsR{QULO(*5e{i><9U`}-eHPrqJY|9bxX|NHk# z8w)Gji|hN#TgR)r=WB=88z=W$7teNXUhO@3cktrV@!M~w%bQEu(=E z|M|W>L%cV8aWH>Ooh)8ou06Tmefi?#-MgF5pI`m_`T760Acz5V|G>+jWt8O-I`-SzpS?d7wBjjPkW z`|Gn8Pp;p+dh+?htDoOK{QvWPb8qke+Zq1fX88Y~LA}3Sy1AM?J)R*xoWDH(`2YX2 zA3qLWzutKE^y<^6oui|Jv$K<{tMiTZo6Ys7+Z(TTHs0^8f7xIAdARcbc=`YJ>i=gO z|KD!^|GfAA|Nl?iYy@QihLRw^V21xA8*okkV#C0|py}!27$Pw>`Nig@#(n$t{o@o? w_nl`{dh1K#(RoItT6ZRg{rxMvX2OAbhD|ryJ67a8*98?Vp00i_>zopr0MgBVZ2$lO literal 0 HcmV?d00001 diff --git a/resources/palettes/map_glass/palette_map_glass_ruby.png b/resources/palettes/map_glass/palette_map_glass_ruby.png new file mode 100644 index 0000000000000000000000000000000000000000..a71f5db3e6011c071c11641ab610347e31fb897f GIT binary patch literal 879 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1F6U|?nl@Ck7R2{JM=F)=YS zGqbR;u(GnUv9YnUvvY88aB^~rD=RA-8|yne+Xn}GCnrZ27w0!OH&35FfBpLHhYw%A zef$0A&&K);_SOvk-rUjA!r9sK<<GR$9A1`*+W)HXK&i59t z50~#xR-a#Nyt&zV|Mc+F>+^3PZ-0J!@%Q(K-K81gwHeCo8Ty0Sm*=zZ@8-Y0T=?^8 z>Hp95|9_7E|GWSH|HH}*4E_uZ@$BsR{QULO(*5e{i><9U`}-eHPrqJY|9bxX|NHk# z8w)Gji|hN#TgR)r=WB=88z=W$7teNXUhO@3cktrV@!M~w%bQEu(=E z|M|W>L%cV8aWH>Ooh)8ou06Tmefi?#-MgF5pI`m_`T760Acz5V|G>+jWt8O-I`-SzpS?d7wBjjPkW z`|Gn8Pp;p+dh+?htDoOK{QvWPb8qke+Zq1fX88Y~LA}3Sy1AM?J)R*xoWDH(`2YX2 zA3qLWzutKE^y<^6oui|Jv$K<{tMiTZo6Ys7+Z(TTHs0^8f7xIAdARcbc=`YJ>i=gO z|KD!^|GfAA|Nl?iYy@QtEl(H65Q(YD5oxTE&g?@M~R>T342b*puYFpmfJ4CmSAbZ~#Km=4nB>FVdQ&MBb@00k_3IsgCw literal 0 HcmV?d00001 diff --git a/resources/palettes/map_glass/palette_map_glass_silver.png b/resources/palettes/map_glass/palette_map_glass_silver.png new file mode 100644 index 0000000000000000000000000000000000000000..e44e2253ab2e842a1efeb680c56b70506acc84b9 GIT binary patch literal 1143 zcmeAS@N?(olHy`uVBq!ia0y~yU}RumU|{56W?*1oYj1F6U|?nl@Ck7R2{JM=F)=YS zGqbR;u(GnUv9YnUvvY88aB^~rD=RA-8|yne+Xn}GCnrZ27w0!OH&35FfBpLHhYw%A zef$0A&&K);_SOvk-rUjA!r9sK<<GR$9A1`*+W)HXK&i59t z50~#xR-a#Nyt&zV|Mc+F>+^3PZ-0J!@%Q(K-K81gwHeCo8Ty0Sm*=zZ@8-Y0T=?^8 z>Hp95|9_7E|GWSH|HH}*4E_uZ@$BsR{QULO(*5e{i><9U`}-eHPrqJY|9bxX|NHk# z8w)Gji|hN#TgR)r=WB=88z=W$7teNXUhO@3cktrV@!M~w%bQEu(=E z|M|W>L%cV8aWH>Ooh)8ou06Tmefi?#-MgF5pI`m_`T760Acz5V|G>+jWt8O-I`-SzpS?d7wBjjPkW z`|Gn8Pp;p+dh+?htDoOK{QvWPb8qke+Zq1fX88Y~LA}3Sy1AM?J)R*xoWDH(`2YX2 zA3qLWzutKE^y<^6oui|Jv$K<{tMiTZo6Ys7+Z(TTHs0^8f7xIAdARcbc=`YJ>i=gO z|KD!^|GfAA|Nl?iYy@QihLRw^V21xA8*okkV#C0|pyuh~7$Pw>`N5_pMm@bexj4Hz tMn}cOi4TuFV@ukhzP8~|n8yQqhM${7PA+t|J_agRJYD@<);T3K0RXS8c%=XU literal 0 HcmV?d00001 diff --git a/resources/palettes/sprites.json b/resources/palettes/sprites.json index a55b506d22..a35008a4f9 100644 --- a/resources/palettes/sprites.json +++ b/resources/palettes/sprites.json @@ -664,6 +664,96 @@ "palette": "keep", "format": "raw" }, + { + "path": "map_base/palette_map_gold.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_amber.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_amethyst.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_asparagus.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_brown.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_burnt_pink.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_cactus.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_caramel.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_copper.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_crimson.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_darker_water.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_emerald.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_indigo.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_pesto.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_pine_green.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_ruby.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_deep_blue.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_base/palette_map_silver.png", + "palette": "keep", + "format": "raw" + }, { "path": "map_base/palette_map_water.png", "palette": "keep", @@ -1343,5 +1433,95 @@ "path": "map_glass/palette_map_glass_void.png", "palette": "keep", "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_gold.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_amber.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_amethyst.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_asparagus.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_brown.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_burnt_pink.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_cactus.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_caramel.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_copper.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_crimson.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_darker_water.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_emerald.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_indigo.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_pesto.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_pine_green.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_ruby.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_deep_blue.png", + "palette": "keep", + "format": "raw" + }, + { + "path": "map_glass/palette_map_glass_silver.png", + "palette": "keep", + "format": "raw" } ] diff --git a/src/openrct2-ui/UiStringIds.h b/src/openrct2-ui/UiStringIds.h index 55836af200..8c3c5a0ecc 100644 --- a/src/openrct2-ui/UiStringIds.h +++ b/src/openrct2-ui/UiStringIds.h @@ -91,6 +91,24 @@ namespace OpenRCT2 STR_COLOUR_DULL_GREEN_DARK_TIP = 6564, STR_COLOUR_DULL_GREEN_LIGHT_TIP = 6565, STR_COLOUR_DULL_PURPLE_LIGHT_TIP = 6563, + STR_COLOUR_GOLD_TIP = 7064, + STR_COLOUR_AMBER_TIP = 7065, + STR_COLOUR_AMETHYST_TIP = 7066, + STR_COLOUR_ASPARAGUS_TIP = 7067, + STR_COLOUR_BROWN_TIP = 7068, + STR_COLOUR_BURNT_PINK_TIP = 7069, + STR_COLOUR_CACTUS_TIP = 7070, + STR_COLOUR_CARAMEL_TIP = 7071, + STR_COLOUR_COPPER_TIP = 7072, + STR_COLOUR_CRIMSON_TIP = 7073, + STR_COLOUR_DARKER_WATER_TIP = 7074, + STR_COLOUR_EMERALD_TIP = 7075, + STR_COLOUR_INDIGO_TIP = 7076, + STR_COLOUR_PESTO_TIP = 7077, + STR_COLOUR_PINE_GREEN_TIP = 7078, + STR_COLOUR_RUBY_TIP = 7079, + STR_COLOUR_DEEP_BLUE_TIP = 7080, + STR_COLOUR_SILVER_TIP = 7081, STR_COLOUR_GRASS_GREEN_DARK_TIP = 6556, STR_COLOUR_GRASS_GREEN_LIGHT_TIP = 6557, STR_COLOUR_GREY_TIP = 5517, diff --git a/src/openrct2-ui/windows/Dropdown.cpp b/src/openrct2-ui/windows/Dropdown.cpp index 66d4db5ae2..af06d0e0fb 100644 --- a/src/openrct2-ui/windows/Dropdown.cpp +++ b/src/openrct2-ui/windows/Dropdown.cpp @@ -516,9 +516,13 @@ namespace OpenRCT2::Ui::Windows // Colour ordered for use in colour dropdown static constexpr Colour kColoursDropdownOrder[] = { Colour::black, Colour::saturatedRed, Colour::darkOrange, Colour::darkYellow, - Colour::forestGreen, Colour::saturatedGreen, Colour::deepWater, Colour::darkBlue, + Colour::forestGreen, Colour::saturatedGreen, Colour::deepWater, Colour::deepBlue, Colour::violet, + Colour::silver, Colour::ruby, Colour::amber, Colour::gold, + Colour::cactus, Colour::emerald, Colour::darkerWater, Colour::darkBlue, + Colour::amethyst, + Colour::grey, Colour::brightRed, Colour::lightOrange, Colour::yellow, Colour::mossGreen, Colour::brightGreen, Colour::darkWater, Colour::lightBlue, Colour::brightPurple, @@ -531,7 +535,11 @@ namespace OpenRCT2::Ui::Windows Colour::armyGreen, Colour::hunterGreen, Colour::viridian, Colour::darkPurple, Colour::darkPink, - Colour::darkBrown, Colour::bordeauxRed, Colour::salmonPink, Colour::lightBrown, + Colour::darkBrown, Colour::crimson, Colour::copper, Colour::caramel, + Colour::pesto, Colour::asparagus, Colour::pineGreen, Colour::indigo, + Colour::burntPink, + + Colour::brown, Colour::bordeauxRed, Colour::salmonPink, Colour::lightBrown, Colour::darkOliveGreen, Colour::oliveGreen, Colour::darkGreen, Colour::lightPurple, Colour::brightPink, @@ -550,9 +558,19 @@ namespace OpenRCT2::Ui::Windows STR_COLOUR_GRASS_GREEN_DARK_TIP, STR_COLOUR_SATURATED_GREEN_TIP, STR_COLOUR_DEEP_WATER_TIP, - STR_COLOUR_DARK_BLUE_TIP, + STR_COLOUR_DEEP_BLUE_TIP, STR_COLOUR_SATURATED_PURPLE_DARK_TIP, + STR_COLOUR_SILVER_TIP, + STR_COLOUR_RUBY_TIP, + STR_COLOUR_AMBER_TIP, + STR_COLOUR_GOLD_TIP, + STR_COLOUR_CACTUS_TIP, + STR_COLOUR_EMERALD_TIP, + STR_COLOUR_DARKER_WATER_TIP, + STR_COLOUR_DARK_BLUE_TIP, + STR_COLOUR_AMETHYST_TIP, + STR_COLOUR_GREY_TIP, STR_COLOUR_BRIGHT_RED_TIP, STR_COLOUR_LIGHT_ORANGE_TIP, @@ -584,6 +602,16 @@ namespace OpenRCT2::Ui::Windows STR_COLOUR_DARK_PINK_TIP, STR_COLOUR_DARK_BROWN_TIP, + STR_COLOUR_CRIMSON_TIP, + STR_COLOUR_COPPER_TIP, + STR_COLOUR_CARAMEL_TIP, + STR_COLOUR_PESTO_TIP, + STR_COLOUR_ASPARAGUS_TIP, + STR_COLOUR_PINE_GREEN_TIP, + STR_COLOUR_INDIGO_TIP, + STR_COLOUR_BURNT_PINK_TIP, + + STR_COLOUR_BROWN_TIP, STR_COLOUR_BORDEAUX_RED_TIP, STR_COLOUR_SALMON_PINK_TIP, STR_COLOUR_LIGHT_BROWN_TIP, @@ -606,6 +634,7 @@ namespace OpenRCT2::Ui::Windows STR_COLOUR_INVISIBLE_TIP, STR_COLOUR_VOID_TIP, }; + static_assert(kColourTooltips.size() == kColourNumTotal); Colour ColourDropDownIndexToColour(uint8_t ddidx) { diff --git a/src/openrct2/SpriteIds.h b/src/openrct2/SpriteIds.h index d81a8e6c6d..500f1976b2 100644 --- a/src/openrct2/SpriteIds.h +++ b/src/openrct2/SpriteIds.h @@ -1286,6 +1286,24 @@ enum : ImageIndex SPR_PALETTE_DULL_BROWN_LIGHT, SPR_PALETTE_INVISIBLE, SPR_PALETTE_VOID, + SPR_PALETTE_GOLD, + SPR_PALETTE_AMBER, + SPR_PALETTE_AMETHYST, + SPR_PALETTE_ASPARAGUS, + SPR_PALETTE_BROWN, + SPR_PALETTE_BURNT_PINK, + SPR_PALETTE_CACTUS, + SPR_PALETTE_CARAMEL, + SPR_PALETTE_COPPER, + SPR_PALETTE_CRIMSON, + SPR_PALETTE_DARKER_WATER, + SPR_PALETTE_EMERALD, + SPR_PALETTE_INDIGO, + SPR_PALETTE_PESTO, + SPR_PALETTE_PINE_GREEN, + SPR_PALETTE_RUBY, + SPR_PALETTE_DEEP_BLUE, + SPR_PALETTE_SILVER, SPR_PALETTE_2_END, // Additional palettes dumped from G1 @@ -1431,6 +1449,24 @@ enum : ImageIndex SPR_PALETTE_GLASS_DULL_BROWN_LIGHT, SPR_PALETTE_GLASS_INVISIBLE, SPR_PALETTE_GLASS_VOID, + SPR_PALETTE_GLASS_GOLD, + SPR_PALETTE_GLASS_AMBER, + SPR_PALETTE_GLASS_AMETHYST, + SPR_PALETTE_GLASS_ASPARAGUS, + SPR_PALETTE_GLASS_BROWN, + SPR_PALETTE_GLASS_BURNT_PINK, + SPR_PALETTE_GLASS_CACTUS, + SPR_PALETTE_GLASS_CARAMEL, + SPR_PALETTE_GLASS_COPPER, + SPR_PALETTE_GLASS_CRIMSON, + SPR_PALETTE_GLASS_DARKER_WATER, + SPR_PALETTE_GLASS_EMERALD, + SPR_PALETTE_GLASS_INDIGO, + SPR_PALETTE_GLASS_PESTO, + SPR_PALETTE_GLASS_PINE_GREEN, + SPR_PALETTE_GLASS_RUBY, + SPR_PALETTE_GLASS_DEEP_BLUE, + SPR_PALETTE_GLASS_SILVER, SPR_PALETTE_END, // Sprite font characters diff --git a/src/openrct2/drawing/Colour.cpp b/src/openrct2/drawing/Colour.cpp index c23fbb1e4e..d383e0ba26 100644 --- a/src/openrct2/drawing/Colour.cpp +++ b/src/openrct2/drawing/Colour.cpp @@ -74,6 +74,24 @@ namespace OpenRCT2::Drawing { "dull_brown_light", Colour::beige }, { "invisible", Colour::invisible }, { "void", Colour::voidBackground }, + { "gold", Colour::gold }, + { "amber", Colour::amber }, + { "amethyst", Colour::amethyst }, + { "asparagus", Colour::asparagus }, + { "brown", Colour::brown }, + { "burnt_pink", Colour::burntPink }, + { "cactus", Colour::cactus }, + { "caramel", Colour::caramel }, + { "copper", Colour::copper }, + { "crimson", Colour::crimson }, + { "darker_water", Colour::darkerWater }, + { "emerald", Colour::emerald }, + { "indigo", Colour::indigo }, + { "pesto", Colour::pesto }, + { "pine_green", Colour::pineGreen }, + { "ruby", Colour::ruby }, + { "deep_blue", Colour::deepBlue }, + { "silver", Colour::silver }, }; Colour colourFromString(u8string s, Colour defaultValue) @@ -91,19 +109,27 @@ namespace OpenRCT2::Drawing return "black"; } + static Colour skipNonNormalColour(uint8_t input) + { + if (input >= EnumValue(Colour::invisible)) + return static_cast(input + 2); + + return static_cast(input); + } + Colour getRandomColour() { - return static_cast(UtilRand() % kColourNumNormal); + return skipNonNormalColour(UtilRand() % kColourNumNormal); } Colour getRandomColourNetworkSafe() { - return static_cast(ScenarioRandMax(kColourNumNormal)); + return skipNonNormalColour(ScenarioRandMax(kColourNumNormal)); } Colour getCycleColour(uint32_t ticks) { - return Colour((ticks / 32) % kColourNumNormal); + return skipNonNormalColour((ticks / 32) % kColourNumNormal); } Colour clampColour(uint8_t colour) diff --git a/src/openrct2/drawing/Colour.h b/src/openrct2/drawing/Colour.h index b84370b442..eaa64c02fb 100644 --- a/src/openrct2/drawing/Colour.h +++ b/src/openrct2/drawing/Colour.h @@ -80,10 +80,28 @@ namespace OpenRCT2::Drawing beige, invisible, voidBackground, + gold, + amber, + amethyst, + asparagus, + brown, + burntPink, + cactus, + caramel, + copper, + crimson, + darkerWater, + emerald, + indigo, + pesto, + pineGreen, + ruby, + deepBlue, + silver, }; - constexpr uint8_t kColourNumNormal = 54; - constexpr uint8_t kColourNumTotal = 56; + constexpr uint8_t kColourNumNormal = 72; + constexpr uint8_t kColourNumTotal = 74; constexpr auto kColourNull = static_cast(255); diff --git a/src/openrct2/drawing/Drawing.cpp b/src/openrct2/drawing/Drawing.cpp index b625934d1c..7498c2a5ac 100644 --- a/src/openrct2/drawing/Drawing.cpp +++ b/src/openrct2/drawing/Drawing.cpp @@ -85,6 +85,24 @@ static constexpr FilterPaletteID kGlassPaletteIds[kColourNumTotal] = { FilterPaletteID::paletteGlassDullBrownLight, FilterPaletteID::paletteGlassInvisible, FilterPaletteID::paletteGlassVoid, + FilterPaletteID::paletteGlassGold, + FilterPaletteID::paletteGlassAmber, + FilterPaletteID::paletteGlassAmethyst, + FilterPaletteID::paletteGlassAsparagus, + FilterPaletteID::paletteGlassBrown, + FilterPaletteID::paletteGlassBurntPink, + FilterPaletteID::paletteGlassCactus, + FilterPaletteID::paletteGlassCaramel, + FilterPaletteID::paletteGlassCopper, + FilterPaletteID::paletteGlassCrimson, + FilterPaletteID::paletteGlassDarkerWater, + FilterPaletteID::paletteGlassEmerald, + FilterPaletteID::paletteGlassIndigo, + FilterPaletteID::paletteGlassPesto, + FilterPaletteID::paletteGlassPineGreen, + FilterPaletteID::paletteGlassRuby, + FilterPaletteID::paletteGlassDeepBlue, + FilterPaletteID::paletteGlassSilver, }; // Previously 0x97FCBC use it to get the correct palette from g1_elements @@ -149,6 +167,24 @@ static constexpr uint16_t kPaletteToG1Offset[kPaletteTotalOffsets] = { SPR_PALETTE_DULL_BROWN_LIGHT, SPR_PALETTE_INVISIBLE, SPR_PALETTE_VOID, + SPR_PALETTE_GOLD, + SPR_PALETTE_AMBER, + SPR_PALETTE_AMETHYST, + SPR_PALETTE_ASPARAGUS, + SPR_PALETTE_BROWN, + SPR_PALETTE_BURNT_PINK, + SPR_PALETTE_CACTUS, + SPR_PALETTE_CARAMEL, + SPR_PALETTE_COPPER, + SPR_PALETTE_CRIMSON, + SPR_PALETTE_DARKER_WATER, + SPR_PALETTE_EMERALD, + SPR_PALETTE_INDIGO, + SPR_PALETTE_PESTO, + SPR_PALETTE_PINE_GREEN, + SPR_PALETTE_RUBY, + SPR_PALETTE_DEEP_BLUE, + SPR_PALETTE_SILVER, // Additional palettes SPR_PALETTE_WATER, @@ -293,6 +329,24 @@ static constexpr uint16_t kPaletteToG1Offset[kPaletteTotalOffsets] = { SPR_PALETTE_GLASS_DULL_BROWN_LIGHT, SPR_PALETTE_GLASS_INVISIBLE, SPR_PALETTE_GLASS_VOID, + SPR_PALETTE_GLASS_GOLD, + SPR_PALETTE_GLASS_AMBER, + SPR_PALETTE_GLASS_AMETHYST, + SPR_PALETTE_GLASS_ASPARAGUS, + SPR_PALETTE_GLASS_BROWN, + SPR_PALETTE_GLASS_BURNT_PINK, + SPR_PALETTE_GLASS_CACTUS, + SPR_PALETTE_GLASS_CARAMEL, + SPR_PALETTE_GLASS_COPPER, + SPR_PALETTE_GLASS_CRIMSON, + SPR_PALETTE_GLASS_DARKER_WATER, + SPR_PALETTE_GLASS_EMERALD, + SPR_PALETTE_GLASS_INDIGO, + SPR_PALETTE_GLASS_PESTO, + SPR_PALETTE_GLASS_PINE_GREEN, + SPR_PALETTE_GLASS_RUBY, + SPR_PALETTE_GLASS_DEEP_BLUE, + SPR_PALETTE_GLASS_SILVER, }; static constexpr TranslucentWindowPalette kWindowPaletteGrey = { FilterPaletteID::paletteTranslucentGrey, FilterPaletteID::paletteTranslucentGreyHighlight, FilterPaletteID::paletteTranslucentGreyShadow }; @@ -371,6 +425,24 @@ const TranslucentWindowPalette kTranslucentWindowPalettes[kColourNumTotal] = { kWindowPaletteDarkBrown, // Colour::beige { FilterPaletteID::paletteDarken1, FilterPaletteID::paletteDarken1, FilterPaletteID::paletteDarken1 }, { FilterPaletteID::paletteDarken2, FilterPaletteID::paletteDarken2, FilterPaletteID::paletteDarken2 }, + kWindowPaletteYellow, // Colour::gold + kWindowPaletteLightOrange, // Colour::amber + kWindowPaletteBrightPurple, // Colour::amethyst + kWindowPaletteOliveGreen, // Colour::asparagus + kWindowPaletteDarkBrown, // Colour::brown + kWindowPaletteBrightPink, // Colour::burntPink + kWindowPaletteMossGreen, // Colour::cactus + kWindowPaletteLightBrown, // Colour::caramel + kWindowPaletteSalmonPink, // Colour::copper + kWindowPaletteBordeauxRed, // Colour::crimson + kWindowPaletteTeal, // Colour::darkerWater + kWindowPaletteBrightGreen, // Colour::emerald + kWindowPaletteLightPurple, // Colour::indigo + kWindowPaletteDarkOliveGreen, // Colour::pesto + kWindowPaletteDarkGreen, // Colour::pineGreen + kWindowPaletteBrightRed, // Colour::ruby + kWindowPaletteLightBlue, // Colour::deepBlue + kWindowPaletteGrey, // Colour::silver }; // clang-format on diff --git a/src/openrct2/drawing/FilterPaletteIds.h b/src/openrct2/drawing/FilterPaletteIds.h index 6ad3f2981c..f0138eaed4 100644 --- a/src/openrct2/drawing/FilterPaletteIds.h +++ b/src/openrct2/drawing/FilterPaletteIds.h @@ -161,5 +161,23 @@ namespace OpenRCT2::Drawing paletteGlassDullBrownLight = paletteGlass + EnumValue(Colour::beige), paletteGlassInvisible = paletteGlass + EnumValue(Colour::invisible), paletteGlassVoid = paletteGlass + EnumValue(Colour::voidBackground), + paletteGlassGold = paletteGlass + EnumValue(Colour::gold), + paletteGlassAmber = paletteGlass + EnumValue(Colour::amber), + paletteGlassAmethyst = paletteGlass + EnumValue(Colour::amethyst), + paletteGlassAsparagus = paletteGlass + EnumValue(Colour::asparagus), + paletteGlassBrown = paletteGlass + EnumValue(Colour::brown), + paletteGlassBurntPink = paletteGlass + EnumValue(Colour::burntPink), + paletteGlassCactus = paletteGlass + EnumValue(Colour::cactus), + paletteGlassCaramel = paletteGlass + EnumValue(Colour::caramel), + paletteGlassCopper = paletteGlass + EnumValue(Colour::copper), + paletteGlassCrimson = paletteGlass + EnumValue(Colour::crimson), + paletteGlassDarkerWater = paletteGlass + EnumValue(Colour::darkerWater), + paletteGlassEmerald = paletteGlass + EnumValue(Colour::emerald), + paletteGlassIndigo = paletteGlass + EnumValue(Colour::indigo), + paletteGlassPesto = paletteGlass + EnumValue(Colour::pesto), + paletteGlassPineGreen = paletteGlass + EnumValue(Colour::pineGreen), + paletteGlassRuby = paletteGlass + EnumValue(Colour::ruby), + paletteGlassDeepBlue = paletteGlass + EnumValue(Colour::deepBlue), + paletteGlassSilver = paletteGlass + EnumValue(Colour::silver), }; } diff --git a/src/openrct2/park/ParkFile.h b/src/openrct2/park/ParkFile.h index 3bc88009d9..b265280513 100644 --- a/src/openrct2/park/ParkFile.h +++ b/src/openrct2/park/ParkFile.h @@ -19,7 +19,7 @@ namespace OpenRCT2 struct ObjectRepositoryItem; // Current version that is saved. - constexpr uint32_t kParkFileCurrentVersion = 62; + constexpr uint32_t kParkFileCurrentVersion = 63; // The minimum version that is forwards compatible with the current version. constexpr uint32_t kParkFileMinVersion = 57; @@ -62,6 +62,8 @@ namespace OpenRCT2 constexpr uint16_t kParkFileVersionUprightQuarterHelices = 60; constexpr uint16_t kExtendedInvertedRollerCoasterVersion = 61; constexpr uint16_t kColourableTerrainVersion = 62; + // Added 18 additional colours, including some removed colours from the RCT1 base game and betas. + constexpr uint16_t kExtendedColoursGoldVersion = 63; class ParkFileExporter { From 3e28953c7e06f5132609f158f9d1304d2db9a9f8 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Tue, 24 Mar 2026 20:18:39 +0100 Subject: [PATCH 118/142] Import RCT1 base game saves with the correct colours --- src/openrct2/rct1/S4Importer.cpp | 75 ++++++++++++++++---------------- src/openrct2/rct1/T4Importer.cpp | 25 ++++++----- src/openrct2/rct1/Tables.cpp | 20 ++++++++- src/openrct2/rct1/Tables.h | 3 +- 4 files changed, 72 insertions(+), 51 deletions(-) diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index 9b97a8ef95..10ac546496 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -1065,7 +1065,7 @@ namespace OpenRCT2::RCT1 dst->currentTestStation = StationIndex::GetNull(); dst->averageSpeedTestTimeout = src->averageSpeedTestTimeout; dst->slideInUse = src->slideInUse; - dst->slidePeepTShirtColour = GetColour(src->slidePeepTshirtColour); + dst->slidePeepTShirtColour = getColour(src->slidePeepTshirtColour, _gameVersion); dst->spiralSlideProgress = src->spiralSlideProgress; // Doubles as slidePeep dst->mazeTiles = src->mazeTiles; @@ -1102,9 +1102,9 @@ namespace OpenRCT2::RCT1 dst->vehicleColourSettings = src->vehicleColourSettings; if (_gameVersion == RCT1Version::baseGame) { - dst->trackColours[0].main = GetColour(src->trackPrimaryColour); - dst->trackColours[0].additional = GetColour(src->trackSecondaryColour); - dst->trackColours[0].supports = GetColour(src->trackSupportColour); + dst->trackColours[0].main = getColour(src->trackPrimaryColour, _gameVersion); + dst->trackColours[0].additional = getColour(src->trackSecondaryColour, _gameVersion); + dst->trackColours[0].supports = getColour(src->trackSupportColour, _gameVersion); // Balloons were always blue in the original RCT. if (src->type == RideType::balloonStall) @@ -1120,9 +1120,9 @@ namespace OpenRCT2::RCT1 { for (int i = 0; i < Limits::kNumColourSchemes; i++) { - dst->trackColours[i].main = GetColour(src->trackColourMain[i]); - dst->trackColours[i].additional = GetColour(src->trackColourAdditional[i]); - dst->trackColours[i].supports = GetColour(src->trackColourSupports[i]); + dst->trackColours[i].main = getColour(src->trackColourMain[i], _gameVersion); + dst->trackColours[i].additional = getColour(src->trackColourAdditional[i], _gameVersion); + dst->trackColours[i].supports = getColour(src->trackColourSupports[i], _gameVersion); } } @@ -1154,11 +1154,11 @@ namespace OpenRCT2::RCT1 const auto colourSchemeCopyDescriptor = GetColourSchemeCopyDescriptor(src->vehicleType); if (colourSchemeCopyDescriptor.colour1 == kCopyColour1) { - dst->vehicleColours[i].Body = GetColour(src->vehicleColours[i].body); + dst->vehicleColours[i].Body = getColour(src->vehicleColours[i].body, _gameVersion); } else if (colourSchemeCopyDescriptor.colour1 == kCopyColour2) { - dst->vehicleColours[i].Body = GetColour(src->vehicleColours[i].trim); + dst->vehicleColours[i].Body = getColour(src->vehicleColours[i].trim, _gameVersion); } else { @@ -1167,11 +1167,11 @@ namespace OpenRCT2::RCT1 if (colourSchemeCopyDescriptor.colour2 == kCopyColour1) { - dst->vehicleColours[i].Trim = GetColour(src->vehicleColours[i].body); + dst->vehicleColours[i].Trim = getColour(src->vehicleColours[i].body, _gameVersion); } else if (colourSchemeCopyDescriptor.colour2 == kCopyColour2) { - dst->vehicleColours[i].Trim = GetColour(src->vehicleColours[i].trim); + dst->vehicleColours[i].Trim = getColour(src->vehicleColours[i].trim, _gameVersion); } else { @@ -1180,11 +1180,11 @@ namespace OpenRCT2::RCT1 if (colourSchemeCopyDescriptor.colour3 == kCopyColour1) { - dst->vehicleColours[i].Tertiary = GetColour(src->vehicleColours[i].body); + dst->vehicleColours[i].Tertiary = getColour(src->vehicleColours[i].body, _gameVersion); } else if (colourSchemeCopyDescriptor.colour3 == kCopyColour2) { - dst->vehicleColours[i].Tertiary = GetColour(src->vehicleColours[i].trim); + dst->vehicleColours[i].Tertiary = getColour(src->vehicleColours[i].trim, _gameVersion); } else { @@ -1284,11 +1284,11 @@ namespace OpenRCT2::RCT1 // RCT1 had no third colour if (colourSchemeCopyDescriptor.colour1 == kCopyColour1) { - dst->colours.Body = GetColour(src->Colours.BodyColour); + dst->colours.Body = getColour(src->Colours.BodyColour, _gameVersion); } else if (colourSchemeCopyDescriptor.colour1 == kCopyColour2) { - dst->colours.Body = GetColour(src->Colours.TrimColour); + dst->colours.Body = getColour(src->Colours.TrimColour, _gameVersion); } else { @@ -1297,11 +1297,11 @@ namespace OpenRCT2::RCT1 if (colourSchemeCopyDescriptor.colour2 == kCopyColour1) { - dst->colours.Trim = GetColour(src->Colours.BodyColour); + dst->colours.Trim = getColour(src->Colours.BodyColour, _gameVersion); } else if (colourSchemeCopyDescriptor.colour2 == kCopyColour2) { - dst->colours.Trim = GetColour(src->Colours.TrimColour); + dst->colours.Trim = getColour(src->Colours.TrimColour, _gameVersion); } else { @@ -1310,11 +1310,11 @@ namespace OpenRCT2::RCT1 if (colourSchemeCopyDescriptor.colour3 == kCopyColour1) { - dst->colours.Tertiary = GetColour(src->Colours.BodyColour); + dst->colours.Tertiary = getColour(src->Colours.BodyColour, _gameVersion); } else if (colourSchemeCopyDescriptor.colour3 == kCopyColour2) { - dst->colours.Tertiary = GetColour(src->Colours.TrimColour); + dst->colours.Tertiary = getColour(src->Colours.TrimColour, _gameVersion); } else { @@ -1360,8 +1360,8 @@ namespace OpenRCT2::RCT1 dst->nextFlags = src->NextFlags; dst->var37 = src->Var37; dst->stepProgress = src->StepProgress; - dst->tShirtColour = GetColour(src->TshirtColour); - dst->trousersColour = GetColour(src->TrousersColour); + dst->tShirtColour = getColour(src->TshirtColour, _gameVersion); + dst->trousersColour = getColour(src->TrousersColour, _gameVersion); dst->destinationX = src->DestinationX; dst->destinationY = src->DestinationY; dst->destinationTolerance = src->DestinationTolerance; @@ -1791,7 +1791,7 @@ namespace OpenRCT2::RCT1 dst2->setEntryIndex(entryIndex); dst2->setAge(src2->GetAge()); dst2->setSceneryQuadrant(src2->GetSceneryQuadrant()); - dst2->setPrimaryColour(GetColour(EnumValue(src2->GetPrimaryColour()))); + dst2->setPrimaryColour(getColour(EnumValue(src2->GetPrimaryColour()), _gameVersion)); if (src2->NeedsSupports()) dst2->setNeedsSupports(); @@ -1852,7 +1852,7 @@ namespace OpenRCT2::RCT1 if (type == -1) continue; - Drawing::Colour colourA = GetColour(EnumValue(src2->GetRCT1WallColour())); + Drawing::Colour colourA = getColour(EnumValue(src2->GetRCT1WallColour()), _gameVersion); Drawing::Colour colourB = Drawing::Colour::black; Drawing::Colour colourC = Drawing::Colour::black; ConvertWall(type, &colourA, &colourB); @@ -1903,8 +1903,8 @@ namespace OpenRCT2::RCT1 auto type = src2->GetEntryIndex(); dst2->setEntryIndex(_largeSceneryTypeToEntryMap[type]); dst2->setSequenceIndex(src2->GetSequenceIndex()); - dst2->setPrimaryColour(GetColour(EnumValue(src2->GetPrimaryColour()))); - dst2->setSecondaryColour(GetColour(EnumValue(src2->GetSecondaryColour()))); + dst2->setPrimaryColour(getColour(EnumValue(src2->GetPrimaryColour()), _gameVersion)); + dst2->setSecondaryColour(getColour(EnumValue(src2->GetSecondaryColour()), _gameVersion)); return 1; } @@ -2303,9 +2303,9 @@ namespace OpenRCT2::RCT1 park.guestGenerationProbability = _s4.GuestGenerationProbability; // Staff colours - park.staffHandymanColour = GetColour(_s4.HandymanColour); - park.staffMechanicColour = GetColour(_s4.MechanicColour); - park.staffSecurityColour = GetColour(_s4.SecurityGuardColour); + park.staffHandymanColour = getColour(_s4.HandymanColour, _gameVersion); + park.staffMechanicColour = getColour(_s4.MechanicColour, _gameVersion); + park.staffSecurityColour = getColour(_s4.SecurityGuardColour, _gameVersion); // Flags park.flags.holder = _s4.parkFlags.without(ParkFlag::antiCheatDeprecated).holder; @@ -2522,7 +2522,7 @@ namespace OpenRCT2::RCT1 dst->text = GetUserString(src->StringID); } - dst->colour = GetColour(src->Colour); + dst->colour = getColour(src->Colour, _gameVersion); dst->textColour = src->textColour; dst->position.x = src->x; dst->position.y = src->y; @@ -2866,7 +2866,7 @@ namespace OpenRCT2::RCT1 dst->peep[i] = spriteIndex; if (!spriteIndex.IsNull()) { - dst->peep_tshirt_colours[i] = GetColour(src->PeepTshirtColours[i]); + dst->peep_tshirt_colours[i] = getColour(src->PeepTshirtColours[i], _gameVersion); } } @@ -2928,18 +2928,19 @@ namespace OpenRCT2::RCT1 dst->timeToConsume = src->TimeToConsume; dst->vandalismSeen = src->VandalismSeen; - // Balloons were always blue in RCT1 without AA/LL, umbrellas always red + // Balloons were always blue in RCT1 without AA/LL, umbrellas always red. Hats were only introduced in AA. if (_gameVersion == RCT1Version::baseGame) { dst->umbrellaColour = Drawing::Colour::brightRed; dst->balloonColour = Drawing::Colour::lightBlue; + dst->hatColour = Drawing::Colour::brightRed; } else { - dst->umbrellaColour = GetColour(src->UmbrellaColour); - dst->balloonColour = GetColour(src->BalloonColour); + dst->umbrellaColour = getColour(src->UmbrellaColour, _gameVersion); + dst->balloonColour = getColour(src->BalloonColour, _gameVersion); + dst->hatColour = getColour(src->HatColour, _gameVersion); } - dst->hatColour = GetColour(src->HatColour); dst->happiness = src->Happiness; dst->happinessTarget = src->HappinessTarget; @@ -3076,8 +3077,8 @@ namespace OpenRCT2::RCT1 ImportEntityCommonProperties(dst, src); dst->frame = src->Frame; dst->timeToLive = src->TimeToLive; - dst->colour[0] = GetColour(src->Colour[0]); - dst->colour[1] = GetColour(src->Colour[1]); + dst->colour[0] = getColour(src->Colour[0], _gameVersion); + dst->colour[1] = getColour(src->Colour[1], _gameVersion); dst->crashedSpriteBase = src->CrashedEntityBase; dst->velocityX = src->VelocityX; dst->velocityY = src->VelocityY; @@ -3151,7 +3152,7 @@ namespace OpenRCT2::RCT1 } else { - dst->colour = GetColour(src->Colour); + dst->colour = getColour(src->Colour, _gameVersion); } } diff --git a/src/openrct2/rct1/T4Importer.cpp b/src/openrct2/rct1/T4Importer.cpp index e5bc04fd42..860498d1c7 100644 --- a/src/openrct2/rct1/T4Importer.cpp +++ b/src/openrct2/rct1/T4Importer.cpp @@ -127,9 +127,9 @@ namespace OpenRCT2::RCT1 for (int32_t i = 0; i < Limits::kNumColourSchemes; i++) { - td->appearance.trackColours[i].main = GetColour(td4aa.TrackSpineColour[i]); - td->appearance.trackColours[i].additional = GetColour(td4aa.TrackRailColour[i]); - td->appearance.trackColours[i].supports = GetColour(td4aa.TrackSupportColour[i]); + td->appearance.trackColours[i].main = getColour(td4aa.TrackSpineColour[i], RCT1Version::loopyLandscapes); + td->appearance.trackColours[i].additional = getColour(td4aa.TrackRailColour[i], RCT1Version::loopyLandscapes); + td->appearance.trackColours[i].supports = getColour(td4aa.TrackSupportColour[i], RCT1Version::loopyLandscapes); } // The maze style is saved in the support colour, but taking it through the conversion function // will mess up style 3 (wooden fences). @@ -148,9 +148,9 @@ namespace OpenRCT2::RCT1 _stream.Read(&td4, sizeof(TD4)); for (size_t i = 0; i < std::size(td->appearance.trackColours); i++) { - td->appearance.trackColours[i].main = GetColour(td4.TrackSpineColourV0); - td->appearance.trackColours[i].additional = GetColour(td4.TrackRailColourV0); - td->appearance.trackColours[i].supports = GetColour(td4.TrackSupportColourV0); + td->appearance.trackColours[i].main = getColour(td4.TrackSpineColourV0, RCT1Version::baseGame); + td->appearance.trackColours[i].additional = getColour(td4.TrackRailColourV0, RCT1Version::baseGame); + td->appearance.trackColours[i].supports = getColour(td4.TrackSupportColourV0, RCT1Version::baseGame); // Mazes were only hedges if (td4.Type == RideType::hedgeMaze) @@ -191,6 +191,7 @@ namespace OpenRCT2::RCT1 td->trackAndVehicle.vehicleObject = ObjectEntryDescriptor(vehicleObject); td->appearance.vehicleColourSettings = static_cast(td4Base.VersionAndColourScheme & 0x3); + auto gameVersion = (td->version == TD46Version::td4) ? RCT1Version::baseGame : RCT1Version::loopyLandscapes; // Vehicle colours for (int32_t i = 0; i < Limits::kMaxTrainsPerRide; i++) { @@ -199,11 +200,11 @@ namespace OpenRCT2::RCT1 td4Base.VehicleType); if (colourSchemeCopyDescriptor.colour1 == kCopyColour1) { - td->appearance.vehicleColours[i].Body = GetColour(td4Base.VehicleColours[i].BodyColour); + td->appearance.vehicleColours[i].Body = getColour(td4Base.VehicleColours[i].BodyColour, gameVersion); } else if (colourSchemeCopyDescriptor.colour1 == kCopyColour2) { - td->appearance.vehicleColours[i].Body = GetColour(td4Base.VehicleColours[i].TrimColour); + td->appearance.vehicleColours[i].Body = getColour(td4Base.VehicleColours[i].TrimColour, gameVersion); } else { @@ -212,11 +213,11 @@ namespace OpenRCT2::RCT1 if (colourSchemeCopyDescriptor.colour2 == kCopyColour1) { - td->appearance.vehicleColours[i].Trim = GetColour(td4Base.VehicleColours[i].BodyColour); + td->appearance.vehicleColours[i].Trim = getColour(td4Base.VehicleColours[i].BodyColour, gameVersion); } else if (colourSchemeCopyDescriptor.colour2 == kCopyColour2) { - td->appearance.vehicleColours[i].Trim = GetColour(td4Base.VehicleColours[i].TrimColour); + td->appearance.vehicleColours[i].Trim = getColour(td4Base.VehicleColours[i].TrimColour, gameVersion); } else { @@ -225,11 +226,11 @@ namespace OpenRCT2::RCT1 if (colourSchemeCopyDescriptor.colour3 == kCopyColour1) { - td->appearance.vehicleColours[i].Tertiary = GetColour(td4Base.VehicleColours[i].BodyColour); + td->appearance.vehicleColours[i].Tertiary = getColour(td4Base.VehicleColours[i].BodyColour, gameVersion); } else if (colourSchemeCopyDescriptor.colour3 == kCopyColour2) { - td->appearance.vehicleColours[i].Tertiary = GetColour(td4Base.VehicleColours[i].TrimColour); + td->appearance.vehicleColours[i].Tertiary = getColour(td4Base.VehicleColours[i].TrimColour, gameVersion); } else { diff --git a/src/openrct2/rct1/Tables.cpp b/src/openrct2/rct1/Tables.cpp index c22e8f8251..1bb24faedb 100644 --- a/src/openrct2/rct1/Tables.cpp +++ b/src/openrct2/rct1/Tables.cpp @@ -14,14 +14,32 @@ #include "../ride/Ride.h" #include "../ride/RideData.h" #include "RCT1.h" +#include "RCT1File.h" #include // clang-format off namespace OpenRCT2::RCT1 { - Drawing::Colour GetColour(uint8_t colour) + Drawing::Colour getColour(uint8_t colour, RCT1Version version) { + if (version == RCT1Version::baseGame) + { + switch (colour) + { + case 5: + return Drawing::Colour::deepBlue; + case 8: + return Drawing::Colour::emerald; + case 15: + return Drawing::Colour::gold; + case 17: + return Drawing::Colour::amber; + case 23: + return Drawing::Colour::ruby; + } + } + static constexpr Drawing::Colour map[] = { Drawing::Colour::black, diff --git a/src/openrct2/rct1/Tables.h b/src/openrct2/rct1/Tables.h index a1fc1e8e1b..7cd9d2cea5 100644 --- a/src/openrct2/rct1/Tables.h +++ b/src/openrct2/rct1/Tables.h @@ -11,6 +11,7 @@ #include "../drawing/Colour.h" #include "../rct12/RCT12.h" +#include "RCT1File.h" #include @@ -31,7 +32,7 @@ namespace OpenRCT2::RCT1 enum class RideType : uint8_t; enum class VehicleType : uint8_t; - Drawing::Colour GetColour(uint8_t colour); + Drawing::Colour getColour(uint8_t colour, RCT1Version version); RCT12PeepAnimationGroup GetPeepAnimationGroup(PeepAnimationGroup rct1AnimationGroup); uint8_t GetRideType(RideType rideType, VehicleType vehicleType); From 4e7993d5c290c13d73baa6377abe6f2832af19e8 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 9 Aug 2026 00:35:36 +0200 Subject: [PATCH 119/142] Fix hacked colours on import --- src/openrct2/park/Legacy.cpp | 35 ++++++ src/openrct2/park/Legacy.h | 4 + src/openrct2/park/ParkFile.cpp | 192 ++++++++++++++++++++++----------- 3 files changed, 166 insertions(+), 65 deletions(-) diff --git a/src/openrct2/park/Legacy.cpp b/src/openrct2/park/Legacy.cpp index 64b50188b0..ab7a063909 100644 --- a/src/openrct2/park/Legacy.cpp +++ b/src/openrct2/park/Legacy.cpp @@ -11,6 +11,7 @@ #include "../Context.h" #include "../Diagnostic.h" +#include "../core/OrcaStream.hpp" #include "../entity/EntityList.h" #include "../entity/Guest.h" #include "../entity/Staff.h" @@ -31,6 +32,7 @@ #include using namespace OpenRCT2; +using OpenRCT2::Drawing::Colour; static const std::unordered_map kOldObjectIds = { { "official.scgpanda", "rct2dlc.scenery_group.scgpanda" }, @@ -3173,3 +3175,36 @@ void updateSurfaceElementsColour( } } } + +Colour convertPre63Colour(uint8_t colour) +{ + // In many cases, colours are interpreted as FilterPaletteId. Of course, this has been abused to render rides + // using e.g. water effects (which start right after the last valid colour). Account for this by shifting the + // number by the number of newly added colours. + constexpr auto kOldNumColours = 56; + constexpr auto kNumNewColours = 18; + if (colour >= kOldNumColours) + { + colour += kNumNewColours; + } + + return static_cast(colour); +} + +Colour convertPre63Colour(Colour colour) +{ + return convertPre63Colour(EnumValue(colour)); +} + +void readWriteColour(OrcaStream::ChunkStream& cs, Colour& colourField, uint32_t parkFileVersion) +{ + if (parkFileVersion >= kExtendedColoursGoldVersion) + { + cs.readWrite(colourField); + return; + } + + uint8_t tempColour{}; + cs.readWrite(tempColour); + colourField = convertPre63Colour(tempColour); +} diff --git a/src/openrct2/park/Legacy.h b/src/openrct2/park/Legacy.h index 04fbf23c15..f2b985e6df 100644 --- a/src/openrct2/park/Legacy.h +++ b/src/openrct2/park/Legacy.h @@ -10,6 +10,7 @@ #pragma once #include "../core/FlagHolder.hpp" +#include "../core/OrcaStream.hpp" #include "../object/ObjectTypes.h" #include @@ -85,3 +86,6 @@ std::pair splitCombinedNumDropsPoweredLifts(uint8_t combinedVa void updateSurfaceElementsColour( OpenRCT2::GameState_t& gameState, std::span terrainSurfaceMap, std::span terrainEdgeMap); +OpenRCT2::Drawing::Colour convertPre63Colour(uint8_t colour); +OpenRCT2::Drawing::Colour convertPre63Colour(OpenRCT2::Drawing::Colour colour); +void readWriteColour(OpenRCT2::OrcaStream::ChunkStream& cs, OpenRCT2::Drawing::Colour& colourField, uint32_t parkFileVersion); diff --git a/src/openrct2/park/ParkFile.cpp b/src/openrct2/park/ParkFile.cpp index efd5ffca2b..bd980b5b6b 100644 --- a/src/openrct2/park/ParkFile.cpp +++ b/src/openrct2/park/ParkFile.cpp @@ -55,10 +55,13 @@ #include "../world/Scenery.h" #include "../world/TileElementsView.h" #include "../world/Weather.h" +#include "../world/tile_element/BannerElement.h" +#include "../world/tile_element/LargeSceneryElement.h" #include "../world/tile_element/PathElement.h" #include "../world/tile_element/SmallSceneryElement.h" #include "../world/tile_element/SurfaceElement.h" #include "../world/tile_element/TrackElement.h" +#include "../world/tile_element/WallElement.h" #include "Legacy.h" #include "ParkPreview.h" @@ -986,9 +989,9 @@ namespace OpenRCT2 cs.readWrite(park.entranceFee); } - cs.readWrite(park.staffHandymanColour); - cs.readWrite(park.staffMechanicColour); - cs.readWrite(park.staffSecurityColour); + readWriteColour(cs, park.staffHandymanColour, version); + readWriteColour(cs, park.staffMechanicColour, version); + readWriteColour(cs, park.staffSecurityColour, version); cs.readWrite(park.samePriceThroughoutPark); // Finances @@ -1282,56 +1285,113 @@ namespace OpenRCT2 cs.read(tileElements.data(), tileElements.size() * sizeof(TileElement)); SetTileElements(gameState, std::move(tileElements)); + auto targetVersion = os.getHeader().targetVersion; TileElementIterator it; TileElementIteratorBegin(&it); while (TileElementIteratorNext(&it)) { - if (it.element->getType() == TileElementType::path) + switch (it.element->getType()) { - auto* pathElement = it.element->asPath(); - if (pathElement->hasLegacyPathEntry()) + case TileElementType::banner: { - auto pathEntryIndex = pathElement->getLegacyPathEntryIndex(); - if (pathToRailingsMap[pathEntryIndex] != kObjectEntryIndexNull) + if (targetVersion < kExtendedColoursGoldVersion) { - if (pathElement->isQueue()) - pathElement->setSurfaceEntryIndex(pathToQueueSurfaceMap[pathEntryIndex]); - else - pathElement->setSurfaceEntryIndex(pathToSurfaceMap[pathEntryIndex]); - - pathElement->setRailingsEntryIndex(pathToRailingsMap[pathEntryIndex]); + auto* banner = it.element->asBanner()->getBanner(); + if (banner != nullptr) + { + banner->colour = convertPre63Colour(banner->colour); + } } + break; } - } - else if (it.element->getType() == TileElementType::track) - { - auto* trackElement = it.element->asTrack(); - auto trackType = trackElement->getTrackType(); - if (TrackTypeMustBeMadeInvisible(*trackElement, os.getHeader().targetVersion)) + case TileElementType::surface: + break; + case TileElementType::path: { - it.element->setInvisible(true); + auto* pathElement = it.element->asPath(); + if (pathElement->hasLegacyPathEntry()) + { + auto pathEntryIndex = pathElement->getLegacyPathEntryIndex(); + if (pathToRailingsMap[pathEntryIndex] != kObjectEntryIndexNull) + { + if (pathElement->isQueue()) + pathElement->setSurfaceEntryIndex(pathToQueueSurfaceMap[pathEntryIndex]); + else + pathElement->setSurfaceEntryIndex(pathToSurfaceMap[pathEntryIndex]); + + pathElement->setRailingsEntryIndex(pathToRailingsMap[pathEntryIndex]); + } + } + break; } - if (os.getHeader().targetVersion < kBlockBrakeImprovementsVersion) + case TileElementType::track: { - if (trackType == TrackElemType::brakes) - trackElement->setBrakeClosed(true); - if (trackType == TrackElemType::blockBrakes) - trackElement->setBrakeBoosterSpeed(kRCT2DefaultBlockBrakeSpeed); + auto* trackElement = it.element->asTrack(); + auto trackType = trackElement->getTrackType(); + if (TrackTypeMustBeMadeInvisible(*trackElement, targetVersion)) + { + it.element->setInvisible(true); + } + if (targetVersion < kBlockBrakeImprovementsVersion) + { + if (trackType == TrackElemType::brakes) + trackElement->setBrakeClosed(true); + if (trackType == TrackElemType::blockBrakes) + trackElement->setBrakeBoosterSpeed(kRCT2DefaultBlockBrakeSpeed); + } + break; } - } - else if (it.element->getType() == TileElementType::smallScenery && os.getHeader().targetVersion < 23) - { - auto* sceneryElement = it.element->asSmallScenery(); - // Previous formats stored the needs supports flag in the primary colour - // We have moved it into a flags field to support extended colour sets - bool needsSupports = EnumValue(sceneryElement->getPrimaryColour()) - & kRCT12SmallSceneryElementNeedsSupportsFlag; - if (needsSupports) + case TileElementType::smallScenery: { - const auto valueWithoutFlag = EnumValue(sceneryElement->getPrimaryColour()) - & ~kRCT12SmallSceneryElementNeedsSupportsFlag; - sceneryElement->setPrimaryColour(static_cast(valueWithoutFlag)); - sceneryElement->setNeedsSupports(); + if (targetVersion < 23) + { + auto* sceneryElement = it.element->asSmallScenery(); + // Previous formats stored the needs supports flag in the primary colour + // We have moved it into a flags field to support extended colour sets + bool needsSupports = EnumValue(sceneryElement->getPrimaryColour()) + & kRCT12SmallSceneryElementNeedsSupportsFlag; + if (needsSupports) + { + const auto valueWithoutFlag = EnumValue(sceneryElement->getPrimaryColour()) + & ~kRCT12SmallSceneryElementNeedsSupportsFlag; + sceneryElement->setPrimaryColour(static_cast(valueWithoutFlag)); + sceneryElement->setNeedsSupports(); + } + } + if (targetVersion < kExtendedColoursGoldVersion) + { + auto* sceneryElement = it.element->asSmallScenery(); + sceneryElement->setPrimaryColour(convertPre63Colour(sceneryElement->getPrimaryColour())); + sceneryElement->setSecondaryColour( + convertPre63Colour(sceneryElement->getSecondaryColour())); + sceneryElement->setTertiaryColour(convertPre63Colour(sceneryElement->getTertiaryColour())); + } + break; + } + case TileElementType::entrance: + break; + case TileElementType::wall: + { + if (targetVersion < kExtendedColoursGoldVersion) + { + auto* wallElement = it.element->asWall(); + wallElement->setPrimaryColour(convertPre63Colour(wallElement->getPrimaryColour())); + wallElement->setSecondaryColour(convertPre63Colour(wallElement->getSecondaryColour())); + wallElement->setTertiaryColour(convertPre63Colour(wallElement->getTertiaryColour())); + } + break; + } + case TileElementType::largeScenery: + { + if (targetVersion < kExtendedColoursGoldVersion) + { + auto* sceneryElement = it.element->asLargeScenery(); + sceneryElement->setPrimaryColour(convertPre63Colour(sceneryElement->getPrimaryColour())); + sceneryElement->setSecondaryColour( + convertPre63Colour(sceneryElement->getSecondaryColour())); + sceneryElement->setTertiaryColour(convertPre63Colour(sceneryElement->getTertiaryColour())); + } + break; } } } @@ -1434,7 +1494,7 @@ namespace OpenRCT2 cs.readWrite(banner.type); cs.readWrite(banner.flags.holder); cs.readWrite(banner.text); - cs.readWrite(banner.colour); + readWriteColour(cs, banner.colour, version); cs.readWrite(banner.rideIndex); cs.readWrite(banner.textColour); cs.readWrite(banner.position.x); @@ -1516,17 +1576,17 @@ namespace OpenRCT2 // Colours cs.readWrite(ride.entranceStyle); cs.readWrite(ride.vehicleColourSettings); - cs.readWriteArray(ride.trackColours, [&cs](TrackColour& tc) { - cs.readWrite(tc.main); - cs.readWrite(tc.additional); - cs.readWrite(tc.supports); + cs.readWriteArray(ride.trackColours, [&cs, version](TrackColour& tc) { + readWriteColour(cs, tc.main, version); + readWriteColour(cs, tc.additional, version); + readWriteColour(cs, tc.supports, version); return true; }); - cs.readWriteArray(ride.vehicleColours, [&cs](VehicleColour& vc) { - cs.readWrite(vc.Body); - cs.readWrite(vc.Trim); - cs.readWrite(vc.Tertiary); + cs.readWriteArray(ride.vehicleColours, [&cs, version](VehicleColour& vc) { + readWriteColour(cs, vc.Body, version); + readWriteColour(cs, vc.Trim, version); + readWriteColour(cs, vc.Tertiary, version); return true; }); @@ -1590,7 +1650,7 @@ namespace OpenRCT2 cs.readWrite(ride.chairliftBullwheelRotation); cs.readWrite(ride.slideInUse); cs.readWrite(ride.slidePeep); - cs.readWrite(ride.slidePeepTShirtColour); + readWriteColour(cs, ride.slidePeepTShirtColour, version); cs.readWrite(ride.spiralSlideProgress); cs.readWrite(ride.raceWinner); cs.readWrite(ride.cableLift); @@ -1910,8 +1970,8 @@ namespace OpenRCT2 } } - cs.readWrite(entity.tShirtColour); - cs.readWrite(entity.trousersColour); + readWriteColour(cs, entity.tShirtColour, version); + readWriteColour(cs, entity.trousersColour, version); cs.readWrite(entity.destinationX); cs.readWrite(entity.destinationY); cs.readWrite(entity.destinationTolerance); @@ -2182,9 +2242,9 @@ namespace OpenRCT2 cs.readWrite(guest->angriness); cs.readWrite(guest->timeLost); cs.readWrite(guest->daysInQueue); - cs.readWrite(guest->balloonColour); - cs.readWrite(guest->umbrellaColour); - cs.readWrite(guest->hatColour); + readWriteColour(cs, guest->balloonColour, version); + readWriteColour(cs, guest->umbrellaColour, version); + readWriteColour(cs, guest->hatColour, version); cs.readWrite(guest->favouriteRide); cs.readWrite(guest->favouriteRideRating); } @@ -2264,6 +2324,7 @@ namespace OpenRCT2 template<> void ParkFile::ReadWriteEntity(OrcaStream& os, OrcaStream::ChunkStream& cs, Vehicle& entity) { + auto version = os.getHeader().targetVersion; ReadWriteEntityCommon(cs, entity); cs.readWrite(entity.SubType); cs.readWrite(entity.pitch); @@ -2273,8 +2334,8 @@ namespace OpenRCT2 cs.readWrite(entity.acceleration); cs.readWrite(entity.ride); cs.readWrite(entity.vehicle_type); - cs.readWrite(entity.colours.Body); - cs.readWrite(entity.colours.Trim); + readWriteColour(cs, entity.colours.Body, version); + readWriteColour(cs, entity.colours.Trim, version); cs.readWrite(entity.track_progress); cs.readWrite(entity.BoatLocation); cs.readWrite(entity.TrackTypeAndDirection); @@ -2286,7 +2347,7 @@ namespace OpenRCT2 cs.readWrite(entity.next_vehicle_on_ride); cs.readWrite(entity.var_44); cs.readWrite(entity.mass); - if (cs.getMode() == OrcaStream::Mode::reading && os.getHeader().targetVersion < 18) + if (cs.getMode() == OrcaStream::Mode::reading && version < 18) { uint16_t updateFlags = 0; cs.readWrite(updateFlags); @@ -2305,7 +2366,7 @@ namespace OpenRCT2 for (size_t i = 0; i < std::size(entity.peep); i++) { cs.readWrite(entity.peep[i]); - cs.readWrite(entity.peep_tshirt_colours[i]); + readWriteColour(cs, entity.peep_tshirt_colours[i], version); } cs.readWrite(entity.num_seats); cs.readWrite(entity.num_peeps); @@ -2356,7 +2417,7 @@ namespace OpenRCT2 cs.readWrite(entity.mini_golf_current_animation); cs.readWrite(entity.miniGolfFlags.holder); cs.readWrite(entity.ride_subtype); - cs.readWrite(entity.colours.Tertiary); + readWriteColour(cs, entity.colours.Tertiary, version); cs.readWrite(entity.seat_rotation); cs.readWrite(entity.target_seat_rotation); if (cs.getMode() == OrcaStream::Mode::reading && os.getHeader().targetVersion < 18) @@ -2543,9 +2604,9 @@ namespace OpenRCT2 cs.readWrite(guest.angriness); cs.readWrite(guest.timeLost); cs.readWrite(guest.daysInQueue); - cs.readWrite(guest.balloonColour); - cs.readWrite(guest.umbrellaColour); - cs.readWrite(guest.hatColour); + readWriteColour(cs, guest.balloonColour, version); + readWriteColour(cs, guest.umbrellaColour, version); + readWriteColour(cs, guest.hatColour, version); cs.readWrite(guest.favouriteRide); cs.readWrite(guest.favouriteRideRating); cs.readWrite(guest.itemFlags.holder); @@ -2621,12 +2682,13 @@ namespace OpenRCT2 template<> void ParkFile::ReadWriteEntity(OrcaStream& os, OrcaStream::ChunkStream& cs, VehicleCrashParticle& vehicleCrashParticle) { + auto version = os.getHeader().targetVersion; ReadWriteEntityCommon(cs, vehicleCrashParticle); cs.readWrite(vehicleCrashParticle.frame); cs.readWrite(vehicleCrashParticle.timeToLive); cs.readWrite(vehicleCrashParticle.frame); - cs.readWrite(vehicleCrashParticle.colour[0]); - cs.readWrite(vehicleCrashParticle.colour[1]); + readWriteColour(cs, vehicleCrashParticle.colour[0], version); + readWriteColour(cs, vehicleCrashParticle.colour[1], version); cs.readWrite(vehicleCrashParticle.crashedSpriteBase); cs.readWrite(vehicleCrashParticle.velocityX); cs.readWrite(vehicleCrashParticle.velocityY); @@ -2677,7 +2739,7 @@ namespace OpenRCT2 cs.readWrite(balloon.popped); cs.readWrite(balloon.timeToMove); cs.readWrite(balloon.frame); - cs.readWrite(balloon.colour); + readWriteColour(cs, balloon.colour, os.getHeader().targetVersion); } template<> From c5a519bbb0ea8f4c6eb1d3f97c06eb7e81ad4272 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Fri, 2 Oct 2026 21:50:05 +0200 Subject: [PATCH 120/142] Clamp small scenery element and track colours when setting them --- .../actions/ride/RideSetAppearanceAction.cpp | 12 ++++++------ src/openrct2/park/ParkFile.cpp | 8 +++++--- .../scripting/bindings/ride/ScRide.hpp | 15 +++++++-------- .../world/tile_element/SmallSceneryElement.cpp | 18 ++++++++++++------ .../world/tile_element/SmallSceneryElement.h | 6 +++--- 5 files changed, 33 insertions(+), 26 deletions(-) diff --git a/src/openrct2/actions/ride/RideSetAppearanceAction.cpp b/src/openrct2/actions/ride/RideSetAppearanceAction.cpp index 9b6b00a772..19d7cb67e1 100644 --- a/src/openrct2/actions/ride/RideSetAppearanceAction.cpp +++ b/src/openrct2/actions/ride/RideSetAppearanceAction.cpp @@ -99,27 +99,27 @@ namespace OpenRCT2::GameActions switch (_type) { case RideSetAppearanceType::trackColourMain: - ride->trackColours[_index].main = static_cast(_value); + ride->trackColours[_index].main = Drawing::clampColour(_value); Drawing::GfxInvalidateScreen(); break; case RideSetAppearanceType::trackColourAdditional: - ride->trackColours[_index].additional = static_cast(_value); + ride->trackColours[_index].additional = Drawing::clampColour(_value); Drawing::GfxInvalidateScreen(); break; case RideSetAppearanceType::trackColourSupports: - ride->trackColours[_index].supports = static_cast(_value); + ride->trackColours[_index].supports = Drawing::clampColour(_value); Drawing::GfxInvalidateScreen(); break; case RideSetAppearanceType::vehicleColourBody: - ride->vehicleColours[_index].Body = static_cast(_value); + ride->vehicleColours[_index].Body = Drawing::clampColour(_value); RideUpdateVehicleColours(*ride); break; case RideSetAppearanceType::vehicleColourTrim: - ride->vehicleColours[_index].Trim = static_cast(_value); + ride->vehicleColours[_index].Trim = Drawing::clampColour(_value); RideUpdateVehicleColours(*ride); break; case RideSetAppearanceType::vehicleColourTertiary: - ride->vehicleColours[_index].Tertiary = static_cast(_value); + ride->vehicleColours[_index].Tertiary = Drawing::clampColour(_value); RideUpdateVehicleColours(*ride); break; case RideSetAppearanceType::vehicleColourScheme: diff --git a/src/openrct2/park/ParkFile.cpp b/src/openrct2/park/ParkFile.cpp index bd980b5b6b..9bb2e8ae57 100644 --- a/src/openrct2/park/ParkFile.cpp +++ b/src/openrct2/park/ParkFile.cpp @@ -1361,10 +1361,12 @@ namespace OpenRCT2 if (targetVersion < kExtendedColoursGoldVersion) { auto* sceneryElement = it.element->asSmallScenery(); - sceneryElement->setPrimaryColour(convertPre63Colour(sceneryElement->getPrimaryColour())); + sceneryElement->setPrimaryColour( + convertPre63Colour(sceneryElement->getPrimaryColour()), true); sceneryElement->setSecondaryColour( - convertPre63Colour(sceneryElement->getSecondaryColour())); - sceneryElement->setTertiaryColour(convertPre63Colour(sceneryElement->getTertiaryColour())); + convertPre63Colour(sceneryElement->getSecondaryColour()), true); + sceneryElement->setTertiaryColour( + convertPre63Colour(sceneryElement->getTertiaryColour()), true); } break; } diff --git a/src/openrct2/scripting/bindings/ride/ScRide.hpp b/src/openrct2/scripting/bindings/ride/ScRide.hpp index 88cd167822..276487155c 100644 --- a/src/openrct2/scripting/bindings/ride/ScRide.hpp +++ b/src/openrct2/scripting/bindings/ride/ScRide.hpp @@ -29,11 +29,10 @@ namespace OpenRCT2::Scripting inline VehicleColour JSToVehicleColours(JSContext* ctx, JSValue val) { VehicleColour result{}; - result.Body = static_cast(AsOrDefault(ctx, val, "body", 0)); - result.Trim = static_cast(AsOrDefault(ctx, val, "trim", 0)); - result.Tertiary = static_cast(AsOrDefault(ctx, val, "ternary", 0)); - result.Tertiary = static_cast( - AsOrDefault(ctx, val, "tertiary", static_cast(result.Tertiary))); + result.Body = Drawing::clampColour(AsOrDefault(ctx, val, "body", 0)); + result.Trim = Drawing::clampColour(AsOrDefault(ctx, val, "trim", 0)); + result.Tertiary = Drawing::clampColour(AsOrDefault(ctx, val, "ternary", 0)); + result.Tertiary = Drawing::clampColour(AsOrDefault(ctx, val, "tertiary", static_cast(result.Tertiary))); return result; } @@ -49,9 +48,9 @@ namespace OpenRCT2::Scripting inline TrackColour JSToTrackColour(JSContext* ctx, JSValue val) { TrackColour result{}; - result.main = static_cast(AsOrDefault(ctx, val, "main", 0)); - result.additional = static_cast(AsOrDefault(ctx, val, "additional", 0)); - result.supports = static_cast(AsOrDefault(ctx, val, "supports", 0)); + result.main = Drawing::clampColour(AsOrDefault(ctx, val, "main", 0)); + result.additional = Drawing::clampColour(AsOrDefault(ctx, val, "additional", 0)); + result.supports = Drawing::clampColour(AsOrDefault(ctx, val, "supports", 0)); return result; } diff --git a/src/openrct2/world/tile_element/SmallSceneryElement.cpp b/src/openrct2/world/tile_element/SmallSceneryElement.cpp index c7eab46a20..1a6e924ce1 100644 --- a/src/openrct2/world/tile_element/SmallSceneryElement.cpp +++ b/src/openrct2/world/tile_element/SmallSceneryElement.cpp @@ -87,21 +87,27 @@ namespace OpenRCT2 return colour[2]; } - void SmallSceneryElement::setPrimaryColour(Drawing::Colour newColour) + void SmallSceneryElement::setPrimaryColour(Drawing::Colour newColour, bool fromImport) { - assert(Drawing::colourIsValid(newColour)); + if (!fromImport) + newColour = Drawing::clampColour(newColour); + colour[0] = newColour; } - void SmallSceneryElement::setSecondaryColour(Drawing::Colour newColour) + void SmallSceneryElement::setSecondaryColour(Drawing::Colour newColour, bool fromImport) { - assert(Drawing::colourIsValid(newColour)); + if (!fromImport) + newColour = Drawing::clampColour(newColour); + colour[1] = newColour; } - void SmallSceneryElement::setTertiaryColour(Drawing::Colour newColour) + void SmallSceneryElement::setTertiaryColour(Drawing::Colour newColour, bool fromImport) { - assert(Drawing::colourIsValid(newColour)); + if (!fromImport) + newColour = Drawing::clampColour(newColour); + colour[2] = newColour; } diff --git a/src/openrct2/world/tile_element/SmallSceneryElement.h b/src/openrct2/world/tile_element/SmallSceneryElement.h index 0c85be6ea8..fe4de559c9 100644 --- a/src/openrct2/world/tile_element/SmallSceneryElement.h +++ b/src/openrct2/world/tile_element/SmallSceneryElement.h @@ -50,11 +50,11 @@ namespace OpenRCT2 uint8_t getSceneryQuadrant() const; void setSceneryQuadrant(uint8_t newQuadrant); Drawing::Colour getPrimaryColour() const; - void setPrimaryColour(Drawing::Colour colour); + void setPrimaryColour(Drawing::Colour colour, bool fromImport = false); Drawing::Colour getSecondaryColour() const; - void setSecondaryColour(Drawing::Colour colour); + void setSecondaryColour(Drawing::Colour colour, bool fromImport = false); Drawing::Colour getTertiaryColour() const; - void setTertiaryColour(Drawing::Colour colour); + void setTertiaryColour(Drawing::Colour colour, bool fromImport = false); bool needsSupports() const; void setNeedsSupports(); void updateAge(const CoordsXY& sceneryPos); From adc135c4718d0f52c3da0ef9024a2cf1994744da Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 3 Oct 2026 14:37:17 +0200 Subject: [PATCH 121/142] Amend the changelog and bump network version --- distribution/changelog.txt | 1 + src/openrct2/network/NetworkBase.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 767ba7a6b7..deb3a4ca69 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,6 +1,7 @@ 0.5.6 (in development) ------------------------------------------------------------------------ - Feature: [#16014] Land surfaces and edges can now be recoloured. +- Feature: [#26894] Added 18 additional colours, including 5 from the base version of RCT1 (which were removed in later versions). - Feature: [#27153] [Plugin] Add `guestsEntertained` to `Entertainer` interface. - Feature: [#27184] [Plugin] Double limit of miscellaneous entities (e.g. crash particles, steam plumes and balloons) to 6400. - Feature: [objects#447] Track designer grid can now be used outside the Track Designer. diff --git a/src/openrct2/network/NetworkBase.cpp b/src/openrct2/network/NetworkBase.cpp index c37757486d..2a9d6e9760 100644 --- a/src/openrct2/network/NetworkBase.cpp +++ b/src/openrct2/network/NetworkBase.cpp @@ -47,7 +47,7 @@ // It is used for making sure only compatible builds get connected, even within // single OpenRCT2 version. -constexpr uint8_t kStreamVersion = 1; +constexpr uint8_t kStreamVersion = 2; const std::string kStreamID = std::string(kOpenRCT2Version) + "-" + std::to_string(kStreamVersion); From 9507bf486a0e99edf915cbdf286cff7b29fc97ca Mon Sep 17 00:00:00 2001 From: Guy Sviry <32539816+guysv@users.noreply.github.com> Date: Sun, 4 Oct 2026 01:13:00 +0300 Subject: [PATCH 122/142] Fix TrackElement.seatRotation setter rejecting every ride except mazes (#27234) The maze check in ScTileElement::seatRotation_set was inverted, so the setter refused every track element except maze ones, the only ride type seat rotation does not apply to. Use the same check as the getter. --- distribution/changelog.txt | 1 + src/openrct2/scripting/ScriptEngine.h | 2 +- src/openrct2/scripting/bindings/world/ScTileElement.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index deb3a4ca69..4cd85ab7ab 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -39,6 +39,7 @@ - Fix: [#27136] Guests keep waiting at a level crossing after the train has passed, due to faulty iteration over the track the train has vacated. - Fix: [#27212] Chain lifts are blue in screenshots taken from the command line. - Fix: [#27218] Tile inspector coordinate spinners are too short for coordinate 1000. +- Fix: [#27234] [Plugin] Setting `TrackElement.seatRotation` fails on every ride except mazes, where it does not apply. 0.5.5 (2026-09-06) ------------------------------------------------------------------------ diff --git a/src/openrct2/scripting/ScriptEngine.h b/src/openrct2/scripting/ScriptEngine.h index 9942168c20..8f1c2b6818 100644 --- a/src/openrct2/scripting/ScriptEngine.h +++ b/src/openrct2/scripting/ScriptEngine.h @@ -43,7 +43,7 @@ namespace OpenRCT2 namespace OpenRCT2::Scripting { // Grepped from CI (.github/workflows/publish-plugin-types.yml); keep the format `kPluginApiVersion = N`. - static constexpr int32_t kPluginApiVersion = 123; + static constexpr int32_t kPluginApiVersion = 124; // Versions marking breaking changes. static constexpr int32_t kApiVersionPeepDeprecation = 33; diff --git a/src/openrct2/scripting/bindings/world/ScTileElement.cpp b/src/openrct2/scripting/bindings/world/ScTileElement.cpp index ce1b29b8c7..f78413d37d 100644 --- a/src/openrct2/scripting/bindings/world/ScTileElement.cpp +++ b/src/openrct2/scripting/bindings/world/ScTileElement.cpp @@ -1100,7 +1100,7 @@ namespace OpenRCT2::Scripting } const auto& rtd = ride->getRideTypeDescriptor(); - if (rtd.specialType != RtdSpecialType::maze) + if (rtd.specialType == RtdSpecialType::maze) { auto& scriptEngine = GetContext()->GetScriptEngine(); scriptEngine.LogPluginInfo("Cannot set 'seatRotation' property, TrackElement belongs to a maze."); From 5d86c6be378035fc50b25a919d6215fba5d68110 Mon Sep 17 00:00:00 2001 From: GhostCoder6969 Date: Sat, 3 Oct 2026 22:14:34 +0000 Subject: [PATCH 123/142] Fix three small spelling mistakes (#27232) --- src/openrct2/Context.cpp | 2 +- src/openrct2/core/Compression.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 5f2472b291..448b4c9d27 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -1270,7 +1270,7 @@ namespace OpenRCT2 { _variableFrame = useVariableFrame; - // Switching from variable to fixed frame requires reseting + // Switching from variable to fixed frame requires resetting // of entity positions back to end of tick positions auto& tweener = EntityTweener::get(); tweener.restore(); diff --git a/src/openrct2/core/Compression.cpp b/src/openrct2/core/Compression.cpp index d31d5b0cf5..633a1aa73c 100644 --- a/src/openrct2/core/Compression.cpp +++ b/src/openrct2/core/Compression.cpp @@ -61,7 +61,7 @@ namespace OpenRCT2::Compression do { - Guard::Assert(destBuf, "Compression Overruns Ouput Size"); + Guard::Assert(destBuf, "Compression Overruns Output Size"); auto writeBlock = destBuf.WriteBlockStart(kZlibMaxChunkSize); strm.next_out = static_cast(writeBlock.first); @@ -203,7 +203,7 @@ namespace OpenRCT2::Compression do { - Guard::Assert(destBuf, "Compression Overruns Ouput Size"); + Guard::Assert(destBuf, "Compression Overruns Output Size"); auto writeBlock = destBuf.WriteBlockStart(); ZSTD_outBuffer output = { writeBlock.first, writeBlock.second, 0 }; From f44e1939eb0059c36436983abd66c4885c485bd5 Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Sun, 4 Oct 2026 05:21:13 +0000 Subject: [PATCH 124/142] Merge Localisation/master into OpenRCT2/develop --- data/language/de-DE.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/data/language/de-DE.txt b/data/language/de-DE.txt index 2fc821d038..379eedc2a3 100644 --- a/data/language/de-DE.txt +++ b/data/language/de-DE.txt @@ -3821,3 +3821,23 @@ STR_7040 :Fußwegextras STR_7041 :Parkinfotafel STR_7042 :Datumsinfotafel STR_7043 :Landhöhe kann hier nicht geändert werden … +STR_7044 :Nachrichenticker +STR_7045 :Statusleiste im RCT1-Stil +STR_7046 :Statusleiste (RCT1-Stil) +STR_7047 :Schrittsteuerung (Streckenentwurf-Designer) +STR_7048 :Schrittsteuerung (Szenario-Editor) +STR_7049 :OpenRCT2 +STR_7050 :Gehende Besucher +STR_7051 :Besucher auf dem Weg nach {STRINGID} +STR_7052 :Besucher, die für {STRINGID} anstehen +STR_7053 :Ertrinkende Besucher +STR_7054 :Besucher auf {STRINGID} +STR_7055 :Besucher in {STRINGID} +STR_7056 :Besucher bei {STRINGID} +STR_7057 :Sitzende Besucher +STR_7058 :Aufgesammelte Besucher +STR_7059 :Besucher, die {STRINGID} beobachten +STR_7060 :Besucher, die beim Bau von {STRINGID} zuschauen +STR_7061 :Besucher, die die Landschaft betrachten +STR_7062 :Besucher, die den Park verlassen +STR_7063 :Besucher, die beim Bau eines neuen Fahrgeschäfts zuschauen From d4ca070ece5fdac19d870ac6ab3cc5dab837bf85 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 4 Oct 2026 10:15:19 +0200 Subject: [PATCH 125/142] Add missing part of STR_5587 --- data/language/en-GB.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/language/en-GB.txt b/data/language/en-GB.txt index 61f0604f5e..17a141459f 100644 --- a/data/language/en-GB.txt +++ b/data/language/en-GB.txt @@ -2682,7 +2682,7 @@ STR_5583 :{COMMA1DP16} m/s STR_5584 :SI STR_5585 :Unlocks ride operation limits, allowing for things like {VELOCITY} lift hills STR_5586 :Automatically open and close shops and stalls -STR_5587 :Shops and stalls will be automatically opened after building them +STR_5587 :Shops and stalls will be automatically opened after building them, and automatically closed before construction. STR_5588 :Play with other players STR_5589 :Notification Settings STR_5590 :Park awards From 5417ea3fba88035d57456424306378e66d889f0c Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 4 Oct 2026 11:39:14 +0200 Subject: [PATCH 126/142] Fix "openrct2 parkinfo objects" crashing every time --- src/openrct2/command_line/ParkInfoCommands.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/openrct2/command_line/ParkInfoCommands.cpp b/src/openrct2/command_line/ParkInfoCommands.cpp index db3a8fed58..0930f9a741 100644 --- a/src/openrct2/command_line/ParkInfoCommands.cpp +++ b/src/openrct2/command_line/ParkInfoCommands.cpp @@ -9,6 +9,7 @@ #include "../Context.h" #include "../FileClassifier.h" +#include "../OpenRCT2.h" #include "../ParkImporter.h" #include "../core/Console.hpp" #include "../core/FileStream.h" @@ -55,6 +56,8 @@ namespace OpenRCT2 auto sourcePath = Path::GetAbsolute(rawSourcePath); auto context = CreateContext(); + // Needed for Context::Initialise(), because it will try and load the game proper otherwise, and crash. + gOpenRCT2Headless = true; context->Initialise(); auto stream = FileStream(sourcePath, FileMode::open); @@ -132,7 +135,10 @@ namespace OpenRCT2 continue; } auto* ori = GetContext()->GetObjectRepository().FindObject(obj); - Console::WriteFormat("%s Object: ", sourceGameToName[EnumValue(ori->GetFirstSourceGame())]); + auto sourceGame = ObjectSourceGame::custom; + if (ori != nullptr) + sourceGame = ori->GetFirstSourceGame(); + Console::WriteFormat("%s Object: ", sourceGameToName[EnumValue(sourceGame)]); std::string name{ obj.GetName() }; if (obj.Generation == ObjectGeneration::dat) From dff8086726b22aa2df391f9b81474670b09c3dd9 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 4 Oct 2026 11:46:09 +0200 Subject: [PATCH 127/142] Fix #27233: `openrct2 parkinfo object` segfaults when called with a scenario --- distribution/changelog.txt | 1 + src/openrct2/command_line/ParkInfoCommands.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 4cd85ab7ab..4751d4532b 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -39,6 +39,7 @@ - Fix: [#27136] Guests keep waiting at a level crossing after the train has passed, due to faulty iteration over the track the train has vacated. - Fix: [#27212] Chain lifts are blue in screenshots taken from the command line. - Fix: [#27218] Tile inspector coordinate spinners are too short for coordinate 1000. +- Fix: [#27233] `openrct2 parkinfo objects` crashes when called with a scenario instead of save. - Fix: [#27234] [Plugin] Setting `TrackElement.seatRotation` fails on every ride except mazes, where it does not apply. 0.5.5 (2026-09-06) diff --git a/src/openrct2/command_line/ParkInfoCommands.cpp b/src/openrct2/command_line/ParkInfoCommands.cpp index 0930f9a741..82f92f050d 100644 --- a/src/openrct2/command_line/ParkInfoCommands.cpp +++ b/src/openrct2/command_line/ParkInfoCommands.cpp @@ -90,7 +90,7 @@ namespace OpenRCT2 // Save is an S6 (RCT2 format) parkImporter = ParkImporter::CreateS6(objectRepository); } - auto loadResult = parkImporter->LoadSavedGame(sourcePath.c_str()); + auto loadResult = parkImporter->Load(sourcePath.c_str(), false); Console::WriteLine("File contains the following objects: "); Console::WriteLine(); From 02133a10bb2478f448c9bf23d999dd2167f17a55 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 4 Oct 2026 11:51:13 +0200 Subject: [PATCH 128/142] Add missing object types to kTypeToName, guard against out of bounds read --- src/openrct2/command_line/ParkInfoCommands.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/openrct2/command_line/ParkInfoCommands.cpp b/src/openrct2/command_line/ParkInfoCommands.cpp index 82f92f050d..ac2cb89871 100644 --- a/src/openrct2/command_line/ParkInfoCommands.cpp +++ b/src/openrct2/command_line/ParkInfoCommands.cpp @@ -95,11 +95,14 @@ namespace OpenRCT2 Console::WriteLine("File contains the following objects: "); Console::WriteLine(); - constexpr std::array typeToName = { - "Ride", "SmallScenery", "LargeScenery", "Walls", "Banners", "Paths", - "PathAdditions", "SceneryGroup", "ParkEntrance", "Water", "ScenarioMeta", "TerrainSurface", - "TerrainEdge", "Station", "Music", "FootpathSurface", "FootpathRailings", + constexpr std::array kTypeToName = { + "Ride", "SmallScenery", "LargeScenery", "Walls", "Banners", "Paths", + "PathAdditions", "SceneryGroup", "ParkEntrance", "Water", "ScenarioMeta", "TerrainSurface", + "TerrainEdge", "Station", "Music", "FootpathSurface", "FootpathRailings", "Audio", + "PeepNames", "PeepAnimations", "Climate", }; + static_assert(kTypeToName.size() == static_cast(ObjectType::count)); + constexpr std::array sourceGameToName = { "Custom", "WackyWorlds", "TimeTwister", "OpenRCT2Official", "RCT1", "AddedAttractions", "LoopyLandscapes", "", "RCT2", @@ -123,10 +126,13 @@ namespace OpenRCT2 ObjectType::music, ObjectType::footpathSurface, ObjectType::footpathRailings, + ObjectType::peepNames, + ObjectType::peepAnimations, + ObjectType::climate, }) { auto& list = loadResult.RequiredObjects.GetList(objType); - Console::WriteLine("ObjectType: %s, Number of Objects: %d", typeToName[EnumValue(objType)], list.size()); + Console::WriteLine("ObjectType: %s, Number of Objects: %d", kTypeToName[EnumValue(objType)], list.size()); for (auto& obj : list) { if (obj.Generation == ObjectGeneration::json && obj.Identifier.empty()) From d71dadb7a5bd8ca33940e49b90c7f683c1ac7c9e Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 4 Oct 2026 11:54:04 +0200 Subject: [PATCH 129/142] Add missing comma to comment --- src/openrct2/command_line/ParkInfoCommands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/command_line/ParkInfoCommands.cpp b/src/openrct2/command_line/ParkInfoCommands.cpp index ac2cb89871..bcb303e8c5 100644 --- a/src/openrct2/command_line/ParkInfoCommands.cpp +++ b/src/openrct2/command_line/ParkInfoCommands.cpp @@ -137,7 +137,7 @@ namespace OpenRCT2 { if (obj.Generation == ObjectGeneration::json && obj.Identifier.empty()) { - // Empty object slot don't output anything + // Empty object slot, don't output anything continue; } auto* ori = GetContext()->GetObjectRepository().FindObject(obj); From 5f4e4434bbd3f5f4ff6ae0b84c5deb54e521a595 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com> Date: Sun, 4 Oct 2026 13:39:58 +0200 Subject: [PATCH 130/142] Fix #27236: Expanding map does not copy recolourable landscape colours (#27240) --- src/openrct2/world/Map.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openrct2/world/Map.cpp b/src/openrct2/world/Map.cpp index 7b50da42c2..df3676501b 100644 --- a/src/openrct2/world/Map.cpp +++ b/src/openrct2/world/Map.cpp @@ -1268,7 +1268,9 @@ namespace OpenRCT2 const SurfaceElement& sourceTile, SurfaceElement& destTile, const Direction direction) { destTile.setSurfaceObjectIndex(sourceTile.getSurfaceObjectIndex()); + destTile.setPrimarySurfaceColour(sourceTile.getPrimarySurfaceColour()); destTile.setEdgeObjectIndex(sourceTile.getEdgeObjectIndex()); + destTile.setPrimaryEdgeColour(sourceTile.getPrimaryEdgeColour()); destTile.setGrassLength(sourceTile.getGrassLength()); destTile.setOwnership(kUnowned); destTile.setWaterHeight(sourceTile.getWaterHeight()); From a487d4cc74680717a0cf9e7d5a71feb1a3ca93e7 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 3 Oct 2026 17:39:15 +0200 Subject: [PATCH 131/142] Remove getGameState() calls in importer code --- src/openrct2/park/ParkFile.cpp | 4 ++-- src/openrct2/rct1/S4Importer.cpp | 26 ++++++++++++------------- src/openrct2/rct2/S6Importer.cpp | 33 ++++++++++++++++---------------- 3 files changed, 31 insertions(+), 32 deletions(-) diff --git a/src/openrct2/park/ParkFile.cpp b/src/openrct2/park/ParkFile.cpp index 9bb2e8ae57..c873aa413f 100644 --- a/src/openrct2/park/ParkFile.cpp +++ b/src/openrct2/park/ParkFile.cpp @@ -2801,7 +2801,7 @@ namespace OpenRCT2 T placeholder{}; auto index = cs.read(); - auto* ent = getGameState().entities.createEntityAt(index); + auto* ent = gameState.entities.createEntityAt(index); if (ent == nullptr) { // Unable to allocate entity @@ -2822,7 +2822,7 @@ namespace OpenRCT2 os.readWriteChunk(ParkFileChunkType::entities, [this, &gameState, &os](OrcaStream::ChunkStream& cs) { if (cs.getMode() == OrcaStream::Mode::reading) { - getGameState().entities.resetAllEntities(); + gameState.entities.resetAllEntities(); } std::vector entityIndices; diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index 10ac546496..1fbc8d2c54 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -2797,7 +2797,7 @@ namespace OpenRCT2::RCT1 template<> void S4Importer::ImportEntity<::Vehicle>(GameState_t& gameState, const RCT12EntityBase& srcBase) { - auto* dst = getGameState().entities.createEntityAt<::Vehicle>(EntityId::FromUnderlying(srcBase.EntityIndex)); + auto* dst = gameState.entities.createEntityAt<::Vehicle>(EntityId::FromUnderlying(srcBase.EntityIndex)); auto* src = static_cast(&srcBase); const auto* ride = GetRide(RideId::FromUnderlying(src->Ride)); if (ride == nullptr) @@ -2920,7 +2920,7 @@ namespace OpenRCT2::RCT1 template<> void S4Importer::ImportEntity(GameState_t& gameState, const RCT12EntityBase& srcBase) { - auto* dst = getGameState().entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); + auto* dst = gameState.entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); auto* src = static_cast(&srcBase); ImportPeep(dst, src); @@ -3016,7 +3016,7 @@ namespace OpenRCT2::RCT1 template<> void S4Importer::ImportEntity(GameState_t& gameState, const RCT12EntityBase& srcBase) { - auto* dst = getGameState().entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); + auto* dst = gameState.entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); auto* src = static_cast(&srcBase); ImportPeep(dst, src); dst->assignedStaffType = StaffType(src->StaffType); @@ -3035,7 +3035,7 @@ namespace OpenRCT2::RCT1 template<> void S4Importer::ImportEntity(GameState_t& gameState, const RCT12EntityBase& srcBase) { - auto* dst = getGameState().entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); + auto* dst = gameState.entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); auto* src = static_cast(&srcBase); ImportEntityCommonProperties(dst, src); @@ -3046,7 +3046,7 @@ namespace OpenRCT2::RCT1 template<> void S4Importer::ImportEntity(GameState_t& gameState, const RCT12EntityBase& srcBase) { - auto* dst = getGameState().entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); + auto* dst = gameState.entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); auto* src = static_cast(&srcBase); ImportEntityCommonProperties(dst, src); @@ -3057,7 +3057,7 @@ namespace OpenRCT2::RCT1 template<> void S4Importer::ImportEntity(GameState_t& gameState, const RCT12EntityBase& srcBase) { - auto* dst = getGameState().entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); + auto* dst = gameState.entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); auto* src = static_cast(&srcBase); ImportEntityCommonProperties(dst, src); @@ -3072,7 +3072,7 @@ namespace OpenRCT2::RCT1 template<> void S4Importer::ImportEntity(GameState_t& gameState, const RCT12EntityBase& srcBase) { - auto* dst = getGameState().entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); + auto* dst = gameState.entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); auto* src = static_cast(&srcBase); ImportEntityCommonProperties(dst, src); dst->frame = src->Frame; @@ -3091,7 +3091,7 @@ namespace OpenRCT2::RCT1 template<> void S4Importer::ImportEntity(GameState_t& gameState, const RCT12EntityBase& srcBase) { - auto* dst = getGameState().entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); + auto* dst = gameState.entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); auto* src = static_cast(&srcBase); ImportEntityCommonProperties(dst, src); dst->frame = src->Frame; @@ -3100,7 +3100,7 @@ namespace OpenRCT2::RCT1 template<> void S4Importer::ImportEntity(GameState_t& gameState, const RCT12EntityBase& srcBase) { - auto* dst = getGameState().entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); + auto* dst = gameState.entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); auto* src = static_cast(&srcBase); ImportEntityCommonProperties(dst, src); dst->frame = src->Frame; @@ -3109,7 +3109,7 @@ namespace OpenRCT2::RCT1 template<> void S4Importer::ImportEntity(GameState_t& gameState, const RCT12EntityBase& srcBase) { - auto* dst = getGameState().entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); + auto* dst = gameState.entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); auto* src = static_cast(&srcBase); ImportEntityCommonProperties(dst, src); dst->frame = src->Frame; @@ -3118,7 +3118,7 @@ namespace OpenRCT2::RCT1 template<> void S4Importer::ImportEntity(GameState_t& gameState, const RCT12EntityBase& srcBase) { - auto* dst = getGameState().entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); + auto* dst = gameState.entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); auto* src = static_cast(&srcBase); auto fountainType = JumpingFountainType::water; @@ -3138,7 +3138,7 @@ namespace OpenRCT2::RCT1 template<> void S4Importer::ImportEntity(GameState_t& gameState, const RCT12EntityBase& srcBase) { - auto* dst = getGameState().entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); + auto* dst = gameState.entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); auto* src = static_cast(&srcBase); ImportEntityCommonProperties(dst, src); @@ -3159,7 +3159,7 @@ namespace OpenRCT2::RCT1 template<> void S4Importer::ImportEntity(GameState_t& gameState, const RCT12EntityBase& srcBase) { - auto* dst = getGameState().entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); + auto* dst = gameState.entities.createEntityAt(EntityId::FromUnderlying(srcBase.EntityIndex)); auto* src = static_cast(&srcBase); ImportEntityCommonProperties(dst, src); diff --git a/src/openrct2/rct2/S6Importer.cpp b/src/openrct2/rct2/S6Importer.cpp index c42651eda4..782029fc3c 100644 --- a/src/openrct2/rct2/S6Importer.cpp +++ b/src/openrct2/rct2/S6Importer.cpp @@ -565,7 +565,7 @@ namespace OpenRCT2::RCT2 ImportMapAnimations(); - ImportRideRatingsCalcData(); + ImportRideRatingsCalcData(gameState); ImportRideMeasurements(); gameState.nextGuestNumber = _s6.NextGuestIndex; gameState.grassSceneryTileLoopPosition = _s6.GrassAndSceneryTilepos; @@ -1054,12 +1054,12 @@ namespace OpenRCT2::RCT2 } } - void ImportRideRatingsCalcData() + void ImportRideRatingsCalcData(GameState_t& gameState) { const auto& src = _s6.RideRatingsCalcData; // S6 has only one state, ensure we reset all states before reading the first one. RideRating::ResetUpdateStates(); - auto& rideRatingStates = getGameState().rideRatingUpdateStates; + auto& rideRatingStates = gameState.rideRatingUpdateStates; auto& dst = rideRatingStates[0]; dst = {}; dst.Proximity = { src.ProximityX, src.ProximityY, src.ProximityZ }; @@ -1990,7 +1990,7 @@ namespace OpenRCT2::RCT2 template<> void S6Importer::ImportEntity<::Vehicle>(GameState_t& gameState, const RCT12EntityBase& baseSrc) { - auto dst = getGameState().entities.createEntityAt<::Vehicle>(EntityId::FromUnderlying(baseSrc.EntityIndex)); + auto dst = gameState.entities.createEntityAt<::Vehicle>(EntityId::FromUnderlying(baseSrc.EntityIndex)); auto src = static_cast(&baseSrc); const auto& ride = _s6.Rides[src->Ride]; @@ -2116,7 +2116,7 @@ namespace OpenRCT2::RCT2 template<> void S6Importer::ImportEntity<::Guest>(GameState_t& gameState, const RCT12EntityBase& baseSrc) { - auto dst = getGameState().entities.createEntityAt<::Guest>(EntityId::FromUnderlying(baseSrc.EntityIndex)); + auto dst = gameState.entities.createEntityAt<::Guest>(EntityId::FromUnderlying(baseSrc.EntityIndex)); auto src = static_cast(&baseSrc); ImportEntityPeep(dst, src); @@ -2191,7 +2191,7 @@ namespace OpenRCT2::RCT2 template<> void S6Importer::ImportEntity<::Staff>(GameState_t& gameState, const RCT12EntityBase& baseSrc) { - auto dst = getGameState().entities.createEntityAt<::Staff>(EntityId::FromUnderlying(baseSrc.EntityIndex)); + auto dst = gameState.entities.createEntityAt<::Staff>(EntityId::FromUnderlying(baseSrc.EntityIndex)); auto src = static_cast(&baseSrc); ImportEntityPeep(dst, src); @@ -2212,7 +2212,7 @@ namespace OpenRCT2::RCT2 template<> void S6Importer::ImportEntity<::SteamParticle>(GameState_t& gameState, const RCT12EntityBase& baseSrc) { - auto dst = getGameState().entities.createEntityAt<::SteamParticle>(EntityId::FromUnderlying(baseSrc.EntityIndex)); + auto dst = gameState.entities.createEntityAt<::SteamParticle>(EntityId::FromUnderlying(baseSrc.EntityIndex)); auto src = static_cast(&baseSrc); ImportEntityCommonProperties(dst, src); dst->timeToMove = src->TimeToMove; @@ -2222,7 +2222,7 @@ namespace OpenRCT2::RCT2 template<> void S6Importer::ImportEntity<::MoneyEffect>(GameState_t& gameState, const RCT12EntityBase& baseSrc) { - auto dst = getGameState().entities.createEntityAt<::MoneyEffect>(EntityId::FromUnderlying(baseSrc.EntityIndex)); + auto dst = gameState.entities.createEntityAt<::MoneyEffect>(EntityId::FromUnderlying(baseSrc.EntityIndex)); auto src = static_cast(&baseSrc); ImportEntityCommonProperties(dst, src); dst->moveDelay = src->MoveDelay; @@ -2236,8 +2236,7 @@ namespace OpenRCT2::RCT2 template<> void S6Importer::ImportEntity<::VehicleCrashParticle>(GameState_t& gameState, const RCT12EntityBase& baseSrc) { - auto dst = getGameState().entities.createEntityAt<::VehicleCrashParticle>( - EntityId::FromUnderlying(baseSrc.EntityIndex)); + auto dst = gameState.entities.createEntityAt<::VehicleCrashParticle>(EntityId::FromUnderlying(baseSrc.EntityIndex)); auto src = static_cast(&baseSrc); ImportEntityCommonProperties(dst, src); dst->frame = src->Frame; @@ -2257,7 +2256,7 @@ namespace OpenRCT2::RCT2 template<> void S6Importer::ImportEntity<::ExplosionCloud>(GameState_t& gameState, const RCT12EntityBase& baseSrc) { - auto dst = getGameState().entities.createEntityAt<::ExplosionCloud>(EntityId::FromUnderlying(baseSrc.EntityIndex)); + auto dst = gameState.entities.createEntityAt<::ExplosionCloud>(EntityId::FromUnderlying(baseSrc.EntityIndex)); auto src = static_cast(&baseSrc); ImportEntityCommonProperties(dst, src); dst->frame = src->Frame; @@ -2266,7 +2265,7 @@ namespace OpenRCT2::RCT2 template<> void S6Importer::ImportEntity<::ExplosionFlare>(GameState_t& gameState, const RCT12EntityBase& baseSrc) { - auto dst = getGameState().entities.createEntityAt<::ExplosionFlare>(EntityId::FromUnderlying(baseSrc.EntityIndex)); + auto dst = gameState.entities.createEntityAt<::ExplosionFlare>(EntityId::FromUnderlying(baseSrc.EntityIndex)); auto src = static_cast(&baseSrc); ImportEntityCommonProperties(dst, src); dst->frame = src->Frame; @@ -2275,7 +2274,7 @@ namespace OpenRCT2::RCT2 template<> void S6Importer::ImportEntity<::CrashSplashParticle>(GameState_t& gameState, const RCT12EntityBase& baseSrc) { - auto dst = getGameState().entities.createEntityAt<::CrashSplashParticle>(EntityId::FromUnderlying(baseSrc.EntityIndex)); + auto dst = gameState.entities.createEntityAt<::CrashSplashParticle>(EntityId::FromUnderlying(baseSrc.EntityIndex)); auto src = static_cast(&baseSrc); ImportEntityCommonProperties(dst, src); dst->frame = src->Frame; @@ -2284,7 +2283,7 @@ namespace OpenRCT2::RCT2 template<> void S6Importer::ImportEntity<::JumpingFountain>(GameState_t& gameState, const RCT12EntityBase& baseSrc) { - auto dst = getGameState().entities.createEntityAt<::JumpingFountain>(EntityId::FromUnderlying(baseSrc.EntityIndex)); + auto dst = gameState.entities.createEntityAt<::JumpingFountain>(EntityId::FromUnderlying(baseSrc.EntityIndex)); auto src = static_cast(&baseSrc); ImportEntityCommonProperties(dst, src); dst->numTicksAlive = src->NumTicksAlive; @@ -2301,7 +2300,7 @@ namespace OpenRCT2::RCT2 template<> void S6Importer::ImportEntity<::Balloon>(GameState_t& gameState, const RCT12EntityBase& baseSrc) { - auto dst = getGameState().entities.createEntityAt<::Balloon>(EntityId::FromUnderlying(baseSrc.EntityIndex)); + auto dst = gameState.entities.createEntityAt<::Balloon>(EntityId::FromUnderlying(baseSrc.EntityIndex)); auto src = static_cast(&baseSrc); ImportEntityCommonProperties(dst, src); dst->popped = src->Popped; @@ -2313,7 +2312,7 @@ namespace OpenRCT2::RCT2 template<> void S6Importer::ImportEntity<::Duck>(GameState_t& gameState, const RCT12EntityBase& baseSrc) { - auto dst = getGameState().entities.createEntityAt<::Duck>(EntityId::FromUnderlying(baseSrc.EntityIndex)); + auto dst = gameState.entities.createEntityAt<::Duck>(EntityId::FromUnderlying(baseSrc.EntityIndex)); auto src = static_cast(&baseSrc); ImportEntityCommonProperties(dst, src); dst->frame = src->Frame; @@ -2325,7 +2324,7 @@ namespace OpenRCT2::RCT2 template<> void S6Importer::ImportEntity<::Litter>(GameState_t& gameState, const RCT12EntityBase& baseSrc) { - auto dst = getGameState().entities.createEntityAt<::Litter>(EntityId::FromUnderlying(baseSrc.EntityIndex)); + auto dst = gameState.entities.createEntityAt<::Litter>(EntityId::FromUnderlying(baseSrc.EntityIndex)); auto src = static_cast(&baseSrc); ImportEntityCommonProperties(dst, src); dst->subType = ::Litter::Type(src->Type); From b8a0f768041a89725115f294bfd009ccaf8b1543 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 3 Oct 2026 18:25:39 +0200 Subject: [PATCH 132/142] Move news items to ParkData, make news function take a reference to the queues --- src/openrct2-ui/title/TitleSequencePlayer.cpp | 2 +- src/openrct2-ui/windows/GameStatusBar.cpp | 5 +- src/openrct2-ui/windows/News.cpp | 20 +++-- src/openrct2-ui/windows/NewsTicker.cpp | 13 +-- src/openrct2/GameState.cpp | 6 +- src/openrct2/GameState.h | 3 - src/openrct2/ReplayManager.cpp | 6 +- .../actions/ride/RideDemolishAction.cpp | 2 +- src/openrct2/entity/Guest.cpp | 12 ++- src/openrct2/entity/Peep.cpp | 61 ++++++++------ src/openrct2/interface/InteractiveConsole.cpp | 2 +- src/openrct2/management/Award.cpp | 5 +- src/openrct2/management/Marketing.cpp | 3 +- src/openrct2/management/NewsItem.cpp | 80 +++++++++---------- src/openrct2/management/NewsItem.h | 30 +++---- src/openrct2/management/Research.cpp | 6 +- src/openrct2/park/ParkFile.cpp | 16 ++-- src/openrct2/rct1/S4Importer.cpp | 2 +- src/openrct2/rct2/S6Importer.cpp | 2 +- src/openrct2/ride/Ride.cpp | 21 +++-- src/openrct2/ride/Vehicle.Crash.cpp | 4 +- src/openrct2/ride/Vehicle.Station.cpp | 3 +- src/openrct2/scenario/Scenario.cpp | 20 +++-- src/openrct2/scenario/ScenarioObjective.cpp | 2 +- src/openrct2/scenes/editor/EditorScene.cpp | 2 +- .../scripting/bindings/world/ScPark.cpp | 20 ++--- .../bindings/world/ScParkMessage.cpp | 4 +- src/openrct2/world/ParkData.h | 3 + 28 files changed, 195 insertions(+), 160 deletions(-) diff --git a/src/openrct2-ui/title/TitleSequencePlayer.cpp b/src/openrct2-ui/title/TitleSequencePlayer.cpp index 11cb6db63d..3e0e3cce07 100644 --- a/src/openrct2-ui/title/TitleSequencePlayer.cpp +++ b/src/openrct2-ui/title/TitleSequencePlayer.cpp @@ -441,7 +441,7 @@ namespace OpenRCT2::Title auto intent = Intent(INTENT_ACTION_REFRESH_NEW_RIDES); ContextBroadcastIntent(&intent); Ui::Windows::WindowScenerySetDefaultPlacementConfiguration(); - News::InitQueue(gameState); + News::InitQueue(gameState.park); Drawing::LoadPalette(); gScreenAge = 0; gGamePaused = false; diff --git a/src/openrct2-ui/windows/GameStatusBar.cpp b/src/openrct2-ui/windows/GameStatusBar.cpp index 760f2d3b7a..de48881fc5 100644 --- a/src/openrct2-ui/windows/GameStatusBar.cpp +++ b/src/openrct2-ui/windows/GameStatusBar.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -109,8 +110,8 @@ namespace OpenRCT2::Ui::Windows widgets[WIDX_PANEL_OUTSET].right = width - 1; widgets[WIDX_PANEL_INSET].right = width - 3; - bool useFullToolbar = News::IsQueueEmpty() && (ThemeGetFlags() & UITHEME_FLAG_USE_GAME_STATUS_BAR) - && gLegacyScene == LegacyScene::playing; + bool useFullToolbar = getGameState().park.newsItems.isEmpty() + && (ThemeGetFlags() & UITHEME_FLAG_USE_GAME_STATUS_BAR) && gLegacyScene == LegacyScene::playing; widgets[WIDX_PANEL_OUTSET].setVisible(useFullToolbar); widgets[WIDX_PANEL_INSET].setVisible(useFullToolbar); diff --git a/src/openrct2-ui/windows/News.cpp b/src/openrct2-ui/windows/News.cpp index c7b5761e9a..1084e46c6f 100644 --- a/src/openrct2-ui/windows/News.cpp +++ b/src/openrct2-ui/windows/News.cpp @@ -113,7 +113,8 @@ namespace OpenRCT2::Ui::Windows { private: int32_t _pressedNewsItemIndex{}, _pressedButtonIndex{}, _suspendUpdateTicks{}; - WidgetIndex _baseCheckboxIndex; + WidgetIndex _baseCheckboxIndex{}; + News::ItemQueues& _queues; static int32_t CalculateNewsItemHeight() { @@ -363,14 +364,13 @@ namespace OpenRCT2::Ui::Windows size_t j = _pressedNewsItemIndex; _pressedNewsItemIndex = -1; - auto& gameState = getGameState(); - if (j >= gameState.newsItems.getArchived().size()) + if (j >= _queues.getArchived().size()) { return; } - const auto& newsItem = gameState.newsItems.getArchived()[j]; + const auto& newsItem = _queues.getArchived()[j]; if (newsItem.hasButton()) { return; @@ -412,8 +412,7 @@ namespace OpenRCT2::Ui::Windows ScreenSize onScrollGetSize(int32_t scrollIndex) override { - int32_t scrollHeight = static_cast(getGameState().newsItems.getArchived().size()) - * CalculateNewsItemHeight() + int32_t scrollHeight = static_cast(_queues.getArchived().size()) * CalculateNewsItemHeight() - kItemSeparatorHeight; return { kWindowSize.width, scrollHeight }; } @@ -424,7 +423,7 @@ namespace OpenRCT2::Ui::Windows int32_t i = 0; int32_t buttonIndex = 0; auto mutableScreenCoords = screenCoords; - for (const auto& newsItem : getGameState().newsItems.getArchived()) + for (const auto& newsItem : _queues.getArchived()) { if (mutableScreenCoords.y < itemHeight) { @@ -471,7 +470,7 @@ namespace OpenRCT2::Ui::Windows const bool scrollbarVisible = scrolls[0].contentHeight > widgets[WIDX_SCROLL].height() - 1; const auto scrollbarFill = scrollbarVisible ? 0 : kScrollBarWidth; - for (const auto& newsItem : getGameState().newsItems.getArchived()) + for (const auto& newsItem : _queues.getArchived()) { if (y >= rt.y + rt.height) break; @@ -607,6 +606,11 @@ namespace OpenRCT2::Ui::Windows i++; } } + + NewsWindow() + : _queues(getGameState().park.newsItems) + { + } }; WindowBase* NewsOpen() diff --git a/src/openrct2-ui/windows/NewsTicker.cpp b/src/openrct2-ui/windows/NewsTicker.cpp index 3a33d69ad2..318d50a94e 100644 --- a/src/openrct2-ui/windows/NewsTicker.cpp +++ b/src/openrct2-ui/windows/NewsTicker.cpp @@ -53,9 +53,11 @@ namespace OpenRCT2::Ui::Windows class NewsTicker final : public Window { private: + News::ItemQueues& _queues; + void drawNewsItem(RenderTarget& rt) { - const auto* newsItem = News::GetItem(0); + const auto* newsItem = News::GetItem(_queues, 0); if (newsItem == nullptr) return; @@ -172,6 +174,7 @@ namespace OpenRCT2::Ui::Windows public: NewsTicker() + : _queues(getGameState().park.newsItems) { setWidgets(kNewsTickerWidgets); @@ -181,14 +184,14 @@ namespace OpenRCT2::Ui::Windows void onMouseUp(WidgetIndex widgetIndex) override { - const auto* newsItem = News::GetItem(0); + const auto* newsItem = News::GetItem(_queues, 0); if (newsItem == nullptr) return; switch (widgetIndex) { case WIDX_PANEL_INSET: - News::CloseCurrentItem(); + News::CloseCurrentItem(_queues); break; case WIDX_NEWS_SUBJECT: News::OpenSubject(newsItem->type, newsItem->assoc); @@ -227,7 +230,7 @@ namespace OpenRCT2::Ui::Windows widgets[WIDX_NEWS_LOCATE].right = width - 6; widgets[WIDX_NEWS_LOCATE].left = widgets[WIDX_NEWS_LOCATE].right - 24; - auto* newsItem = News::GetItem(0); + auto* newsItem = News::GetItem(_queues, 0); setWidgetDisabled(WIDX_NEWS_SUBJECT, false); setWidgetDisabled(WIDX_NEWS_LOCATE, false); @@ -262,7 +265,7 @@ namespace OpenRCT2::Ui::Windows if (currentFrame >= 24) currentFrame = 0; - if (News::IsQueueEmpty()) + if (_queues.isEmpty()) close(); } }; diff --git a/src/openrct2/GameState.cpp b/src/openrct2/GameState.cpp index 1e47cf8998..28ebaebee2 100644 --- a/src/openrct2/GameState.cpp +++ b/src/openrct2/GameState.cpp @@ -70,7 +70,7 @@ namespace OpenRCT2 UpdateConsolidatedPatrolAreas(); ResetDate(); Weather::reset(); - News::InitQueue(gameState); + News::InitQueue(gameState.park); gInMapInitCode = false; @@ -322,17 +322,17 @@ namespace OpenRCT2 VehicleUpdateAll(); gameState.entities.updateAllMiscEntities(); Ride::updateAll(); + auto& park = gameState.park; if (!isInEditorMode()) { - auto& park = gameState.park; Park::Update(park, gameState); } ResearchUpdate(); RideRating::UpdateAll(); RideMeasurementsUpdate(); - News::UpdateCurrentItem(); + News::UpdateCurrentItem(park.newsItems); MapAnimations::InvalidateAndUpdateAll(); VehicleSoundsUpdate(); diff --git a/src/openrct2/GameState.h b/src/openrct2/GameState.h index bb678c78c7..b2d1474d09 100644 --- a/src/openrct2/GameState.h +++ b/src/openrct2/GameState.h @@ -15,7 +15,6 @@ #include "core/Random.hpp" #include "entity/EntityRegistry.h" #include "interface/ZoomLevel.h" -#include "management/NewsItem.h" #include "ride/Ride.h" #include "ride/RideRatings.h" #include "scenario/ScenarioOptions.h" @@ -73,8 +72,6 @@ namespace OpenRCT2 std::vector peepSpawns; - News::ItemQueues newsItems; - uint16_t grassSceneryTileLoopPosition; CoordsXY widePathTileLoopPosition; diff --git a/src/openrct2/ReplayManager.cpp b/src/openrct2/ReplayManager.cpp index 29d0f25522..f15b3b58b9 100644 --- a/src/openrct2/ReplayManager.cpp +++ b/src/openrct2/ReplayManager.cpp @@ -344,7 +344,8 @@ namespace OpenRCT2 _currentRecording.reset(); - News::Item* news = News::AddItemToQueue(News::ItemType::blank, "Replay recording stopped", 0); + News::Item* news = News::AddItemToQueue( + getGameState().park.newsItems, News::ItemType::blank, "Replay recording stopped", 0); news->setFlags(News::ItemFlags::hasButton); // Has no subject. return true; @@ -470,7 +471,8 @@ namespace OpenRCT2 // During normal playback we pause the game if stopped. if (_mode == ReplayMode::playing) { - News::Item* news = News::AddItemToQueue(News::ItemType::blank, "Replay playback complete", 0); + News::Item* news = News::AddItemToQueue( + getGameState().park.newsItems, News::ItemType::blank, "Replay playback complete", 0); news->setFlags(News::ItemFlags::hasButton); // Has no subject. } diff --git a/src/openrct2/actions/ride/RideDemolishAction.cpp b/src/openrct2/actions/ride/RideDemolishAction.cpp index be0cc33282..eafe59f11a 100644 --- a/src/openrct2/actions/ride/RideDemolishAction.cpp +++ b/src/openrct2/actions/ride/RideDemolishAction.cpp @@ -132,7 +132,7 @@ namespace OpenRCT2::GameActions RideClearLeftoverEntrances(ride); const auto rideId = ride.id; - News::DisableNewsItems(News::ItemType::ride, rideId.ToUnderlying()); + News::DisableNewsItems(park.newsItems, News::ItemType::ride, rideId.ToUnderlying()); UnlinkAllBannersForRide(ride.id); diff --git a/src/openrct2/entity/Guest.cpp b/src/openrct2/entity/Guest.cpp index 4786cfbc0c..295d8a5e15 100644 --- a/src/openrct2/entity/Guest.cpp +++ b/src/openrct2/entity/Guest.cpp @@ -1619,7 +1619,9 @@ namespace OpenRCT2 ft.Add(shopItemDescriptor.Naming.Indefinite); if (Config::Get().notifications.guestBoughtItem) { - News::AddItemToQueue(News::ItemType::peepOnRide, STR_PEEP_TRACKING_NOTIFICATION_BOUGHT_X, guest.id, ft); + News::AddItemToQueue( + getGameState().park.newsItems, News::ItemType::peepOnRide, STR_PEEP_TRACKING_NOTIFICATION_BOUGHT_X, + guest.id, ft); } } @@ -3552,7 +3554,8 @@ namespace OpenRCT2 if (Config::Get().notifications.rideWarnings) { News::AddItemToQueue( - News::ItemType::ride, STR_GUESTS_GETTING_STUCK_ON_RIDE, guest.currentRide.ToUnderlying(), ft); + getGameState().park.newsItems, News::ItemType::ride, STR_GUESTS_GETTING_STUCK_ON_RIDE, + guest.currentRide.ToUnderlying(), ft); } } } @@ -3857,7 +3860,7 @@ namespace OpenRCT2 if (Config::Get().notifications.guestOnRide) { - News::AddItemToQueue(News::ItemType::peepOnRide, msg_string, id, ft); + News::AddItemToQueue(getGameState().park.newsItems, News::ItemType::peepOnRide, msg_string, id, ft); } } @@ -5016,7 +5019,8 @@ namespace OpenRCT2 if (Config::Get().notifications.guestLeftRide) { - News::AddItemToQueue(News::ItemType::peepOnRide, STR_PEEP_TRACKING_LEFT_RIDE_X, id, ft); + News::AddItemToQueue( + getGameState().park.newsItems, News::ItemType::peepOnRide, STR_PEEP_TRACKING_LEFT_RIDE_X, id, ft); } } } diff --git a/src/openrct2/entity/Peep.cpp b/src/openrct2/entity/Peep.cpp index 83c07694fc..134c1b94cf 100644 --- a/src/openrct2/entity/Peep.cpp +++ b/src/openrct2/entity/Peep.cpp @@ -730,14 +730,14 @@ namespace OpenRCT2 bool wasGuest = staff == nullptr; if (wasGuest) { - News::DisableNewsItems(News::ItemType::peepOnRide, peep->id.ToUnderlying()); + News::DisableNewsItems(getGameState().park.newsItems, News::ItemType::peepOnRide, peep->id.ToUnderlying()); } else { staff->clearPatrolArea(); UpdateConsolidatedPatrolAreas(); - News::DisableNewsItems(News::ItemType::peep, staff->id.ToUnderlying()); + News::DisableNewsItems(getGameState().park.newsItems, News::ItemType::peep, staff->id.ToUnderlying()); } getGameState().entities.entityRemove(peep); @@ -781,15 +781,16 @@ namespace OpenRCT2 if (action == PeepActionType::drowning) return; + auto& park = getGameState().park; + if (Config::Get().notifications.guestDied) { auto ft = Formatter(); formatNameTo(ft); - News::AddItemToQueue(News::ItemType::blank, STR_NEWS_ITEM_GUEST_DROWNED, x | (y << 16), ft); + News::AddItemToQueue(park.newsItems, News::ItemType::blank, STR_NEWS_ITEM_GUEST_DROWNED, x | (y << 16), ft); } - auto& gameState = getGameState(); - gameState.park.ratingCasualtyPenalty = std::min(gameState.park.ratingCasualtyPenalty + 25, 1000); + park.ratingCasualtyPenalty = std::min(park.ratingCasualtyPenalty + 25, 1000); remove(); return; } @@ -955,12 +956,14 @@ namespace OpenRCT2 */ void PeepProblemWarningsUpdate() { - auto& gameState = getGameState(); + // TODO: pass ParkData& as a parameter, rename to GuestProblemWarningsUpdate() and move to Guest.cpp + auto& park = getGameState().park; + auto& newsItems = park.newsItems; Ride* ride; uint32_t hungerCounter = 0, lostCounter = 0, noexitCounter = 0, thirstCounter = 0, litterCounter = 0, disgustCounter = 0, toiletCounter = 0, vandalismCounter = 0; - uint8_t* warningThrottle = gameState.park.peepWarningThrottle; + uint8_t* warningThrottle = park.peepWarningThrottle; int32_t inQueueCounter = 0; int32_t tooLongQueueCounter = 0; @@ -1040,73 +1043,73 @@ namespace OpenRCT2 // could maybe be packed into a loop, would lose a lot of clarity though if (warningThrottle[0]) --warningThrottle[0]; - else if (hungerCounter >= kPeepHungerWarningThreshold && hungerCounter >= gameState.park.numGuestsInPark / 16) + else if (hungerCounter >= kPeepHungerWarningThreshold && hungerCounter >= park.numGuestsInPark / 16) { warningThrottle[0] = 4; if (Config::Get().notifications.guestWarnings) { constexpr auto kThoughtId = static_cast(PeepThoughtType::hungry); - News::AddItemToQueue(News::ItemType::peeps, STR_PEEPS_ARE_HUNGRY, kThoughtId, {}); + News::AddItemToQueue(newsItems, News::ItemType::peeps, STR_PEEPS_ARE_HUNGRY, kThoughtId, {}); } } if (warningThrottle[1]) --warningThrottle[1]; - else if (thirstCounter >= kPeepThirstWarningThreshold && thirstCounter >= gameState.park.numGuestsInPark / 16) + else if (thirstCounter >= kPeepThirstWarningThreshold && thirstCounter >= park.numGuestsInPark / 16) { warningThrottle[1] = 4; if (Config::Get().notifications.guestWarnings) { constexpr auto kThoughtId = static_cast(PeepThoughtType::thirsty); - News::AddItemToQueue(News::ItemType::peeps, STR_PEEPS_ARE_THIRSTY, kThoughtId, {}); + News::AddItemToQueue(newsItems, News::ItemType::peeps, STR_PEEPS_ARE_THIRSTY, kThoughtId, {}); } } if (warningThrottle[2]) --warningThrottle[2]; - else if (toiletCounter >= kPeepToiletWarningThreshold && toiletCounter >= gameState.park.numGuestsInPark / 16) + else if (toiletCounter >= kPeepToiletWarningThreshold && toiletCounter >= park.numGuestsInPark / 16) { warningThrottle[2] = 4; if (Config::Get().notifications.guestWarnings) { constexpr auto kThoughtId = static_cast(PeepThoughtType::toilet); - News::AddItemToQueue(News::ItemType::peeps, STR_PEEPS_CANT_FIND_TOILET, kThoughtId, {}); + News::AddItemToQueue(newsItems, News::ItemType::peeps, STR_PEEPS_CANT_FIND_TOILET, kThoughtId, {}); } } if (warningThrottle[3]) --warningThrottle[3]; - else if (litterCounter >= kPeepLitterWarningThreshold && litterCounter >= gameState.park.numGuestsInPark / 32) + else if (litterCounter >= kPeepLitterWarningThreshold && litterCounter >= park.numGuestsInPark / 32) { warningThrottle[3] = 4; if (Config::Get().notifications.guestWarnings) { constexpr auto kThoughtId = static_cast(PeepThoughtType::badLitter); - News::AddItemToQueue(News::ItemType::peeps, STR_PEEPS_DISLIKE_LITTER, kThoughtId, {}); + News::AddItemToQueue(newsItems, News::ItemType::peeps, STR_PEEPS_DISLIKE_LITTER, kThoughtId, {}); } } if (warningThrottle[4]) --warningThrottle[4]; - else if (disgustCounter >= kPeepDisgustWarningThreshold && disgustCounter >= gameState.park.numGuestsInPark / 32) + else if (disgustCounter >= kPeepDisgustWarningThreshold && disgustCounter >= park.numGuestsInPark / 32) { warningThrottle[4] = 4; if (Config::Get().notifications.guestWarnings) { constexpr auto kThoughtId = static_cast(PeepThoughtType::pathDisgusting); - News::AddItemToQueue(News::ItemType::peeps, STR_PEEPS_DISGUSTED_BY_PATHS, kThoughtId, {}); + News::AddItemToQueue(newsItems, News::ItemType::peeps, STR_PEEPS_DISGUSTED_BY_PATHS, kThoughtId, {}); } } if (warningThrottle[5]) --warningThrottle[5]; - else if (vandalismCounter >= kPeepVandalismWarningThreshold && vandalismCounter >= gameState.park.numGuestsInPark / 32) + else if (vandalismCounter >= kPeepVandalismWarningThreshold && vandalismCounter >= park.numGuestsInPark / 32) { warningThrottle[5] = 4; if (Config::Get().notifications.guestWarnings) { constexpr auto kThoughtId = static_cast(PeepThoughtType::vandalism); - News::AddItemToQueue(News::ItemType::peeps, STR_PEEPS_DISLIKE_VANDALISM, kThoughtId, {}); + News::AddItemToQueue(newsItems, News::ItemType::peeps, STR_PEEPS_DISLIKE_VANDALISM, kThoughtId, {}); } } @@ -1118,7 +1121,7 @@ namespace OpenRCT2 if (Config::Get().notifications.guestWarnings) { constexpr auto kThoughtId = static_cast(PeepThoughtType::cantFindExit); - News::AddItemToQueue(News::ItemType::peeps, STR_PEEPS_GETTING_LOST_OR_STUCK, kThoughtId, {}); + News::AddItemToQueue(newsItems, News::ItemType::peeps, STR_PEEPS_GETTING_LOST_OR_STUCK, kThoughtId, {}); } } else if (lostCounter >= kPeepLostWarningThreshold) @@ -1127,7 +1130,7 @@ namespace OpenRCT2 if (Config::Get().notifications.guestWarnings) { constexpr auto kThoughtId = static_cast(PeepThoughtType::lost); - News::AddItemToQueue(News::ItemType::peeps, STR_PEEPS_GETTING_LOST_OR_STUCK, kThoughtId, {}); + News::AddItemToQueue(newsItems, News::ItemType::peeps, STR_PEEPS_GETTING_LOST_OR_STUCK, kThoughtId, {}); } } @@ -1143,7 +1146,8 @@ namespace OpenRCT2 queueComplainingGuestsMap.begin(), queueComplainingGuestsMap.end(), [](auto& lhs, auto& rhs) { return lhs.second < rhs.second; }); auto rideId = rideWithMostQueueComplaints->first.ToUnderlying(); - News::AddItemToQueue(News::ItemType::ride, STR_PEEPS_COMPLAINING_ABOUT_QUEUE_LENGTH_WARNING, rideId, {}); + News::AddItemToQueue( + newsItems, News::ItemType::ride, STR_PEEPS_COMPLAINING_ABOUT_QUEUE_LENGTH_WARNING, rideId, {}); } } } @@ -1648,7 +1652,9 @@ namespace OpenRCT2 ride->formatNameTo(ft); if (Config::Get().notifications.guestQueuingForRide) { - News::AddItemToQueue(News::ItemType::peepOnRide, STR_PEEP_TRACKING_PEEP_JOINED_QUEUE_FOR_X, guest->id, ft); + News::AddItemToQueue( + getGameState().park.newsItems, News::ItemType::peepOnRide, STR_PEEP_TRACKING_PEEP_JOINED_QUEUE_FOR_X, + guest->id, ft); } } } @@ -1708,7 +1714,9 @@ namespace OpenRCT2 guest->formatNameTo(ft); if (Config::Get().notifications.guestLeftPark) { - News::AddItemToQueue(News::ItemType::peepOnRide, STR_PEEP_TRACKING_LEFT_PARK, guest->id, ft); + News::AddItemToQueue( + getGameState().park.newsItems, News::ItemType::peepOnRide, STR_PEEP_TRACKING_LEFT_PARK, guest->id, + ft); } } return true; @@ -2101,7 +2109,8 @@ namespace OpenRCT2 if (Config::Get().notifications.guestQueuingForRide) { News::AddItemToQueue( - News::ItemType::peepOnRide, STR_PEEP_TRACKING_PEEP_JOINED_QUEUE_FOR_X, guest->id, ft); + getGameState().park.newsItems, News::ItemType::peepOnRide, + STR_PEEP_TRACKING_PEEP_JOINED_QUEUE_FOR_X, guest->id, ft); } } @@ -2219,7 +2228,7 @@ namespace OpenRCT2 : STR_PEEP_TRACKING_PEEP_IS_ON_X; if (Config::Get().notifications.guestUsedFacility) { - News::AddItemToQueue(News::ItemType::peepOnRide, string_id, guest->id, ft); + News::AddItemToQueue(getGameState().park.newsItems, News::ItemType::peepOnRide, string_id, guest->id, ft); } } } diff --git a/src/openrct2/interface/InteractiveConsole.cpp b/src/openrct2/interface/InteractiveConsole.cpp index 47f02743fd..06d1ecfebf 100644 --- a/src/openrct2/interface/InteractiveConsole.cpp +++ b/src/openrct2/interface/InteractiveConsole.cpp @@ -1663,7 +1663,7 @@ static void ConsoleCommandAddNewsItem([[maybe_unused]] InteractiveConsole& conso } } - News::AddItemToQueue(itemType, msg, assoc); + News::AddItemToQueue(getGameState().park.newsItems, itemType, msg, assoc); console.WriteLine("Successfully added News Item"); } diff --git a/src/openrct2/management/Award.cpp b/src/openrct2/management/Award.cpp index 75dbdb7ad7..8f339615fe 100644 --- a/src/openrct2/management/Award.cpp +++ b/src/openrct2/management/Award.cpp @@ -620,10 +620,11 @@ void AwardReset() static void AwardAdd(AwardType type) { - getGameState().park.currentAwards.push_back(Award{ 5u, type }); + auto& park = getGameState().park; + park.currentAwards.push_back(Award{ 5u, type }); if (Config::Get().notifications.parkAward) { - News::AddItemToQueue(News::ItemType::award, AwardGetNews(type), 0, {}); + News::AddItemToQueue(park.newsItems, News::ItemType::award, AwardGetNews(type), 0, {}); } Ui::GetWindowManager()->InvalidateByClass(WindowClass::parkInformation); } diff --git a/src/openrct2/management/Marketing.cpp b/src/openrct2/management/Marketing.cpp index c36e3fc925..5b32473090 100644 --- a/src/openrct2/management/Marketing.cpp +++ b/src/openrct2/management/Marketing.cpp @@ -100,7 +100,8 @@ static void MarketingRaiseFinishedNotification(const MarketingCampaign& campaign ft.Add(GetShopItemDescriptor(campaign.shopItemType).Naming.Plural); } - News::AddItemToQueue(News::ItemType::campaign, kMarketingCampaignNames[campaign.type][2], 0, ft); + News::AddItemToQueue( + getGameState().park.newsItems, News::ItemType::campaign, kMarketingCampaignNames[campaign.type][2], 0, ft); } } diff --git a/src/openrct2/management/NewsItem.cpp b/src/openrct2/management/NewsItem.cpp index 507fb06cfb..811b52a07c 100644 --- a/src/openrct2/management/NewsItem.cpp +++ b/src/openrct2/management/NewsItem.cpp @@ -52,9 +52,9 @@ bool News::IsValidIndex(int32_t index) return true; } -News::Item* News::GetItem(int32_t index) +News::Item* News::GetItem(ItemQueues& queues, int32_t index) { - return getGameState().newsItems.at(index); + return queues.at(index); } News::Item& News::ItemQueues::operator[](size_t index) @@ -85,11 +85,6 @@ const News::Item* News::ItemQueues::at(int32_t index) const return nullptr; } -bool News::IsQueueEmpty() -{ - return getGameState().newsItems.isEmpty(); -} - bool News::ItemQueues::isEmpty() const { return _recent.empty(); @@ -105,13 +100,13 @@ void News::ItemQueues::clear() _archived.clear(); } -void News::InitQueue(GameState_t& gameState) +void News::InitQueue(Park::ParkData& park) { - gameState.newsItems.clear(); - assert(gameState.newsItems.isEmpty()); + park.newsItems.clear(); + assert(park.newsItems.isEmpty()); // Throttles for warning types (PEEP_*_WARNING) - for (auto& warningThrottle : gameState.park.peepWarningThrottle) + for (auto& warningThrottle : park.peepWarningThrottle) { warningThrottle = 0; } @@ -125,9 +120,9 @@ uint16_t News::ItemQueues::incrementTicks() return ++current().ticks; } -static void TickCurrent() +static void TickCurrent(News::ItemQueues& queues) { - int32_t ticks = getGameState().newsItems.incrementTicks(); + int32_t ticks = queues.incrementTicks(); // Only play news item sound when in normal playing mode if (ticks == 1 && (gLegacyScene == LegacyScene::playing)) { @@ -154,33 +149,32 @@ bool News::ItemQueues::currentShouldBeArchived() const * * rct2: 0x0066E252 */ -void News::UpdateCurrentItem() +void News::UpdateCurrentItem(ItemQueues& queues) { PROFILED_FUNCTION(); - auto& gameState = getGameState(); // Check if there is a current news item - if (gameState.newsItems.isEmpty()) + if (queues.isEmpty()) return; auto intent = Intent(INTENT_ACTION_UPDATE_NEWS_TICKER); ContextBroadcastIntent(&intent); // Update the current news item - TickCurrent(); + TickCurrent(queues); // Removal of current news item - if (gameState.newsItems.currentShouldBeArchived()) - gameState.newsItems.archiveCurrent(); + if (queues.currentShouldBeArchived()) + queues.archiveCurrent(); } /** * * rct2: 0x0066E377 */ -void News::CloseCurrentItem() +void News::CloseCurrentItem(ItemQueues& queues) { - getGameState().newsItems.archiveCurrent(); + queues.archiveCurrent(); } void News::ItemQueues::archiveCurrent() @@ -311,25 +305,27 @@ News::Item* News::ItemQueues::firstOpenOrNewSlot() * * rct2: 0x0066DF55 */ -News::Item* News::AddItemToQueue(ItemType type, StringId string_id, uint32_t assoc, const Formatter& formatter) +News::Item* News::AddItemToQueue( + ItemQueues& queues, ItemType type, StringId string_id, uint32_t assoc, const Formatter& formatter) { utf8 buffer[256]; // overflows possible? FormatStringLegacy(buffer, 256, string_id, formatter.Data()); - return AddItemToQueue(type, buffer, assoc); + return AddItemToQueue(queues, type, buffer, assoc); } // TODO: Use variant for assoc, requires strong type for each possible input. -News::Item* News::AddItemToQueue(ItemType type, StringId string_id, EntityId assoc, const Formatter& formatter) +News::Item* News::AddItemToQueue( + ItemQueues& queues, ItemType type, StringId string_id, EntityId assoc, const Formatter& formatter) { - return AddItemToQueue(type, string_id, assoc.ToUnderlying(), formatter); + return AddItemToQueue(queues, type, string_id, assoc.ToUnderlying(), formatter); } -News::Item* News::AddItemToQueue(ItemType type, const utf8* text, uint32_t assoc) +News::Item* News::AddItemToQueue(ItemQueues& queues, ItemType type, const utf8* text, uint32_t assoc) { auto& date = GetDate(); - Item* newsItem = getGameState().newsItems.firstOpenOrNewSlot(); + Item* newsItem = queues.firstOpenOrNewSlot(); newsItem->type = type; newsItem->flags = 0; newsItem->assoc = assoc; // Make optional for Award, Money, Graph and Null @@ -437,15 +433,14 @@ void News::OpenSubject(ItemType type, int32_t subject) * * rct2: 0x0066E407 */ -void News::DisableNewsItems(ItemType type, uint32_t assoc) +void News::DisableNewsItems(ItemQueues& queues, ItemType type, uint32_t assoc) { - auto& gameState = getGameState(); // TODO: write test invalidating windows - gameState.newsItems.foreachRecentNews([type, assoc, &gameState](auto& newsItem) { + queues.foreachRecentNews([type, assoc, &queues](auto& newsItem) { if (type == newsItem.type && assoc == newsItem.assoc) { newsItem.setFlags(ItemFlags::hasButton); - if (&newsItem == &gameState.newsItems.current()) + if (&newsItem == &queues.current()) { auto intent = Intent(INTENT_ACTION_UPDATE_NEWS_TICKER); ContextBroadcastIntent(&intent); @@ -453,7 +448,7 @@ void News::DisableNewsItems(ItemType type, uint32_t assoc) } }); - gameState.newsItems.foreachArchivedNews([type, assoc](auto& newsItem) { + queues.foreachArchivedNews([type, assoc](auto& newsItem) { if (type == newsItem.type && assoc == newsItem.assoc) { newsItem.setFlags(ItemFlags::hasButton); @@ -463,40 +458,39 @@ void News::DisableNewsItems(ItemType type, uint32_t assoc) }); } -void News::AddItemToQueue(Item* newNewsItem) +void News::AddItemToQueue(ItemQueues& queues, Item* newNewsItem) { - Item* newsItem = getGameState().newsItems.firstOpenOrNewSlot(); + Item* newsItem = queues.firstOpenOrNewSlot(); *newsItem = *newNewsItem; } -void News::RemoveItem(int32_t index) +void News::RemoveItem(ItemQueues& queues, int32_t index) { if (index < 0 || index >= MaxItems) return; - auto& gameState = getGameState(); // News item is already null, no need to remove it - if (gameState.newsItems[index].type == ItemType::null) + if (queues[index].type == ItemType::null) return; size_t newsBoundary = index < ItemHistoryStart ? ItemHistoryStart : MaxItems; for (size_t i = index; i < newsBoundary - 1; i++) { - gameState.newsItems[i] = gameState.newsItems[i + 1]; + queues[i] = queues[i + 1]; } - gameState.newsItems[newsBoundary - 1].type = ItemType::null; + queues[newsBoundary - 1].type = ItemType::null; } -void News::importNewsItems(GameState_t& gameState, const std::span recent, const std::span archived) +void News::importNewsItems(ItemQueues& queues, const std::span recent, const std::span archived) { - gameState.newsItems.clear(); + queues.clear(); for (size_t i = 0; i < std::min(recent.size(), ItemHistoryStart); i++) { - gameState.newsItems[i] = recent[i]; + queues[i] = recent[i]; } for (size_t i = 0; i < std::min(archived.size(), MaxItemsArchive); i++) { - gameState.newsItems[ItemHistoryStart + i] = archived[i]; + queues[ItemHistoryStart + i] = archived[i]; } } diff --git a/src/openrct2/management/NewsItem.h b/src/openrct2/management/NewsItem.h index d33fe736d3..4de97c90f7 100644 --- a/src/openrct2/management/NewsItem.h +++ b/src/openrct2/management/NewsItem.h @@ -25,7 +25,11 @@ struct CoordsXYZ; namespace OpenRCT2 { class Formatter; - struct GameState_t; + + namespace Park + { + struct ParkData; + } } // namespace OpenRCT2 namespace OpenRCT2::News @@ -296,31 +300,29 @@ namespace OpenRCT2::News ItemQueue _archived; }; - void InitQueue(GameState_t& gameState); + void InitQueue(Park::ParkData& park); - void UpdateCurrentItem(); - void CloseCurrentItem(); + void UpdateCurrentItem(ItemQueues& queues); + void CloseCurrentItem(ItemQueues& queues); std::optional GetSubjectLocation(ItemType type, int32_t subject); - Item* AddItemToQueue(ItemType type, StringId string_id, uint32_t assoc, const Formatter& formatter); - Item* AddItemToQueue(ItemType type, StringId string_id, EntityId assoc, const Formatter& formatter); - Item* AddItemToQueue(ItemType type, const utf8* text, uint32_t assoc); + Item* AddItemToQueue(ItemQueues& queues, ItemType type, StringId string_id, uint32_t assoc, const Formatter& formatter); + Item* AddItemToQueue(ItemQueues& queues, ItemType type, StringId string_id, EntityId assoc, const Formatter& formatter); + Item* AddItemToQueue(ItemQueues& queues, ItemType type, const utf8* text, uint32_t assoc); bool CheckIfItemRequiresAssoc(ItemType type); void OpenSubject(ItemType type, int32_t subject); - void DisableNewsItems(ItemType type, uint32_t assoc); + void DisableNewsItems(ItemQueues& queues, ItemType type, uint32_t assoc); - Item* GetItem(int32_t index); - - bool IsQueueEmpty(); + Item* GetItem(ItemQueues& queues, int32_t index); bool IsValidIndex(int32_t index); - void AddItemToQueue(Item* newNewsItem); - void RemoveItem(int32_t index); + void AddItemToQueue(ItemQueues& queues, Item* newNewsItem); + void RemoveItem(ItemQueues& queues, int32_t index); - void importNewsItems(GameState_t& gameState, std::span recent, std::span archived); + void importNewsItems(ItemQueues& queues, std::span recent, std::span archived); } // namespace OpenRCT2::News diff --git a/src/openrct2/management/Research.cpp b/src/openrct2/management/Research.cpp index f3d227316a..cca9e34fad 100644 --- a/src/openrct2/management/Research.cpp +++ b/src/openrct2/management/Research.cpp @@ -266,7 +266,8 @@ void ResearchFinishItem(const ResearchItem& researchItem) { if (Config::Get().notifications.rideResearched) { - News::AddItemToQueue(News::ItemType::research, availabilityString, researchItem.rawValue, ft); + News::AddItemToQueue( + gameState.park.newsItems, News::ItemType::research, availabilityString, researchItem.rawValue, ft); } } @@ -290,7 +291,8 @@ void ResearchFinishItem(const ResearchItem& researchItem) if (Config::Get().notifications.rideResearched) { News::AddItemToQueue( - News::ItemType::research, STR_NEWS_ITEM_RESEARCH_NEW_SCENERY_SET_AVAILABLE, researchItem.rawValue, ft); + gameState.park.newsItems, News::ItemType::research, STR_NEWS_ITEM_RESEARCH_NEW_SCENERY_SET_AVAILABLE, + researchItem.rawValue, ft); } } diff --git a/src/openrct2/park/ParkFile.cpp b/src/openrct2/park/ParkFile.cpp index c873aa413f..9add45539b 100644 --- a/src/openrct2/park/ParkFile.cpp +++ b/src/openrct2/park/ParkFile.cpp @@ -175,7 +175,7 @@ namespace OpenRCT2 ReadWriteParkChunk(gameState, os); ReadWriteClimateChunk(gameState, os); ReadWriteResearchChunk(gameState, os); - ReadWriteNotificationsChunk(gameState, os); + ReadWriteNotificationsChunk(gameState.park.newsItems, os); ReadWriteInterfaceChunk(gameState, os); ReadWriteCheatsChunk(gameState, os); ReadWriteRestrictedObjectsChunk(gameState, os); @@ -217,7 +217,7 @@ namespace OpenRCT2 ReadWriteParkChunk(gameState, os); ReadWriteClimateChunk(gameState, os); ReadWriteResearchChunk(gameState, os); - ReadWriteNotificationsChunk(gameState, os); + ReadWriteNotificationsChunk(gameState.park.newsItems, os); ReadWriteInterfaceChunk(gameState, os); ReadWriteCheatsChunk(gameState, os); ReadWriteRestrictedObjectsChunk(gameState, os); @@ -1212,9 +1212,9 @@ namespace OpenRCT2 cs.readWrite(item.category); } - void ReadWriteNotificationsChunk(GameState_t& gameState, OrcaStream& os) + void ReadWriteNotificationsChunk(News::ItemQueues& queues, OrcaStream& os) { - os.readWriteChunk(ParkFileChunkType::notifications, [&gameState](OrcaStream::ChunkStream& cs) { + os.readWriteChunk(ParkFileChunkType::notifications, [&queues](OrcaStream::ChunkStream& cs) { if (cs.getMode() == OrcaStream::Mode::reading) { std::vector recent; @@ -1223,16 +1223,14 @@ namespace OpenRCT2 std::vector archived; cs.readWriteVector(archived, [&cs](News::Item& item) { ReadWriteNewsItem(cs, item); }); - News::importNewsItems(gameState, recent, archived); + News::importNewsItems(queues, recent, archived); } else { - std::vector recent( - std::begin(gameState.newsItems.getRecent()), std::end(gameState.newsItems.getRecent())); + std::vector recent(std::begin(queues.getRecent()), std::end(queues.getRecent())); cs.readWriteVector(recent, [&cs](News::Item& item) { ReadWriteNewsItem(cs, item); }); - std::vector archived( - std::begin(gameState.newsItems.getArchived()), std::end(gameState.newsItems.getArchived())); + std::vector archived(std::begin(queues.getArchived()), std::end(queues.getArchived())); cs.readWriteVector(archived, [&cs](News::Item& item) { ReadWriteNewsItem(cs, item); }); } }); diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index 1fbc8d2c54..6d444e59df 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -2292,7 +2292,7 @@ namespace OpenRCT2::RCT1 // News items auto recentMessages = convertNewsQueue(_s4.recentMessages); auto archivedMessages = convertNewsQueue(_s4.archivedMessages); - News::importNewsItems(gameState, recentMessages, archivedMessages); + News::importNewsItems(park.newsItems, recentMessages, archivedMessages); // Initial guest status gameState.scenarioOptions.guestInitialCash = ToMoney64(_s4.GuestInitialCash); diff --git a/src/openrct2/rct2/S6Importer.cpp b/src/openrct2/rct2/S6Importer.cpp index 782029fc3c..3deaf0ea3a 100644 --- a/src/openrct2/rct2/S6Importer.cpp +++ b/src/openrct2/rct2/S6Importer.cpp @@ -595,7 +595,7 @@ namespace OpenRCT2::RCT2 // News items auto recentMessages = convertNewsQueue(_s6.recentMessages); auto archivedMessages = convertNewsQueue(_s6.archivedMessages); - News::importNewsItems(gameState, recentMessages, archivedMessages); + News::importNewsItems(park.newsItems, recentMessages, archivedMessages); // Pad13CE730 // rct1_scenario_flags diff --git a/src/openrct2/ride/Ride.cpp b/src/openrct2/ride/Ride.cpp index d01d883947..100c980c36 100644 --- a/src/openrct2/ride/Ride.cpp +++ b/src/openrct2/ride/Ride.cpp @@ -1345,7 +1345,8 @@ namespace OpenRCT2 { Formatter ft; ride.formatNameTo(ft); - News::AddItemToQueue(News::ItemType::ride, STR_RIDE_IS_BROKEN_DOWN, ride.id.ToUnderlying(), ft); + News::AddItemToQueue( + getGameState().park.newsItems, News::ItemType::ride, STR_RIDE_IS_BROKEN_DOWN, ride.id.ToUnderlying(), ft); } } @@ -1372,7 +1373,9 @@ namespace OpenRCT2 { Formatter ft; ride.formatNameTo(ft); - News::AddItemToQueue(News::ItemType::ride, STR_RIDE_IS_STILL_NOT_FIXED, ride.id.ToUnderlying(), ft); + News::AddItemToQueue( + getGameState().park.newsItems, News::ItemType::ride, STR_RIDE_IS_STILL_NOT_FIXED, + ride.id.ToUnderlying(), ft); } } } @@ -2062,7 +2065,9 @@ namespace OpenRCT2 ride.formatNameTo(ft); if (Config::Get().notifications.rideWarnings) { - News::AddItemToQueue(News::ItemType::ride, STR_ENTRANCE_NOT_CONNECTED, ride.id.ToUnderlying(), ft); + News::AddItemToQueue( + getGameState().park.newsItems, News::ItemType::ride, STR_ENTRANCE_NOT_CONNECTED, ride.id.ToUnderlying(), + ft); } ride.connectedMessageThrottle = 3; } @@ -2074,7 +2079,9 @@ namespace OpenRCT2 ride.formatNameTo(ft); if (Config::Get().notifications.rideWarnings) { - News::AddItemToQueue(News::ItemType::ride, STR_EXIT_NOT_CONNECTED, ride.id.ToUnderlying(), ft); + News::AddItemToQueue( + getGameState().park.newsItems, News::ItemType::ride, STR_EXIT_NOT_CONNECTED, ride.id.ToUnderlying(), + ft); } ride.connectedMessageThrottle = 3; } @@ -2141,7 +2148,8 @@ namespace OpenRCT2 { Formatter ft; ride2->formatNameTo(ft); - News::AddItemToQueue(News::ItemType::ride, STR_ENTRANCE_NOT_CONNECTED, ride2->id.ToUnderlying(), ft); + News::AddItemToQueue( + getGameState().park.newsItems, News::ItemType::ride, STR_ENTRANCE_NOT_CONNECTED, ride2->id.ToUnderlying(), ft); } ride2->connectedMessageThrottle = 3; @@ -5039,7 +5047,8 @@ namespace OpenRCT2 { Formatter ft; formatNameTo(ft); - News::AddItemToQueue(News::ItemType::ride, STR_RIDE_HAS_CRASHED, id.ToUnderlying(), ft); + News::AddItemToQueue( + getGameState().park.newsItems, News::ItemType::ride, STR_RIDE_HAS_CRASHED, id.ToUnderlying(), ft); } } diff --git a/src/openrct2/ride/Vehicle.Crash.cpp b/src/openrct2/ride/Vehicle.Crash.cpp index 92c4dc3476..6c2a6112f0 100644 --- a/src/openrct2/ride/Vehicle.Crash.cpp +++ b/src/openrct2/ride/Vehicle.Crash.cpp @@ -297,8 +297,8 @@ static void ride_train_crash(Ride& ride, uint16_t numFatalities) { ride.formatNameTo(ft); News::AddItemToQueue( - News::ItemType::ride, numFatalities == 1 ? STR_X_PERSON_DIED_ON_X : STR_X_PEOPLE_DIED_ON_X, - ride.id.ToUnderlying(), ft); + getGameState().park.newsItems, News::ItemType::ride, + numFatalities == 1 ? STR_X_PERSON_DIED_ON_X : STR_X_PEOPLE_DIED_ON_X, ride.id.ToUnderlying(), ft); } // TODO: get park id from ride/vehicle diff --git a/src/openrct2/ride/Vehicle.Station.cpp b/src/openrct2/ride/Vehicle.Station.cpp index 3dbe71fff9..abe93d2084 100644 --- a/src/openrct2/ride/Vehicle.Station.cpp +++ b/src/openrct2/ride/Vehicle.Station.cpp @@ -1329,7 +1329,8 @@ void Vehicle::CheckIfMissing() curRide->formatNameTo(ft); ft.Add(GetRideComponentName(GetRideTypeDescriptor(curRide->type).NameConvention.station).singular); - News::AddItemToQueue(News::ItemType::ride, STR_NEWS_VEHICLE_HAS_STALLED, ride.ToUnderlying(), ft); + News::AddItemToQueue( + getGameState().park.newsItems, News::ItemType::ride, STR_NEWS_VEHICLE_HAS_STALLED, ride.ToUnderlying(), ft); } } diff --git a/src/openrct2/scenario/Scenario.cpp b/src/openrct2/scenario/Scenario.cpp index cf0eb19f27..d432aa40e2 100644 --- a/src/openrct2/scenario/Scenario.cpp +++ b/src/openrct2/scenario/Scenario.cpp @@ -84,9 +84,9 @@ void ScenarioReset(GameState_t& gameState) auto intent = Intent(INTENT_ACTION_SET_DEFAULT_SCENERY_CONFIG); ContextBroadcastIntent(&intent); - News::InitQueue(gameState); - auto& park = gameState.park; + News::InitQueue(park); + park.rating = Park::CalculateParkRating(park, gameState); Park::updateValuations(park, gameState); park.historicalProfit = gameState.scenarioOptions.initialCash - park.bankLoan; @@ -203,7 +203,7 @@ void ScenarioSuccessSubmitName(GameState_t& gameState, const char* name) */ static void ScenarioCheckEntranceFeeTooHigh() { - const auto& park = getGameState().park; + auto& park = getGameState().park; const auto max_fee = AddClamp(park.totalRideValueForMoney, park.totalRideValueForMoney / 2); if (park.flags.has(ParkFlag::parkOpen) && Park::GetEntranceFee(park) > max_fee) @@ -217,7 +217,7 @@ static void ScenarioCheckEntranceFeeTooHigh() uint32_t packed_xy = (y << 16) | x; if (Config::Get().notifications.parkWarnings) { - News::AddItemToQueue(News::ItemType::blank, STR_ENTRANCE_FEE_TOO_HI, packed_xy, {}); + News::AddItemToQueue(park.newsItems, News::ItemType::blank, STR_ENTRANCE_FEE_TOO_HI, packed_xy, {}); } } } @@ -272,16 +272,20 @@ static void scenarioUpdateLowRatingDayCount(Park::ParkData& park, GameState_t& g switch (park.scenarioParkRatingWarningDays) { case 1: - News::AddItemToQueue(News::ItemType::graph, STR_PARK_RATING_WARNING_4_WEEKS_REMAINING, 0, {}); + News::AddItemToQueue( + park.newsItems, News::ItemType::graph, STR_PARK_RATING_WARNING_4_WEEKS_REMAINING, 0, {}); break; case 8: - News::AddItemToQueue(News::ItemType::graph, STR_PARK_RATING_WARNING_3_WEEKS_REMAINING, 0, {}); + News::AddItemToQueue( + park.newsItems, News::ItemType::graph, STR_PARK_RATING_WARNING_3_WEEKS_REMAINING, 0, {}); break; case 15: - News::AddItemToQueue(News::ItemType::graph, STR_PARK_RATING_WARNING_2_WEEKS_REMAINING, 0, {}); + News::AddItemToQueue( + park.newsItems, News::ItemType::graph, STR_PARK_RATING_WARNING_2_WEEKS_REMAINING, 0, {}); break; case 22: - News::AddItemToQueue(News::ItemType::graph, STR_PARK_RATING_WARNING_1_WEEK_REMAINING, 0, {}); + News::AddItemToQueue( + park.newsItems, News::ItemType::graph, STR_PARK_RATING_WARNING_1_WEEK_REMAINING, 0, {}); break; } } diff --git a/src/openrct2/scenario/ScenarioObjective.cpp b/src/openrct2/scenario/ScenarioObjective.cpp index 61be14fca4..8d14859237 100644 --- a/src/openrct2/scenario/ScenarioObjective.cpp +++ b/src/openrct2/scenario/ScenarioObjective.cpp @@ -257,7 +257,7 @@ namespace OpenRCT2::Scenario { case ObjectiveType::guestsAndRating: { - News::AddItemToQueue(News::ItemType::graph, STR_PARK_HAS_BEEN_CLOSED_DOWN, 0, {}); + News::AddItemToQueue(park.newsItems, News::ItemType::graph, STR_PARK_HAS_BEEN_CLOSED_DOWN, 0, {}); park.flags.unset(ParkFlag::parkOpen); gameState.scenarioOptions.guestInitialHappiness = 50; break; diff --git a/src/openrct2/scenes/editor/EditorScene.cpp b/src/openrct2/scenes/editor/EditorScene.cpp index 6867f03017..e0f73e5149 100644 --- a/src/openrct2/scenes/editor/EditorScene.cpp +++ b/src/openrct2/scenes/editor/EditorScene.cpp @@ -198,7 +198,7 @@ void EditorScene::clearMapForEditing() Weather::reset(); - News::InitQueue(gameState); + News::InitQueue(park); } // NB: only called by LoadLandscape diff --git a/src/openrct2/scripting/bindings/world/ScPark.cpp b/src/openrct2/scripting/bindings/world/ScPark.cpp index ac3a4c89b3..67995b84b1 100644 --- a/src/openrct2/scripting/bindings/world/ScPark.cpp +++ b/src/openrct2/scripting/bindings/world/ScPark.cpp @@ -356,12 +356,12 @@ namespace OpenRCT2::Scripting { JSValue result = JS_NewArray(ctx); int64_t resultIdx = 0; - auto& gameState = getGameState(); - for (size_t i = 0, newsSize = gameState.newsItems.getRecent().size(); i < newsSize; i++) + auto& newsItems = getGameState().park.newsItems; + for (size_t i = 0, newsSize = newsItems.getRecent().size(); i < newsSize; i++) { JS_SetPropertyInt64(ctx, result, resultIdx++, gScParkMessage.New(ctx, i)); } - for (size_t i = 0, newsSize = gameState.newsItems.getArchived().size(); i < newsSize; i++) + for (size_t i = 0, newsSize = newsItems.getArchived().size(); i < newsSize; i++) { auto offset = i + News::ItemHistoryStart; JS_SetPropertyInt64(ctx, result, resultIdx++, gScParkMessage.New(ctx, offset)); @@ -373,15 +373,15 @@ namespace OpenRCT2::Scripting { int32_t index = 0; int32_t archiveIndex = News::ItemHistoryStart; - auto& gameState = getGameState(); - JSIterateArray(ctx, value, [&index, &archiveIndex, &gameState](JSContext* ctx2, JSValue item) { + auto& newsItems = getGameState().park.newsItems; + JSIterateArray(ctx, value, [&index, &archiveIndex, &newsItems](JSContext* ctx2, JSValue item) { auto isArchived = AsOrDefault(ctx2, item, "isArchived", false); auto newsItem = NewsItemFromJS(ctx2, item); if (isArchived) { if (archiveIndex < News::MaxItems) { - gameState.newsItems[archiveIndex] = newsItem; + newsItems[archiveIndex] = newsItem; archiveIndex++; } } @@ -389,7 +389,7 @@ namespace OpenRCT2::Scripting { if (index < News::ItemHistoryStart) { - gameState.newsItems[index] = newsItem; + newsItems[index] = newsItem; index++; } } @@ -398,11 +398,11 @@ namespace OpenRCT2::Scripting // End the lists by setting next item to null if (index < News::ItemHistoryStart) { - gameState.newsItems[index].type = News::ItemType::null; + newsItems[index].type = News::ItemType::null; } if (archiveIndex < News::MaxItems) { - gameState.newsItems[archiveIndex].type = News::ItemType::null; + newsItems[archiveIndex].type = News::ItemType::null; } return JS_UNDEFINED; } @@ -440,7 +440,7 @@ namespace OpenRCT2::Scripting assoc = JSToUint(ctx, subject); } } - News::AddItemToQueue(type, text.c_str(), assoc); + News::AddItemToQueue(getGameState().park.newsItems, type, text.c_str(), assoc); return JS_UNDEFINED; } diff --git a/src/openrct2/scripting/bindings/world/ScParkMessage.cpp b/src/openrct2/scripting/bindings/world/ScParkMessage.cpp index 04be0dbbfd..ed033a36f2 100644 --- a/src/openrct2/scripting/bindings/world/ScParkMessage.cpp +++ b/src/openrct2/scripting/bindings/world/ScParkMessage.cpp @@ -23,7 +23,7 @@ namespace OpenRCT2::Scripting News::Item* ScParkMessage::GetMessage(JSValue thisVal) { auto index = gScParkMessage.GetOpaque(thisVal)->index; - return &getGameState().newsItems[index]; + return &getGameState().park.newsItems[index]; } JSValue ScParkMessage::isArchived_get(JSContext* ctx, JSValue thisVal) @@ -173,7 +173,7 @@ namespace OpenRCT2::Scripting JSValue ScParkMessage::remove(JSContext* ctx, JSValue thisVal, int argc, JSValue* argv) { auto index = gScParkMessage.GetOpaque(thisVal)->index; - News::RemoveItem(static_cast(index)); + News::RemoveItem(getGameState().park.newsItems, static_cast(index)); return JS_UNDEFINED; } diff --git a/src/openrct2/world/ParkData.h b/src/openrct2/world/ParkData.h index f20523977d..f26e0238dc 100644 --- a/src/openrct2/world/ParkData.h +++ b/src/openrct2/world/ParkData.h @@ -14,6 +14,7 @@ #include "../management/Award.h" #include "../management/Finance.h" #include "../management/Marketing.h" +#include "../management/NewsItem.h" #include "Location.hpp" #include @@ -130,5 +131,7 @@ namespace OpenRCT2::Park std::vector currentAwards; std::vector marketingCampaigns; + + News::ItemQueues newsItems; }; } // namespace OpenRCT2::Park From 497f9ae7d49c52db585594031b65b079011c0d51 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com> Date: Sun, 4 Oct 2026 16:11:36 +0200 Subject: [PATCH 133/142] Fix #27235: RCT1 base game TD4 files don't import with original car colours (#27241) --- src/openrct2/rct1/T4Importer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openrct2/rct1/T4Importer.cpp b/src/openrct2/rct1/T4Importer.cpp index 860498d1c7..a17165618f 100644 --- a/src/openrct2/rct1/T4Importer.cpp +++ b/src/openrct2/rct1/T4Importer.cpp @@ -189,6 +189,7 @@ namespace OpenRCT2::RCT1 } assert(!vehicleObject.empty()); td->trackAndVehicle.vehicleObject = ObjectEntryDescriptor(vehicleObject); + td->version = static_cast(td4Base.VersionAndColourScheme >> 2); td->appearance.vehicleColourSettings = static_cast(td4Base.VersionAndColourScheme & 0x3); auto gameVersion = (td->version == TD46Version::td4) ? RCT1Version::baseGame : RCT1Version::loopyLandscapes; From 13e6599dc45009a4743c432c7ea78568f0c9fca0 Mon Sep 17 00:00:00 2001 From: RayKoopa <9631152+RayKoopa@users.noreply.github.com> Date: Sun, 4 Oct 2026 20:23:50 +0200 Subject: [PATCH 134/142] Do not set land tool gLandToolTerrainSurface to MapGen selection (#27243) --- src/openrct2-ui/windows/MapGen.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/openrct2-ui/windows/MapGen.cpp b/src/openrct2-ui/windows/MapGen.cpp index 443f3c9e8e..0cbea1e613 100644 --- a/src/openrct2-ui/windows/MapGen.cpp +++ b/src/openrct2-ui/windows/MapGen.cpp @@ -1076,7 +1076,6 @@ namespace OpenRCT2::Ui::Windows if (_settings.landTexture != type) { - gLandToolTerrainSurface = type; _settings.landTexture = type; LandTool::resetSurfaceColourSelection(type, _settings.surfaceColour1, _surfaceColour1Enabled); } From f7f83c0c262dcd8f4297aa872aaa5817a7e9f6cd Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 4 Oct 2026 20:34:32 +0200 Subject: [PATCH 135/142] Move index 255 fix from UpdatePalette() to LoadPalette() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Doesn’t need to be done that often. --- src/openrct2/drawing/Palette.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/openrct2/drawing/Palette.cpp b/src/openrct2/drawing/Palette.cpp index 2204073cd4..c74bb1a3d8 100644 --- a/src/openrct2/drawing/Palette.cpp +++ b/src/openrct2/drawing/Palette.cpp @@ -68,12 +68,6 @@ namespace OpenRCT2::Drawing gPalette[i].alpha = 0; } - // Fix #1749 and #6535: rainbow path, donut shop and pause button contain black spots that should be white. - gPalette[255].blue = 255; - gPalette[255].green = 255; - gPalette[255].red = 255; - gPalette[255].alpha = 0; - if (!gOpenRCT2Headless) { DrawingEngineSetPalette(gPalette); @@ -279,6 +273,13 @@ namespace OpenRCT2::Drawing index++; } } + + // Fix #1749 and #6535: rainbow path, donut shop and pause button contain black spots that should be white. + gPalette[255].blue = 255; + gPalette[255].green = 255; + gPalette[255].red = 255; + gPalette[255].alpha = 0; + UpdatePalette(gGamePalette, PaletteIndex::pi10, 236); GfxInvalidateScreen(); } From 2a09af415883074f3802ad368e116d6fbd3005fe Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 4 Oct 2026 20:38:18 +0200 Subject: [PATCH 136/142] Make gGamePalette internal to Palette.cpp --- src/openrct2/drawing/Palette.cpp | 31 +++++++++++++++++------------- src/openrct2/drawing/Palette.h | 2 +- src/openrct2/scenario/Scenario.cpp | 2 +- 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/src/openrct2/drawing/Palette.cpp b/src/openrct2/drawing/Palette.cpp index c74bb1a3d8..9744e2902c 100644 --- a/src/openrct2/drawing/Palette.cpp +++ b/src/openrct2/drawing/Palette.cpp @@ -35,7 +35,7 @@ namespace OpenRCT2::Drawing static constexpr uint8_t kPaletteLengthAnimated = 16; GamePalette gPalette; - GamePalette gGamePalette; + static GamePalette _gamePalette; uint32_t gPaletteEffectFrame; void UpdatePalette(std::span palette, PaletteIndex startIndex, int32_t numColours) @@ -74,6 +74,11 @@ namespace OpenRCT2::Drawing } } + void updateStandardPalette() + { + UpdatePalette(_gamePalette, PaletteIndex::pi10, 236); + } + /** * * rct2: 0x006838BD @@ -93,14 +98,14 @@ namespace OpenRCT2::Drawing for (int32_t i = 0; i < g1->numColours; i++) { - auto& paletteOffset = gGamePalette[startIndex + i]; + auto& paletteOffset = _gamePalette[startIndex + i]; const auto& g1PaletteEntry = g1->palette[i]; paletteOffset.blue = -((0xFF - g1PaletteEntry.blue) / 2) - 1; paletteOffset.green = -((0xFF - g1PaletteEntry.green) / 2) - 1; paletteOffset.red = -((0xFF - g1PaletteEntry.red) / 2) - 1; } - UpdatePalette(gGamePalette, kPaletteOffsetDynamic, kPaletteLengthDynamic); + UpdatePalette(_gamePalette, kPaletteOffsetDynamic, kPaletteLengthDynamic); } Weather::gLightningFlash++; } @@ -117,7 +122,7 @@ namespace OpenRCT2::Drawing for (int32_t i = 0; i < g1->numColours; i++) { - auto& paletteOffset = gGamePalette[startIndex + i]; + auto& paletteOffset = _gamePalette[startIndex + i]; const auto& g1PaletteEntry = g1->palette[i]; paletteOffset.blue = g1PaletteEntry.blue; paletteOffset.green = g1PaletteEntry.green; @@ -151,7 +156,7 @@ namespace OpenRCT2::Drawing int32_t n = kPaletteLengthWaterWaves; for (int32_t i = 0; i < n; i++) { - auto& vd = gGamePalette[EnumValue(PaletteIndex::waterWaves0) + i]; + auto& vd = _gamePalette[EnumValue(PaletteIndex::waterWaves0) + i]; vd.blue = g1PaletteEntry->blue; vd.green = g1PaletteEntry->green; vd.red = g1PaletteEntry->red; @@ -171,7 +176,7 @@ namespace OpenRCT2::Drawing int32_t n = kPaletteLengthWaterSparkles; for (int32_t i = 0; i < n; i++) { - auto& vd = gGamePalette[EnumValue(PaletteIndex::waterSparkles0) + i]; + auto& vd = _gamePalette[EnumValue(PaletteIndex::waterSparkles0) + i]; vd.blue = src->blue; vd.green = src->green; vd.red = src->red; @@ -192,7 +197,7 @@ namespace OpenRCT2::Drawing const int32_t n = 3; for (int32_t i = 0; i < n; i++) { - auto& vd = gGamePalette[EnumValue(PaletteIndex::primaryRemap0) + i]; + auto& vd = _gamePalette[EnumValue(PaletteIndex::primaryRemap0) + i]; vd.blue = src->blue; vd.green = src->green; vd.red = src->red; @@ -204,10 +209,10 @@ namespace OpenRCT2::Drawing } } - UpdatePalette(gGamePalette, kPaletteOffsetAnimated, kPaletteLengthAnimated); + UpdatePalette(_gamePalette, kPaletteOffsetAnimated, kPaletteLengthAnimated); if (Weather::gLightningFlash == 2) { - UpdatePalette(gGamePalette, kPaletteOffsetDynamic, kPaletteLengthDynamic); + UpdatePalette(_gamePalette, kPaletteOffsetDynamic, kPaletteLengthDynamic); Weather::gLightningFlash = 0; } } @@ -230,7 +235,7 @@ namespace OpenRCT2::Drawing for (auto numColours = g1->numColours; numColours > 0; numColours--) { - auto& dst = gGamePalette[index]; + auto& dst = _gamePalette[index]; // Make sure the image never gets darker than the void colour (not-quite-black), to avoid the background colour // jumping between void and 100% black. dst.blue = std::max(35, ((src->blue * product) >> 8)); @@ -240,7 +245,7 @@ namespace OpenRCT2::Drawing index++; } - UpdatePalette(gGamePalette, PaletteIndex::pi10, 236); + UpdatePalette(_gamePalette, PaletteIndex::pi10, 236); } /** @@ -265,7 +270,7 @@ namespace OpenRCT2::Drawing auto* src = g1->palette; for (auto numColours = g1->numColours; numColours > 0; numColours--) { - auto& dst = gGamePalette[index]; + auto& dst = _gamePalette[index]; dst.blue = src->blue; dst.green = src->green; dst.red = src->red; @@ -280,7 +285,7 @@ namespace OpenRCT2::Drawing gPalette[255].red = 255; gPalette[255].alpha = 0; - UpdatePalette(gGamePalette, PaletteIndex::pi10, 236); + UpdatePalette(_gamePalette, PaletteIndex::pi10, 236); GfxInvalidateScreen(); } } // namespace OpenRCT2::Drawing diff --git a/src/openrct2/drawing/Palette.h b/src/openrct2/drawing/Palette.h index 166892f127..d4add79d62 100644 --- a/src/openrct2/drawing/Palette.h +++ b/src/openrct2/drawing/Palette.h @@ -20,10 +20,10 @@ namespace OpenRCT2::Drawing enum class PaletteIndex : uint8_t; extern GamePalette gPalette; - extern GamePalette gGamePalette; extern uint32_t gPaletteEffectFrame; void UpdatePalette(std::span palette, PaletteIndex startIndex, int32_t numColours); + void updateStandardPalette(); void UpdatePaletteEffects(); void GfxTransposePalette(ImageIndex pal, uint8_t product); void LoadPalette(); diff --git a/src/openrct2/scenario/Scenario.cpp b/src/openrct2/scenario/Scenario.cpp index d432aa40e2..d79e6074dd 100644 --- a/src/openrct2/scenario/Scenario.cpp +++ b/src/openrct2/scenario/Scenario.cpp @@ -397,7 +397,7 @@ static void ScenarioUpdateDayNightCycle() // Only update palette if day / night cycle has changed if (gDayNightCycle != currentDayNightCycle) { - Drawing::UpdatePalette(Drawing::gGamePalette, Drawing::PaletteIndex::pi10, 236); + Drawing::updateStandardPalette(); } } From 21afdbc55008335cd70e72a53d465608f9f645ac Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Mon, 5 Oct 2026 04:10:58 +0000 Subject: [PATCH 137/142] Merge Localisation/master into OpenRCT2/develop --- data/language/eo-ZZ.txt | 22 +++++++++++++++++++-- data/language/hu-HU.txt | 42 +++++++++++++++++++++++++++++++++++++++-- data/language/ko-KR.txt | 22 +++++++++++++++++++-- data/language/nl-NL.txt | 22 +++++++++++++++++++-- data/language/pt-BR.txt | 18 ++++++++++++++++++ data/language/ru-RU.txt | 22 +++++++++++++++++++-- 6 files changed, 138 insertions(+), 10 deletions(-) diff --git a/data/language/eo-ZZ.txt b/data/language/eo-ZZ.txt index 3c4b26cbfc..16b9d93a09 100644 --- a/data/language/eo-ZZ.txt +++ b/data/language/eo-ZZ.txt @@ -2679,8 +2679,8 @@ STR_5582 :Kapti musmontrilon en fenestro STR_5583 :{COMMA1DP16} m/s STR_5584 :SI STR_5585 :Malŝlosas limojn de funkciado de atrakcioj por permesi aferojn kiel {VELOCITY} liftmontetoj -STR_5586 :Malfermi aŭtomate vendejojn kaj budojn -STR_5587 :Vendejoj kaj budoj estos aŭtomate malfermitaj post iliaj konstruoj +STR_5586 :Malfermi kaj fermi aŭtomate vendejojn kaj budojn +STR_5587 :Vendejoj kaj budoj estos aŭtomate malfermitaj post iliaj konstruoj, kaj aŭtomate fermitaj antaŭ ol konstruado. STR_5588 :Ludi kun aliaj ludantoj STR_5589 :Agordoj de sciigoj STR_5590 :Premioj de parko @@ -3844,3 +3844,21 @@ STR_7060 :Gastoj spektas konstruadon de {STRINGID} STR_7061 :Gastoj rigardas pejzaĵon STR_7062 :Gastoj foriras la parkon STR_7063 :Gastoj spektas novan atrakcion konstruatan +STR_7064 :Oro +STR_7065 :Sukceno +STR_7066 :Ametisto +STR_7067 :Asparago +STR_7068 :Bruno +STR_7069 :Bruligita rozkoloro +STR_7070 :Kakto +STR_7071 :Karamelo +STR_7072 :Kupro +STR_7073 :Karmezino +STR_7074 :Pli malhela akvo +STR_7075 :Smeraldo +STR_7076 :Indigokoloro +STR_7077 :Pestokoloro +STR_7078 :Pina verdo +STR_7079 :Rubeno +STR_7080 :Profunda bluo +STR_7081 :Arĝento diff --git a/data/language/hu-HU.txt b/data/language/hu-HU.txt index 7e14f95942..6af9f680d1 100644 --- a/data/language/hu-HU.txt +++ b/data/language/hu-HU.txt @@ -2679,8 +2679,8 @@ STR_5582 :Egérmutató elfogása az ablakban STR_5583 :{COMMA1DP16} m/s STR_5584 :SI STR_5585 :Feloldja a játékok működési korlátait, lehetővé téve például a {VELOCITY} sebességű felvonószakaszok használatát -STR_5586 :Boltok és bódék automatikus megnyitása -STR_5587 :Az újonnan épült boltok és bódék automatikus megnyitása +STR_5586 :Boltok és bódék automatikus nyitása és zárása +STR_5587 :A boltok és bódék megépítésüket követően automatikusan kinyitnak, építkezés előtt pedig automatikusan bezárnak. STR_5588 :Online játék másokkal STR_5589 :Értesítési beállítások STR_5590 :Park díjak @@ -3824,3 +3824,41 @@ STR_7040 :Útkiegészítők STR_7041 :Parkinformációs panel STR_7042 :Dátuminformációs panel STR_7043 :Itt nem lehet megváltoztatni a terep magasságát… +STR_7044 :Hírfolyam +STR_7045 :RCT1-stílusú állapotsor +STR_7046 :Állapotsor (RCT1-stílusú) +STR_7047 :Léptetővezérlő (játéktervező) +STR_7048 :Léptetővezérlő (pályaszerkesztő) +STR_7049 :OpenRCT2 +STR_7050 :Sétáló vendégek +STR_7051 :Ide tartó vendégek: {STRINGID} +STR_7052 :Sorban álló vendégek itt: {STRINGID} +STR_7053 :Fuldokló vendégek +STR_7054 :Vendégek ezen: {STRINGID} +STR_7055 :Vendégek ebben: {STRINGID} +STR_7056 :Vendégek itt: {STRINGID} +STR_7057 :Ülő vendégek +STR_7058 :Felemelt vendégek +STR_7059 :Ezt néző vendégek: {STRINGID} +STR_7060 :Ennek az építését néző vendégek: {STRINGID} +STR_7061 :Díszleteket nézegető vendégek +STR_7062 :Parkot elhagyó vendégek +STR_7063 :Új játék építését néző vendégek +STR_7064 :Arany +STR_7065 :Borostyánsárga +STR_7066 :Ametisztlila +STR_7067 :Spárgazöld +STR_7068 :Barna +STR_7069 :Fáradt rózsaszín +STR_7070 :Kaktuszzöld +STR_7071 :Karamell +STR_7072 :Réz +STR_7073 :Karmazsinvörös +STR_7074 :Sötétebb víz +STR_7075 :Smaragdzöld +STR_7076 :Indigókék +STR_7077 :Pesztó +STR_7078 :Fenyőzöld +STR_7079 :Rubinvörös +STR_7080 :Mélykék +STR_7081 :Ezüst diff --git a/data/language/ko-KR.txt b/data/language/ko-KR.txt index 686d6ede2a..4a9e63a6fc 100644 --- a/data/language/ko-KR.txt +++ b/data/language/ko-KR.txt @@ -2683,8 +2683,8 @@ STR_5582 :마우스 커서를 창밖으로 나가지 못하게 STR_5583 :{COMMA1DP16}m/s STR_5584 :국제단위(SI)법 STR_5585 :체인/발사 속력을 {VELOCITY}으로 만드는 등, 일부 놀이기구 운행 제한을 없애줍니다 -STR_5586 :상점이나 가게를 자동으로 엶 -STR_5587 :상점이나 가게를 건설한 뒤에 자동으로 엽니다. +STR_5586 :상점이나 가게를 자동으로 열거다 닫음 +STR_5587 :상점이나 가게를 건설 직전에 닫거나, 건설한 뒤에 자동으로 엽니다. STR_5588 :다른 참가자와 함께 플레이합니다. STR_5589 :알림 설정 STR_5590 :공원 수상 기록 @@ -3847,3 +3847,21 @@ STR_7060 :{STRINGID} 건설을 보고 있는 손님 STR_7061 :풍경을 보고 있는 손님 STR_7062 :공원을 떠나는 손님 STR_7063 :새 놀이기구 건설을 보고 있는 손님 +STR_7064 :금색 +STR_7065 :호박색 +STR_7066 :자수정색 +STR_7067 :아스파라거스색 +STR_7068 :갈색 +STR_7069 :그을린 분홍색 +STR_7070 :선인장색 +STR_7071 :카라멜색 +STR_7072 :구리색 +STR_7073 :진홍색 +STR_7074 :짙은 물색 +STR_7075 :에메랄드색 +STR_7076 :남색 +STR_7077 :바질 페스토색 +STR_7078 :소나무색 +STR_7079 :다홍색 +STR_7080 :짙은 파랑 +STR_7081 :은색 diff --git a/data/language/nl-NL.txt b/data/language/nl-NL.txt index ed1cb23be0..fb78709cb8 100644 --- a/data/language/nl-NL.txt +++ b/data/language/nl-NL.txt @@ -2680,8 +2680,8 @@ STR_5582 :Aanwijzer in venster vasthouden STR_5583 :{COMMA1DP16} m/s STR_5584 :SI STR_5585 :Heft de limieten op het tabblad Bedrijfsopties van een attractie op, waardoor je bijvoorbeeld kettingsheuvels met snelheden tot {VELOCITY} kunt hebben. -STR_5586 :Winkels en kraampjes automatisch openen -STR_5587 :Als deze optie is ingeschakeld zullen winkels en kraampjes na plaatsing automatisch worden geopend. +STR_5586 :Winkels en kraampjes automatisch openen en sluiten +STR_5587 :Als deze optie is ingeschakeld zullen winkels en kraampjes na plaatsing automatisch worden geopend, en automatisch worden gesloten als je het bouwvenster ingaat. STR_5588 :Multiplayer STR_5589 :Berichtinstellingen STR_5590 :Als het park een prijs heeft gekregen @@ -3843,3 +3843,21 @@ STR_7060 :Bezoekers die naar de bouw van {STRINGID} kijken STR_7061 :Bezoekers die naar het decor kijken STR_7062 :Bezoekers op weg naar de uitgang STR_7063 :Bezoekers die naar de bouw van een nieuwe attractie kijken +STR_7064 :Goud +STR_7065 :Amber +STR_7066 :Amethist +STR_7067 :Asperge +STR_7068 :Bruin +STR_7069 :Vurig roze +STR_7070 :Cactus +STR_7071 :Karamel +STR_7072 :Koper +STR_7073 :Karmozijn +STR_7074 :Donkerder water +STR_7075 :Smaragd +STR_7076 :Indigo +STR_7077 :Pesto +STR_7078 :Dennengroen +STR_7079 :Robijn +STR_7080 :Diepblauw +STR_7081 :Zilver diff --git a/data/language/pt-BR.txt b/data/language/pt-BR.txt index aed2a10c89..ffd44e7698 100644 --- a/data/language/pt-BR.txt +++ b/data/language/pt-BR.txt @@ -3844,3 +3844,21 @@ STR_7060 :Visitantes observando a construção de {STRINGID} STR_7061 :Visitantes observando a paisagem STR_7062 :Visitantes saindo do parque STR_7063 :Visitantes observando uma nova atração ser construída +STR_7064 :Dourado +STR_7065 :Âmbar +STR_7066 :Ametista +STR_7067 :Aspargo +STR_7068 :Marrom +STR_7069 :Rosa queimado +STR_7070 :Cacto +STR_7071 :Caramelo +STR_7072 :Cobre +STR_7073 :Carmesim +STR_7074 :Água mais esscura +STR_7075 :Esmeralda +STR_7076 :Índigo +STR_7077 :Pesto +STR_7078 :Verde-pinho +STR_7079 :Rubi +STR_7080 :Azul escuro +STR_7081 :Prateado diff --git a/data/language/ru-RU.txt b/data/language/ru-RU.txt index ca7b24f134..2d3a9374f6 100644 --- a/data/language/ru-RU.txt +++ b/data/language/ru-RU.txt @@ -2684,8 +2684,8 @@ STR_5582 :Захватить курсор мыши в окне STR_5583 :{COMMA1DP16} м/с STR_5584 :SI STR_5585 :Разблокирует операционные лимиты аттракционов, разрешая, например, подъёмы со скростью {VELOCITY} -STR_5586 :Автоматически открывать магазины -STR_5587 :Магазины будут автоматически переключаться в "открытое" состояние после их постройки +STR_5586 :Автоматически открывать и закрывать магазины +STR_5587 :Магазины будут автоматически открыты после постройки, и закрыты перед проведением над ними строительных работ. STR_5588 :Играйте с другими игроками STR_5589 :Настройки уведомлений STR_5590 :Награды парка @@ -3832,3 +3832,21 @@ STR_7060 :Гости смотрящие на стройку {STRINGID} STR_7061 :Гости смотрящие на пейзаж STR_7062 :Гости уходящие из парка STR_7063 :Гости смотрящие на строительство новых аттракционов +STR_7064 :Золотой +STR_7065 :Янтарный +STR_7066 :Аметистовый +STR_7067 :Аспарагусовый +STR_7068 :Коричневый +STR_7069 :Глухой розовый +STR_7070 :Кактусовый +STR_7071 :Карамельный +STR_7072 :Медный +STR_7073 :Багровый +STR_7074 :Темная вода +STR_7075 :Изумрудный +STR_7076 :Индиго +STR_7077 :Песто +STR_7078 :Хвойно-зелёный +STR_7079 :Рубиновый +STR_7080 :Глубоко синий +STR_7081 :Серебрянный From bf79fb582c71929727cf14ba0a9385223f89110b Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Tue, 6 Oct 2026 04:06:01 +0000 Subject: [PATCH 138/142] Merge Localisation/master into OpenRCT2/develop --- data/language/es-ES.txt | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/data/language/es-ES.txt b/data/language/es-ES.txt index bd07b7f0a7..e956587e9b 100644 --- a/data/language/es-ES.txt +++ b/data/language/es-ES.txt @@ -2637,9 +2637,9 @@ STR_5534 :Amarillo STR_5535 :Amarillo oscuro STR_5536 :Naranja claro STR_5537 :Naranja oscuro -STR_5538 :Café claro -STR_5539 :Café saturado -STR_5540 :Café oscuro +STR_5538 :Marrón claro +STR_5539 :Marrón saturado +STR_5540 :Marrón oscuro STR_5541 :Rosa salmón STR_5542 :Rojo bordó STR_5543 :Rojo saturado @@ -3853,3 +3853,21 @@ STR_7060 :Visitantes mirando la construcción de {STRINGID} STR_7061 :Visitantes observando el decorado STR_7062 :Visitantes abandonando el parque STR_7063 :Visitantes viendo la construcción de una nueva atracción +STR_7064 :Oro +STR_7065 :Ámbar +STR_7066 :Amatista +STR_7067 :Verde espárrago +STR_7068 :Marrón +STR_7069 :Rosa quemado +STR_7070 :Verde cactus +STR_7071 :Caramelo +STR_7072 :Cobre +STR_7073 :Carmesí +STR_7074 :Agua más oscura +STR_7075 :Esmeralda +STR_7076 :Índigo +STR_7077 :Verde pesto +STR_7078 :Verde pino +STR_7079 :Rubí +STR_7080 :Azul profundo +STR_7081 :Plata From 57121f0ee9f4ffea8dd8655831ba0319a5010cdb Mon Sep 17 00:00:00 2001 From: OpenRCT2 git bot Date: Wed, 7 Oct 2026 04:06:16 +0000 Subject: [PATCH 139/142] Merge Localisation/master into OpenRCT2/develop --- data/language/es-ES.txt | 4 ++-- data/language/pt-BR.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/language/es-ES.txt b/data/language/es-ES.txt index e956587e9b..63512cfffe 100644 --- a/data/language/es-ES.txt +++ b/data/language/es-ES.txt @@ -2682,8 +2682,8 @@ STR_5582 :Mantener puntero del ratón en ventana STR_5583 :{COMMA1DP16}m/s STR_5584 :SI STR_5585 :Desbloquea los límites operativos de funcionamiento, permitiendo elementos como cadenas elevadoras a {VELOCITY} -STR_5586 :Abrir automáticamente tiendas y puestos -STR_5587 :Las Tiendas y Puestos se abrirán automáticamente después de su construcción. +STR_5586 :Abrir y cerrar automáticamente tiendas y puestos +STR_5587 :Las tiendas y los puestos se abrirán automáticamente después de su construcción, y se cerrarán automáticamente antes de construirse. STR_5588 :Jugar con otros jugadores STR_5589 :Configuración de notificaciones STR_5590 :Premios al parque diff --git a/data/language/pt-BR.txt b/data/language/pt-BR.txt index ffd44e7698..9c1ad002f6 100644 --- a/data/language/pt-BR.txt +++ b/data/language/pt-BR.txt @@ -2679,8 +2679,8 @@ STR_5582 :Manter ponteiro do mouse dentro da janela STR_5583 :{COMMA1DP16}m/s STR_5584 :SI STR_5585 :Destrava limites de operação na atração, permitindo coisas como corrente de elevação com {VELOCITY} -STR_5586 :Abrir automaticamente lojas e barracas -STR_5587 :Lojas e barracas serão abertas automaticamente depois de construí-las +STR_5586 :Abrir e fechar automaticamente lojas e barracas +STR_5587 :Lojas e barracas serão abertas automaticamente depois de construí-las e automaticamente fechadas antes de construir STR_5588 :Jogar com outros jogadores STR_5589 :Configurações de Notificação STR_5590 :Prêmios do parque From 33aacdeb0d9e22c1622acf071e6698f946365453 Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Thu, 8 Oct 2026 00:22:05 +0200 Subject: [PATCH 140/142] Update title sequence to latest release (v0.5.6) (#27254) --- assets.json | 4 ++-- distribution/changelog.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/assets.json b/assets.json index 796d6eb6ab..df937023cb 100644 --- a/assets.json +++ b/assets.json @@ -12,8 +12,8 @@ "sha256": "06b90f3e19c216752df441d551b26a9e3e1ba7755bdd2102504b73bf993608be" }, "title-sequences": { - "url": "https://github.com/OpenRCT2/title-sequences/releases/download/v0.4.26/title-sequences.zip", - "sha256": "dabb9787b1576342fca4dd9f64b3f8cfa04a7e6ce9c2bb9610f47b762905c858" + "url": "https://github.com/OpenRCT2/title-sequences/releases/download/v0.5.6/title-sequences.zip", + "sha256": "37ac28985baf183bae27af72710613595f683dc24892c05989fb6bfd016bdb5d" }, "replays": { "url": "https://github.com/OpenRCT2/replays/releases/download/v0.0.97/replays.zip", diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 4751d4532b..afec43d2ee 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -4,6 +4,7 @@ - Feature: [#26894] Added 18 additional colours, including 5 from the base version of RCT1 (which were removed in later versions). - Feature: [#27153] [Plugin] Add `guestsEntertained` to `Entertainer` interface. - Feature: [#27184] [Plugin] Double limit of miscellaneous entities (e.g. crash particles, steam plumes and balloons) to 6400. +- Feature: [#27254] New title sequence (see https://github.com/OpenRCT2/title-sequences/releases/tag/v0.5.6 for credits). - Feature: [objects#447] Track designer grid can now be used outside the Track Designer. - Improved: [#21400] The selector for setting staff patrol areas is now drawn on the water as well as on the surface under water. - Improved: [#22933] You can now toggle between long and short base flat-to-steep pieces if the ride has both available. From 89ec0da210f22329eb7f58a21c3361412af4785e Mon Sep 17 00:00:00 2001 From: RayKoopa <9631152+RayKoopa@users.noreply.github.com> Date: Sat, 10 Oct 2026 13:11:49 +0200 Subject: [PATCH 141/142] Retain land colours even when styles are inactive (#27228) --- src/openrct2-ui/windows/Land.cpp | 24 +++++++++++-------- .../terraform/SurfaceSetStyleAction.cpp | 8 ++++++- src/openrct2/world/map_generator/MapGen.cpp | 24 +++++++++++++++++-- 3 files changed, 43 insertions(+), 13 deletions(-) diff --git a/src/openrct2-ui/windows/Land.cpp b/src/openrct2-ui/windows/Land.cpp index f7b1ff4d95..0e9a79d1ab 100644 --- a/src/openrct2-ui/windows/Land.cpp +++ b/src/openrct2-ui/windows/Land.cpp @@ -217,9 +217,13 @@ namespace OpenRCT2::Ui::Windows else { gLandToolTerrainSurface = type; - _selectedFloorTexture = type; + if (_selectedFloorTexture != type) + { + _selectedFloorTexture = type; + LandTool::resetSurfaceColourSelection( + gLandToolTerrainSurface, _surfaceColour1, _surfaceColour1Enabled); + } } - LandTool::resetSurfaceColourSelection(gLandToolTerrainSurface, _surfaceColour1, _surfaceColour1Enabled); invalidate(); break; case WIDX_WALL: @@ -236,9 +240,12 @@ namespace OpenRCT2::Ui::Windows else { gLandToolTerrainEdge = type; - _selectedWallTexture = type; + if (_selectedWallTexture != type) + { + _selectedWallTexture = type; + LandTool::resetEdgeColourSelection(gLandToolTerrainEdge, _edgeColour1, _edgeColour1Enabled); + } } - LandTool::resetEdgeColourSelection(gLandToolTerrainEdge, _edgeColour1, _edgeColour1Enabled); invalidate(); break; case WIDX_SURFACE_COLOUR_1: @@ -291,7 +298,7 @@ namespace OpenRCT2::Ui::Windows auto surfaceButtonSelected = gLandToolTerrainSurface != kObjectEntryIndexNull; auto edgeButtonSelected = gLandToolTerrainEdge != kObjectEntryIndexNull; setWidgetPressed(WIDX_FLOOR, surfaceButtonSelected); - setWidgetPressed(WIDX_WALL, gLandToolTerrainEdge != kObjectEntryIndexNull); + setWidgetPressed(WIDX_WALL, edgeButtonSelected); setWidgetPressed(WIDX_MOUNTAINMODE, _landToolMountainMode); setWidgetPressed(WIDX_PAINTMODE, _landToolPaintMode); @@ -903,17 +910,14 @@ namespace OpenRCT2::Ui::Windows ImageId surfaceImage; if (surfaceObj != nullptr) { - auto colour = widgets[WIDX_SURFACE_COLOUR_1].isVisible() ? surfaceObj->getPrimaryColour(_surfaceColour1) - : surfaceObj->getPreviewColour(); - surfaceImage = ImageId(surfaceObj->IconImageId, colour); + surfaceImage = ImageId(surfaceObj->IconImageId, surfaceObj->getPrimaryColour(_surfaceColour1)); } const auto* edgeObj = objManager.GetLoadedObject(_selectedWallTexture); ImageId edgeImage; if (edgeObj != nullptr) { - auto colour = widgets[WIDX_EDGE_COLOUR_1].isVisible() ? _edgeColour1 : edgeObj->getPreviewColour(); - edgeImage = ImageId(edgeObj->IconImageId, colour); + edgeImage = ImageId(edgeObj->IconImageId, _edgeColour1); } DrawDropdownButton(rt, WIDX_FLOOR, surfaceImage); diff --git a/src/openrct2/actions/terraform/SurfaceSetStyleAction.cpp b/src/openrct2/actions/terraform/SurfaceSetStyleAction.cpp index ac768de34a..908da81e3f 100644 --- a/src/openrct2/actions/terraform/SurfaceSetStyleAction.cpp +++ b/src/openrct2/actions/terraform/SurfaceSetStyleAction.cpp @@ -219,6 +219,8 @@ namespace OpenRCT2::GameActions surfaceElement->setSurfaceObjectIndex(_surfaceStyle); if (surfaceObject->Flags.has(TerrainSurfaceFlag::hasPrimaryColour)) surfaceElement->setPrimarySurfaceColour(surfaceObject->getPrimaryColour(_surfaceColour1)); + else + surfaceElement->setPrimarySurfaceColour(Drawing::Colour::black); MapInvalidateTileFull(coords); FootpathRemoveLitter({ coords, TileElementHeight(coords) }); @@ -238,7 +240,11 @@ namespace OpenRCT2::GameActions edgeCost += 100; surfaceElement->setEdgeObjectIndex(_edgeStyle); - surfaceElement->setPrimaryEdgeColour(_edgeColour1); + if (edgeObject->flags.has(TerrainEdgeFlag::hasPrimaryColour)) + surfaceElement->setPrimaryEdgeColour(_edgeColour1); + else + surfaceElement->setPrimaryEdgeColour(Drawing::Colour::black); + MapInvalidateTileFull(coords); } } diff --git a/src/openrct2/world/map_generator/MapGen.cpp b/src/openrct2/world/map_generator/MapGen.cpp index 8282ed8413..4f843b2eed 100644 --- a/src/openrct2/world/map_generator/MapGen.cpp +++ b/src/openrct2/world/map_generator/MapGen.cpp @@ -9,7 +9,11 @@ #include "MapGen.h" +#include "../../Context.h" #include "../../GameState.h" +#include "../../object/ObjectManager.h" +#include "../../object/TerrainEdgeObject.h" +#include "../../object/TerrainSurfaceObject.h" #include "../Map.h" #include "../tile_element/Slope.h" #include "../tile_element/SurfaceElement.h" @@ -60,6 +64,22 @@ namespace OpenRCT2::World::MapGenerator const auto surfaceTextureId = generateSurfaceTextureId(settings); const auto edgeTextureId = generateEdgeTextureId(settings, surfaceTextureId); + auto& objManager = GetContext()->GetObjectManager(); + + auto surfaceColour1 = Drawing::Colour::black; + const auto* surfaceObject = objManager.GetLoadedObject(surfaceTextureId); + if (surfaceObject != nullptr && surfaceObject->Flags.has(TerrainSurfaceFlag::hasPrimaryColour)) + { + surfaceColour1 = settings->surfaceColour1; + } + + auto edgeColour1 = Drawing::Colour::black; + const auto* edgeObject = objManager.GetLoadedObject(edgeTextureId); + if (edgeObject != nullptr && edgeObject->flags.has(TerrainEdgeFlag::hasPrimaryColour)) + { + edgeColour1 = settings->edgeColour1; + } + for (auto y = 1; y < settings->mapSize.y - 1; y++) { for (auto x = 1; x < settings->mapSize.x - 1; x++) @@ -69,8 +89,8 @@ namespace OpenRCT2::World::MapGenerator { surfaceElement->setSurfaceObjectIndex(surfaceTextureId); surfaceElement->setEdgeObjectIndex(edgeTextureId); - surfaceElement->setPrimarySurfaceColour(settings->surfaceColour1); - surfaceElement->setPrimaryEdgeColour(settings->edgeColour1); + surfaceElement->setPrimarySurfaceColour(surfaceColour1); + surfaceElement->setPrimaryEdgeColour(edgeColour1); surfaceElement->baseHeight = settings->heightmapLow; surfaceElement->clearanceHeight = settings->heightmapLow; } From 67427972a2ebc702192866987479769a57de3d8f Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 10 Oct 2026 13:53:50 +0200 Subject: [PATCH 142/142] Update backtrace.io token --- src/openrct2/platform/Crash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/platform/Crash.cpp b/src/openrct2/platform/Crash.cpp index 690878ccfa..9163ec002a 100644 --- a/src/openrct2/platform/Crash.cpp +++ b/src/openrct2/platform/Crash.cpp @@ -58,7 +58,7 @@ static const wchar_t* _wszArchitecture = WSZ(OPENRCT2_ARCHITECTURE); static std::map _uploadFiles; static std::mutex _uploadFilesMutex; - #define BACKTRACE_TOKEN "8286b35af1e64ff757a07481d69a329013b67c939e9e1c773cbab38af1ca1bb5" + #define BACKTRACE_TOKEN "f509d427f8ee73ef96c59c46a0c8ef5f79d9cac9ed5f014da986e3bb15a24389" using namespace OpenRCT2;