diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 8cc77bbfed..bdd8d4753d 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,5 +1,6 @@ 0.5.3 (in development) ------------------------------------------------------------------------ +- Feature: [#26308] Add all new track pieces to the inverted roller coaster. 0.5.2 (2026-06-07) ------------------------------------------------------------------------ diff --git a/resources/tracks/sprites.json b/resources/tracks/sprites.json index 2aeeb0fddf..5ac0803937 100644 --- a/resources/tracks/sprites.json +++ b/resources/tracks/sprites.json @@ -9922,6 +9922,3570 @@ "y": -13, "palette": "keep" }, + { + "path": "track/bm_invert/barrel_roll_left_0_0.png", + "x": 11, + "y": 13, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_0_1.png", + "x": -25, + "y": 5, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_0_2.png", + "x": -18, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_0_3.png", + "x": -34, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_0_4.png", + "x": -12, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_0_5.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_1_0.png", + "x": -14, + "y": 14, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_1_1.png", + "x": -26, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_1_2.png", + "x": -28, + "y": -1, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_1_3.png", + "x": -28, + "y": -9, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_1_4.png", + "x": -32, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_1_5.png", + "x": 0, + "y": 14, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_2_0.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_2_1.png", + "x": -29, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_2_2.png", + "x": -25, + "y": 4, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_2_3.png", + "x": -25, + "y": -11, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_2_4.png", + "x": -26, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_2_5.png", + "x": -19, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_3_0.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_3_1.png", + "x": -18, + "y": -10, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_3_2.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_3_3.png", + "x": -19, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_3_4.png", + "x": -24, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_left_3_5.png", + "x": -24, + "y": -2, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_0_0.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_0_1.png", + "x": -26, + "y": -11, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_0_2.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_0_3.png", + "x": -28, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_0_4.png", + "x": -9, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_0_5.png", + "x": -21, + "y": -3, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_1_0.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_1_1.png", + "x": -25, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_1_2.png", + "x": 20, + "y": 4, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_1_3.png", + "x": -9, + "y": -11, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_1_4.png", + "x": -7, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_1_5.png", + "x": -10, + "y": -4, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_2_0.png", + "x": -4, + "y": 14, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_2_1.png", + "x": -4, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_2_2.png", + "x": 0, + "y": -1, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_2_3.png", + "x": 10, + "y": -10, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_2_4.png", + "x": -24, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_2_5.png", + "x": -19, + "y": 13, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_3_0.png", + "x": -16, + "y": 13, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_3_1.png", + "x": -14, + "y": 5, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_3_2.png", + "x": -29, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_3_3.png", + "x": -8, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_3_4.png", + "x": -26, + "y": -11, + "palette": "keep" + }, + { + "path": "track/bm_invert/barrel_roll_right_3_5.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_0_0.png", + "x": -25, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_0_1.png", + "x": -27, + "y": -34, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_0_2.png", + "x": -28, + "y": -29, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_0_3.png", + "x": -32, + "y": -26, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_0_4.png", + "x": -32, + "y": -41, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_0_5.png", + "x": -24, + "y": -19, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_1_0.png", + "x": -25, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_1_1.png", + "x": -16, + "y": -9, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_1_2.png", + "x": -32, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_1_3.png", + "x": -27, + "y": -45, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_1_4.png", + "x": -19, + "y": -42, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_1_5.png", + "x": -22, + "y": -20, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_2_0.png", + "x": -16, + "y": -2, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_2_1.png", + "x": 0, + "y": -10, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_2_2.png", + "x": 19, + "y": -21, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_2_3.png", + "x": 20, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_2_4.png", + "x": 0, + "y": -25, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_2_5.png", + "x": -16, + "y": -17, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_3_0.png", + "x": -27, + "y": -6, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_3_1.png", + "x": -20, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_3_2.png", + "x": -18, + "y": -6, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_3_3.png", + "x": -17, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_left_3_4.png", + "x": -24, + "y": -9, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_0_0.png", + "x": -25, + "y": -6, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_0_1.png", + "x": -25, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_0_2.png", + "x": -29, + "y": -6, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_0_3.png", + "x": -29, + "y": -17, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_0_4.png", + "x": -15, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_1_0.png", + "x": -25, + "y": -2, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_1_1.png", + "x": -16, + "y": -10, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_1_2.png", + "x": -32, + "y": -22, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_1_3.png", + "x": -32, + "y": -6, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_1_4.png", + "x": -16, + "y": -26, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_1_5.png", + "x": -24, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_2_0.png", + "x": 0, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_2_1.png", + "x": -16, + "y": -9, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_2_2.png", + "x": -8, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_2_3.png", + "x": -30, + "y": -44, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_2_4.png", + "x": -26, + "y": -41, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_2_5.png", + "x": -24, + "y": -19, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_3_0.png", + "x": -23, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_3_1.png", + "x": -9, + "y": -34, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_3_2.png", + "x": 20, + "y": -29, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_3_3.png", + "x": 19, + "y": -27, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_3_4.png", + "x": -9, + "y": -41, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_corkscrew_right_3_5.png", + "x": -15, + "y": -20, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_0_0.png", + "x": -24, + "y": -28, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_0_1.png", + "x": -25, + "y": -45, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_0_2.png", + "x": -32, + "y": -79, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_0_3.png", + "x": 0, + "y": -103, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_0_4.png", + "x": -24, + "y": -17, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_1_0.png", + "x": -25, + "y": -11, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_1_1.png", + "x": -16, + "y": -25, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_1_2.png", + "x": -16, + "y": -80, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_1_3.png", + "x": -31, + "y": -139, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_1_4.png", + "x": -25, + "y": -27, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_2_0.png", + "x": 0, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_2_1.png", + "x": 0, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_2_2.png", + "x": -3, + "y": -84, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_2_3.png", + "x": -20, + "y": -136, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_2_4.png", + "x": -24, + "y": -29, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_3_0.png", + "x": -30, + "y": -20, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_3_1.png", + "x": -32, + "y": -30, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_3_2.png", + "x": -32, + "y": -25, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_3_3.png", + "x": -10, + "y": -109, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_left_3_4.png", + "x": -16, + "y": -20, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_0_0.png", + "x": -24, + "y": -21, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_0_1.png", + "x": -17, + "y": -31, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_0_2.png", + "x": -13, + "y": -25, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_0_3.png", + "x": -26, + "y": -110, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_0_4.png", + "x": -25, + "y": -20, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_1_0.png", + "x": -25, + "y": -6, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_1_1.png", + "x": -32, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_1_2.png", + "x": -32, + "y": -84, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_1_3.png", + "x": -23, + "y": -136, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_1_4.png", + "x": -24, + "y": -28, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_2_0.png", + "x": -16, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_2_1.png", + "x": -16, + "y": -25, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_2_2.png", + "x": -32, + "y": -80, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_2_3.png", + "x": -10, + "y": -140, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_2_4.png", + "x": -10, + "y": -28, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_3_0.png", + "x": -24, + "y": -28, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_3_1.png", + "x": -18, + "y": -45, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_3_2.png", + "x": -3, + "y": -79, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_3_3.png", + "x": -32, + "y": -102, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_half_loop_right_3_4.png", + "x": -32, + "y": -16, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_left_0_0.png", + "x": 20, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_left_0_1.png", + "x": -24, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_left_0_2.png", + "x": -20, + "y": -20, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_left_0_3.png", + "x": -20, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_left_1_0.png", + "x": -17, + "y": -3, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_left_1_1.png", + "x": -25, + "y": -6, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_left_1_2.png", + "x": -23, + "y": -11, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_left_1_3.png", + "x": -21, + "y": -10, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_left_2_0.png", + "x": -21, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_left_2_1.png", + "x": -20, + "y": -19, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_left_2_2.png", + "x": -26, + "y": -10, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_left_2_3.png", + "x": -19, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_left_3_0.png", + "x": -19, + "y": -23, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_left_3_1.png", + "x": -18, + "y": -26, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_left_3_2.png", + "x": -22, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_left_3_3.png", + "x": -23, + "y": -2, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_right_0_0.png", + "x": -25, + "y": -23, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_right_0_1.png", + "x": -29, + "y": -27, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_right_0_2.png", + "x": -13, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_right_0_3.png", + "x": -21, + "y": -3, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_right_1_0.png", + "x": -25, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_right_1_1.png", + "x": -17, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_right_1_2.png", + "x": -12, + "y": -9, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_right_1_3.png", + "x": -15, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_right_2_0.png", + "x": -9, + "y": -3, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_right_2_1.png", + "x": -9, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_right_2_2.png", + "x": -11, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_right_2_3.png", + "x": -23, + "y": -11, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_right_3_0.png", + "x": -28, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_right_3_1.png", + "x": -24, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_right_3_2.png", + "x": -29, + "y": -19, + "palette": "keep" + }, + { + "path": "track/bm_invert/zero_g_roll_right_3_3.png", + "x": -26, + "y": -11, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_0_0.png", + "x": -25, + "y": -44, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_0_1.png", + "x": 3, + "y": -45, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_0_2.png", + "x": -30, + "y": -47, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_0_3.png", + "x": -17, + "y": -34, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_0_4.png", + "x": -17, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_1_0.png", + "x": -25, + "y": -39, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_1_1.png", + "x": -28, + "y": -25, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_1_2.png", + "x": -32, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_1_3.png", + "x": -30, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_2_0.png", + "x": -7, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_2_1.png", + "x": -11, + "y": -42, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_2_2.png", + "x": -32, + "y": -34, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_2_3.png", + "x": -24, + "y": -16, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_2_4.png", + "x": -25, + "y": -1, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_2_5.png", + "x": -19, + "y": 1, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_3_0.png", + "x": -18, + "y": -49, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_3_1.png", + "x": -20, + "y": -40, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_3_2.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_3_3.png", + "x": -21, + "y": -25, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_left_3_4.png", + "x": -23, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_0_0.png", + "x": -25, + "y": -50, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_0_1.png", + "x": -32, + "y": -41, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_0_2.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_0_3.png", + "x": -30, + "y": -25, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_0_4.png", + "x": -22, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_1_0.png", + "x": -22, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_1_1.png", + "x": -25, + "y": -43, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_1_2.png", + "x": -23, + "y": -34, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_1_3.png", + "x": -16, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_1_4.png", + "x": -8, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_1_5.png", + "x": -8, + "y": 2, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_2_0.png", + "x": -18, + "y": -38, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_2_1.png", + "x": -16, + "y": -25, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_2_2.png", + "x": -4, + "y": -16, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_2_3.png", + "x": -23, + "y": -9, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_3_0.png", + "x": -18, + "y": -43, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_3_1.png", + "x": -32, + "y": -45, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_3_2.png", + "x": -18, + "y": -47, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_3_3.png", + "x": -32, + "y": -33, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_zero_g_roll_right_3_4.png", + "x": -25, + "y": -11, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_left_0_0.png", + "x": -32, + "y": -43, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_left_0_1.png", + "x": -32, + "y": -41, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_left_0_2.png", + "x": -30, + "y": -37, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_left_0_3.png", + "x": -14, + "y": -4, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_left_1_0.png", + "x": -12, + "y": 12, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_left_1_1.png", + "x": -10, + "y": -22, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_left_1_2.png", + "x": -22, + "y": -10, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_left_1_3.png", + "x": -20, + "y": 4, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_left_2_0.png", + "x": 0, + "y": -34, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_left_2_1.png", + "x": -22, + "y": -25, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_left_2_2.png", + "x": 0, + "y": -4, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_left_2_3.png", + "x": -24, + "y": 7, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_left_3_0.png", + "x": -16, + "y": -32, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_left_3_1.png", + "x": -30, + "y": -20, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_left_3_2.png", + "x": -32, + "y": -36, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_left_3_3.png", + "x": -24, + "y": -3, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_right_0_0.png", + "x": -32, + "y": -35, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_right_0_1.png", + "x": -32, + "y": -25, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_right_0_2.png", + "x": -25, + "y": -3, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_right_0_3.png", + "x": -32, + "y": 8, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_right_1_0.png", + "x": -15, + "y": 12, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_right_1_1.png", + "x": -28, + "y": -23, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_right_1_2.png", + "x": -16, + "y": -10, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_right_1_3.png", + "x": -24, + "y": 4, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_right_2_0.png", + "x": 0, + "y": -42, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_right_2_1.png", + "x": -16, + "y": -40, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_right_2_2.png", + "x": -32, + "y": -37, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_right_2_3.png", + "x": -24, + "y": -3, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_right_3_0.png", + "x": -13, + "y": -32, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_right_3_1.png", + "x": -7, + "y": -20, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_right_3_2.png", + "x": -21, + "y": -36, + "palette": "keep" + }, + { + "path": "track/bm_invert/dive_loop_45_right_3_3.png", + "x": -12, + "y": -4, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_vertical_0.png", + "x": -25, + "y": -47, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_vertical_1.png", + "x": -25, + "y": -48, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_vertical_2.png", + "x": -9, + "y": -48, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_vertical_3.png", + "x": -9, + "y": -47, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_to_steep_0.png", + "x": -11, + "y": -55, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_to_steep_1.png", + "x": -11, + "y": -45, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_to_steep_2.png", + "x": -26, + "y": -44, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_to_steep_3.png", + "x": -26, + "y": -55, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_0.png", + "x": -11, + "y": -23, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_1.png", + "x": -11, + "y": -24, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_2.png", + "x": -9, + "y": -24, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_3.png", + "x": -9, + "y": -23, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_twist_left_0.png", + "x": -12, + "y": -87, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_twist_left_1_0.png", + "x": -8, + "y": -33, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_twist_left_1_1.png", + "x": -12, + "y": -87, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_twist_left_2_0.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_twist_left_2_1.png", + "x": -12, + "y": -88, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_twist_left_3_0.png", + "x": -9, + "y": -88, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_twist_left_3_1.png", + "x": -9, + "y": -86, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_twist_right_0_0.png", + "x": -9, + "y": -88, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_twist_right_0_1.png", + "x": -12, + "y": -86, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_twist_right_1_0.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_twist_right_1_1.png", + "x": -12, + "y": -88, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_twist_right_2_0.png", + "x": -9, + "y": -33, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_twist_right_2_1.png", + "x": -9, + "y": -87, + "palette": "keep" + }, + { + "path": "track/bm_invert/vertical_twist_right_3.png", + "x": -12, + "y": -87, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_0_0.png", + "x": -25, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_0_1.png", + "x": -25, + "y": -19, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_0_2.png", + "x": -23, + "y": -26, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_0_3.png", + "x": -25, + "y": -47, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_1_0.png", + "x": -25, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_1_1.png", + "x": -17, + "y": -9, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_1_2.png", + "x": -13, + "y": -17, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_1_3.png", + "x": -20, + "y": -37, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_2_0.png", + "x": -30, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_2_1.png", + "x": -19, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_2_2.png", + "x": -18, + "y": -16, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_2_3.png", + "x": -26, + "y": -36, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_3_0.png", + "x": -22, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_3_1.png", + "x": -24, + "y": -19, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_3_2.png", + "x": -24, + "y": -26, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_3_3.png", + "x": -26, + "y": -47, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_0_0.png", + "x": -25, + "y": -42, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_0_1.png", + "x": -27, + "y": -29, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_0_2.png", + "x": -26, + "y": -19, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_0_3.png", + "x": -26, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_1_0.png", + "x": -25, + "y": -32, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_1_1.png", + "x": -25, + "y": -21, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_1_2.png", + "x": -13, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_1_3.png", + "x": -16, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_2_0.png", + "x": -15, + "y": -32, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_2_1.png", + "x": -28, + "y": -21, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_2_2.png", + "x": -31, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_2_3.png", + "x": -25, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_3_0.png", + "x": -23, + "y": -42, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_3_1.png", + "x": -22, + "y": -28, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_3_2.png", + "x": -23, + "y": -19, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_3_3.png", + "x": -25, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_diag_0_0.png", + "x": -32, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_diag_0_1.png", + "x": -32, + "y": -30, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_diag_0_2.png", + "x": -32, + "y": -52, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_diag_1_0.png", + "x": -12, + "y": 4, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_diag_1_1.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_diag_1_2.png", + "x": -12, + "y": -36, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_diag_2_0.png", + "x": -32, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_diag_2_1.png", + "x": -32, + "y": -30, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_diag_2_2.png", + "x": -32, + "y": -51, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_diag_3_0.png", + "x": -13, + "y": -16, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_diag_3_1.png", + "x": -13, + "y": -48, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_steep_diag_3_2.png", + "x": -13, + "y": -84, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_diag_0_0.png", + "x": -32, + "y": -52, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_diag_0_1.png", + "x": -32, + "y": -22, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_diag_0_2.png", + "x": -32, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_diag_1_0.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_diag_1_1.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_diag_1_2.png", + "x": -12, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_diag_2_0.png", + "x": -32, + "y": -51, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_diag_2_1.png", + "x": -32, + "y": -22, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_diag_2_2.png", + "x": -32, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_diag_3_0.png", + "x": -13, + "y": -40, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_diag_3_1.png", + "x": -13, + "y": -72, + "palette": "keep" + }, + { + "path": "track/bm_invert/steep_to_flat_diag_3_2.png", + "x": -13, + "y": -45, + "palette": "keep" + }, + { + "path": "track/bm_invert/quarter_loop_0_0.png", + "x": -20, + "y": -36, + "palette": "keep" + }, + { + "path": "track/bm_invert/quarter_loop_0_1.png", + "x": -29, + "y": -28, + "palette": "keep" + }, + { + "path": "track/bm_invert/quarter_loop_0_2.png", + "x": -23, + "y": -19, + "palette": "keep" + }, + { + "path": "track/bm_invert/quarter_loop_0_3.png", + "x": -24, + "y": -4, + "palette": "keep" + }, + { + "path": "track/bm_invert/quarter_loop_1_0.png", + "x": -32, + "y": -77, + "palette": "keep" + }, + { + "path": "track/bm_invert/quarter_loop_1_1.png", + "x": -18, + "y": -34, + "palette": "keep" + }, + { + "path": "track/bm_invert/quarter_loop_1_2.png", + "x": -24, + "y": -11, + "palette": "keep" + }, + { + "path": "track/bm_invert/quarter_loop_2_0.png", + "x": -9, + "y": -77, + "palette": "keep" + }, + { + "path": "track/bm_invert/quarter_loop_2_1.png", + "x": -18, + "y": -34, + "palette": "keep" + }, + { + "path": "track/bm_invert/quarter_loop_2_2.png", + "x": -32, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/quarter_loop_3_0.png", + "x": -9, + "y": -37, + "palette": "keep" + }, + { + "path": "track/bm_invert/quarter_loop_3_1.png", + "x": -4, + "y": -27, + "palette": "keep" + }, + { + "path": "track/bm_invert/quarter_loop_3_2.png", + "x": -27, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/quarter_loop_3_3.png", + "x": -13, + "y": -3, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_turn_left_bank_to_gentle_0_0.png", + "x": -30, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_turn_left_bank_to_gentle_0_1.png", + "x": -19, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_turn_left_bank_to_gentle_1_0.png", + "x": -16, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_turn_left_bank_to_gentle_1_1.png", + "x": -38, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_turn_left_bank_to_gentle_2_0.png", + "x": -21, + "y": -6, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_turn_left_bank_to_gentle_2_1.png", + "x": -10, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_turn_left_bank_to_gentle_3_0.png", + "x": -26, + "y": -10, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_turn_left_bank_to_gentle_3_1.png", + "x": -30, + "y": -2, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_turn_right_bank_to_gentle_0_0.png", + "x": -30, + "y": -10, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_turn_right_bank_to_gentle_0_1.png", + "x": -26, + "y": -1, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_turn_right_bank_to_gentle_1_0.png", + "x": -18, + "y": -6, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_turn_right_bank_to_gentle_1_1.png", + "x": -30, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_turn_right_bank_to_gentle_2_0.png", + "x": -38, + "y": -9, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_turn_right_bank_to_gentle_2_1.png", + "x": -19, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_turn_right_bank_to_gentle_3_0.png", + "x": -8, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_turn_right_bank_to_gentle_3_1.png", + "x": -21, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_flat_to_steep_0.png", + "x": -25, + "y": -23, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_flat_to_steep_1_0.png", + "x": 2, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_flat_to_steep_1_1.png", + "x": -25, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_flat_to_steep_2_0.png", + "x": -26, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_flat_to_steep_2_1.png", + "x": -17, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_flat_to_steep_3.png", + "x": -26, + "y": -23, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_steep_to_flat_0.png", + "x": -25, + "y": -29, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_steep_to_flat_1_0.png", + "x": -23, + "y": 1, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_steep_to_flat_1_1.png", + "x": -25, + "y": -17, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_steep_to_flat_2_0.png", + "x": 5, + "y": 1, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_steep_to_flat_2_1.png", + "x": -25, + "y": -17, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_steep_to_flat_3.png", + "x": -25, + "y": -29, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_flat_to_steep_diag_0.png", + "x": -32, + "y": -28, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_flat_to_steep_diag_1.png", + "x": -12, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_flat_to_steep_diag_2.png", + "x": -32, + "y": -27, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_flat_to_steep_diag_3.png", + "x": -13, + "y": -28, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_steep_to_flat_diag_0.png", + "x": -32, + "y": -23, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_steep_to_flat_diag_1.png", + "x": -12, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_steep_to_flat_diag_2.png", + "x": -32, + "y": -23, + "palette": "keep" + }, + { + "path": "track/bm_invert/small_steep_to_flat_diag_3.png", + "x": -13, + "y": -37, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_diag_gentle_0_0.png", + "x": -24, + "y": -16, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_diag_gentle_0_1.png", + "x": -32, + "y": -24, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_diag_gentle_0_2.png", + "x": 11, + "y": 8, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_diag_gentle_0_3.png", + "x": -16, + "y": -10, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_diag_gentle_1_0.png", + "x": -25, + "y": -10, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_diag_gentle_1_1.png", + "x": -16, + "y": -19, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_diag_gentle_1_2.png", + "x": -8, + "y": 11, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_diag_gentle_1_3.png", + "x": -32, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_diag_gentle_2_0.png", + "x": -7, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_diag_gentle_2_1.png", + "x": 4, + "y": -6, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_diag_gentle_2_2.png", + "x": -32, + "y": -3, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_diag_gentle_2_3.png", + "x": -13, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_diag_gentle_3_0.png", + "x": -27, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_diag_gentle_3_1.png", + "x": -27, + "y": -10, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_diag_gentle_3_2.png", + "x": 0, + "y": -17, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_diag_gentle_3_3.png", + "x": 0, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_diag_gentle_0_0.png", + "x": -24, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_diag_gentle_0_1.png", + "x": -19, + "y": -11, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_diag_gentle_0_2.png", + "x": -13, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_diag_gentle_0_3.png", + "x": -32, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_diag_gentle_1_0.png", + "x": -25, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_diag_gentle_1_1.png", + "x": -33, + "y": -6, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_diag_gentle_1_2.png", + "x": 2, + "y": -3, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_diag_gentle_1_3.png", + "x": -13, + "y": -17, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_diag_gentle_2_0.png", + "x": -16, + "y": -10, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_diag_gentle_2_1.png", + "x": -24, + "y": -19, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_diag_gentle_2_2.png", + "x": 0, + "y": 11, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_diag_gentle_2_3.png", + "x": 0, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_diag_gentle_3_0.png", + "x": -20, + "y": -16, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_diag_gentle_3_1.png", + "x": -9, + "y": -24, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_diag_gentle_3_2.png", + "x": -32, + "y": 8, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_diag_gentle_3_3.png", + "x": -12, + "y": -10, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_orthogonal_gentle_0_0.png", + "x": 0, + "y": -9, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_orthogonal_gentle_0_1.png", + "x": -10, + "y": -1, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_orthogonal_gentle_0_2.png", + "x": -27, + "y": -17, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_orthogonal_gentle_0_3.png", + "x": -32, + "y": -20, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_orthogonal_gentle_1_0.png", + "x": -13, + "y": 2, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_orthogonal_gentle_1_1.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_orthogonal_gentle_1_2.png", + "x": -13, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_orthogonal_gentle_1_3.png", + "x": -17, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_orthogonal_gentle_2_0.png", + "x": -32, + "y": -9, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_orthogonal_gentle_2_1.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_orthogonal_gentle_2_2.png", + "x": -21, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_orthogonal_gentle_2_3.png", + "x": -24, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_orthogonal_gentle_3_0.png", + "x": -17, + "y": -16, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_orthogonal_gentle_3_1.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_orthogonal_gentle_3_2.png", + "x": -31, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_to_orthogonal_gentle_3_3.png", + "x": -25, + "y": -19, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_orthogonal_gentle_0_0.png", + "x": 0, + "y": -9, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_orthogonal_gentle_0_1.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_orthogonal_gentle_0_2.png", + "x": -32, + "y": -4, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_orthogonal_gentle_0_3.png", + "x": -32, + "y": -6, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_orthogonal_gentle_1_0.png", + "x": 0, + "y": 2, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_orthogonal_gentle_1_1.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_orthogonal_gentle_1_2.png", + "x": -16, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_orthogonal_gentle_1_3.png", + "x": -24, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_orthogonal_gentle_2_0.png", + "x": -30, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_orthogonal_gentle_2_1.png", + "x": -13, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_orthogonal_gentle_2_2.png", + "x": -14, + "y": -17, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_orthogonal_gentle_2_3.png", + "x": -25, + "y": -19, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_orthogonal_gentle_3_0.png", + "x": -12, + "y": -16, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_orthogonal_gentle_3_1.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_orthogonal_gentle_3_2.png", + "x": -8, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_to_orthogonal_gentle_3_3.png", + "x": -19, + "y": -20, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_to_gentle_left_bank_diag_0.png", + "x": -32, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_to_gentle_left_bank_diag_1.png", + "x": -13, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_to_gentle_left_bank_diag_2.png", + "x": -32, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_to_gentle_left_bank_diag_3.png", + "x": -12, + "y": -26, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_to_gentle_right_bank_diag_0.png", + "x": -32, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_to_gentle_right_bank_diag_1.png", + "x": -13, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_to_gentle_right_bank_diag_2.png", + "x": -32, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_to_gentle_right_bank_diag_3.png", + "x": -12, + "y": -25, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_left_bank_to_gentle_diag_0.png", + "x": -32, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_left_bank_to_gentle_diag_1.png", + "x": -13, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_left_bank_to_gentle_diag_2.png", + "x": -32, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_left_bank_to_gentle_diag_3.png", + "x": -12, + "y": -26, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_right_bank_to_gentle_diag_0.png", + "x": -32, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_right_bank_to_gentle_diag_1.png", + "x": -13, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_right_bank_to_gentle_diag_2.png", + "x": -32, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_right_bank_to_gentle_diag_3.png", + "x": -12, + "y": -26, + "palette": "keep" + }, + { + "path": "track/bm_invert/left_bank_to_gentle_left_bank_diag_0.png", + "x": -32, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/left_bank_to_gentle_left_bank_diag_1.png", + "x": -8, + "y": -11, + "palette": "keep" + }, + { + "path": "track/bm_invert/left_bank_to_gentle_left_bank_diag_2.png", + "x": -32, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/left_bank_to_gentle_left_bank_diag_3.png", + "x": -12, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/right_bank_to_gentle_right_bank_diag_0.png", + "x": -32, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/right_bank_to_gentle_right_bank_diag_1.png", + "x": -12, + "y": -11, + "palette": "keep" + }, + { + "path": "track/bm_invert/right_bank_to_gentle_right_bank_diag_2.png", + "x": -32, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/right_bank_to_gentle_right_bank_diag_3.png", + "x": -8, + "y": -17, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_left_bank_to_left_bank_diag_0.png", + "x": -32, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_left_bank_to_left_bank_diag_1.png", + "x": -8, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_left_bank_to_left_bank_diag_2.png", + "x": -32, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_left_bank_to_left_bank_diag_3.png", + "x": -12, + "y": -19, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_right_bank_to_right_bank_diag_0.png", + "x": -32, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_right_bank_to_right_bank_diag_1.png", + "x": -12, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_right_bank_to_right_bank_diag_2.png", + "x": -32, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_right_bank_to_right_bank_diag_3.png", + "x": -8, + "y": -19, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_left_bank_diag_0.png", + "x": -32, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_left_bank_diag_1.png", + "x": -8, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_left_bank_diag_2.png", + "x": -32, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_left_bank_diag_3.png", + "x": -12, + "y": -26, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_right_bank_diag_0.png", + "x": -32, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_right_bank_diag_1.png", + "x": -12, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_right_bank_diag_2.png", + "x": -32, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_right_bank_diag_3.png", + "x": -8, + "y": -25, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_gentle_left_bank_diag_0.png", + "x": -32, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_gentle_left_bank_diag_1.png", + "x": -12, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_gentle_left_bank_diag_2.png", + "x": -32, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_gentle_left_bank_diag_3.png", + "x": -13, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_gentle_right_bank_diag_0.png", + "x": -32, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_gentle_right_bank_diag_1.png", + "x": -12, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_gentle_right_bank_diag_2.png", + "x": -32, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/flat_to_gentle_right_bank_diag_3.png", + "x": -13, + "y": -17, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_left_bank_to_flat_diag_0.png", + "x": -32, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_left_bank_to_flat_diag_1.png", + "x": -12, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_left_bank_to_flat_diag_2.png", + "x": -32, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_left_bank_to_flat_diag_3.png", + "x": -13, + "y": -21, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_right_bank_to_flat_diag_0.png", + "x": -32, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_right_bank_to_flat_diag_1.png", + "x": -12, + "y": -12, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_right_bank_to_flat_diag_2.png", + "x": -32, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/gentle_right_bank_to_flat_diag_3.png", + "x": -13, + "y": -21, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_diag_gentle_0_0.png", + "x": -25, + "y": -19, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_diag_gentle_0_1.png", + "x": -32, + "y": -24, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_diag_gentle_0_2.png", + "x": 10, + "y": 8, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_diag_gentle_0_3.png", + "x": -17, + "y": -9, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_diag_gentle_1_0.png", + "x": -24, + "y": -11, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_diag_gentle_1_1.png", + "x": -8, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_diag_gentle_1_2.png", + "x": -24, + "y": 11, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_diag_gentle_1_3.png", + "x": -32, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_diag_gentle_2_0.png", + "x": -6, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_diag_gentle_2_1.png", + "x": 6, + "y": -4, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_diag_gentle_2_2.png", + "x": -32, + "y": -2, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_diag_gentle_2_3.png", + "x": -8, + "y": -16, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_diag_gentle_3_0.png", + "x": -31, + "y": -17, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_diag_gentle_3_1.png", + "x": -29, + "y": -10, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_diag_gentle_3_2.png", + "x": 0, + "y": -16, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_diag_gentle_3_3.png", + "x": 0, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_diag_gentle_0_0.png", + "x": -24, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_diag_gentle_0_1.png", + "x": -18, + "y": -10, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_diag_gentle_0_2.png", + "x": -13, + "y": -17, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_diag_gentle_0_3.png", + "x": -32, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_diag_gentle_1_0.png", + "x": -26, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_diag_gentle_1_1.png", + "x": -33, + "y": -4, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_diag_gentle_1_2.png", + "x": -2, + "y": -2, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_diag_gentle_1_3.png", + "x": -16, + "y": -16, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_diag_gentle_2_0.png", + "x": -24, + "y": -11, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_diag_gentle_2_1.png", + "x": -8, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_diag_gentle_2_2.png", + "x": 0, + "y": 11, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_diag_gentle_2_3.png", + "x": 0, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_diag_gentle_3_0.png", + "x": -14, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_diag_gentle_3_1.png", + "x": -3, + "y": -24, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_diag_gentle_3_2.png", + "x": -32, + "y": 8, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_diag_gentle_3_3.png", + "x": -8, + "y": -9, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_0_0.png", + "x": 0, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_0_1.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_0_2.png", + "x": -32, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_0_3.png", + "x": -32, + "y": -19, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_1_0.png", + "x": -8, + "y": 4, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_1_1.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_1_2.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_1_3.png", + "x": -8, + "y": -6, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_2_0.png", + "x": -32, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_2_1.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_2_2.png", + "x": -18, + "y": -2, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_2_3.png", + "x": -20, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_3_0.png", + "x": -15, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_3_1.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_3_2.png", + "x": -29, + "y": -4, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_3_3.png", + "x": -26, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_0_0.png", + "x": 0, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_0_1.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_0_2.png", + "x": -32, + "y": -2, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_0_3.png", + "x": -32, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_1_0.png", + "x": -24, + "y": 3, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_1_1.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_1_2.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_1_3.png", + "x": -24, + "y": -7, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_2_0.png", + "x": -32, + "y": -14, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_2_1.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_2_2.png", + "x": -10, + "y": -17, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_2_3.png", + "x": -20, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_3_0.png", + "x": -9, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_3_1.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_3_2.png", + "x": -7, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_3_3.png", + "x": -25, + "y": -18, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_0_0.png", + "x": -25, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_0_1.png", + "x": -32, + "y": -3, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_0_2.png", + "x": 3, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_0_3.png", + "x": -32, + "y": -11, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_0_4.png", + "x": -25, + "y": -21, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_1_0.png", + "x": -25, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_1_1.png", + "x": -12, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_1_2.png", + "x": -14, + "y": 1, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_1_3.png", + "x": -21, + "y": -20, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_1_4.png", + "x": -28, + "y": -21, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_2_0.png", + "x": -14, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_2_1.png", + "x": 4, + "y": -4, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_2_2.png", + "x": -30, + "y": -2, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_2_3.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_2_4.png", + "x": -29, + "y": -22, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_3_0.png", + "x": -32, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_3_1.png", + "x": -32, + "y": 2, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_3_2.png", + "x": -24, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_3_3.png", + "x": -4, + "y": 1, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_left_3_4.png", + "x": -25, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_0_0.png", + "x": -25, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_0_1.png", + "x": -4, + "y": 2, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_0_2.png", + "x": -32, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_0_3.png", + "x": -32, + "y": 1, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_0_4.png", + "x": -28, + "y": -15, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_1_0.png", + "x": -25, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_1_1.png", + "x": -32, + "y": -4, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_1_2.png", + "x": 2, + "y": -2, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_1_3.png", + "x": 0, + "y": 0, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_1_4.png", + "x": -25, + "y": -22, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_2_0.png", + "x": -32, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_2_1.png", + "x": -20, + "y": -13, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_2_2.png", + "x": -20, + "y": 2, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_2_3.png", + "x": -12, + "y": -19, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_2_4.png", + "x": -25, + "y": -21, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_3_0.png", + "x": -20, + "y": -8, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_3_1.png", + "x": 3, + "y": -3, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_3_2.png", + "x": -30, + "y": -5, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_3_3.png", + "x": 4, + "y": -11, + "palette": "keep" + }, + { + "path": "track/bm_invert/medium_quarter_helix_right_3_4.png", + "x": -16, + "y": -21, + "palette": "keep" + }, { "path": "track/looping/brake_horizontal_1.png", "x": -32, diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_0_0.png b/resources/tracks/track/bm_invert/barrel_roll_left_0_0.png new file mode 100644 index 0000000000..c534b8c44c Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_0_0.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_0_1.png b/resources/tracks/track/bm_invert/barrel_roll_left_0_1.png new file mode 100644 index 0000000000..a1f3fc6996 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_0_1.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_0_2.png b/resources/tracks/track/bm_invert/barrel_roll_left_0_2.png new file mode 100644 index 0000000000..6f6cb3148f Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_0_2.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_0_3.png b/resources/tracks/track/bm_invert/barrel_roll_left_0_3.png new file mode 100644 index 0000000000..551d44ad48 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_0_3.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_0_4.png b/resources/tracks/track/bm_invert/barrel_roll_left_0_4.png new file mode 100644 index 0000000000..bea5a31193 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_0_4.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_0_5.png b/resources/tracks/track/bm_invert/barrel_roll_left_0_5.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_0_5.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_1_0.png b/resources/tracks/track/bm_invert/barrel_roll_left_1_0.png new file mode 100644 index 0000000000..cfffa0036b Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_1_0.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_1_1.png b/resources/tracks/track/bm_invert/barrel_roll_left_1_1.png new file mode 100644 index 0000000000..944b1a8966 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_1_1.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_1_2.png b/resources/tracks/track/bm_invert/barrel_roll_left_1_2.png new file mode 100644 index 0000000000..de18047124 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_1_2.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_1_3.png b/resources/tracks/track/bm_invert/barrel_roll_left_1_3.png new file mode 100644 index 0000000000..83ddce1081 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_1_3.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_1_4.png b/resources/tracks/track/bm_invert/barrel_roll_left_1_4.png new file mode 100644 index 0000000000..4b2a9bb2be Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_1_4.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_1_5.png b/resources/tracks/track/bm_invert/barrel_roll_left_1_5.png new file mode 100644 index 0000000000..0ecc42d18a Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_1_5.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_2_0.png b/resources/tracks/track/bm_invert/barrel_roll_left_2_0.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_2_0.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_2_1.png b/resources/tracks/track/bm_invert/barrel_roll_left_2_1.png new file mode 100644 index 0000000000..3bee8cc0f6 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_2_1.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_2_2.png b/resources/tracks/track/bm_invert/barrel_roll_left_2_2.png new file mode 100644 index 0000000000..449f38e562 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_2_2.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_2_3.png b/resources/tracks/track/bm_invert/barrel_roll_left_2_3.png new file mode 100644 index 0000000000..f097dba924 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_2_3.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_2_4.png b/resources/tracks/track/bm_invert/barrel_roll_left_2_4.png new file mode 100644 index 0000000000..f7b05a81a8 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_2_4.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_2_5.png b/resources/tracks/track/bm_invert/barrel_roll_left_2_5.png new file mode 100644 index 0000000000..5a6d1be51d Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_2_5.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_3_0.png b/resources/tracks/track/bm_invert/barrel_roll_left_3_0.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_3_0.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_3_1.png b/resources/tracks/track/bm_invert/barrel_roll_left_3_1.png new file mode 100644 index 0000000000..51db5ef447 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_3_1.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_3_2.png b/resources/tracks/track/bm_invert/barrel_roll_left_3_2.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_3_2.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_3_3.png b/resources/tracks/track/bm_invert/barrel_roll_left_3_3.png new file mode 100644 index 0000000000..b7ea5e1f2f Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_3_3.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_3_4.png b/resources/tracks/track/bm_invert/barrel_roll_left_3_4.png new file mode 100644 index 0000000000..cd32c3ea75 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_3_4.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_left_3_5.png b/resources/tracks/track/bm_invert/barrel_roll_left_3_5.png new file mode 100644 index 0000000000..cbb0894851 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_left_3_5.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_0_0.png b/resources/tracks/track/bm_invert/barrel_roll_right_0_0.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_0_0.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_0_1.png b/resources/tracks/track/bm_invert/barrel_roll_right_0_1.png new file mode 100644 index 0000000000..8d42afc440 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_0_1.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_0_2.png b/resources/tracks/track/bm_invert/barrel_roll_right_0_2.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_0_2.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_0_3.png b/resources/tracks/track/bm_invert/barrel_roll_right_0_3.png new file mode 100644 index 0000000000..d8638fc000 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_0_3.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_0_4.png b/resources/tracks/track/bm_invert/barrel_roll_right_0_4.png new file mode 100644 index 0000000000..d20fae0d12 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_0_4.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_0_5.png b/resources/tracks/track/bm_invert/barrel_roll_right_0_5.png new file mode 100644 index 0000000000..5677a93cce Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_0_5.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_1_0.png b/resources/tracks/track/bm_invert/barrel_roll_right_1_0.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_1_0.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_1_1.png b/resources/tracks/track/bm_invert/barrel_roll_right_1_1.png new file mode 100644 index 0000000000..1b86985d78 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_1_1.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_1_2.png b/resources/tracks/track/bm_invert/barrel_roll_right_1_2.png new file mode 100644 index 0000000000..e2e2b113bb Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_1_2.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_1_3.png b/resources/tracks/track/bm_invert/barrel_roll_right_1_3.png new file mode 100644 index 0000000000..8368eeebac Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_1_3.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_1_4.png b/resources/tracks/track/bm_invert/barrel_roll_right_1_4.png new file mode 100644 index 0000000000..734d792536 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_1_4.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_1_5.png b/resources/tracks/track/bm_invert/barrel_roll_right_1_5.png new file mode 100644 index 0000000000..d2f2e94fdf Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_1_5.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_2_0.png b/resources/tracks/track/bm_invert/barrel_roll_right_2_0.png new file mode 100644 index 0000000000..ccd92fad06 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_2_0.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_2_1.png b/resources/tracks/track/bm_invert/barrel_roll_right_2_1.png new file mode 100644 index 0000000000..de82838d57 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_2_1.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_2_2.png b/resources/tracks/track/bm_invert/barrel_roll_right_2_2.png new file mode 100644 index 0000000000..cc8d05d22f Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_2_2.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_2_3.png b/resources/tracks/track/bm_invert/barrel_roll_right_2_3.png new file mode 100644 index 0000000000..807871e696 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_2_3.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_2_4.png b/resources/tracks/track/bm_invert/barrel_roll_right_2_4.png new file mode 100644 index 0000000000..9af0dabf40 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_2_4.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_2_5.png b/resources/tracks/track/bm_invert/barrel_roll_right_2_5.png new file mode 100644 index 0000000000..dba706e7fe Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_2_5.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_3_0.png b/resources/tracks/track/bm_invert/barrel_roll_right_3_0.png new file mode 100644 index 0000000000..5560d07428 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_3_0.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_3_1.png b/resources/tracks/track/bm_invert/barrel_roll_right_3_1.png new file mode 100644 index 0000000000..58c6ca5b48 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_3_1.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_3_2.png b/resources/tracks/track/bm_invert/barrel_roll_right_3_2.png new file mode 100644 index 0000000000..68b562ec06 Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_3_2.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_3_3.png b/resources/tracks/track/bm_invert/barrel_roll_right_3_3.png new file mode 100644 index 0000000000..0ceaa8890d Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_3_3.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_3_4.png b/resources/tracks/track/bm_invert/barrel_roll_right_3_4.png new file mode 100644 index 0000000000..199b48f76d Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_3_4.png differ diff --git a/resources/tracks/track/bm_invert/barrel_roll_right_3_5.png b/resources/tracks/track/bm_invert/barrel_roll_right_3_5.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/barrel_roll_right_3_5.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_left_0_0.png b/resources/tracks/track/bm_invert/dive_loop_45_left_0_0.png new file mode 100644 index 0000000000..f4f71cb688 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_left_0_0.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_left_0_1.png b/resources/tracks/track/bm_invert/dive_loop_45_left_0_1.png new file mode 100644 index 0000000000..5fdaf3dfff Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_left_0_1.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_left_0_2.png b/resources/tracks/track/bm_invert/dive_loop_45_left_0_2.png new file mode 100644 index 0000000000..e6d53e4cd6 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_left_0_2.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_left_0_3.png b/resources/tracks/track/bm_invert/dive_loop_45_left_0_3.png new file mode 100644 index 0000000000..fc2b415b96 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_left_0_3.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_left_1_0.png b/resources/tracks/track/bm_invert/dive_loop_45_left_1_0.png new file mode 100644 index 0000000000..9636c18b41 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_left_1_0.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_left_1_1.png b/resources/tracks/track/bm_invert/dive_loop_45_left_1_1.png new file mode 100644 index 0000000000..944db73fb4 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_left_1_1.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_left_1_2.png b/resources/tracks/track/bm_invert/dive_loop_45_left_1_2.png new file mode 100644 index 0000000000..42e9aa4e57 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_left_1_2.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_left_1_3.png b/resources/tracks/track/bm_invert/dive_loop_45_left_1_3.png new file mode 100644 index 0000000000..9c469c0553 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_left_1_3.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_left_2_0.png b/resources/tracks/track/bm_invert/dive_loop_45_left_2_0.png new file mode 100644 index 0000000000..6fbe58dc89 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_left_2_0.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_left_2_1.png b/resources/tracks/track/bm_invert/dive_loop_45_left_2_1.png new file mode 100644 index 0000000000..9ee407544a Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_left_2_1.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_left_2_2.png b/resources/tracks/track/bm_invert/dive_loop_45_left_2_2.png new file mode 100644 index 0000000000..b0ae100700 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_left_2_2.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_left_2_3.png b/resources/tracks/track/bm_invert/dive_loop_45_left_2_3.png new file mode 100644 index 0000000000..d17afdca26 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_left_2_3.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_left_3_0.png b/resources/tracks/track/bm_invert/dive_loop_45_left_3_0.png new file mode 100644 index 0000000000..2fbdf23e02 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_left_3_0.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_left_3_1.png b/resources/tracks/track/bm_invert/dive_loop_45_left_3_1.png new file mode 100644 index 0000000000..75ea4e7dc2 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_left_3_1.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_left_3_2.png b/resources/tracks/track/bm_invert/dive_loop_45_left_3_2.png new file mode 100644 index 0000000000..425a5438cb Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_left_3_2.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_left_3_3.png b/resources/tracks/track/bm_invert/dive_loop_45_left_3_3.png new file mode 100644 index 0000000000..a5a3e8a996 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_left_3_3.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_right_0_0.png b/resources/tracks/track/bm_invert/dive_loop_45_right_0_0.png new file mode 100644 index 0000000000..cbbd05485b Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_right_0_0.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_right_0_1.png b/resources/tracks/track/bm_invert/dive_loop_45_right_0_1.png new file mode 100644 index 0000000000..66e7c761be Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_right_0_1.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_right_0_2.png b/resources/tracks/track/bm_invert/dive_loop_45_right_0_2.png new file mode 100644 index 0000000000..4d9fa28d40 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_right_0_2.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_right_0_3.png b/resources/tracks/track/bm_invert/dive_loop_45_right_0_3.png new file mode 100644 index 0000000000..efa65c647b Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_right_0_3.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_right_1_0.png b/resources/tracks/track/bm_invert/dive_loop_45_right_1_0.png new file mode 100644 index 0000000000..6643629fa1 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_right_1_0.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_right_1_1.png b/resources/tracks/track/bm_invert/dive_loop_45_right_1_1.png new file mode 100644 index 0000000000..b9710e3f39 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_right_1_1.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_right_1_2.png b/resources/tracks/track/bm_invert/dive_loop_45_right_1_2.png new file mode 100644 index 0000000000..c792daf55c Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_right_1_2.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_right_1_3.png b/resources/tracks/track/bm_invert/dive_loop_45_right_1_3.png new file mode 100644 index 0000000000..83423f3cf4 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_right_1_3.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_right_2_0.png b/resources/tracks/track/bm_invert/dive_loop_45_right_2_0.png new file mode 100644 index 0000000000..d2916e4e62 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_right_2_0.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_right_2_1.png b/resources/tracks/track/bm_invert/dive_loop_45_right_2_1.png new file mode 100644 index 0000000000..7fe1c007df Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_right_2_1.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_right_2_2.png b/resources/tracks/track/bm_invert/dive_loop_45_right_2_2.png new file mode 100644 index 0000000000..13fbb52be2 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_right_2_2.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_right_2_3.png b/resources/tracks/track/bm_invert/dive_loop_45_right_2_3.png new file mode 100644 index 0000000000..e1c8b546d9 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_right_2_3.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_right_3_0.png b/resources/tracks/track/bm_invert/dive_loop_45_right_3_0.png new file mode 100644 index 0000000000..5c6d16ae6c Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_right_3_0.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_right_3_1.png b/resources/tracks/track/bm_invert/dive_loop_45_right_3_1.png new file mode 100644 index 0000000000..6d4454b8bf Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_right_3_1.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_right_3_2.png b/resources/tracks/track/bm_invert/dive_loop_45_right_3_2.png new file mode 100644 index 0000000000..d61bb591c0 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_right_3_2.png differ diff --git a/resources/tracks/track/bm_invert/dive_loop_45_right_3_3.png b/resources/tracks/track/bm_invert/dive_loop_45_right_3_3.png new file mode 100644 index 0000000000..6c8638d750 Binary files /dev/null and b/resources/tracks/track/bm_invert/dive_loop_45_right_3_3.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_gentle_left_bank_diag_0.png b/resources/tracks/track/bm_invert/flat_to_gentle_left_bank_diag_0.png new file mode 100644 index 0000000000..51b9f039b8 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_gentle_left_bank_diag_0.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_gentle_left_bank_diag_1.png b/resources/tracks/track/bm_invert/flat_to_gentle_left_bank_diag_1.png new file mode 100644 index 0000000000..61558b34e7 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_gentle_left_bank_diag_1.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_gentle_left_bank_diag_2.png b/resources/tracks/track/bm_invert/flat_to_gentle_left_bank_diag_2.png new file mode 100644 index 0000000000..0ece3efb04 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_gentle_left_bank_diag_2.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_gentle_left_bank_diag_3.png b/resources/tracks/track/bm_invert/flat_to_gentle_left_bank_diag_3.png new file mode 100644 index 0000000000..5d28fefb05 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_gentle_left_bank_diag_3.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_gentle_right_bank_diag_0.png b/resources/tracks/track/bm_invert/flat_to_gentle_right_bank_diag_0.png new file mode 100644 index 0000000000..276158381e Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_gentle_right_bank_diag_0.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_gentle_right_bank_diag_1.png b/resources/tracks/track/bm_invert/flat_to_gentle_right_bank_diag_1.png new file mode 100644 index 0000000000..e544b3938e Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_gentle_right_bank_diag_1.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_gentle_right_bank_diag_2.png b/resources/tracks/track/bm_invert/flat_to_gentle_right_bank_diag_2.png new file mode 100644 index 0000000000..5f69a70a8a Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_gentle_right_bank_diag_2.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_gentle_right_bank_diag_3.png b/resources/tracks/track/bm_invert/flat_to_gentle_right_bank_diag_3.png new file mode 100644 index 0000000000..d99342663f Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_gentle_right_bank_diag_3.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_0_0.png b/resources/tracks/track/bm_invert/flat_to_steep_0_0.png new file mode 100644 index 0000000000..a9e04e0139 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_0_0.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_0_1.png b/resources/tracks/track/bm_invert/flat_to_steep_0_1.png new file mode 100644 index 0000000000..2525fb79e9 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_0_1.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_0_2.png b/resources/tracks/track/bm_invert/flat_to_steep_0_2.png new file mode 100644 index 0000000000..32edb50c30 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_0_2.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_0_3.png b/resources/tracks/track/bm_invert/flat_to_steep_0_3.png new file mode 100644 index 0000000000..c6a579f822 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_0_3.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_1_0.png b/resources/tracks/track/bm_invert/flat_to_steep_1_0.png new file mode 100644 index 0000000000..e9433a776b Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_1_0.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_1_1.png b/resources/tracks/track/bm_invert/flat_to_steep_1_1.png new file mode 100644 index 0000000000..e37981f1f6 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_1_1.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_1_2.png b/resources/tracks/track/bm_invert/flat_to_steep_1_2.png new file mode 100644 index 0000000000..5abba221db Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_1_2.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_1_3.png b/resources/tracks/track/bm_invert/flat_to_steep_1_3.png new file mode 100644 index 0000000000..c5df6e201b Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_1_3.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_2_0.png b/resources/tracks/track/bm_invert/flat_to_steep_2_0.png new file mode 100644 index 0000000000..aa581426ee Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_2_0.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_2_1.png b/resources/tracks/track/bm_invert/flat_to_steep_2_1.png new file mode 100644 index 0000000000..35cb8e3742 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_2_1.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_2_2.png b/resources/tracks/track/bm_invert/flat_to_steep_2_2.png new file mode 100644 index 0000000000..20f9ac3d10 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_2_2.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_2_3.png b/resources/tracks/track/bm_invert/flat_to_steep_2_3.png new file mode 100644 index 0000000000..a14c2da64b Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_2_3.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_3_0.png b/resources/tracks/track/bm_invert/flat_to_steep_3_0.png new file mode 100644 index 0000000000..9719e5831f Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_3_0.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_3_1.png b/resources/tracks/track/bm_invert/flat_to_steep_3_1.png new file mode 100644 index 0000000000..9e2c5230d2 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_3_1.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_3_2.png b/resources/tracks/track/bm_invert/flat_to_steep_3_2.png new file mode 100644 index 0000000000..3808ff1756 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_3_2.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_3_3.png b/resources/tracks/track/bm_invert/flat_to_steep_3_3.png new file mode 100644 index 0000000000..c656d1d6aa Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_3_3.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_diag_0_0.png b/resources/tracks/track/bm_invert/flat_to_steep_diag_0_0.png new file mode 100644 index 0000000000..0146731cb2 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_diag_0_0.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_diag_0_1.png b/resources/tracks/track/bm_invert/flat_to_steep_diag_0_1.png new file mode 100644 index 0000000000..453c769650 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_diag_0_1.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_diag_0_2.png b/resources/tracks/track/bm_invert/flat_to_steep_diag_0_2.png new file mode 100644 index 0000000000..bd8842246d Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_diag_0_2.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_diag_1_0.png b/resources/tracks/track/bm_invert/flat_to_steep_diag_1_0.png new file mode 100644 index 0000000000..e82346ee17 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_diag_1_0.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_diag_1_1.png b/resources/tracks/track/bm_invert/flat_to_steep_diag_1_1.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_diag_1_1.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_diag_1_2.png b/resources/tracks/track/bm_invert/flat_to_steep_diag_1_2.png new file mode 100644 index 0000000000..0f3921f8ca Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_diag_1_2.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_diag_2_0.png b/resources/tracks/track/bm_invert/flat_to_steep_diag_2_0.png new file mode 100644 index 0000000000..fd44844e64 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_diag_2_0.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_diag_2_1.png b/resources/tracks/track/bm_invert/flat_to_steep_diag_2_1.png new file mode 100644 index 0000000000..bd1c571679 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_diag_2_1.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_diag_2_2.png b/resources/tracks/track/bm_invert/flat_to_steep_diag_2_2.png new file mode 100644 index 0000000000..a5e78d655d Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_diag_2_2.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_diag_3_0.png b/resources/tracks/track/bm_invert/flat_to_steep_diag_3_0.png new file mode 100644 index 0000000000..989f9f956a Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_diag_3_0.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_diag_3_1.png b/resources/tracks/track/bm_invert/flat_to_steep_diag_3_1.png new file mode 100644 index 0000000000..264e268e3c Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_diag_3_1.png differ diff --git a/resources/tracks/track/bm_invert/flat_to_steep_diag_3_2.png b/resources/tracks/track/bm_invert/flat_to_steep_diag_3_2.png new file mode 100644 index 0000000000..89f19fecf0 Binary files /dev/null and b/resources/tracks/track/bm_invert/flat_to_steep_diag_3_2.png differ diff --git a/resources/tracks/track/bm_invert/gentle_left_bank_diag_0.png b/resources/tracks/track/bm_invert/gentle_left_bank_diag_0.png new file mode 100644 index 0000000000..d5bc9d348e Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_left_bank_diag_0.png differ diff --git a/resources/tracks/track/bm_invert/gentle_left_bank_diag_1.png b/resources/tracks/track/bm_invert/gentle_left_bank_diag_1.png new file mode 100644 index 0000000000..8e0774f7c6 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_left_bank_diag_1.png differ diff --git a/resources/tracks/track/bm_invert/gentle_left_bank_diag_2.png b/resources/tracks/track/bm_invert/gentle_left_bank_diag_2.png new file mode 100644 index 0000000000..d1e0cc7149 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_left_bank_diag_2.png differ diff --git a/resources/tracks/track/bm_invert/gentle_left_bank_diag_3.png b/resources/tracks/track/bm_invert/gentle_left_bank_diag_3.png new file mode 100644 index 0000000000..2ced45059e Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_left_bank_diag_3.png differ diff --git a/resources/tracks/track/bm_invert/gentle_left_bank_to_flat_diag_0.png b/resources/tracks/track/bm_invert/gentle_left_bank_to_flat_diag_0.png new file mode 100644 index 0000000000..c4b10cb432 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_left_bank_to_flat_diag_0.png differ diff --git a/resources/tracks/track/bm_invert/gentle_left_bank_to_flat_diag_1.png b/resources/tracks/track/bm_invert/gentle_left_bank_to_flat_diag_1.png new file mode 100644 index 0000000000..d887a92ae4 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_left_bank_to_flat_diag_1.png differ diff --git a/resources/tracks/track/bm_invert/gentle_left_bank_to_flat_diag_2.png b/resources/tracks/track/bm_invert/gentle_left_bank_to_flat_diag_2.png new file mode 100644 index 0000000000..56e454de6c Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_left_bank_to_flat_diag_2.png differ diff --git a/resources/tracks/track/bm_invert/gentle_left_bank_to_flat_diag_3.png b/resources/tracks/track/bm_invert/gentle_left_bank_to_flat_diag_3.png new file mode 100644 index 0000000000..657e0e01b4 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_left_bank_to_flat_diag_3.png differ diff --git a/resources/tracks/track/bm_invert/gentle_left_bank_to_gentle_diag_0.png b/resources/tracks/track/bm_invert/gentle_left_bank_to_gentle_diag_0.png new file mode 100644 index 0000000000..a5272b8bb0 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_left_bank_to_gentle_diag_0.png differ diff --git a/resources/tracks/track/bm_invert/gentle_left_bank_to_gentle_diag_1.png b/resources/tracks/track/bm_invert/gentle_left_bank_to_gentle_diag_1.png new file mode 100644 index 0000000000..38469064d5 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_left_bank_to_gentle_diag_1.png differ diff --git a/resources/tracks/track/bm_invert/gentle_left_bank_to_gentle_diag_2.png b/resources/tracks/track/bm_invert/gentle_left_bank_to_gentle_diag_2.png new file mode 100644 index 0000000000..b33bf7773c Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_left_bank_to_gentle_diag_2.png differ diff --git a/resources/tracks/track/bm_invert/gentle_left_bank_to_gentle_diag_3.png b/resources/tracks/track/bm_invert/gentle_left_bank_to_gentle_diag_3.png new file mode 100644 index 0000000000..dc0bdf270d Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_left_bank_to_gentle_diag_3.png differ diff --git a/resources/tracks/track/bm_invert/gentle_left_bank_to_left_bank_diag_0.png b/resources/tracks/track/bm_invert/gentle_left_bank_to_left_bank_diag_0.png new file mode 100644 index 0000000000..f1e297c738 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_left_bank_to_left_bank_diag_0.png differ diff --git a/resources/tracks/track/bm_invert/gentle_left_bank_to_left_bank_diag_1.png b/resources/tracks/track/bm_invert/gentle_left_bank_to_left_bank_diag_1.png new file mode 100644 index 0000000000..d1656698a7 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_left_bank_to_left_bank_diag_1.png differ diff --git a/resources/tracks/track/bm_invert/gentle_left_bank_to_left_bank_diag_2.png b/resources/tracks/track/bm_invert/gentle_left_bank_to_left_bank_diag_2.png new file mode 100644 index 0000000000..2b589b26b1 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_left_bank_to_left_bank_diag_2.png differ diff --git a/resources/tracks/track/bm_invert/gentle_left_bank_to_left_bank_diag_3.png b/resources/tracks/track/bm_invert/gentle_left_bank_to_left_bank_diag_3.png new file mode 100644 index 0000000000..fe2cbbf2ae Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_left_bank_to_left_bank_diag_3.png differ diff --git a/resources/tracks/track/bm_invert/gentle_right_bank_diag_0.png b/resources/tracks/track/bm_invert/gentle_right_bank_diag_0.png new file mode 100644 index 0000000000..2ce2a713ef Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_right_bank_diag_0.png differ diff --git a/resources/tracks/track/bm_invert/gentle_right_bank_diag_1.png b/resources/tracks/track/bm_invert/gentle_right_bank_diag_1.png new file mode 100644 index 0000000000..14ef709a8c Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_right_bank_diag_1.png differ diff --git a/resources/tracks/track/bm_invert/gentle_right_bank_diag_2.png b/resources/tracks/track/bm_invert/gentle_right_bank_diag_2.png new file mode 100644 index 0000000000..896c068c63 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_right_bank_diag_2.png differ diff --git a/resources/tracks/track/bm_invert/gentle_right_bank_diag_3.png b/resources/tracks/track/bm_invert/gentle_right_bank_diag_3.png new file mode 100644 index 0000000000..a960d7ddf9 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_right_bank_diag_3.png differ diff --git a/resources/tracks/track/bm_invert/gentle_right_bank_to_flat_diag_0.png b/resources/tracks/track/bm_invert/gentle_right_bank_to_flat_diag_0.png new file mode 100644 index 0000000000..723429e533 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_right_bank_to_flat_diag_0.png differ diff --git a/resources/tracks/track/bm_invert/gentle_right_bank_to_flat_diag_1.png b/resources/tracks/track/bm_invert/gentle_right_bank_to_flat_diag_1.png new file mode 100644 index 0000000000..cab767f8ab Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_right_bank_to_flat_diag_1.png differ diff --git a/resources/tracks/track/bm_invert/gentle_right_bank_to_flat_diag_2.png b/resources/tracks/track/bm_invert/gentle_right_bank_to_flat_diag_2.png new file mode 100644 index 0000000000..1f7053b4e0 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_right_bank_to_flat_diag_2.png differ diff --git a/resources/tracks/track/bm_invert/gentle_right_bank_to_flat_diag_3.png b/resources/tracks/track/bm_invert/gentle_right_bank_to_flat_diag_3.png new file mode 100644 index 0000000000..c847c73db2 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_right_bank_to_flat_diag_3.png differ diff --git a/resources/tracks/track/bm_invert/gentle_right_bank_to_gentle_diag_0.png b/resources/tracks/track/bm_invert/gentle_right_bank_to_gentle_diag_0.png new file mode 100644 index 0000000000..2c2b14a714 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_right_bank_to_gentle_diag_0.png differ diff --git a/resources/tracks/track/bm_invert/gentle_right_bank_to_gentle_diag_1.png b/resources/tracks/track/bm_invert/gentle_right_bank_to_gentle_diag_1.png new file mode 100644 index 0000000000..0df9032368 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_right_bank_to_gentle_diag_1.png differ diff --git a/resources/tracks/track/bm_invert/gentle_right_bank_to_gentle_diag_2.png b/resources/tracks/track/bm_invert/gentle_right_bank_to_gentle_diag_2.png new file mode 100644 index 0000000000..07641b2c57 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_right_bank_to_gentle_diag_2.png differ diff --git a/resources/tracks/track/bm_invert/gentle_right_bank_to_gentle_diag_3.png b/resources/tracks/track/bm_invert/gentle_right_bank_to_gentle_diag_3.png new file mode 100644 index 0000000000..d8924459b6 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_right_bank_to_gentle_diag_3.png differ diff --git a/resources/tracks/track/bm_invert/gentle_right_bank_to_right_bank_diag_0.png b/resources/tracks/track/bm_invert/gentle_right_bank_to_right_bank_diag_0.png new file mode 100644 index 0000000000..d16f1f0a4f Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_right_bank_to_right_bank_diag_0.png differ diff --git a/resources/tracks/track/bm_invert/gentle_right_bank_to_right_bank_diag_1.png b/resources/tracks/track/bm_invert/gentle_right_bank_to_right_bank_diag_1.png new file mode 100644 index 0000000000..758993633d Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_right_bank_to_right_bank_diag_1.png differ diff --git a/resources/tracks/track/bm_invert/gentle_right_bank_to_right_bank_diag_2.png b/resources/tracks/track/bm_invert/gentle_right_bank_to_right_bank_diag_2.png new file mode 100644 index 0000000000..65c3de614d Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_right_bank_to_right_bank_diag_2.png differ diff --git a/resources/tracks/track/bm_invert/gentle_right_bank_to_right_bank_diag_3.png b/resources/tracks/track/bm_invert/gentle_right_bank_to_right_bank_diag_3.png new file mode 100644 index 0000000000..6844b5b832 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_right_bank_to_right_bank_diag_3.png differ diff --git a/resources/tracks/track/bm_invert/gentle_to_gentle_left_bank_diag_0.png b/resources/tracks/track/bm_invert/gentle_to_gentle_left_bank_diag_0.png new file mode 100644 index 0000000000..c4f4f4e662 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_to_gentle_left_bank_diag_0.png differ diff --git a/resources/tracks/track/bm_invert/gentle_to_gentle_left_bank_diag_1.png b/resources/tracks/track/bm_invert/gentle_to_gentle_left_bank_diag_1.png new file mode 100644 index 0000000000..16d1becce2 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_to_gentle_left_bank_diag_1.png differ diff --git a/resources/tracks/track/bm_invert/gentle_to_gentle_left_bank_diag_2.png b/resources/tracks/track/bm_invert/gentle_to_gentle_left_bank_diag_2.png new file mode 100644 index 0000000000..cee92cae49 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_to_gentle_left_bank_diag_2.png differ diff --git a/resources/tracks/track/bm_invert/gentle_to_gentle_left_bank_diag_3.png b/resources/tracks/track/bm_invert/gentle_to_gentle_left_bank_diag_3.png new file mode 100644 index 0000000000..7ff2134d62 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_to_gentle_left_bank_diag_3.png differ diff --git a/resources/tracks/track/bm_invert/gentle_to_gentle_right_bank_diag_0.png b/resources/tracks/track/bm_invert/gentle_to_gentle_right_bank_diag_0.png new file mode 100644 index 0000000000..90ce10be37 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_to_gentle_right_bank_diag_0.png differ diff --git a/resources/tracks/track/bm_invert/gentle_to_gentle_right_bank_diag_1.png b/resources/tracks/track/bm_invert/gentle_to_gentle_right_bank_diag_1.png new file mode 100644 index 0000000000..0b5b46810a Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_to_gentle_right_bank_diag_1.png differ diff --git a/resources/tracks/track/bm_invert/gentle_to_gentle_right_bank_diag_2.png b/resources/tracks/track/bm_invert/gentle_to_gentle_right_bank_diag_2.png new file mode 100644 index 0000000000..5c1d8315f1 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_to_gentle_right_bank_diag_2.png differ diff --git a/resources/tracks/track/bm_invert/gentle_to_gentle_right_bank_diag_3.png b/resources/tracks/track/bm_invert/gentle_to_gentle_right_bank_diag_3.png new file mode 100644 index 0000000000..4c79b09f19 Binary files /dev/null and b/resources/tracks/track/bm_invert/gentle_to_gentle_right_bank_diag_3.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_0_0.png b/resources/tracks/track/bm_invert/large_corkscrew_left_0_0.png new file mode 100644 index 0000000000..95aeb2071c Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_0_0.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_0_1.png b/resources/tracks/track/bm_invert/large_corkscrew_left_0_1.png new file mode 100644 index 0000000000..8b5b5e76cf Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_0_1.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_0_2.png b/resources/tracks/track/bm_invert/large_corkscrew_left_0_2.png new file mode 100644 index 0000000000..a7db347cc1 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_0_2.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_0_3.png b/resources/tracks/track/bm_invert/large_corkscrew_left_0_3.png new file mode 100644 index 0000000000..e97390d387 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_0_3.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_0_4.png b/resources/tracks/track/bm_invert/large_corkscrew_left_0_4.png new file mode 100644 index 0000000000..3dc6f65928 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_0_4.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_0_5.png b/resources/tracks/track/bm_invert/large_corkscrew_left_0_5.png new file mode 100644 index 0000000000..feeef32133 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_0_5.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_1_0.png b/resources/tracks/track/bm_invert/large_corkscrew_left_1_0.png new file mode 100644 index 0000000000..9f0e89324e Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_1_0.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_1_1.png b/resources/tracks/track/bm_invert/large_corkscrew_left_1_1.png new file mode 100644 index 0000000000..99a785b215 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_1_1.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_1_2.png b/resources/tracks/track/bm_invert/large_corkscrew_left_1_2.png new file mode 100644 index 0000000000..5566592580 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_1_2.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_1_3.png b/resources/tracks/track/bm_invert/large_corkscrew_left_1_3.png new file mode 100644 index 0000000000..056a97b4bb Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_1_3.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_1_4.png b/resources/tracks/track/bm_invert/large_corkscrew_left_1_4.png new file mode 100644 index 0000000000..288506376d Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_1_4.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_1_5.png b/resources/tracks/track/bm_invert/large_corkscrew_left_1_5.png new file mode 100644 index 0000000000..a227e99b9e Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_1_5.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_2_0.png b/resources/tracks/track/bm_invert/large_corkscrew_left_2_0.png new file mode 100644 index 0000000000..a22dae1b21 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_2_0.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_2_1.png b/resources/tracks/track/bm_invert/large_corkscrew_left_2_1.png new file mode 100644 index 0000000000..fbd0650483 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_2_1.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_2_2.png b/resources/tracks/track/bm_invert/large_corkscrew_left_2_2.png new file mode 100644 index 0000000000..0f3eb1e046 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_2_2.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_2_3.png b/resources/tracks/track/bm_invert/large_corkscrew_left_2_3.png new file mode 100644 index 0000000000..57ca12f8d3 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_2_3.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_2_4.png b/resources/tracks/track/bm_invert/large_corkscrew_left_2_4.png new file mode 100644 index 0000000000..60d8bc52a3 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_2_4.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_2_5.png b/resources/tracks/track/bm_invert/large_corkscrew_left_2_5.png new file mode 100644 index 0000000000..0d31152afb Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_2_5.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_3_0.png b/resources/tracks/track/bm_invert/large_corkscrew_left_3_0.png new file mode 100644 index 0000000000..b35f7a5aca Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_3_0.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_3_1.png b/resources/tracks/track/bm_invert/large_corkscrew_left_3_1.png new file mode 100644 index 0000000000..6c02744652 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_3_1.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_3_2.png b/resources/tracks/track/bm_invert/large_corkscrew_left_3_2.png new file mode 100644 index 0000000000..40cb2c73ee Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_3_2.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_3_3.png b/resources/tracks/track/bm_invert/large_corkscrew_left_3_3.png new file mode 100644 index 0000000000..41a57f6adc Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_3_3.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_left_3_4.png b/resources/tracks/track/bm_invert/large_corkscrew_left_3_4.png new file mode 100644 index 0000000000..c20633e60c Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_left_3_4.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_0_0.png b/resources/tracks/track/bm_invert/large_corkscrew_right_0_0.png new file mode 100644 index 0000000000..cd57c252c1 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_0_0.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_0_1.png b/resources/tracks/track/bm_invert/large_corkscrew_right_0_1.png new file mode 100644 index 0000000000..8475293722 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_0_1.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_0_2.png b/resources/tracks/track/bm_invert/large_corkscrew_right_0_2.png new file mode 100644 index 0000000000..934b73a825 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_0_2.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_0_3.png b/resources/tracks/track/bm_invert/large_corkscrew_right_0_3.png new file mode 100644 index 0000000000..d60e04158c Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_0_3.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_0_4.png b/resources/tracks/track/bm_invert/large_corkscrew_right_0_4.png new file mode 100644 index 0000000000..d075561e59 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_0_4.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_1_0.png b/resources/tracks/track/bm_invert/large_corkscrew_right_1_0.png new file mode 100644 index 0000000000..0d5c859753 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_1_0.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_1_1.png b/resources/tracks/track/bm_invert/large_corkscrew_right_1_1.png new file mode 100644 index 0000000000..78b089bc77 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_1_1.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_1_2.png b/resources/tracks/track/bm_invert/large_corkscrew_right_1_2.png new file mode 100644 index 0000000000..7fcc95e311 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_1_2.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_1_3.png b/resources/tracks/track/bm_invert/large_corkscrew_right_1_3.png new file mode 100644 index 0000000000..8e3d94cec0 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_1_3.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_1_4.png b/resources/tracks/track/bm_invert/large_corkscrew_right_1_4.png new file mode 100644 index 0000000000..a3d2a0ff72 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_1_4.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_1_5.png b/resources/tracks/track/bm_invert/large_corkscrew_right_1_5.png new file mode 100644 index 0000000000..aabb83a7a8 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_1_5.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_2_0.png b/resources/tracks/track/bm_invert/large_corkscrew_right_2_0.png new file mode 100644 index 0000000000..edc7bd45d6 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_2_0.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_2_1.png b/resources/tracks/track/bm_invert/large_corkscrew_right_2_1.png new file mode 100644 index 0000000000..e4d1e697ff Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_2_1.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_2_2.png b/resources/tracks/track/bm_invert/large_corkscrew_right_2_2.png new file mode 100644 index 0000000000..3e7199f49e Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_2_2.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_2_3.png b/resources/tracks/track/bm_invert/large_corkscrew_right_2_3.png new file mode 100644 index 0000000000..ed339511f5 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_2_3.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_2_4.png b/resources/tracks/track/bm_invert/large_corkscrew_right_2_4.png new file mode 100644 index 0000000000..a3aa651f36 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_2_4.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_2_5.png b/resources/tracks/track/bm_invert/large_corkscrew_right_2_5.png new file mode 100644 index 0000000000..40c0307efa Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_2_5.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_3_0.png b/resources/tracks/track/bm_invert/large_corkscrew_right_3_0.png new file mode 100644 index 0000000000..ed34abbec0 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_3_0.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_3_1.png b/resources/tracks/track/bm_invert/large_corkscrew_right_3_1.png new file mode 100644 index 0000000000..7419f18edb Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_3_1.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_3_2.png b/resources/tracks/track/bm_invert/large_corkscrew_right_3_2.png new file mode 100644 index 0000000000..d971fef685 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_3_2.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_3_3.png b/resources/tracks/track/bm_invert/large_corkscrew_right_3_3.png new file mode 100644 index 0000000000..53346fb8d0 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_3_3.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_3_4.png b/resources/tracks/track/bm_invert/large_corkscrew_right_3_4.png new file mode 100644 index 0000000000..13e3557c72 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_3_4.png differ diff --git a/resources/tracks/track/bm_invert/large_corkscrew_right_3_5.png b/resources/tracks/track/bm_invert/large_corkscrew_right_3_5.png new file mode 100644 index 0000000000..a895b3d10f Binary files /dev/null and b/resources/tracks/track/bm_invert/large_corkscrew_right_3_5.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_0_0.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_0_0.png new file mode 100644 index 0000000000..5e94e04249 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_0_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_0_1.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_0_1.png new file mode 100644 index 0000000000..df7e6ed6a7 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_0_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_0_2.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_0_2.png new file mode 100644 index 0000000000..3752496b58 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_0_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_0_3.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_0_3.png new file mode 100644 index 0000000000..cd06dc4032 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_0_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_1_0.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_1_0.png new file mode 100644 index 0000000000..eac0503c67 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_1_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_1_1.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_1_1.png new file mode 100644 index 0000000000..be31c3dbc4 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_1_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_1_2.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_1_2.png new file mode 100644 index 0000000000..3e71341ab3 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_1_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_1_3.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_1_3.png new file mode 100644 index 0000000000..1543c13fd4 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_1_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_2_0.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_2_0.png new file mode 100644 index 0000000000..e3e6014cb3 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_2_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_2_1.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_2_1.png new file mode 100644 index 0000000000..c04f2c8ab1 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_2_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_2_2.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_2_2.png new file mode 100644 index 0000000000..96b0c6a6e9 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_2_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_2_3.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_2_3.png new file mode 100644 index 0000000000..aaf5b56d21 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_2_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_3_0.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_3_0.png new file mode 100644 index 0000000000..bf3cd10170 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_3_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_3_1.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_3_1.png new file mode 100644 index 0000000000..c26dba1dc0 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_3_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_3_2.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_3_2.png new file mode 100644 index 0000000000..18e852b1ff Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_3_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_3_3.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_3_3.png new file mode 100644 index 0000000000..d03e69b5c7 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_diag_gentle_3_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_0_0.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_0_0.png new file mode 100644 index 0000000000..ed6798658e Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_0_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_0_1.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_0_1.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_0_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_0_2.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_0_2.png new file mode 100644 index 0000000000..0b3f294ffa Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_0_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_0_3.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_0_3.png new file mode 100644 index 0000000000..ceb479bdce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_0_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_1_0.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_1_0.png new file mode 100644 index 0000000000..3a0217992b Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_1_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_1_1.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_1_1.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_1_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_1_2.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_1_2.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_1_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_1_3.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_1_3.png new file mode 100644 index 0000000000..3e0aa0d7a5 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_1_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_2_0.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_2_0.png new file mode 100644 index 0000000000..c2f40dcec9 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_2_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_2_1.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_2_1.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_2_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_2_2.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_2_2.png new file mode 100644 index 0000000000..a0aa4df148 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_2_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_2_3.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_2_3.png new file mode 100644 index 0000000000..54ac0095a9 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_2_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_3_0.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_3_0.png new file mode 100644 index 0000000000..110e704fdc Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_3_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_3_1.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_3_1.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_3_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_3_2.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_3_2.png new file mode 100644 index 0000000000..184f55992b Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_3_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_3_3.png b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_3_3.png new file mode 100644 index 0000000000..d759f85e86 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_bank_to_orthogonal_gentle_3_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_0_0.png b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_0_0.png new file mode 100644 index 0000000000..cdded34199 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_0_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_0_1.png b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_0_1.png new file mode 100644 index 0000000000..785a9f33e9 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_0_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_0_2.png b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_0_2.png new file mode 100644 index 0000000000..36cb976de4 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_0_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_0_3.png b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_0_3.png new file mode 100644 index 0000000000..98359cb2f3 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_0_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_1_0.png b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_1_0.png new file mode 100644 index 0000000000..d5da689680 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_1_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_1_1.png b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_1_1.png new file mode 100644 index 0000000000..736d2fd81e Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_1_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_1_2.png b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_1_2.png new file mode 100644 index 0000000000..3bc313ffb1 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_1_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_1_3.png b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_1_3.png new file mode 100644 index 0000000000..e810d8cd84 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_1_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_2_0.png b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_2_0.png new file mode 100644 index 0000000000..5c0dba11c9 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_2_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_2_1.png b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_2_1.png new file mode 100644 index 0000000000..e9b64cadbc Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_2_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_2_2.png b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_2_2.png new file mode 100644 index 0000000000..4666aff3b5 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_2_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_2_3.png b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_2_3.png new file mode 100644 index 0000000000..ba527bc6ee Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_2_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_3_0.png b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_3_0.png new file mode 100644 index 0000000000..3ffa5c1474 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_3_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_3_1.png b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_3_1.png new file mode 100644 index 0000000000..3c9089714c Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_3_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_3_2.png b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_3_2.png new file mode 100644 index 0000000000..550fb15b97 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_3_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_3_3.png b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_3_3.png new file mode 100644 index 0000000000..50cb1611ea Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_diag_gentle_3_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_0_0.png b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_0_0.png new file mode 100644 index 0000000000..e0a0ffb156 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_0_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_0_1.png b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_0_1.png new file mode 100644 index 0000000000..fbd9078bd0 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_0_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_0_2.png b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_0_2.png new file mode 100644 index 0000000000..016a5edb29 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_0_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_0_3.png b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_0_3.png new file mode 100644 index 0000000000..6fa3d56ad6 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_0_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_1_0.png b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_1_0.png new file mode 100644 index 0000000000..b7f9405004 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_1_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_1_1.png b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_1_1.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_1_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_1_2.png b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_1_2.png new file mode 100644 index 0000000000..d2f31f83ba Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_1_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_1_3.png b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_1_3.png new file mode 100644 index 0000000000..b3214edd01 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_1_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_2_0.png b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_2_0.png new file mode 100644 index 0000000000..20e4ceff4f Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_2_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_2_1.png b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_2_1.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_2_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_2_2.png b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_2_2.png new file mode 100644 index 0000000000..ed90354dd6 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_2_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_2_3.png b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_2_3.png new file mode 100644 index 0000000000..45eecf0e57 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_2_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_3_0.png b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_3_0.png new file mode 100644 index 0000000000..794dffdfea Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_3_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_3_1.png b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_3_1.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_3_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_3_2.png b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_3_2.png new file mode 100644 index 0000000000..d2da7b3b75 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_3_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_3_3.png b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_3_3.png new file mode 100644 index 0000000000..cf24841ad7 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_left_to_orthogonal_gentle_3_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_0_0.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_0_0.png new file mode 100644 index 0000000000..c75e6f892e Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_0_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_0_1.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_0_1.png new file mode 100644 index 0000000000..91eef6e810 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_0_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_0_2.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_0_2.png new file mode 100644 index 0000000000..1fd3644d49 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_0_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_0_3.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_0_3.png new file mode 100644 index 0000000000..89137247ac Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_0_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_1_0.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_1_0.png new file mode 100644 index 0000000000..82713687f0 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_1_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_1_1.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_1_1.png new file mode 100644 index 0000000000..cd518f3280 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_1_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_1_2.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_1_2.png new file mode 100644 index 0000000000..89636d4ad5 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_1_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_1_3.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_1_3.png new file mode 100644 index 0000000000..2c97bf3705 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_1_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_2_0.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_2_0.png new file mode 100644 index 0000000000..91c5da30af Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_2_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_2_1.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_2_1.png new file mode 100644 index 0000000000..c3cd091dae Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_2_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_2_2.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_2_2.png new file mode 100644 index 0000000000..7af8fb2b9d Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_2_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_2_3.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_2_3.png new file mode 100644 index 0000000000..fb605f81d8 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_2_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_3_0.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_3_0.png new file mode 100644 index 0000000000..a9d2337b77 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_3_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_3_1.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_3_1.png new file mode 100644 index 0000000000..805cfdfce2 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_3_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_3_2.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_3_2.png new file mode 100644 index 0000000000..40a22eecce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_3_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_3_3.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_3_3.png new file mode 100644 index 0000000000..fa95f5af5d Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_diag_gentle_3_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_0_0.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_0_0.png new file mode 100644 index 0000000000..74c7c01b61 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_0_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_0_1.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_0_1.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_0_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_0_2.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_0_2.png new file mode 100644 index 0000000000..c202e44aa3 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_0_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_0_3.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_0_3.png new file mode 100644 index 0000000000..c9ea796402 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_0_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_1_0.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_1_0.png new file mode 100644 index 0000000000..c4c96e97b7 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_1_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_1_1.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_1_1.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_1_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_1_2.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_1_2.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_1_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_1_3.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_1_3.png new file mode 100644 index 0000000000..6d83444106 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_1_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_2_0.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_2_0.png new file mode 100644 index 0000000000..d99675ae85 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_2_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_2_1.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_2_1.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_2_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_2_2.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_2_2.png new file mode 100644 index 0000000000..9a20566ea0 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_2_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_2_3.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_2_3.png new file mode 100644 index 0000000000..34af8d8359 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_2_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_3_0.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_3_0.png new file mode 100644 index 0000000000..256debc79a Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_3_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_3_1.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_3_1.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_3_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_3_2.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_3_2.png new file mode 100644 index 0000000000..3844631a87 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_3_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_3_3.png b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_3_3.png new file mode 100644 index 0000000000..c3bad7f94e Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_bank_to_orthogonal_gentle_3_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_0_0.png b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_0_0.png new file mode 100644 index 0000000000..b155c768f6 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_0_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_0_1.png b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_0_1.png new file mode 100644 index 0000000000..4ed169ae12 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_0_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_0_2.png b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_0_2.png new file mode 100644 index 0000000000..8355b869c3 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_0_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_0_3.png b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_0_3.png new file mode 100644 index 0000000000..1690eb622b Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_0_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_1_0.png b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_1_0.png new file mode 100644 index 0000000000..0a4b093fff Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_1_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_1_1.png b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_1_1.png new file mode 100644 index 0000000000..cbd3056b47 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_1_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_1_2.png b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_1_2.png new file mode 100644 index 0000000000..fb38137efb Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_1_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_1_3.png b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_1_3.png new file mode 100644 index 0000000000..365fff6fa6 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_1_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_2_0.png b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_2_0.png new file mode 100644 index 0000000000..9c2f377192 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_2_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_2_1.png b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_2_1.png new file mode 100644 index 0000000000..e566e161a4 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_2_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_2_2.png b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_2_2.png new file mode 100644 index 0000000000..a5ceabedb3 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_2_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_2_3.png b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_2_3.png new file mode 100644 index 0000000000..22641a3682 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_2_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_3_0.png b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_3_0.png new file mode 100644 index 0000000000..2d325964f1 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_3_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_3_1.png b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_3_1.png new file mode 100644 index 0000000000..94a6d40c5f Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_3_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_3_2.png b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_3_2.png new file mode 100644 index 0000000000..eb7d1f318a Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_3_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_3_3.png b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_3_3.png new file mode 100644 index 0000000000..cb456628be Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_diag_gentle_3_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_0_0.png b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_0_0.png new file mode 100644 index 0000000000..c722aa61e4 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_0_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_0_1.png b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_0_1.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_0_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_0_2.png b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_0_2.png new file mode 100644 index 0000000000..0634e0ae7c Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_0_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_0_3.png b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_0_3.png new file mode 100644 index 0000000000..c5c6c4f989 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_0_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_1_0.png b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_1_0.png new file mode 100644 index 0000000000..20c436f744 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_1_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_1_1.png b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_1_1.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_1_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_1_2.png b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_1_2.png new file mode 100644 index 0000000000..f48a00e145 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_1_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_1_3.png b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_1_3.png new file mode 100644 index 0000000000..cbec7d6d2e Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_1_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_2_0.png b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_2_0.png new file mode 100644 index 0000000000..f1f2db4432 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_2_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_2_1.png b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_2_1.png new file mode 100644 index 0000000000..9d0e1ab2c6 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_2_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_2_2.png b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_2_2.png new file mode 100644 index 0000000000..4c991fd954 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_2_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_2_3.png b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_2_3.png new file mode 100644 index 0000000000..c47b03f888 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_2_3.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_3_0.png b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_3_0.png new file mode 100644 index 0000000000..915ad277dd Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_3_0.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_3_1.png b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_3_1.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_3_1.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_3_2.png b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_3_2.png new file mode 100644 index 0000000000..0ab7295869 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_3_2.png differ diff --git a/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_3_3.png b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_3_3.png new file mode 100644 index 0000000000..942c72e29c Binary files /dev/null and b/resources/tracks/track/bm_invert/large_turn_right_to_orthogonal_gentle_3_3.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_0_0.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_0_0.png new file mode 100644 index 0000000000..ba4856e491 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_0_0.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_0_1.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_0_1.png new file mode 100644 index 0000000000..e3f1425bc1 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_0_1.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_0_2.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_0_2.png new file mode 100644 index 0000000000..1ba247fa6e Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_0_2.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_0_3.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_0_3.png new file mode 100644 index 0000000000..f8604fad15 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_0_3.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_0_4.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_0_4.png new file mode 100644 index 0000000000..d91d63a572 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_0_4.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_1_0.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_1_0.png new file mode 100644 index 0000000000..def195d79c Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_1_0.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_1_1.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_1_1.png new file mode 100644 index 0000000000..93a314fc69 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_1_1.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_1_2.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_1_2.png new file mode 100644 index 0000000000..02958c60c7 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_1_2.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_1_3.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_1_3.png new file mode 100644 index 0000000000..dffade9dba Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_1_3.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_2_0.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_2_0.png new file mode 100644 index 0000000000..84f081c6b2 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_2_0.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_2_1.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_2_1.png new file mode 100644 index 0000000000..a9dc7b283b Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_2_1.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_2_2.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_2_2.png new file mode 100644 index 0000000000..b49c2e8d33 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_2_2.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_2_3.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_2_3.png new file mode 100644 index 0000000000..eeb0112aac Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_2_3.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_2_4.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_2_4.png new file mode 100644 index 0000000000..71956f8734 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_2_4.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_2_5.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_2_5.png new file mode 100644 index 0000000000..f07e54d330 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_2_5.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_3_0.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_3_0.png new file mode 100644 index 0000000000..e0a73d263a Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_3_0.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_3_1.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_3_1.png new file mode 100644 index 0000000000..ec8e6c25c3 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_3_1.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_3_2.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_3_2.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_3_2.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_3_3.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_3_3.png new file mode 100644 index 0000000000..9304d5d34a Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_3_3.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_left_3_4.png b/resources/tracks/track/bm_invert/large_zero_g_roll_left_3_4.png new file mode 100644 index 0000000000..3bf46e4bbd Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_left_3_4.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_0_0.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_0_0.png new file mode 100644 index 0000000000..f3b1e42d51 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_0_0.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_0_1.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_0_1.png new file mode 100644 index 0000000000..1ab07f4a7c Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_0_1.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_0_2.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_0_2.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_0_2.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_0_3.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_0_3.png new file mode 100644 index 0000000000..1794a3c5e4 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_0_3.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_0_4.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_0_4.png new file mode 100644 index 0000000000..b7fb803586 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_0_4.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_1_0.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_1_0.png new file mode 100644 index 0000000000..1f6153e3ab Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_1_0.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_1_1.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_1_1.png new file mode 100644 index 0000000000..dc5787d6f1 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_1_1.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_1_2.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_1_2.png new file mode 100644 index 0000000000..f4adb86986 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_1_2.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_1_3.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_1_3.png new file mode 100644 index 0000000000..2deaa4477b Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_1_3.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_1_4.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_1_4.png new file mode 100644 index 0000000000..99650d1b50 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_1_4.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_1_5.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_1_5.png new file mode 100644 index 0000000000..26c695233c Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_1_5.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_2_0.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_2_0.png new file mode 100644 index 0000000000..55c3cf18f8 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_2_0.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_2_1.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_2_1.png new file mode 100644 index 0000000000..6b2da350c5 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_2_1.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_2_2.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_2_2.png new file mode 100644 index 0000000000..10ccafc67a Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_2_2.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_2_3.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_2_3.png new file mode 100644 index 0000000000..83a3d48fa4 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_2_3.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_3_0.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_3_0.png new file mode 100644 index 0000000000..ed4cefb85a Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_3_0.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_3_1.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_3_1.png new file mode 100644 index 0000000000..0928bd4191 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_3_1.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_3_2.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_3_2.png new file mode 100644 index 0000000000..b86d4b7a02 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_3_2.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_3_3.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_3_3.png new file mode 100644 index 0000000000..c3664f531a Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_3_3.png differ diff --git a/resources/tracks/track/bm_invert/large_zero_g_roll_right_3_4.png b/resources/tracks/track/bm_invert/large_zero_g_roll_right_3_4.png new file mode 100644 index 0000000000..0711ae4cf5 Binary files /dev/null and b/resources/tracks/track/bm_invert/large_zero_g_roll_right_3_4.png differ diff --git a/resources/tracks/track/bm_invert/left_bank_to_gentle_left_bank_diag_0.png b/resources/tracks/track/bm_invert/left_bank_to_gentle_left_bank_diag_0.png new file mode 100644 index 0000000000..1c3e47f75c Binary files /dev/null and b/resources/tracks/track/bm_invert/left_bank_to_gentle_left_bank_diag_0.png differ diff --git a/resources/tracks/track/bm_invert/left_bank_to_gentle_left_bank_diag_1.png b/resources/tracks/track/bm_invert/left_bank_to_gentle_left_bank_diag_1.png new file mode 100644 index 0000000000..a93b014b98 Binary files /dev/null and b/resources/tracks/track/bm_invert/left_bank_to_gentle_left_bank_diag_1.png differ diff --git a/resources/tracks/track/bm_invert/left_bank_to_gentle_left_bank_diag_2.png b/resources/tracks/track/bm_invert/left_bank_to_gentle_left_bank_diag_2.png new file mode 100644 index 0000000000..9bf549e1fa Binary files /dev/null and b/resources/tracks/track/bm_invert/left_bank_to_gentle_left_bank_diag_2.png differ diff --git a/resources/tracks/track/bm_invert/left_bank_to_gentle_left_bank_diag_3.png b/resources/tracks/track/bm_invert/left_bank_to_gentle_left_bank_diag_3.png new file mode 100644 index 0000000000..926bf8fe5d Binary files /dev/null and b/resources/tracks/track/bm_invert/left_bank_to_gentle_left_bank_diag_3.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_0_0.png b/resources/tracks/track/bm_invert/medium_half_loop_left_0_0.png new file mode 100644 index 0000000000..a16d35679a Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_0_0.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_0_1.png b/resources/tracks/track/bm_invert/medium_half_loop_left_0_1.png new file mode 100644 index 0000000000..bd76059689 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_0_1.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_0_2.png b/resources/tracks/track/bm_invert/medium_half_loop_left_0_2.png new file mode 100644 index 0000000000..f8d7ec061a Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_0_2.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_0_3.png b/resources/tracks/track/bm_invert/medium_half_loop_left_0_3.png new file mode 100644 index 0000000000..7026d87207 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_0_3.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_0_4.png b/resources/tracks/track/bm_invert/medium_half_loop_left_0_4.png new file mode 100644 index 0000000000..1fe27486e9 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_0_4.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_1_0.png b/resources/tracks/track/bm_invert/medium_half_loop_left_1_0.png new file mode 100644 index 0000000000..89d121b5f7 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_1_0.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_1_1.png b/resources/tracks/track/bm_invert/medium_half_loop_left_1_1.png new file mode 100644 index 0000000000..8a9523fc7e Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_1_1.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_1_2.png b/resources/tracks/track/bm_invert/medium_half_loop_left_1_2.png new file mode 100644 index 0000000000..d5560690f6 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_1_2.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_1_3.png b/resources/tracks/track/bm_invert/medium_half_loop_left_1_3.png new file mode 100644 index 0000000000..1934c47088 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_1_3.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_1_4.png b/resources/tracks/track/bm_invert/medium_half_loop_left_1_4.png new file mode 100644 index 0000000000..1f8e7d7fc3 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_1_4.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_2_0.png b/resources/tracks/track/bm_invert/medium_half_loop_left_2_0.png new file mode 100644 index 0000000000..69e1aa60fd Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_2_0.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_2_1.png b/resources/tracks/track/bm_invert/medium_half_loop_left_2_1.png new file mode 100644 index 0000000000..ff5ea8ef40 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_2_1.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_2_2.png b/resources/tracks/track/bm_invert/medium_half_loop_left_2_2.png new file mode 100644 index 0000000000..867196409e Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_2_2.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_2_3.png b/resources/tracks/track/bm_invert/medium_half_loop_left_2_3.png new file mode 100644 index 0000000000..484f52e8cf Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_2_3.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_2_4.png b/resources/tracks/track/bm_invert/medium_half_loop_left_2_4.png new file mode 100644 index 0000000000..d39c4e3637 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_2_4.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_3_0.png b/resources/tracks/track/bm_invert/medium_half_loop_left_3_0.png new file mode 100644 index 0000000000..2c32f92655 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_3_0.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_3_1.png b/resources/tracks/track/bm_invert/medium_half_loop_left_3_1.png new file mode 100644 index 0000000000..3422dbc62a Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_3_1.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_3_2.png b/resources/tracks/track/bm_invert/medium_half_loop_left_3_2.png new file mode 100644 index 0000000000..f8eaaa2813 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_3_2.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_3_3.png b/resources/tracks/track/bm_invert/medium_half_loop_left_3_3.png new file mode 100644 index 0000000000..e07565a343 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_3_3.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_left_3_4.png b/resources/tracks/track/bm_invert/medium_half_loop_left_3_4.png new file mode 100644 index 0000000000..0351a4acea Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_left_3_4.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_0_0.png b/resources/tracks/track/bm_invert/medium_half_loop_right_0_0.png new file mode 100644 index 0000000000..c271a507a6 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_0_0.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_0_1.png b/resources/tracks/track/bm_invert/medium_half_loop_right_0_1.png new file mode 100644 index 0000000000..e5a2a92ae9 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_0_1.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_0_2.png b/resources/tracks/track/bm_invert/medium_half_loop_right_0_2.png new file mode 100644 index 0000000000..5481a4cab1 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_0_2.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_0_3.png b/resources/tracks/track/bm_invert/medium_half_loop_right_0_3.png new file mode 100644 index 0000000000..f9775a501e Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_0_3.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_0_4.png b/resources/tracks/track/bm_invert/medium_half_loop_right_0_4.png new file mode 100644 index 0000000000..70bbb12c18 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_0_4.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_1_0.png b/resources/tracks/track/bm_invert/medium_half_loop_right_1_0.png new file mode 100644 index 0000000000..675d94c2d5 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_1_0.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_1_1.png b/resources/tracks/track/bm_invert/medium_half_loop_right_1_1.png new file mode 100644 index 0000000000..66d90e65c5 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_1_1.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_1_2.png b/resources/tracks/track/bm_invert/medium_half_loop_right_1_2.png new file mode 100644 index 0000000000..2fcb1705e2 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_1_2.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_1_3.png b/resources/tracks/track/bm_invert/medium_half_loop_right_1_3.png new file mode 100644 index 0000000000..f6604a56bb Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_1_3.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_1_4.png b/resources/tracks/track/bm_invert/medium_half_loop_right_1_4.png new file mode 100644 index 0000000000..1cd92dc33a Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_1_4.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_2_0.png b/resources/tracks/track/bm_invert/medium_half_loop_right_2_0.png new file mode 100644 index 0000000000..40ba444e89 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_2_0.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_2_1.png b/resources/tracks/track/bm_invert/medium_half_loop_right_2_1.png new file mode 100644 index 0000000000..4817ad30a0 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_2_1.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_2_2.png b/resources/tracks/track/bm_invert/medium_half_loop_right_2_2.png new file mode 100644 index 0000000000..de7b520ba8 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_2_2.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_2_3.png b/resources/tracks/track/bm_invert/medium_half_loop_right_2_3.png new file mode 100644 index 0000000000..afa46ae903 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_2_3.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_2_4.png b/resources/tracks/track/bm_invert/medium_half_loop_right_2_4.png new file mode 100644 index 0000000000..7fed0f037a Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_2_4.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_3_0.png b/resources/tracks/track/bm_invert/medium_half_loop_right_3_0.png new file mode 100644 index 0000000000..424c62e7d9 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_3_0.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_3_1.png b/resources/tracks/track/bm_invert/medium_half_loop_right_3_1.png new file mode 100644 index 0000000000..55685710da Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_3_1.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_3_2.png b/resources/tracks/track/bm_invert/medium_half_loop_right_3_2.png new file mode 100644 index 0000000000..255ea80510 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_3_2.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_3_3.png b/resources/tracks/track/bm_invert/medium_half_loop_right_3_3.png new file mode 100644 index 0000000000..58a5c9a63c Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_3_3.png differ diff --git a/resources/tracks/track/bm_invert/medium_half_loop_right_3_4.png b/resources/tracks/track/bm_invert/medium_half_loop_right_3_4.png new file mode 100644 index 0000000000..077a237fb3 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_half_loop_right_3_4.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_0_0.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_0_0.png new file mode 100644 index 0000000000..955c38a2e9 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_0_0.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_0_1.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_0_1.png new file mode 100644 index 0000000000..268b34041f Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_0_1.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_0_2.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_0_2.png new file mode 100644 index 0000000000..dbd93a5dd9 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_0_2.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_0_3.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_0_3.png new file mode 100644 index 0000000000..d8bf2725cf Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_0_3.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_0_4.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_0_4.png new file mode 100644 index 0000000000..4ec3ffd870 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_0_4.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_1_0.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_1_0.png new file mode 100644 index 0000000000..85d014e0e3 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_1_0.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_1_1.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_1_1.png new file mode 100644 index 0000000000..5c5331ce6b Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_1_1.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_1_2.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_1_2.png new file mode 100644 index 0000000000..de6c616e32 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_1_2.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_1_3.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_1_3.png new file mode 100644 index 0000000000..a5803dd7ca Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_1_3.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_1_4.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_1_4.png new file mode 100644 index 0000000000..6ff08fd713 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_1_4.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_2_0.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_2_0.png new file mode 100644 index 0000000000..c3aeea49fa Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_2_0.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_2_1.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_2_1.png new file mode 100644 index 0000000000..b554d3e796 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_2_1.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_2_2.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_2_2.png new file mode 100644 index 0000000000..0a97924303 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_2_2.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_2_3.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_2_3.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_2_3.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_2_4.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_2_4.png new file mode 100644 index 0000000000..f1e0fef050 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_2_4.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_3_0.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_3_0.png new file mode 100644 index 0000000000..ea3710f484 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_3_0.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_3_1.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_3_1.png new file mode 100644 index 0000000000..3311b87bf6 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_3_1.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_3_2.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_3_2.png new file mode 100644 index 0000000000..36d24f15fc Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_3_2.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_3_3.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_3_3.png new file mode 100644 index 0000000000..1b3d712822 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_3_3.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_left_3_4.png b/resources/tracks/track/bm_invert/medium_quarter_helix_left_3_4.png new file mode 100644 index 0000000000..0321065acb Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_left_3_4.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_0_0.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_0_0.png new file mode 100644 index 0000000000..e42413c1e2 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_0_0.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_0_1.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_0_1.png new file mode 100644 index 0000000000..3b6b06a354 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_0_1.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_0_2.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_0_2.png new file mode 100644 index 0000000000..c6d48b64d4 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_0_2.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_0_3.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_0_3.png new file mode 100644 index 0000000000..5aa0c111f3 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_0_3.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_0_4.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_0_4.png new file mode 100644 index 0000000000..a78482c0b9 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_0_4.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_1_0.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_1_0.png new file mode 100644 index 0000000000..37ac5e7284 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_1_0.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_1_1.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_1_1.png new file mode 100644 index 0000000000..f41b4f3b58 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_1_1.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_1_2.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_1_2.png new file mode 100644 index 0000000000..db6753b8df Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_1_2.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_1_3.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_1_3.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_1_3.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_1_4.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_1_4.png new file mode 100644 index 0000000000..a58f89c56c Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_1_4.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_2_0.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_2_0.png new file mode 100644 index 0000000000..9080ff604d Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_2_0.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_2_1.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_2_1.png new file mode 100644 index 0000000000..a68df51e60 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_2_1.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_2_2.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_2_2.png new file mode 100644 index 0000000000..c9ebcfd761 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_2_2.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_2_3.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_2_3.png new file mode 100644 index 0000000000..c6f540577e Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_2_3.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_2_4.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_2_4.png new file mode 100644 index 0000000000..bfb1ff1d26 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_2_4.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_3_0.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_3_0.png new file mode 100644 index 0000000000..41a07daf17 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_3_0.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_3_1.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_3_1.png new file mode 100644 index 0000000000..0957e9268f Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_3_1.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_3_2.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_3_2.png new file mode 100644 index 0000000000..23a5dad62d Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_3_2.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_3_3.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_3_3.png new file mode 100644 index 0000000000..6934080256 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_3_3.png differ diff --git a/resources/tracks/track/bm_invert/medium_quarter_helix_right_3_4.png b/resources/tracks/track/bm_invert/medium_quarter_helix_right_3_4.png new file mode 100644 index 0000000000..417befb183 Binary files /dev/null and b/resources/tracks/track/bm_invert/medium_quarter_helix_right_3_4.png differ diff --git a/resources/tracks/track/bm_invert/quarter_loop_0_0.png b/resources/tracks/track/bm_invert/quarter_loop_0_0.png new file mode 100644 index 0000000000..18add23c31 Binary files /dev/null and b/resources/tracks/track/bm_invert/quarter_loop_0_0.png differ diff --git a/resources/tracks/track/bm_invert/quarter_loop_0_1.png b/resources/tracks/track/bm_invert/quarter_loop_0_1.png new file mode 100644 index 0000000000..f6e1c63862 Binary files /dev/null and b/resources/tracks/track/bm_invert/quarter_loop_0_1.png differ diff --git a/resources/tracks/track/bm_invert/quarter_loop_0_2.png b/resources/tracks/track/bm_invert/quarter_loop_0_2.png new file mode 100644 index 0000000000..d349099371 Binary files /dev/null and b/resources/tracks/track/bm_invert/quarter_loop_0_2.png differ diff --git a/resources/tracks/track/bm_invert/quarter_loop_0_3.png b/resources/tracks/track/bm_invert/quarter_loop_0_3.png new file mode 100644 index 0000000000..0700cd0ef8 Binary files /dev/null and b/resources/tracks/track/bm_invert/quarter_loop_0_3.png differ diff --git a/resources/tracks/track/bm_invert/quarter_loop_1_0.png b/resources/tracks/track/bm_invert/quarter_loop_1_0.png new file mode 100644 index 0000000000..2ddbdf44ce Binary files /dev/null and b/resources/tracks/track/bm_invert/quarter_loop_1_0.png differ diff --git a/resources/tracks/track/bm_invert/quarter_loop_1_1.png b/resources/tracks/track/bm_invert/quarter_loop_1_1.png new file mode 100644 index 0000000000..f0f872aa11 Binary files /dev/null and b/resources/tracks/track/bm_invert/quarter_loop_1_1.png differ diff --git a/resources/tracks/track/bm_invert/quarter_loop_1_2.png b/resources/tracks/track/bm_invert/quarter_loop_1_2.png new file mode 100644 index 0000000000..6718ee8561 Binary files /dev/null and b/resources/tracks/track/bm_invert/quarter_loop_1_2.png differ diff --git a/resources/tracks/track/bm_invert/quarter_loop_2_0.png b/resources/tracks/track/bm_invert/quarter_loop_2_0.png new file mode 100644 index 0000000000..7144d1b49a Binary files /dev/null and b/resources/tracks/track/bm_invert/quarter_loop_2_0.png differ diff --git a/resources/tracks/track/bm_invert/quarter_loop_2_1.png b/resources/tracks/track/bm_invert/quarter_loop_2_1.png new file mode 100644 index 0000000000..c02e55020d Binary files /dev/null and b/resources/tracks/track/bm_invert/quarter_loop_2_1.png differ diff --git a/resources/tracks/track/bm_invert/quarter_loop_2_2.png b/resources/tracks/track/bm_invert/quarter_loop_2_2.png new file mode 100644 index 0000000000..c002f1553a Binary files /dev/null and b/resources/tracks/track/bm_invert/quarter_loop_2_2.png differ diff --git a/resources/tracks/track/bm_invert/quarter_loop_3_0.png b/resources/tracks/track/bm_invert/quarter_loop_3_0.png new file mode 100644 index 0000000000..691cad6347 Binary files /dev/null and b/resources/tracks/track/bm_invert/quarter_loop_3_0.png differ diff --git a/resources/tracks/track/bm_invert/quarter_loop_3_1.png b/resources/tracks/track/bm_invert/quarter_loop_3_1.png new file mode 100644 index 0000000000..7ff70890c1 Binary files /dev/null and b/resources/tracks/track/bm_invert/quarter_loop_3_1.png differ diff --git a/resources/tracks/track/bm_invert/quarter_loop_3_2.png b/resources/tracks/track/bm_invert/quarter_loop_3_2.png new file mode 100644 index 0000000000..0ff4d76db7 Binary files /dev/null and b/resources/tracks/track/bm_invert/quarter_loop_3_2.png differ diff --git a/resources/tracks/track/bm_invert/quarter_loop_3_3.png b/resources/tracks/track/bm_invert/quarter_loop_3_3.png new file mode 100644 index 0000000000..527132695a Binary files /dev/null and b/resources/tracks/track/bm_invert/quarter_loop_3_3.png differ diff --git a/resources/tracks/track/bm_invert/right_bank_to_gentle_right_bank_diag_0.png b/resources/tracks/track/bm_invert/right_bank_to_gentle_right_bank_diag_0.png new file mode 100644 index 0000000000..f16f6b4259 Binary files /dev/null and b/resources/tracks/track/bm_invert/right_bank_to_gentle_right_bank_diag_0.png differ diff --git a/resources/tracks/track/bm_invert/right_bank_to_gentle_right_bank_diag_1.png b/resources/tracks/track/bm_invert/right_bank_to_gentle_right_bank_diag_1.png new file mode 100644 index 0000000000..86b3522a7b Binary files /dev/null and b/resources/tracks/track/bm_invert/right_bank_to_gentle_right_bank_diag_1.png differ diff --git a/resources/tracks/track/bm_invert/right_bank_to_gentle_right_bank_diag_2.png b/resources/tracks/track/bm_invert/right_bank_to_gentle_right_bank_diag_2.png new file mode 100644 index 0000000000..130eaaf3b3 Binary files /dev/null and b/resources/tracks/track/bm_invert/right_bank_to_gentle_right_bank_diag_2.png differ diff --git a/resources/tracks/track/bm_invert/right_bank_to_gentle_right_bank_diag_3.png b/resources/tracks/track/bm_invert/right_bank_to_gentle_right_bank_diag_3.png new file mode 100644 index 0000000000..f5a6c8f5e6 Binary files /dev/null and b/resources/tracks/track/bm_invert/right_bank_to_gentle_right_bank_diag_3.png differ diff --git a/resources/tracks/track/bm_invert/small_flat_to_steep_0.png b/resources/tracks/track/bm_invert/small_flat_to_steep_0.png new file mode 100644 index 0000000000..7afdea30e1 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_flat_to_steep_0.png differ diff --git a/resources/tracks/track/bm_invert/small_flat_to_steep_1_0.png b/resources/tracks/track/bm_invert/small_flat_to_steep_1_0.png new file mode 100644 index 0000000000..f5881bfd89 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_flat_to_steep_1_0.png differ diff --git a/resources/tracks/track/bm_invert/small_flat_to_steep_1_1.png b/resources/tracks/track/bm_invert/small_flat_to_steep_1_1.png new file mode 100644 index 0000000000..595715535b Binary files /dev/null and b/resources/tracks/track/bm_invert/small_flat_to_steep_1_1.png differ diff --git a/resources/tracks/track/bm_invert/small_flat_to_steep_2_0.png b/resources/tracks/track/bm_invert/small_flat_to_steep_2_0.png new file mode 100644 index 0000000000..ba5105a3c4 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_flat_to_steep_2_0.png differ diff --git a/resources/tracks/track/bm_invert/small_flat_to_steep_2_1.png b/resources/tracks/track/bm_invert/small_flat_to_steep_2_1.png new file mode 100644 index 0000000000..88516ff8f1 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_flat_to_steep_2_1.png differ diff --git a/resources/tracks/track/bm_invert/small_flat_to_steep_3.png b/resources/tracks/track/bm_invert/small_flat_to_steep_3.png new file mode 100644 index 0000000000..e6060d1977 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_flat_to_steep_3.png differ diff --git a/resources/tracks/track/bm_invert/small_flat_to_steep_diag_0.png b/resources/tracks/track/bm_invert/small_flat_to_steep_diag_0.png new file mode 100644 index 0000000000..e9683627d1 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_flat_to_steep_diag_0.png differ diff --git a/resources/tracks/track/bm_invert/small_flat_to_steep_diag_1.png b/resources/tracks/track/bm_invert/small_flat_to_steep_diag_1.png new file mode 100644 index 0000000000..3eb959bd95 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_flat_to_steep_diag_1.png differ diff --git a/resources/tracks/track/bm_invert/small_flat_to_steep_diag_2.png b/resources/tracks/track/bm_invert/small_flat_to_steep_diag_2.png new file mode 100644 index 0000000000..12b12d0962 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_flat_to_steep_diag_2.png differ diff --git a/resources/tracks/track/bm_invert/small_flat_to_steep_diag_3.png b/resources/tracks/track/bm_invert/small_flat_to_steep_diag_3.png new file mode 100644 index 0000000000..bf58b88ffa Binary files /dev/null and b/resources/tracks/track/bm_invert/small_flat_to_steep_diag_3.png differ diff --git a/resources/tracks/track/bm_invert/small_steep_to_flat_0.png b/resources/tracks/track/bm_invert/small_steep_to_flat_0.png new file mode 100644 index 0000000000..d566c7967d Binary files /dev/null and b/resources/tracks/track/bm_invert/small_steep_to_flat_0.png differ diff --git a/resources/tracks/track/bm_invert/small_steep_to_flat_1_0.png b/resources/tracks/track/bm_invert/small_steep_to_flat_1_0.png new file mode 100644 index 0000000000..59bbe59b5d Binary files /dev/null and b/resources/tracks/track/bm_invert/small_steep_to_flat_1_0.png differ diff --git a/resources/tracks/track/bm_invert/small_steep_to_flat_1_1.png b/resources/tracks/track/bm_invert/small_steep_to_flat_1_1.png new file mode 100644 index 0000000000..0c42fd3393 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_steep_to_flat_1_1.png differ diff --git a/resources/tracks/track/bm_invert/small_steep_to_flat_2_0.png b/resources/tracks/track/bm_invert/small_steep_to_flat_2_0.png new file mode 100644 index 0000000000..c8fbb95388 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_steep_to_flat_2_0.png differ diff --git a/resources/tracks/track/bm_invert/small_steep_to_flat_2_1.png b/resources/tracks/track/bm_invert/small_steep_to_flat_2_1.png new file mode 100644 index 0000000000..82564b7c9c Binary files /dev/null and b/resources/tracks/track/bm_invert/small_steep_to_flat_2_1.png differ diff --git a/resources/tracks/track/bm_invert/small_steep_to_flat_3.png b/resources/tracks/track/bm_invert/small_steep_to_flat_3.png new file mode 100644 index 0000000000..ac01a8faa5 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_steep_to_flat_3.png differ diff --git a/resources/tracks/track/bm_invert/small_steep_to_flat_diag_0.png b/resources/tracks/track/bm_invert/small_steep_to_flat_diag_0.png new file mode 100644 index 0000000000..2bcba43667 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_steep_to_flat_diag_0.png differ diff --git a/resources/tracks/track/bm_invert/small_steep_to_flat_diag_1.png b/resources/tracks/track/bm_invert/small_steep_to_flat_diag_1.png new file mode 100644 index 0000000000..f819717664 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_steep_to_flat_diag_1.png differ diff --git a/resources/tracks/track/bm_invert/small_steep_to_flat_diag_2.png b/resources/tracks/track/bm_invert/small_steep_to_flat_diag_2.png new file mode 100644 index 0000000000..24fa8c5ca9 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_steep_to_flat_diag_2.png differ diff --git a/resources/tracks/track/bm_invert/small_steep_to_flat_diag_3.png b/resources/tracks/track/bm_invert/small_steep_to_flat_diag_3.png new file mode 100644 index 0000000000..9e03f50dad Binary files /dev/null and b/resources/tracks/track/bm_invert/small_steep_to_flat_diag_3.png differ diff --git a/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_0_0.png b/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_0_0.png new file mode 100644 index 0000000000..6043e76644 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_0_0.png differ diff --git a/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_0_1.png b/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_0_1.png new file mode 100644 index 0000000000..fb38d82799 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_0_1.png differ diff --git a/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_1_0.png b/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_1_0.png new file mode 100644 index 0000000000..b4cc287d28 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_1_0.png differ diff --git a/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_1_1.png b/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_1_1.png new file mode 100644 index 0000000000..d0ed6d5032 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_1_1.png differ diff --git a/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_2_0.png b/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_2_0.png new file mode 100644 index 0000000000..a34933f9f8 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_2_0.png differ diff --git a/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_2_1.png b/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_2_1.png new file mode 100644 index 0000000000..cd6433e56d Binary files /dev/null and b/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_2_1.png differ diff --git a/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_3_0.png b/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_3_0.png new file mode 100644 index 0000000000..2ab24ba43a Binary files /dev/null and b/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_3_0.png differ diff --git a/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_3_1.png b/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_3_1.png new file mode 100644 index 0000000000..8405ea2d7d Binary files /dev/null and b/resources/tracks/track/bm_invert/small_turn_left_bank_to_gentle_3_1.png differ diff --git a/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_0_0.png b/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_0_0.png new file mode 100644 index 0000000000..073cf7a047 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_0_0.png differ diff --git a/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_0_1.png b/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_0_1.png new file mode 100644 index 0000000000..392c002a5d Binary files /dev/null and b/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_0_1.png differ diff --git a/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_1_0.png b/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_1_0.png new file mode 100644 index 0000000000..b4efe18793 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_1_0.png differ diff --git a/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_1_1.png b/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_1_1.png new file mode 100644 index 0000000000..cb13ee76b5 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_1_1.png differ diff --git a/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_2_0.png b/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_2_0.png new file mode 100644 index 0000000000..eacae9fb6b Binary files /dev/null and b/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_2_0.png differ diff --git a/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_2_1.png b/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_2_1.png new file mode 100644 index 0000000000..1fb63d21bf Binary files /dev/null and b/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_2_1.png differ diff --git a/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_3_0.png b/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_3_0.png new file mode 100644 index 0000000000..ad0b424c69 Binary files /dev/null and b/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_3_0.png differ diff --git a/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_3_1.png b/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_3_1.png new file mode 100644 index 0000000000..db2156849a Binary files /dev/null and b/resources/tracks/track/bm_invert/small_turn_right_bank_to_gentle_3_1.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_0_0.png b/resources/tracks/track/bm_invert/steep_to_flat_0_0.png new file mode 100644 index 0000000000..8722b66799 Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_0_0.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_0_1.png b/resources/tracks/track/bm_invert/steep_to_flat_0_1.png new file mode 100644 index 0000000000..5d93bb15d4 Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_0_1.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_0_2.png b/resources/tracks/track/bm_invert/steep_to_flat_0_2.png new file mode 100644 index 0000000000..3e613475dc Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_0_2.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_0_3.png b/resources/tracks/track/bm_invert/steep_to_flat_0_3.png new file mode 100644 index 0000000000..7a1152940e Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_0_3.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_1_0.png b/resources/tracks/track/bm_invert/steep_to_flat_1_0.png new file mode 100644 index 0000000000..0cc95084a7 Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_1_0.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_1_1.png b/resources/tracks/track/bm_invert/steep_to_flat_1_1.png new file mode 100644 index 0000000000..f56fdc1d92 Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_1_1.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_1_2.png b/resources/tracks/track/bm_invert/steep_to_flat_1_2.png new file mode 100644 index 0000000000..2b6d763ae6 Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_1_2.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_1_3.png b/resources/tracks/track/bm_invert/steep_to_flat_1_3.png new file mode 100644 index 0000000000..d701cfae21 Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_1_3.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_2_0.png b/resources/tracks/track/bm_invert/steep_to_flat_2_0.png new file mode 100644 index 0000000000..c69f703463 Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_2_0.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_2_1.png b/resources/tracks/track/bm_invert/steep_to_flat_2_1.png new file mode 100644 index 0000000000..8073b6ab1b Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_2_1.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_2_2.png b/resources/tracks/track/bm_invert/steep_to_flat_2_2.png new file mode 100644 index 0000000000..c6d7856d89 Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_2_2.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_2_3.png b/resources/tracks/track/bm_invert/steep_to_flat_2_3.png new file mode 100644 index 0000000000..6042acb9bd Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_2_3.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_3_0.png b/resources/tracks/track/bm_invert/steep_to_flat_3_0.png new file mode 100644 index 0000000000..729e2242aa Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_3_0.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_3_1.png b/resources/tracks/track/bm_invert/steep_to_flat_3_1.png new file mode 100644 index 0000000000..9b38067fda Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_3_1.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_3_2.png b/resources/tracks/track/bm_invert/steep_to_flat_3_2.png new file mode 100644 index 0000000000..4f96ff938f Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_3_2.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_3_3.png b/resources/tracks/track/bm_invert/steep_to_flat_3_3.png new file mode 100644 index 0000000000..9a48b9e0c7 Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_3_3.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_diag_0_0.png b/resources/tracks/track/bm_invert/steep_to_flat_diag_0_0.png new file mode 100644 index 0000000000..37a9c4af47 Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_diag_0_0.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_diag_0_1.png b/resources/tracks/track/bm_invert/steep_to_flat_diag_0_1.png new file mode 100644 index 0000000000..8733fc7f3d Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_diag_0_1.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_diag_0_2.png b/resources/tracks/track/bm_invert/steep_to_flat_diag_0_2.png new file mode 100644 index 0000000000..c5e5a86db8 Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_diag_0_2.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_diag_1_0.png b/resources/tracks/track/bm_invert/steep_to_flat_diag_1_0.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_diag_1_0.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_diag_1_1.png b/resources/tracks/track/bm_invert/steep_to_flat_diag_1_1.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_diag_1_1.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_diag_1_2.png b/resources/tracks/track/bm_invert/steep_to_flat_diag_1_2.png new file mode 100644 index 0000000000..52e80532ab Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_diag_1_2.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_diag_2_0.png b/resources/tracks/track/bm_invert/steep_to_flat_diag_2_0.png new file mode 100644 index 0000000000..0806d5e4a9 Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_diag_2_0.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_diag_2_1.png b/resources/tracks/track/bm_invert/steep_to_flat_diag_2_1.png new file mode 100644 index 0000000000..8a50d845fa Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_diag_2_1.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_diag_2_2.png b/resources/tracks/track/bm_invert/steep_to_flat_diag_2_2.png new file mode 100644 index 0000000000..63c6b224ad Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_diag_2_2.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_diag_3_0.png b/resources/tracks/track/bm_invert/steep_to_flat_diag_3_0.png new file mode 100644 index 0000000000..480df2b012 Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_diag_3_0.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_diag_3_1.png b/resources/tracks/track/bm_invert/steep_to_flat_diag_3_1.png new file mode 100644 index 0000000000..a972b7d7fb Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_diag_3_1.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_flat_diag_3_2.png b/resources/tracks/track/bm_invert/steep_to_flat_diag_3_2.png new file mode 100644 index 0000000000..4a12653a7a Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_flat_diag_3_2.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_vertical_0.png b/resources/tracks/track/bm_invert/steep_to_vertical_0.png new file mode 100644 index 0000000000..ff5081ea9c Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_vertical_0.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_vertical_1.png b/resources/tracks/track/bm_invert/steep_to_vertical_1.png new file mode 100644 index 0000000000..2dea6dfaf3 Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_vertical_1.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_vertical_2.png b/resources/tracks/track/bm_invert/steep_to_vertical_2.png new file mode 100644 index 0000000000..49290ab24b Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_vertical_2.png differ diff --git a/resources/tracks/track/bm_invert/steep_to_vertical_3.png b/resources/tracks/track/bm_invert/steep_to_vertical_3.png new file mode 100644 index 0000000000..f619f60597 Binary files /dev/null and b/resources/tracks/track/bm_invert/steep_to_vertical_3.png differ diff --git a/resources/tracks/track/bm_invert/vertical_0.png b/resources/tracks/track/bm_invert/vertical_0.png new file mode 100644 index 0000000000..4e71778b5e Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_0.png differ diff --git a/resources/tracks/track/bm_invert/vertical_1.png b/resources/tracks/track/bm_invert/vertical_1.png new file mode 100644 index 0000000000..3b27e11ffa Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_1.png differ diff --git a/resources/tracks/track/bm_invert/vertical_2.png b/resources/tracks/track/bm_invert/vertical_2.png new file mode 100644 index 0000000000..31fb17985d Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_2.png differ diff --git a/resources/tracks/track/bm_invert/vertical_3.png b/resources/tracks/track/bm_invert/vertical_3.png new file mode 100644 index 0000000000..c0bdcf8f26 Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_3.png differ diff --git a/resources/tracks/track/bm_invert/vertical_to_steep_0.png b/resources/tracks/track/bm_invert/vertical_to_steep_0.png new file mode 100644 index 0000000000..5b41ceb4bd Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_to_steep_0.png differ diff --git a/resources/tracks/track/bm_invert/vertical_to_steep_1.png b/resources/tracks/track/bm_invert/vertical_to_steep_1.png new file mode 100644 index 0000000000..a63b9904e4 Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_to_steep_1.png differ diff --git a/resources/tracks/track/bm_invert/vertical_to_steep_2.png b/resources/tracks/track/bm_invert/vertical_to_steep_2.png new file mode 100644 index 0000000000..200f90674c Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_to_steep_2.png differ diff --git a/resources/tracks/track/bm_invert/vertical_to_steep_3.png b/resources/tracks/track/bm_invert/vertical_to_steep_3.png new file mode 100644 index 0000000000..f74a3a0a95 Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_to_steep_3.png differ diff --git a/resources/tracks/track/bm_invert/vertical_twist_left_0.png b/resources/tracks/track/bm_invert/vertical_twist_left_0.png new file mode 100644 index 0000000000..d221b00692 Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_twist_left_0.png differ diff --git a/resources/tracks/track/bm_invert/vertical_twist_left_1_0.png b/resources/tracks/track/bm_invert/vertical_twist_left_1_0.png new file mode 100644 index 0000000000..157a6d3c34 Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_twist_left_1_0.png differ diff --git a/resources/tracks/track/bm_invert/vertical_twist_left_1_1.png b/resources/tracks/track/bm_invert/vertical_twist_left_1_1.png new file mode 100644 index 0000000000..d658adc25e Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_twist_left_1_1.png differ diff --git a/resources/tracks/track/bm_invert/vertical_twist_left_2_0.png b/resources/tracks/track/bm_invert/vertical_twist_left_2_0.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_twist_left_2_0.png differ diff --git a/resources/tracks/track/bm_invert/vertical_twist_left_2_1.png b/resources/tracks/track/bm_invert/vertical_twist_left_2_1.png new file mode 100644 index 0000000000..b329188110 Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_twist_left_2_1.png differ diff --git a/resources/tracks/track/bm_invert/vertical_twist_left_3_0.png b/resources/tracks/track/bm_invert/vertical_twist_left_3_0.png new file mode 100644 index 0000000000..7f9a6faaf9 Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_twist_left_3_0.png differ diff --git a/resources/tracks/track/bm_invert/vertical_twist_left_3_1.png b/resources/tracks/track/bm_invert/vertical_twist_left_3_1.png new file mode 100644 index 0000000000..455bb0da57 Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_twist_left_3_1.png differ diff --git a/resources/tracks/track/bm_invert/vertical_twist_right_0_0.png b/resources/tracks/track/bm_invert/vertical_twist_right_0_0.png new file mode 100644 index 0000000000..157a80127e Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_twist_right_0_0.png differ diff --git a/resources/tracks/track/bm_invert/vertical_twist_right_0_1.png b/resources/tracks/track/bm_invert/vertical_twist_right_0_1.png new file mode 100644 index 0000000000..5113f9cf7b Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_twist_right_0_1.png differ diff --git a/resources/tracks/track/bm_invert/vertical_twist_right_1_0.png b/resources/tracks/track/bm_invert/vertical_twist_right_1_0.png new file mode 100644 index 0000000000..227d6b97ce Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_twist_right_1_0.png differ diff --git a/resources/tracks/track/bm_invert/vertical_twist_right_1_1.png b/resources/tracks/track/bm_invert/vertical_twist_right_1_1.png new file mode 100644 index 0000000000..b5860dcd1e Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_twist_right_1_1.png differ diff --git a/resources/tracks/track/bm_invert/vertical_twist_right_2_0.png b/resources/tracks/track/bm_invert/vertical_twist_right_2_0.png new file mode 100644 index 0000000000..50bcc1d452 Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_twist_right_2_0.png differ diff --git a/resources/tracks/track/bm_invert/vertical_twist_right_2_1.png b/resources/tracks/track/bm_invert/vertical_twist_right_2_1.png new file mode 100644 index 0000000000..a798428b31 Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_twist_right_2_1.png differ diff --git a/resources/tracks/track/bm_invert/vertical_twist_right_3.png b/resources/tracks/track/bm_invert/vertical_twist_right_3.png new file mode 100644 index 0000000000..390e223ee3 Binary files /dev/null and b/resources/tracks/track/bm_invert/vertical_twist_right_3.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_left_0_0.png b/resources/tracks/track/bm_invert/zero_g_roll_left_0_0.png new file mode 100644 index 0000000000..50dc49ce9c Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_left_0_0.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_left_0_1.png b/resources/tracks/track/bm_invert/zero_g_roll_left_0_1.png new file mode 100644 index 0000000000..a961457124 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_left_0_1.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_left_0_2.png b/resources/tracks/track/bm_invert/zero_g_roll_left_0_2.png new file mode 100644 index 0000000000..5fcc0f64dd Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_left_0_2.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_left_0_3.png b/resources/tracks/track/bm_invert/zero_g_roll_left_0_3.png new file mode 100644 index 0000000000..724ab8f4d6 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_left_0_3.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_left_1_0.png b/resources/tracks/track/bm_invert/zero_g_roll_left_1_0.png new file mode 100644 index 0000000000..017a913b71 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_left_1_0.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_left_1_1.png b/resources/tracks/track/bm_invert/zero_g_roll_left_1_1.png new file mode 100644 index 0000000000..e10d64910b Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_left_1_1.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_left_1_2.png b/resources/tracks/track/bm_invert/zero_g_roll_left_1_2.png new file mode 100644 index 0000000000..0bc1bf7e02 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_left_1_2.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_left_1_3.png b/resources/tracks/track/bm_invert/zero_g_roll_left_1_3.png new file mode 100644 index 0000000000..9dde046cdf Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_left_1_3.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_left_2_0.png b/resources/tracks/track/bm_invert/zero_g_roll_left_2_0.png new file mode 100644 index 0000000000..d41e6aee0d Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_left_2_0.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_left_2_1.png b/resources/tracks/track/bm_invert/zero_g_roll_left_2_1.png new file mode 100644 index 0000000000..22adb24dd6 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_left_2_1.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_left_2_2.png b/resources/tracks/track/bm_invert/zero_g_roll_left_2_2.png new file mode 100644 index 0000000000..3f11e55f80 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_left_2_2.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_left_2_3.png b/resources/tracks/track/bm_invert/zero_g_roll_left_2_3.png new file mode 100644 index 0000000000..82819bb194 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_left_2_3.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_left_3_0.png b/resources/tracks/track/bm_invert/zero_g_roll_left_3_0.png new file mode 100644 index 0000000000..f5b6191b22 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_left_3_0.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_left_3_1.png b/resources/tracks/track/bm_invert/zero_g_roll_left_3_1.png new file mode 100644 index 0000000000..c06f554ebe Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_left_3_1.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_left_3_2.png b/resources/tracks/track/bm_invert/zero_g_roll_left_3_2.png new file mode 100644 index 0000000000..3e6cd1d03e Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_left_3_2.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_left_3_3.png b/resources/tracks/track/bm_invert/zero_g_roll_left_3_3.png new file mode 100644 index 0000000000..e8138b4c2c Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_left_3_3.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_right_0_0.png b/resources/tracks/track/bm_invert/zero_g_roll_right_0_0.png new file mode 100644 index 0000000000..408e490823 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_right_0_0.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_right_0_1.png b/resources/tracks/track/bm_invert/zero_g_roll_right_0_1.png new file mode 100644 index 0000000000..71f97743e8 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_right_0_1.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_right_0_2.png b/resources/tracks/track/bm_invert/zero_g_roll_right_0_2.png new file mode 100644 index 0000000000..63f51f1631 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_right_0_2.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_right_0_3.png b/resources/tracks/track/bm_invert/zero_g_roll_right_0_3.png new file mode 100644 index 0000000000..bcf0f5599d Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_right_0_3.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_right_1_0.png b/resources/tracks/track/bm_invert/zero_g_roll_right_1_0.png new file mode 100644 index 0000000000..eed6da4117 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_right_1_0.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_right_1_1.png b/resources/tracks/track/bm_invert/zero_g_roll_right_1_1.png new file mode 100644 index 0000000000..3c3f697891 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_right_1_1.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_right_1_2.png b/resources/tracks/track/bm_invert/zero_g_roll_right_1_2.png new file mode 100644 index 0000000000..a354865b61 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_right_1_2.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_right_1_3.png b/resources/tracks/track/bm_invert/zero_g_roll_right_1_3.png new file mode 100644 index 0000000000..02c783d2a2 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_right_1_3.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_right_2_0.png b/resources/tracks/track/bm_invert/zero_g_roll_right_2_0.png new file mode 100644 index 0000000000..bba644dbc5 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_right_2_0.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_right_2_1.png b/resources/tracks/track/bm_invert/zero_g_roll_right_2_1.png new file mode 100644 index 0000000000..4ab69a4376 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_right_2_1.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_right_2_2.png b/resources/tracks/track/bm_invert/zero_g_roll_right_2_2.png new file mode 100644 index 0000000000..d3ad819bbf Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_right_2_2.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_right_2_3.png b/resources/tracks/track/bm_invert/zero_g_roll_right_2_3.png new file mode 100644 index 0000000000..967f97071e Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_right_2_3.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_right_3_0.png b/resources/tracks/track/bm_invert/zero_g_roll_right_3_0.png new file mode 100644 index 0000000000..ff6d4320fb Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_right_3_0.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_right_3_1.png b/resources/tracks/track/bm_invert/zero_g_roll_right_3_1.png new file mode 100644 index 0000000000..3cfb407da5 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_right_3_1.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_right_3_2.png b/resources/tracks/track/bm_invert/zero_g_roll_right_3_2.png new file mode 100644 index 0000000000..97f2382772 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_right_3_2.png differ diff --git a/resources/tracks/track/bm_invert/zero_g_roll_right_3_3.png b/resources/tracks/track/bm_invert/zero_g_roll_right_3_3.png new file mode 100644 index 0000000000..f115c6e794 Binary files /dev/null and b/resources/tracks/track/bm_invert/zero_g_roll_right_3_3.png differ diff --git a/src/openrct2/SpriteIds.h b/src/openrct2/SpriteIds.h index 50e48d007d..29386591a0 100644 --- a/src/openrct2/SpriteIds.h +++ b/src/openrct2/SpriteIds.h @@ -1803,7 +1803,24 @@ enum : ImageIndex SPR_TRACKS_BM_INVERT_BOOSTER_1 = SPR_TRACKS_BM_INVERT_RC_BEGIN, SPR_TRACKS_BM_INVERT_BOOSTER_2, SPR_TRACKS_BM_INVERT_DIAG_BRAKES, - SPR_TRACKS_BM_INVERT_RC_END = SPR_TRACKS_BM_INVERT_DIAG_BRAKES + 2, + SPR_TRACKS_BM_INVERT_BARREL_ROLL = SPR_TRACKS_BM_INVERT_DIAG_BRAKES + 2, + SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW = SPR_TRACKS_BM_INVERT_BARREL_ROLL + 48, + SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP = SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 46, + SPR_TRACKS_BM_INVERT_ZERO_G_ROLL = SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 40, + SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL = SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 32, + SPR_TRACKS_BM_INVERT_DIVE_LOOP = SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 40, + SPR_TRACKS_BM_INVERT_VERTICAL = SPR_TRACKS_BM_INVERT_DIVE_LOOP + 32, + SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP = SPR_TRACKS_BM_INVERT_VERTICAL + 26, + SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL = SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 32, + SPR_TRACKS_BM_INVERT_QUARTER_LOOP = SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 24, + SPR_TRACKS_BM_INVERT_TURN_BANK_TRANSITION = SPR_TRACKS_BM_INVERT_QUARTER_LOOP + 14, + SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP = SPR_TRACKS_BM_INVERT_TURN_BANK_TRANSITION + 16, + SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE = SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 20, + SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING = SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 64, + SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED = SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 56, + SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT = SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 64, + SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT = SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 20, + SPR_TRACKS_BM_INVERT_RC_END = SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 20, SPR_TRACKS_LOOPING_RC_BEGIN = SPR_TRACKS_BM_INVERT_RC_END, SPR_TRACKS_LOOPING_DIAG_BRAKES = SPR_TRACKS_LOOPING_RC_BEGIN, diff --git a/src/openrct2/paint/track/coaster/InvertedRollerCoaster.cpp b/src/openrct2/paint/track/coaster/InvertedRollerCoaster.cpp index cee0327680..da9e7db78b 100644 --- a/src/openrct2/paint/track/coaster/InvertedRollerCoaster.cpp +++ b/src/openrct2/paint/track/coaster/InvertedRollerCoaster.cpp @@ -21,6 +21,7 @@ using namespace OpenRCT2; static constexpr TunnelGroup kTunnelGroup = TunnelGroup::Inverted; +static constexpr uint8_t kInvertedSpriteOffset = 29; static constexpr uint8_t kSupportHeight = 44; static constexpr ImageIndex kInvertedRCDiagFlatImages[2][kNumOrthogonalDirections] = { @@ -11300,8 +11301,8 @@ static void InvertedRCTrackBooster( { const auto imageId = (direction & 1) ? SPR_TRACKS_BM_INVERT_BOOSTER_2 : SPR_TRACKS_BM_INVERT_BOOSTER_1; PaintAddImageAsParentRotated( - session, direction, session.TrackColours.WithIndex(imageId), { 0, 0, height + 29 }, - { { 0, 6, height + 29 }, { 32, 20, 1 } }); + session, direction, session.TrackColours.WithIndex(imageId), { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 1 } }); PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) @@ -11314,6 +11315,8224 @@ static void InvertedRCTrackBooster( PaintUtilSetGeneralSupportHeight(session, height + 48); } +// inversions +static void InvertedRCTrackLeftEighthDiveLoopUpToOrthogonal( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, + PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 4)), + { -16, -16, height + kInvertedSpriteOffset }, { { 0, 0, height + 103 }, { 16, 30, 1 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 12)), + { -16, -16, height + kInvertedSpriteOffset }, { { 0, 0, height + 88 }, { 10, 10, 1 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 112); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 0)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 93 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 136); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + 92, session.SupportColours); + break; + case 1: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomLeftSide, 0, height + 109, session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 8)), + { -16, -16, height + kInvertedSpriteOffset }, { { 1, 30, height + 0 }, { 1, 32, 32 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + 92, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + 92, session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 144); + break; + case 3: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 1)), + { -16, -16, height + kInvertedSpriteOffset }, { { 0, -1, height + 33 }, { 32, 1, 64 } }); + + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 5)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -8, -8, height + kInvertedSpriteOffset }, { 3, 3, 15 } }); + + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 9)), + { -16, -16, height + kInvertedSpriteOffset }, { { 4, 4, height + 100 }, { 28, 28, 1 } }); + + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 13)), + { -16, -16, height + kInvertedSpriteOffset }, { { 20, 2, height + 100 }, { 28, 28, 1 } }); + + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + 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); + break; + case 4: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 2)), + { -16, -16, height + kInvertedSpriteOffset }, { { 0, 1, height + 0 }, { 1, 32, 64 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 6)), + { -16, -16, height + kInvertedSpriteOffset }, { { 0, 1, height + 0 }, { 32, 1, 64 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 10)), + { -16, -16, height + kInvertedSpriteOffset }, { { 30, 30, height + 0 }, { 8, 8, 64 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 14)), + { -16, -16, height + kInvertedSpriteOffset }, + { { 0, 20, height + kInvertedSpriteOffset + 26 }, { 32, 1, 10 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topRight, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::bottom, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 104); + break; + case 5: + + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 3)), + { -16, -16, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 1 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + 36, session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 7)), + { -16, -16, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 11 }, { 32, 20, 1 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + 36, session.SupportColours); + PaintUtilPushTunnelRight(session, height + 40, kTunnelGroup, TunnelSubType::Tall); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 11)), + { -16, -16, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 11 }, { 32, 20, 1 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + 36, session.SupportColours); + PaintUtilPushTunnelLeft(session, height + 40, kTunnelGroup, TunnelSubType::Tall); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 15)), + { -16, -16, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 1 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + 33, session.SupportColours); + break; + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + } +} + +static void InvertedRCTrackRightEighthDiveLoopUpToOrthogonal( + 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 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 20)), + { -16, -16, height + kInvertedSpriteOffset }, { { 0, 0, height + 103 }, { 16, 30, 1 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 28)), + { -16, -16, height + kInvertedSpriteOffset }, { { 0, 0, height + 88 }, { 10, 10, 1 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, + PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 112); + break; + case 1: + switch (direction) + { + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 24)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 93 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, + PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 136); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 16)), + { -16, -16, height + kInvertedSpriteOffset }, { { 1, 30, height + 0 }, { 1, 32, 32 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + 92, session.SupportColours); + break; + case 1: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + 109, session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + 92, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + 92, session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 144); + break; + case 3: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 17)), + { -16, -16, height + kInvertedSpriteOffset }, { { 4, 4, height + 100 }, { 28, 28, 1 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 21)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -8, -8, height + kInvertedSpriteOffset }, { 3, 3, 15 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 25)), + { -16, -16, height + kInvertedSpriteOffset }, { { 0, -1, height + 33 }, { 1, 32, 64 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 29)), + { -16, -16, height + kInvertedSpriteOffset }, { { 2, 2, height + 100 }, { 28, 28, 1 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + 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); + break; + case 4: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 18)), + { -16, -16, height + kInvertedSpriteOffset }, { { 30, 30, height + 0 }, { 8, 8, 64 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 22)), + { -16, -16, height + kInvertedSpriteOffset }, { { 0, 1, height + 0 }, { 32, 1, 64 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 26)), + { -16, -16, height + kInvertedSpriteOffset }, { { 1, 0, height + 0 }, { 32, 1, 64 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 30)), + { -16, -16, height + kInvertedSpriteOffset }, + { { 20, 0, height + kInvertedSpriteOffset + 26 }, { 1, 32, 10 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topRight, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, + PaintSegment::bottom, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 104); + break; + case 5: + + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 19)), + { -16, -16, height + kInvertedSpriteOffset }, + { { 6, 0, height + kInvertedSpriteOffset + 11 }, { 20, 32, 1 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + 36, session.SupportColours); + PaintUtilPushTunnelRight(session, height + 40, kTunnelGroup, TunnelSubType::Tall); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 23)), + { -16, -16, height + kInvertedSpriteOffset }, + { { 6, 0, height + kInvertedSpriteOffset + 11 }, { 20, 32, 1 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + 36, session.SupportColours); + PaintUtilPushTunnelLeft(session, height + 40, kTunnelGroup, TunnelSubType::Tall); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 27)), + { -16, -16, height + kInvertedSpriteOffset }, + { { 6, 0, height + kInvertedSpriteOffset }, { 20, 32, 1 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + 35, session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIVE_LOOP + 31)), + { -16, -16, height + kInvertedSpriteOffset }, + { { 6, 0, height + kInvertedSpriteOffset }, { 20, 32, 1 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + 35, session.SupportColours); + break; + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + } +} + +static void InvertedRCTrackLeftEighthDiveLoopDownToDiag( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackRightEighthDiveLoopUpToOrthogonal( + session, ride, 5 - trackSequence, (direction + 1) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackRightEighthDiveLoopToDownOrthogonal( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackLeftEighthDiveLoopUpToOrthogonal( + session, ride, 5 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackLeftMediumHalfLoopUp( + 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(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 0), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 48 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 5), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 48 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 10), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 48 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 15), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 48 }, { 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 + 72); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 1), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 80 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 6), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 80 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 11), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 80 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 16), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 80 }, { 32, 20, 3 } }); + break; + } + + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::top), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + kInvertedSpriteOffset + 88); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 2), + { 0, 0, height + kInvertedSpriteOffset }, + { { 28, 0, height + kInvertedSpriteOffset + 50 }, { 1, 26, 50 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 7), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, -16, height + 8 }, { 32, 1, 140 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 12), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 8 }, { 32, 1, 140 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 17), + { 0, 0, height + kInvertedSpriteOffset }, + { { 28, 0, height + kInvertedSpriteOffset + 50 }, { 1, 26, 50 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 168); + break; + case 3: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 3), + { 0, 0, height + kInvertedSpriteOffset }, { { 28, 6, height + 120 }, { 1, 20, 30 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 8), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 8 }, { 32, 1, 140 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 13), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + 8 }, { 32, 1, 140 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 18), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 25, height + 8 }, { 32, 1, 140 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 168); + break; + case 4: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight, + PaintSegment::right), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 4), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 48 }, { 32, 20, 1 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 9), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 48 }, { 32, 20, 1 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 14), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 48 }, { 32, 20, 1 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 19), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 48 }, { 32, 20, 1 } }); + break; + } + MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 48, height, session.SupportColours); + + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height + 48, kTunnelGroup, TunnelSubType::Flat); + } + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + } +} + +static void InvertedRCTrackRightMediumHalfLoopUp( + 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(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 20), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 48 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 25), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 48 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 30), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 48 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 35), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 48 }, { 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 + 64); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 21), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 80 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 26), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 80 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 31), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 80 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 36), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 80 }, { 32, 20, 3 } }); + break; + } + + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight, PaintSegment::right), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 88); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 22), + { 0, 0, height + kInvertedSpriteOffset }, + { { 28, 0, height + kInvertedSpriteOffset + 50 }, { 1, 26, 50 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 27), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 8 }, { 32, 1, 140 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 32), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, -16, height + 8 }, { 32, 1, 140 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 37), + { 0, 0, height + kInvertedSpriteOffset }, + { { 28, 0, height + kInvertedSpriteOffset + 50 }, { 1, 26, 50 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 160); + break; + case 3: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 23), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 25, height + 8 }, { 32, 1, 140 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 28), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + 8 }, { 32, 1, 140 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 33), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 8 }, { 32, 1, 140 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 38), + { 0, 0, height + kInvertedSpriteOffset }, { { 28, 6, height + 120 }, { 1, 20, 30 } }); + break; + } + + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 160); + break; + case 4: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::top), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 24), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 48 }, { 32, 20, 1 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 29), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 48 }, { 32, 20, 1 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 34), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 48 }, { 32, 20, 1 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_MEDIUM_HALF_LOOP + 39), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 48 }, { 32, 20, 1 } }); + break; + } + MetalASupportsPaintSetup(session, supportType.metal, MetalSupportPlace::centre, 48, height, session.SupportColours); + + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height + 48, kTunnelGroup, TunnelSubType::Flat); + } + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + } +} + +static void InvertedRCTrackLeftMediumHalfLoopDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackRightMediumHalfLoopUp(session, ride, 4 - trackSequence, direction, height, trackElement, supportType); +} + +static void InvertedRCTrackRightMediumHalfLoopDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackLeftMediumHalfLoopUp(session, ride, 4 - trackSequence, direction, height, trackElement, supportType); +} + +static void InvertedRCTrackLeftZeroGRollUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 0)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 1)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 1 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topRightSide, 0, height + kInvertedSpriteOffset + 30, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 4)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 5)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 31, height + kInvertedSpriteOffset }, { 40, 1, 32 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomRightSide, 0, height + kInvertedSpriteOffset + 30, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 8)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomLeftSide, 0, height + kInvertedSpriteOffset + 30, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 12)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topLeftSide, 0, height + kInvertedSpriteOffset + 30, + session.SupportColours); + break; + } + + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height - 8, kTunnelGroup, TunnelSubType::SlopeStart); + } + + PaintUtilSetGeneralSupportHeight(session, height + 78); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 2)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 1 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 6)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 40, 20, 1 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 9)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 13)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 26, height + kInvertedSpriteOffset }, { 32, 1, 32 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::centre, PaintSegment::topRight), + direction), + + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 2: + + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 3)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 3 }, { 40, 20, 1 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 3, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 7)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 3 }, { 32, 20, 1 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 3, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 10)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 11)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 7 }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 3, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 14)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 15)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 7 }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 3, + session.SupportColours); + break; + } + switch (direction) + { + case 1: + PaintUtilPushTunnelRight(session, height + 40, kTunnelGroup, TunnelSubType::Flat); + break; + case 2: + PaintUtilPushTunnelLeft(session, height + 40, kTunnelGroup, TunnelSubType::Flat); + break; + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + } +} + +static void InvertedRCTrackRightZeroGRollUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::topRight, PaintSegment::centre, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 16)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topRightSide, 0, height + kInvertedSpriteOffset + 29, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 20)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 1 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomRightSide, 0, height + kInvertedSpriteOffset + 30, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 24)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 25)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 31, height + kInvertedSpriteOffset }, { 40, 1, 32 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomLeftSide, 0, height + kInvertedSpriteOffset + 30, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 28)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 29)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 3 }, { 32, 20, 1 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topLeftSide, 0, height + kInvertedSpriteOffset + 30, + session.SupportColours); + break; + } + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height - 8, kTunnelGroup, TunnelSubType::SlopeStart); + } + PaintUtilSetGeneralSupportHeight(session, height + 86); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 17)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 26, height + kInvertedSpriteOffset }, { 32, 1, 32 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 21)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 26)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 40, 20, 1 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 30)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 1 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::centre, PaintSegment::topRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 18)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 19)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 7 }, { 32, 20, 1 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 3, + session.SupportColours); + + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 22)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 23)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 7 }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 3, + session.SupportColours); + + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 27)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 3 }, { 32, 20, 1 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 1, + session.SupportColours); + + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_ZERO_G_ROLL + 31)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 3 }, { 40, 20, 1 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 3, + session.SupportColours); + + break; + } + switch (direction) + { + case 1: + PaintUtilPushTunnelRight(session, height + 40, kTunnelGroup, TunnelSubType::Flat); + break; + case 2: + PaintUtilPushTunnelLeft(session, height + 40, kTunnelGroup, TunnelSubType::Flat); + break; + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + } +} + +static void InvertedRCTrackLeftZeroGRollDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackLeftZeroGRollUp(session, ride, 2 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackRightZeroGRollDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackRightZeroGRollUp(session, ride, 2 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackLeftLargeZeroGRollUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, PaintSegment::centre, + PaintSegment::bottom), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 0)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 93 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topRightSide, 0, height + 83, session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 5)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + kInvertedSpriteOffset }, { 24, 1, 50 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomRightSide, 0, height + 106, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 9)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 4, height + kInvertedSpriteOffset + 11 }, { 32, 1, 50 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 10)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 26, height + kInvertedSpriteOffset + 11 }, { 32, 1, 50 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomLeftSide, 0, height + 104, session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 15)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 93 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topLeftSide, 0, height + 100, session.SupportColours); + break; + } + + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height - 8, kTunnelGroup, TunnelSubType::SlopeStart); + } + + PaintUtilSetGeneralSupportHeight(session, height + 104); + break; + case 1: + + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 1)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 26, 2, 81 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 2)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 93 }, { 26, 20, 1 } }); + + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 6)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 81 } }); + + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 11)), + { 0, 0, height + kInvertedSpriteOffset }, { { 4, 26, height + 11 }, { 32, 2, 92 } }); + + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 16)), + { 0, 0, height + kInvertedSpriteOffset }, { { 4, 26, height + 11 }, { 32, 2, 81 } }); + + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::centre, PaintSegment::topRight), + direction), + + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 96); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 3)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height }, { 32, 1, 64 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 7)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height }, { 32, 1, 48 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 12)), + { 0, 0, height + kInvertedSpriteOffset }, { { 4, 26, height }, { 30, 1, 64 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 17)), + { 0, 0, height + kInvertedSpriteOffset }, { { 4, 30, height }, { 30, 1, 64 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 18)), + { 0, 0, height + kInvertedSpriteOffset }, { { 4, 26, height }, { 30, 1, 64 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::centre, PaintSegment::topRight), + direction), + + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 88); + break; + case 3: + + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 4)), + { 0, 0, height + kInvertedSpriteOffset }, { { 4, 16, height + 31 }, { 28, 14, 2 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomLeftSide, 6, height + 21, session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 8)), + { 0, 0, height + kInvertedSpriteOffset }, { { 4, 16, height + 31 }, { 28, 14, 2 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topLeftSide, 6, height + 21, session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 13)), + { 0, 0, height + kInvertedSpriteOffset }, { { 4, 16, height + 31 }, { 28, 14, 2 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 14)), + { 0, 0, height + kInvertedSpriteOffset }, { { 4, 16, height + 31 }, { 28, 14, 2 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topRightSide, 6, height + 21, session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 19)), + { 0, 0, height + kInvertedSpriteOffset }, { { 4, 16, height + 31 }, { 28, 14, 2 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomRightSide, 6, height + 21, session.SupportColours); + break; + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + switch (direction) + { + case 1: + PaintUtilPushTunnelRight(session, height + 40, kTunnelGroup, TunnelSubType::Flat); + break; + case 2: + PaintUtilPushTunnelLeft(session, height + 40, kTunnelGroup, TunnelSubType::Flat); + break; + } + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + } +} + +static void InvertedRCTrackRightLargeZeroGRollUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft, PaintSegment::centre, + PaintSegment::left), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 20)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 93 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topRightSide, 0, height + 100, session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 25)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 4, height + kInvertedSpriteOffset + 11 }, { 24, 1, 50 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 26)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 26, height + kInvertedSpriteOffset + 11 }, { 24, 1, 50 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomRightSide, 0, height + 104, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 31)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + kInvertedSpriteOffset }, { 24, 1, 50 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomLeftSide, 0, height + 106, session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 35)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 93 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topLeftSide, 0, height + 83, session.SupportColours); + break; + } + + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height - 8, kTunnelGroup, TunnelSubType::SlopeStart); + } + + PaintUtilSetGeneralSupportHeight(session, height + 104); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 21)), + { 0, 0, height + kInvertedSpriteOffset }, { { 4, 26, height + 11 }, { 32, 1, 81 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 27)), + { 0, 0, height + kInvertedSpriteOffset }, { { 4, 26, height + 11 }, { 32, 1, 92 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 32)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 1, 81 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 36)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 26, 1, 81 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 37)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 93 }, { 26, 20, 1 } }); + break; + } + 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 + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 96); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 22)), + { 0, 0, height + kInvertedSpriteOffset }, { { 1, 26, height }, { 30, 1, 64 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 23)), + { 0, 0, height + kInvertedSpriteOffset }, { { 1, 26, height }, { 30, 1, 64 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 28)), + { 0, 0, height + kInvertedSpriteOffset }, { { 1, 26, height }, { 30, 1, 64 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 33)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height }, { 32, 1, 48 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 38)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height }, { 32, 1, 64 } }); + break; + } + + 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 + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 88); + break; + case 3: + + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 24)), + { 0, 0, height + kInvertedSpriteOffset }, { { 4, 16, height + 31 }, { 28, 14, 2 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomLeftSide, 6, height + 21, session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 29)), + { 0, 0, height + kInvertedSpriteOffset }, { { 4, 16, height + 31 }, { 28, 14, 2 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 30)), + { 0, 0, height + kInvertedSpriteOffset }, { { 4, 16, height + 31 }, { 28, 14, 2 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topLeftSide, 6, height + 21, session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 34)), + { 0, 0, height + kInvertedSpriteOffset }, { { 4, 16, height + 31 }, { 28, 14, 2 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topRightSide, 6, height + 21, session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_ZERO_G_ROLL + 39)), + { 0, 0, height + kInvertedSpriteOffset }, { { 4, 16, height + 31 }, { 28, 14, 2 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomRightSide, 6, height + 21, session.SupportColours); + break; + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + switch (direction) + { + case 1: + PaintUtilPushTunnelRight(session, height + 40, kTunnelGroup, TunnelSubType::Flat); + break; + case 2: + PaintUtilPushTunnelLeft(session, height + 40, kTunnelGroup, TunnelSubType::Flat); + break; + } + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + } +} + +static void InvertedRCTrackLeftLargeZeroGRollDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackLeftLargeZeroGRollUp( + session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackRightLargeZeroGRollDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackRightLargeZeroGRollUp( + session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackLeftBarrelRollUpToDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottomLeft, PaintSegment::bottomRight, PaintSegment::topRight, PaintSegment::centre), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 0)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 1)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 14, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 6)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 7)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 17, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 12)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 13)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 14, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 18)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 19)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 14, + session.SupportColours); + break; + } + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::Flat); + } + + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 2)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 3)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 28 }, { 32, 20, 0 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 8)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 9)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 28 }, { 32, 20, 0 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 14)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 15)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 0 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 20)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 21)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 0 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 4)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 2 }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 5)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 2 }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 2, + session.SupportColours); + + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 10)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 2 }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 11)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 2 }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 2, + session.SupportColours); + + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 16)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 2 }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 17)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + +kInvertedSpriteOffset + 2 }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 3, + session.SupportColours); + + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 22)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 2 }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 23)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + +kInvertedSpriteOffset + 2 }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 3, + session.SupportColours); + + break; + } + switch (direction) + { + case 1: + PaintUtilPushTunnelRight(session, height + 32, kTunnelGroup, TunnelSubType::Tall); + break; + case 2: + PaintUtilPushTunnelLeft(session, height + 32, kTunnelGroup, TunnelSubType::Tall); + break; + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + } +} + +static void InvertedRCTrackRightBarrelRollUpToDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::bottomLeft, PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::centre), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 24)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 25)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 14, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 30)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 31)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 14, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 36)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 37)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 17, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 42)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 43)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 28 }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 14, + session.SupportColours); + break; + } + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::Flat); + } + + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 26)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 27)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 28 }, { 32, 20, 0 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 32)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 33)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 28 }, { 32, 20, 0 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 38)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 39)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 0 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 44)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 45)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 0 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 28)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 2 }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 29)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 2 }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 3, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 34)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 2 }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 35)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 2 }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 3, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 40)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 2 }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 41)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 2 }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 2, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 46)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 2 }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_BARREL_ROLL + 47)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 2 }, { 32, 20, 0 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kInvertedSpriteOffset + 2, + session.SupportColours); + break; + } + switch (direction) + { + case 1: + PaintUtilPushTunnelRight(session, height + 32, kTunnelGroup, TunnelSubType::Tall); + break; + case 2: + PaintUtilPushTunnelLeft(session, height + 32, kTunnelGroup, TunnelSubType::Tall); + break; + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + } +} + +static void InvertedRCTrackLeftBarrelRollDownToUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackLeftBarrelRollUpToDown( + session, ride, 2 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackRightBarrelRollDownToUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackRightBarrelRollUpToDown( + session, ride, 2 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackLeftLargeCorkscrewUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 0)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 32 }, { 32, 20, 3 } }); + + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 6)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 32 }, { 32, 20, 3 } }); + + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 12)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 32 }, { 32, 20, 3 } }); + + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 18)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 32 }, { 32, 20, 3 } }); + + break; + } + + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::Flat); + } + + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + case 1: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::right, PaintSegment::bottom, + PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 1)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 40 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomLeftSide, 0, height + 52, session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 7)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height }, { 32, 1, 40 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 8)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 40 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topLeftSide, 0, height + 50, session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 13)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 40 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topRightSide, 0, height + 52, session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 19)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 40 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomRightSide, 0, height + 54, session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 2)), + { 0, 0, height + kInvertedSpriteOffset }, { { 16, 0, height + 16 }, { 16, 16, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 3)), + { 0, 0, height + kInvertedSpriteOffset }, { { 16, 0, height + 48 }, { 16, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 9)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + 16 }, { 16, 16, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 14)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + 16 }, { 16, 16, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 15)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + 48 }, { 16, 16, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 20)), + { 0, 0, height + kInvertedSpriteOffset }, { { 16, 16, height + 48 }, { 16, 16, 3 } }); + + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 3: + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 4: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 4)), + { 0, 0, height + kInvertedSpriteOffset }, { { 6, 0, height + kInvertedSpriteOffset }, { 20, 32, 3 } }); + + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 10)), + { 0, 0, height + kInvertedSpriteOffset }, { { 6, 0, height + kInvertedSpriteOffset }, { 20, 32, 3 } }); + + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 16)), + { 0, 0, height + kInvertedSpriteOffset }, { { 6, 0, height + kInvertedSpriteOffset }, { 20, 32, 3 } }); + + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 21)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 6, 0, height + kInvertedSpriteOffset + 24 }, { 20, 32, 3 } }); + + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 88); + break; + case 5: + + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 5)), + { 0, 0, height + kInvertedSpriteOffset }, { { 6, 0, height + 40 }, { 20, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 6, height + 34, session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 11)), + { 0, 0, height + kInvertedSpriteOffset }, { { 6, 0, height + 40 }, { 20, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 6, height + 34, session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 17)), + { 0, 0, height + kInvertedSpriteOffset }, { { 6, 0, height + 40 }, { 20, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 6, height + 34, session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 22)), + { 0, 0, height + kInvertedSpriteOffset }, { { 6, 0, height + 40 }, { 20, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 6, height + 34, session.SupportColours); + break; + } + + switch (direction) + { + case 2: + PaintUtilPushTunnelRight(session, height + 40, kTunnelGroup, TunnelSubType::Flat); + break; + case 3: + PaintUtilPushTunnelLeft(session, height + 40, kTunnelGroup, TunnelSubType::Flat); + break; + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, 3 - direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + } +} + +static void InvertedRCTrackRightLargeCorkscrewUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 23)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 32 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 28)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 32 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 34)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 32 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 40)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 32 }, { 32, 20, 3 } }); + break; + } + + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::Flat); + } + + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + case 1: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topLeft, + PaintSegment::top), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 24)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 40 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomLeftSide, 0, height + 54, session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 29)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 40 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topLeftSide, 0, height + 52, session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 35)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height }, { 32, 1, 40 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 36)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 40 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topRightSide, 0, height + 50, session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 41)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 40 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomRightSide, 0, height + 52, session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 25)), + { 0, 0, height + kInvertedSpriteOffset }, { { 16, 16, height + 48 }, { 16, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 30)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + 16 }, { 16, 16, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 31)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + 48 }, { 16, 16, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 37)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + 16 }, { 16, 16, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 42)), + { 0, 0, height + kInvertedSpriteOffset }, { { 16, 0, height + 16 }, { 16, 16, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 43)), + { 0, 0, height + kInvertedSpriteOffset }, { { 16, 0, height + 48 }, { 16, 16, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topLeft, PaintSegment::topRight, PaintSegment::left, PaintSegment::centre, + PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 3: + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 4: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight, PaintSegment::left, + PaintSegment::centre, PaintSegment::right, PaintSegment::bottomLeft, PaintSegment::bottom, + PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 26)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 6, 0, height + kInvertedSpriteOffset + 24 }, { 20, 32, 3 } }); + + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 32)), + { 0, 0, height + kInvertedSpriteOffset }, { { 6, 0, height + kInvertedSpriteOffset }, { 20, 32, 3 } }); + + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 38)), + { 0, 0, height + kInvertedSpriteOffset }, { { 6, 0, height + kInvertedSpriteOffset }, { 20, 32, 3 } }); + + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 44)), + { 0, 0, height + kInvertedSpriteOffset }, { { 6, 0, height + kInvertedSpriteOffset }, { 20, 32, 3 } }); + + break; + } + PaintUtilSetGeneralSupportHeight(session, height + 88); + break; + case 5: + + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 27)), + { 0, 0, height + kInvertedSpriteOffset }, { { 6, 0, height + 40 }, { 20, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 6, height + 34, session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 33)), + { 0, 0, height + kInvertedSpriteOffset }, { { 6, 0, height + 40 }, { 20, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 6, height + 34, session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 39)), + { 0, 0, height + kInvertedSpriteOffset }, { { 6, 0, height + 40 }, { 20, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 6, height + 34, session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_LARGE_CORKSCREW + 45)), + { 0, 0, height + kInvertedSpriteOffset }, { { 6, 0, height + 40 }, { 20, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 6, height + 34, session.SupportColours); + break; + } + + switch (direction) + { + case 0: + PaintUtilPushTunnelRight(session, height + 40, kTunnelGroup, TunnelSubType::Flat); + break; + case 1: + PaintUtilPushTunnelLeft(session, height + 40, kTunnelGroup, TunnelSubType::Flat); + break; + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, 3 - direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + } +} + +static void InvertedRCTrackLeftLargeCorkscrewDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackRightLargeCorkscrewUp( + session, ride, 5 - trackSequence, (direction + 1) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackRightLargeCorkscrewDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackLeftLargeCorkscrewUp( + session, ride, 5 - trackSequence, (direction - 1) & 3, height, trackElement, supportType); +} + +// transitions +static void InvertedRCTrackFlatTo60DegUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 0)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset + 16 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 1)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + kInvertedSpriteOffset }, { 32, 2, 43 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 2)), + { 0, 0, height + kInvertedSpriteOffset }, { { 29, 4, height + kInvertedSpriteOffset }, { 1, 24, 43 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 3)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + kInvertedSpriteOffset }, { 32, 2, 43 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 4)), + { 0, 0, height + kInvertedSpriteOffset }, { { 29, 4, height + kInvertedSpriteOffset }, { 1, 24, 43 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 5)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset + 16 }, { 32, 20, 3 } }); + break; + } + + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::Flat); + } + else + { + PaintUtilPushTunnelRotated(session, direction, height + 24, kTunnelGroup, TunnelSubType::SlopeEnd); + } + + PaintUtilSetGeneralSupportHeight(session, height + 72); +} + +static void InvertedRCTrack60DegUpToFlat( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 6)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset + 24 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 20, session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 7)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height }, { 32, 1, kInvertedSpriteOffset + 24 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 8)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset + 24 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 20, session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 9)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height }, { 32, 1, kInvertedSpriteOffset + 24 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 10)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset + 24 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 20, session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 11)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset + 24 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 20, session.SupportColours); + break; + } + + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height - 8, kTunnelGroup, TunnelSubType::SlopeStart); + } + else + { + PaintUtilPushTunnelRotated(session, direction, height + 24, kTunnelGroup, TunnelSubType::Flat); + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); +} + +static void InvertedRCTrackFlatTo60DegDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrack60DegUpToFlat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrack60DegDownToFlat( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackFlatTo60DegUp(session, ride, trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} +static void InvertedRCTrackFlatTo60DegUpLongBase( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 56); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 0), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 4), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 8), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 12), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 } }); + break; + } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topRightSide, 0, height + kSupportHeight + 4, + session.SupportColours); + break; + case 1: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomRightSide, 0, height + kSupportHeight + 4, + session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomLeftSide, 0, height + kSupportHeight + 4, + session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topLeftSide, 0, height + kSupportHeight + 4, + session.SupportColours); + break; + } + } + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::Flat); + } + + break; + case 1: + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 1), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 37 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 5), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 37 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 9), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 37 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 13), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 37 }, { 32, 20, 3 } }); + break; + } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topRightSide, 0, height + 65, + session.SupportColours); + break; + case 1: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomRightSide, 0, height + 65, + session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomLeftSide, 0, height + 65, + session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topLeftSide, 0, height + 65, + session.SupportColours); + break; + } + } + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 2), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 49 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 6), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 49 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 10), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 49 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 14), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 49 }, { 32, 20, 3 } }); + break; + } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topRightSide, 0, height + 72, + session.SupportColours); + break; + case 1: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomRightSide, 0, height + 76, + session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomLeftSide, 0, height + 72, + session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topLeftSide, 0, height + 72, session.SupportColours); + break; + } + } + + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 3), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 83 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 7), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 75 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 11), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 75 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 15), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 83 }, { 32, 20, 3 } }); + break; + } + switch (direction) + { + case 1: + PaintUtilPushTunnelRight(session, height + 24, kTunnelGroup, TunnelSubType::SlopeEnd); + break; + case 2: + PaintUtilPushTunnelLeft(session, height + 24, kTunnelGroup, TunnelSubType::SlopeEnd); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 88); + break; + } +} + +static void InvertedRCTrack60DegUpToFlatLongBase( + 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(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 16), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 83 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 20), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 75 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 24), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 75 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 28), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 83 }, { 32, 20, 3 } }); + break; + } + + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::SlopeStart); + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 88); + break; + case 1: + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 17), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 57 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 21), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 57 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 25), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 57 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 29), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 57 }, { 32, 20, 3 } }); + break; + } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topRightSide, 0, height + 72, + session.SupportColours); + break; + case 1: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomRightSide, 0, height + 74, + session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomLeftSide, 0, height + 76, + session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topLeftSide, 0, height + 74, session.SupportColours); + break; + } + } + + PaintUtilSetGeneralSupportHeight(session, height + 88); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 18), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 45 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 22), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 45 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 26), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 45 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 30), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 45 }, { 32, 20, 3 } }); + break; + } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topRightSide, 0, height + 65, + session.SupportColours); + break; + case 1: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomRightSide, 0, height + 65, + session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomLeftSide, 0, height + 65, + session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topLeftSide, 0, height + 65, session.SupportColours); + break; + } + } + + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 19), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 37 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 23), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 37 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 27), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 37 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP + 31), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 37 }, { 32, 20, 3 } }); + break; + } + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) + { + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topRightSide, 0, height + kSupportHeight + 4, + session.SupportColours); + break; + case 1: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomRightSide, 0, height + kSupportHeight + 8, + session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomLeftSide, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topLeftSide, 0, height + kSupportHeight + 8, + session.SupportColours); + break; + } + } + switch (direction) + { + case 1: + PaintUtilPushTunnelRight(session, height + 8, kTunnelGroup, TunnelSubType::FlatTo25Deg); + break; + case 2: + PaintUtilPushTunnelLeft(session, height + 8, kTunnelGroup, TunnelSubType::FlatTo25Deg); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 48); + break; + } +} + +static void InvertedRCTrackFlatTo60DegDownLongBase( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrack60DegUpToFlatLongBase( + session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrack60DegDownToFlatLongBase( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackFlatTo60DegUpLongBase( + session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackDiagFlatTo60DegUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 15)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 40 }, { 32, 32, 1 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 1: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 12)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 40 }, { 32, 32, 1 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 14)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 40 }, { 32, 32, 1 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 13)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 40 }, { 32, 32, 1 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + } +} + +static void InvertedRCTrackDiag60DegUpToFlat( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 19)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 53 }, { 32, 32, 1 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 1: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 16)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 53 }, { 32, 32, 1 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 18)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 53 }, { 32, 32, 1 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + kSupportHeight + 24, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 17)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 53 }, { 32, 32, 1 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + kSupportHeight + 24, + session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + kSupportHeight + 24, + session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + kSupportHeight + 24, + session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + } +} + +static void InvertedRCTrackDiagFlatTo60DegDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 17)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 53 }, { 32, 32, 1 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 1: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 18)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 53 }, { 32, 32, 1 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 16)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 53 }, { 32, 32, 1 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + kSupportHeight + 20, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 19)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 53 }, { 32, 32, 1 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + kSupportHeight + 20, + session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + kSupportHeight + 20, + session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + kSupportHeight + 20, + session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + } +} + +static void InvertedRCTrackDiag60DegDownToFlat( + 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 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 13)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 40 }, { 32, 32, 1 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 14)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 40 }, { 32, 32, 1 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 2: + switch (direction) + { + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 12)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 40 }, { 32, 32, 1 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + kSupportHeight + 6, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_SMALL_FLAT_TO_STEEP + 15)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 40 }, { 32, 32, 1 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + kSupportHeight + 6, + session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + kSupportHeight + 6, + session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + kSupportHeight + 6, + session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + } +} + +static void InvertedRCTrackDiagFlatTo60DegUpLongBase( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + direction), + 0xFFFF, 0); + switch (direction) + { + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 9)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 8 }, { 32, 32, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 40); + break; + case 1: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 0)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 8 }, { 32, 32, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 6)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 8 }, { 32, 32, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + kSupportHeight + 14, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 3)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 8 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + kSupportHeight + 14, + session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + kSupportHeight + 9, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 10)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 24 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + kSupportHeight + 22, + session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + case 4: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 1)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 24 }, { 32, 32, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 5: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 7)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 24 }, { 32, 32, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 6: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + kSupportHeight + 24, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 4)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 24 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + kSupportHeight + 40, + session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + kSupportHeight + 24, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 11)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 64 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + kSupportHeight + 44, + session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 104); + break; + case 7: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 2)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 64 }, { 32, 32, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 128); + break; + case 8: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 8)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 64 }, { 32, 32, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 128); + break; + case 9: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), + direction), + 0xFFFF, 0); + switch (direction) + { + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 5)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 64 }, { 32, 32, 3 } }); + + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 144); + break; + } +} + +static void InvertedRCTrackDiag60DegUpToFlatLongBase( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + direction), + 0xFFFF, 0); + switch (direction) + { + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 21)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 64 }, { 32, 32, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 104); + break; + case 1: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 12)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 64 }, { 32, 32, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 112); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 18)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 64 }, { 32, 32, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 104); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + direction), + 0xFFFF, 0); + switch (direction) + { + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 15)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 64 }, { 32, 32, 3 } }); + + break; + + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 22)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 72 }, { 32, 32, 3 } }); + + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 120); + break; + case 4: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 13)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 32 }, { 32, 32, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 5: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 19)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 32 }, { 32, 32, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 6: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomRight, PaintSegment::right), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + kSupportHeight + 24, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 16)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 32 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + kSupportHeight + 24, + session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + kSupportHeight + 22, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 23)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 32 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + kSupportHeight + 24, + session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 7: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, PaintSegment::topRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 14)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 8 }, { 32, 32, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 8: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::bottom, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 20)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 8 }, { 32, 32, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 9: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::centre), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + kSupportHeight + 12, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_FLAT_TO_STEEP_DIAGONAL + 17)), + { -16, -16, height + kInvertedSpriteOffset }, + { { -16, -16, height + kInvertedSpriteOffset + 8 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + kSupportHeight + 16, + session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + kSupportHeight + 12, + session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + kSupportHeight + 16, + session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + } +} + +static void InvertedRCTrackDiagFlatTo60DegDownLongBase( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackDiag60DegUpToFlatLongBase( + session, ride, 9 - trackSequence, direction ^ 2, height, trackElement, supportType); +} + +static void InvertedRCTrackDiag60DegDownToFlatLongBase( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackDiagFlatTo60DegUpLongBase( + session, ride, 9 - trackSequence, direction ^ 2, height, trackElement, supportType); +} + +static void InvertedRCTrackLeftBankToLeftQuarterTurn3Tile25DegUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_TURN_BANK_TRANSITION + 0)), + { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 6, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_TURN_BANK_TRANSITION + 2)), + { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 8, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_TURN_BANK_TRANSITION + 4)), + { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 6, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_TURN_BANK_TRANSITION + 6)), + { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 6, + session.SupportColours); + break; + } + + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::Flat); + } + + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 1: + PaintUtilSetGeneralSupportHeight(session, height + 48); + break; + case 2: + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, + PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_TURN_BANK_TRANSITION + 1)), + { 6, 0, height + kInvertedSpriteOffset }, { 20, 32, 3 }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topLeftSide, 0, height + kSupportHeight + 8, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_TURN_BANK_TRANSITION + 3)), + { 6, 0, height + kInvertedSpriteOffset }, { 20, 32, 3 }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topRightSide, 0, height + kSupportHeight + 9, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_TURN_BANK_TRANSITION + 5)), + { 6, 0, height + kInvertedSpriteOffset }, { 20, 32, 3 }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomRightSide, 0, height + kSupportHeight + 9, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_TURN_BANK_TRANSITION + 7)), + { 6, 0, height + kInvertedSpriteOffset }, { 20, 32, 3 }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomLeftSide, 0, height + kSupportHeight + 8, + session.SupportColours); + break; + } + + switch (direction) + { + case 2: + PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::SlopeEnd); + break; + case 3: + PaintUtilPushTunnelLeft(session, height, kTunnelGroup, TunnelSubType::SlopeEnd); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + } +} + +static void InvertedRCTrackRightBankToRightQuarterTurn3Tile25DegUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, + PaintSegment::topRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_TURN_BANK_TRANSITION + 8)), + { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_TURN_BANK_TRANSITION + 10)), + { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_TURN_BANK_TRANSITION + 12)), + { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_TURN_BANK_TRANSITION + 14)), + { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 3 }); + break; + } + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 6, session.SupportColours); + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::Flat); + } + + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + case 1: + PaintUtilSetGeneralSupportHeight(session, height + 48); + break; + case 2: + PaintUtilSetGeneralSupportHeight(session, height + 48); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::topLeft, + PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_TURN_BANK_TRANSITION + 9)), + { 6, 0, height + kInvertedSpriteOffset }, { 20, 32, 3 }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomRightSide, 0, height + kSupportHeight + 9, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_TURN_BANK_TRANSITION + 11)), + { 6, 0, height + kInvertedSpriteOffset }, { 20, 32, 3 }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomLeftSide, 0, height + kSupportHeight + 9, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_TURN_BANK_TRANSITION + 13)), + { 6, 0, height + kInvertedSpriteOffset }, { 20, 32, 3 }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topLeftSide, 0, height + kSupportHeight + 8, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_TURN_BANK_TRANSITION + 15)), + { 6, 0, height + kInvertedSpriteOffset }, { 20, 32, 3 }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topRightSide, 0, height + kSupportHeight + 8, + session.SupportColours); + break; + } + + switch (direction) + { + case 0: + PaintUtilPushTunnelRight(session, height, kTunnelGroup, TunnelSubType::SlopeEnd); + break; + case 1: + PaintUtilPushTunnelLeft(session, height, kTunnelGroup, TunnelSubType::SlopeEnd); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + } +} + +static void InvertedRCTrackLeftQuarterTurn3Tile25DegDownToLeftBank( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackRightBankToRightQuarterTurn3Tile25DegUp( + session, ride, 3 - trackSequence, (direction + 1) & 3, height, trackElement, supportType); +} +static void InvertedRCTrackRightQuarterTurn3Tile25DegDownToRightBank( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackLeftBankToLeftQuarterTurn3Tile25DegUp( + session, ride, 3 - trackSequence, (direction - 1) & 3, height, trackElement, supportType); +} +static void InvertedRCTrack60DegUpTo90DegUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + if (trackElement.HasChain()) + { + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 0), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 85 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 1), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 55 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 2), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 55 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 3), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 85 }, { 32, 20, 3 } }); + break; + } + } + else + { + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 0), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 85 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 1), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 55 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 2), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 55 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 3), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 85 }, { 32, 20, 3 } }); + break; + } + } + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height - 8, kTunnelGroup, TunnelSubType::SlopeStart); + } + PaintUtilSetVerticalTunnel(session, height + 56); + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 1: + break; + } +} + +static void InvertedRCTrack90DegDownTo60DegDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrack60DegUpTo90DegUp(session, ride, trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrack90DegUpTo60DegUp( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + if (trackElement.HasChain()) + { + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 4), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 85 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 5), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 55 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 6), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 55 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 7), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 85 }, { 32, 20, 3 } }); + break; + } + } + else + { + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 4), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 85 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 5), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 55 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 6), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 55 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 7), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 85 }, { 32, 20, 3 } }); + break; + } + } + switch (direction) + { + case 1: + PaintUtilPushTunnelRight(session, height + 48, kTunnelGroup, TunnelSubType::SlopeEnd); + break; + case 2: + PaintUtilPushTunnelLeft(session, height + 48, kTunnelGroup, TunnelSubType::SlopeEnd); + break; + } + PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 96); +} + +static void InvertedRCTrack60DegDownTo90DegDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + if (trackElement.HasChain()) + { + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 6), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 55 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 7), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 85 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 4), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 85 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 5), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 55 } }); + break; + } + } + else + { + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 6), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 55 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 7), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 85 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 4), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 85 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 5), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 55 } }); + break; + } + } + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height + 48, kTunnelGroup, TunnelSubType::SlopeEnd); + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 96); + break; + case 1: + break; + } +} + +static void InvertedRCTrack90DegUp( + 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(SPR_TRACKS_BM_INVERT_VERTICAL + 8), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 61 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 9), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 31 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 10), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 4, height + 11 }, { 32, 2, 31 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 11), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 61 }, { 32, 20, 3 } }); + break; + } + } + PaintUtilSetVerticalTunnel(session, height + 32); + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight); + break; + case 1: + break; + } +} + +static void InvertedRCTrack90DegDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrack90DegUp(session, ride, trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackLeftQuarterTurn1TileUp90( + 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(SPR_TRACKS_BM_INVERT_VERTICAL + 12), + { 0, 0, height + 29 }, { { 0, 6, height + 125 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 13), + { 0, 0, height + 29 }, { { 4, 0, height + 11 }, { 2, 32, 31 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 14), + { 0, 0, height + 29 }, { { 0, 6, height + 125 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 15), + { 0, 0, height + 29 }, { { 0, 6, height + 125 }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 16), + { 0, 0, height + 29 }, { { 0, 4, height + 11 }, { 32, 2, 31 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 17), + { 0, 0, height + 29 }, { { 0, 4, height + 11 }, { 32, 2, 31 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 18), + { 0, 0, height + 29 }, { { 0, 6, height + 125 }, { 32, 20, 3 } }); + break; + } + PaintUtilSetVerticalTunnel(session, height + 96); + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 96); + break; + case 1: + break; + } +} + +static void InvertedRCTrackRightQuarterTurn1TileUp90( + 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(SPR_TRACKS_BM_INVERT_VERTICAL + 19), + { 0, 0, height + 29 }, { { 0, 4, height + 11 }, { 32, 2, 31 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 20), + { 0, 0, height + 29 }, { { 0, 6, height + 125 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 21), + { 0, 0, height + 29 }, { { 0, 6, height + 125 }, { 32, 20, 3 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 22), + { 0, 0, height + 29 }, { { 0, 4, height + 11 }, { 32, 2, 31 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 23), + { 0, 0, height + 29 }, { { 0, 4, height + 11 }, { 32, 2, 31 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 24), + { 0, 0, height + 29 }, { { 0, 6, height + 125 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_VERTICAL + 25), + { 0, 0, height + 29 }, { { 0, 6, height + 125 }, { 32, 20, 3 } }); + break; + } + PaintUtilSetVerticalTunnel(session, height + 96); + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 96); + break; + case 1: + break; + } +} + +static void InvertedRCTrackLeftQuarterTurn1TileDown90( + PaintSession& session, const Ride& ride, const uint8_t trackSequence, const Direction direction, const int32_t height, + const TrackElement& trackElement, const SupportType supportType) +{ + InvertedRCTrackRightQuarterTurn1TileUp90( + session, ride, trackSequence, (direction + 1) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackRightQuarterTurn1TileDown90( + PaintSession& session, const Ride& ride, const uint8_t trackSequence, const Direction direction, const int32_t height, + const TrackElement& trackElement, const SupportType supportType) +{ + InvertedRCTrackLeftQuarterTurn1TileUp90( + session, ride, trackSequence, (direction - 1) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrack90DegToInvertedFlatQuarterLoopUp( + 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((SPR_TRACKS_BM_INVERT_QUARTER_LOOP + 0)), + { 0, 0, height + kInvertedSpriteOffset }, { { 28, 6, height + kInvertedSpriteOffset }, { 2, 20, 31 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_QUARTER_LOOP + 4)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 16 }, { 20, 1, 48 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_QUARTER_LOOP + 7)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 16 }, { 20, 1, 48 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_QUARTER_LOOP + 10)), + { 0, 0, height + kInvertedSpriteOffset }, { { 28, 6, height + kInvertedSpriteOffset }, { 2, 20, 31 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 120); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_QUARTER_LOOP + 1)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 1 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_QUARTER_LOOP + 2)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 25, height + kInvertedSpriteOffset + 1 }, { 32, 1, 32 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_QUARTER_LOOP + 5)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 16 }, { 20, 1, 48 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_QUARTER_LOOP + 8)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + 16 }, { 20, 1, 48 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_QUARTER_LOOP + 11)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 6, height + kInvertedSpriteOffset }, { 32, 20, 1 } }); + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_QUARTER_LOOP + 12)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 25, height + kInvertedSpriteOffset + 1 }, { 32, 1, 32 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 96); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_QUARTER_LOOP + 3)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 4 }, { 32, 20, 1 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_QUARTER_LOOP + 6)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 4 }, { 32, 20, 1 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_QUARTER_LOOP + 9)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 4 }, { 32, 20, 1 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_QUARTER_LOOP + 13)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 4 }, { 32, 20, 1 } }); + 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 + 68); + break; + } +} + +static void InvertedRCTrackInvertedFlatTo90DegQuarterLoopDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrack90DegToInvertedFlatQuarterLoopUp( + session, ride, 2 - trackSequence, direction, height, trackElement, supportType); +} + +// diag banks and wide turns + +// wide turn - unbanked +static void InvertedRCTrackLeftEighthToDiagUp25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 0)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 4)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 8)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 12)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + } + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height - 8, kTunnelGroup, TunnelSubType::SlopeStart); + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 1)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + kInvertedSpriteOffset }, { 32, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 5)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + kInvertedSpriteOffset }, { 32, 16, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 9)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + kInvertedSpriteOffset }, { 32, 16, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 13)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + kInvertedSpriteOffset }, { 32, 16, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 2)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + kSupportHeight + 13, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 6)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 16, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 10)), + { 0, 0, height + kInvertedSpriteOffset }, { { 16, 0, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + kSupportHeight + 13, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 14)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + kSupportHeight + 13, + session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 4: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 3)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 16, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 7)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 11)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 15)), + { 0, 0, height + kInvertedSpriteOffset }, { { 16, 0, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + } +} + +static void InvertedRCTrackLeftEighthToOrthogonalUp25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomRight, + PaintSegment::bottomLeft, PaintSegment::topRight, PaintSegment::topLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 32)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 16, height + kInvertedSpriteOffset + 8 }, { 16, 16, 3 } }); + + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 36)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 16, height + kInvertedSpriteOffset + 8 }, { 16, 16, 3 } }); + + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 40)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 0, height + kInvertedSpriteOffset + 8 }, { 16, 16, 3 } }); + + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 44)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 0, height + kInvertedSpriteOffset + 8 }, { 16, 16, 3 } }); + + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 1: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottomRight, PaintSegment::bottom, PaintSegment::centre, PaintSegment::right, + PaintSegment::bottomLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 33)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 16, height + kInvertedSpriteOffset + 16 }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + kSupportHeight + 13, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 37)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 16, height + kInvertedSpriteOffset + 16 }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + kSupportHeight + 18, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 41)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 0, height + kInvertedSpriteOffset + 16 }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + kSupportHeight + 18, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 45)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 0, height + kInvertedSpriteOffset + 16 }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + kSupportHeight + 18, + session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight), direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 3: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 34)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 0, height + kInvertedSpriteOffset + 8 }, { 32, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 38)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 0, height + kInvertedSpriteOffset + 8 }, { 32, 16, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 42)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 16, height + kInvertedSpriteOffset + 8 }, { 32, 16, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 46)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 16, height + kInvertedSpriteOffset + 8 }, { 32, 16, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::right), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 4: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 35)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 39)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 43)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 47)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + } + if (direction == 1 || direction == 2) + { + PaintUtilPushTunnelRotated(session, direction, height + 16, kTunnelGroup, TunnelSubType::SlopeEnd); + } + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + } +} + +static void InvertedRCTrackRightEighthToDiagUp25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, PaintUtilRotateSegments(BlockedSegments::kStraightFlat, direction), 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 16)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 20)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 24)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 28)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + } + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height - 8, kTunnelGroup, TunnelSubType::SlopeStart); + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 17)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + kInvertedSpriteOffset }, { 32, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 21)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + kInvertedSpriteOffset }, { 32, 16, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 25)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + kInvertedSpriteOffset }, { 32, 16, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 29)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + kInvertedSpriteOffset }, { 32, 16, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::right, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, + PaintSegment::topRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 18)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + kSupportHeight + 13, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 22)), + { 0, 0, height + kInvertedSpriteOffset }, { { 16, 0, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + kSupportHeight + 13, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 26)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 16, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + kSupportHeight + 8, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 30)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + kSupportHeight + 13, + session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 4: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 19)), + { 0, 0, height + kInvertedSpriteOffset }, { { 16, 0, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 23)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 27)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 31)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 16, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + break; + } + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + } +} + +static void InvertedRCTrackRightEighthToOrthogonalUp25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::right, PaintSegment::centre, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::bottomRight, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 48)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 16, height + kInvertedSpriteOffset + 8 }, { 16, 16, 3 } }); + + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 52)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 16, height + kInvertedSpriteOffset + 8 }, { 16, 16, 3 } }); + + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 56)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 0, height + kInvertedSpriteOffset + 8 }, { 16, 16, 3 } }); + + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 60)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 0, height + kInvertedSpriteOffset + 8 }, { 16, 16, 3 } }); + + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 1: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::centre, PaintSegment::topRight, PaintSegment::right, PaintSegment::topLeft, + PaintSegment::top), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 49)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 0, height + kInvertedSpriteOffset + 16 }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + kSupportHeight + 17, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 53)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 0, height + kInvertedSpriteOffset + 16 }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + kSupportHeight + 17, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 57)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 16, height + kInvertedSpriteOffset + 16 }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + kSupportHeight + 13, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 61)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 16, height + kInvertedSpriteOffset + 16 }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + kSupportHeight + 15, + session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft), direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::right, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::left), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 50)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 0, height + kInvertedSpriteOffset + 8 }, { 16, 32, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 54)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 0, height + kInvertedSpriteOffset + 8 }, { 16, 32, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 58)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 0, height + kInvertedSpriteOffset + 8 }, { 16, 32, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 62)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 0, height + kInvertedSpriteOffset + 8 }, { 16, 32, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 4: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight), direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 51)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 6, 0, height + kInvertedSpriteOffset + 8 }, { 20, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 55)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 6, 0, height + kInvertedSpriteOffset + 8 }, { 20, 32, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 59)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 6, 0, height + kInvertedSpriteOffset + 8 }, { 20, 32, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE + 63)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 6, 0, height + kInvertedSpriteOffset + 8 }, { 20, 32, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + } + if (direction == 0 || direction == 1) + { + PaintUtilPushTunnelRotated(session, direction + 1, height + 8, kTunnelGroup, TunnelSubType::SlopeEnd); + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + } +} + +static void InvertedRCTrackLeftEighthToDiagDown25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + uint8_t map[5] = { 4, 3, 1, 2, 0 }; + trackSequence = map[trackSequence]; + InvertedRCTrackRightEighthToOrthogonalUp25( + session, ride, trackSequence, (direction + 1) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackLeftEighthToOrthogonalDown25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence]; + InvertedRCTrackRightEighthToDiagUp25(session, ride, trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackRightEighthToDiagDown25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + uint8_t map[5] = { 4, 3, 1, 2, 0 }; + trackSequence = map[trackSequence]; + InvertedRCTrackLeftEighthToOrthogonalUp25( + session, ride, trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackRightEighthToOrthogonalDown25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence]; + InvertedRCTrackLeftEighthToDiagUp25(session, ride, trackSequence, (direction + 3) & 3, height, trackElement, supportType); +} + +// wide turn - banked +static void InvertedRCTrackLeftEighthBankToDiagUp25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topRight, PaintSegment::right, PaintSegment::bottomRight, PaintSegment::bottom, + PaintSegment::left, PaintSegment::centre, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 0)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 4)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 8)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 12)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + } + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height - 8, kTunnelGroup, TunnelSubType::SlopeStart); + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 1)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + kInvertedSpriteOffset }, { 32, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 5)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + kInvertedSpriteOffset }, { 32, 16, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 9)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + kInvertedSpriteOffset }, { 32, 16, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 13)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + kInvertedSpriteOffset }, { 32, 16, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, + PaintSegment::topRight, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 2)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + kSupportHeight + 13, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 6)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 16, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 10)), + { 0, 0, height + kInvertedSpriteOffset }, { { 16, 0, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + kSupportHeight + 13, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 14)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + kSupportHeight + 13, + session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::topLeft, PaintSegment::left, PaintSegment::bottomLeft), direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 4: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::top, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomRight, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 3)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 16, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 7)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 11)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 15)), + { 0, 0, height + kInvertedSpriteOffset }, { { 16, 0, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + } +} + +static void InvertedRCTrackLeftEighthBankToOrthogonalUp25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::centre, PaintSegment::right, PaintSegment::bottomRight, + PaintSegment::bottomLeft, PaintSegment::topRight, PaintSegment::topLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 32)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 16, height + kInvertedSpriteOffset + 8 }, { 16, 16, 3 } }); + + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 36)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 16, height + kInvertedSpriteOffset + 8 }, { 16, 16, 3 } }); + + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 40)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 0, height + kInvertedSpriteOffset + 8 }, { 16, 16, 3 } }); + + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 44)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 0, height + kInvertedSpriteOffset + 8 }, { 16, 16, 3 } }); + + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 1: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottomRight, PaintSegment::bottom, PaintSegment::centre, PaintSegment::right, + PaintSegment::bottomLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 33)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 16, height + kInvertedSpriteOffset + 16 }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + kSupportHeight + 17, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 37)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 16, height + kInvertedSpriteOffset + 16 }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + kSupportHeight + 17, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 41)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 0, height + kInvertedSpriteOffset + 16 }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + kSupportHeight + 19, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 45)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 0, height + kInvertedSpriteOffset + 16 }, { 16, 16, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + kSupportHeight + 15, + session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::topLeft, PaintSegment::top, PaintSegment::topRight), direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 3: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 34)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 0, height + kInvertedSpriteOffset + 8 }, { 32, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 38)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 0, height + kInvertedSpriteOffset + 8 }, { 32, 16, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 42)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 16, height + kInvertedSpriteOffset + 8 }, { 32, 16, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 46)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 16, height + kInvertedSpriteOffset + 8 }, { 32, 16, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::topLeft, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::left, PaintSegment::right), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 4: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottomLeft, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 35)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 39)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 43)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 47)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + } + if (direction == 1 || direction == 2) + { + PaintUtilPushTunnelRotated(session, direction, height + 8, kTunnelGroup, TunnelSubType::SlopeEnd); + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + } +} + +static void InvertedRCTrackRightEighthBankToDiagUp25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft, PaintSegment::left, + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 16)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 20)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 24)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 28)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 6, height + kInvertedSpriteOffset + 8 }, { 32, 20, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + } + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height - 8, kTunnelGroup, TunnelSubType::SlopeStart); + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 1: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::right, PaintSegment::topRight, PaintSegment::bottom, PaintSegment::centre, + PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 17)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + kInvertedSpriteOffset }, { 32, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 21)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + kInvertedSpriteOffset }, { 32, 16, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 25)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + kInvertedSpriteOffset }, { 32, 16, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 29)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + kInvertedSpriteOffset }, { 32, 16, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::topLeft, PaintSegment::top, PaintSegment::centre, + PaintSegment::topRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 18)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + kSupportHeight + 13, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 22)), + { 0, 0, height + kInvertedSpriteOffset }, { { 16, 0, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + kSupportHeight + 13, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 26)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 16, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + kSupportHeight + 8, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 30)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + kSupportHeight + 13, + session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::bottom, PaintSegment::bottomRight, PaintSegment::bottomLeft), direction), + 0xFFFF, 0); + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 4: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft, PaintSegment::topRight, + PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 19)), + { 0, 0, height + kInvertedSpriteOffset }, { { 16, 0, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 23)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 0, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 27)), + { 0, 0, height + kInvertedSpriteOffset }, { { 0, 16, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 31)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 16, height + kInvertedSpriteOffset }, { 16, 16, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + } +} + +static void InvertedRCTrackRightEighthBankToOrthogonalUp25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + switch (trackSequence) + { + case 0: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::right, PaintSegment::centre, PaintSegment::left, PaintSegment::bottomLeft, + PaintSegment::bottomRight, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 48)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 16, height + kInvertedSpriteOffset + 8 }, { 16, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 52)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 16, height + kInvertedSpriteOffset + 8 }, { 16, 16, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 56)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 0, height + kInvertedSpriteOffset + 8 }, { 16, 16, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 60)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 0, height + kInvertedSpriteOffset + 8 }, { 16, 16, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 1: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::centre, PaintSegment::topRight, PaintSegment::right, PaintSegment::topLeft, + PaintSegment::top), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 49)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 0, height + kInvertedSpriteOffset + 16 }, { 16, 16, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + kSupportHeight + 19, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 53)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 0, height + kInvertedSpriteOffset + 16 }, { 16, 16, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + kSupportHeight + 19, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 57)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 16, height + kInvertedSpriteOffset + 16 }, { 16, 16, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + kSupportHeight + 19, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 61)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 16, height + kInvertedSpriteOffset + 16 }, { 16, 16, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + kSupportHeight + 17, + session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::topRight, PaintSegment::top, PaintSegment::topLeft), direction), + 0xFFFF, 0); + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::right, PaintSegment::bottomRight, PaintSegment::centre, PaintSegment::bottomRight, + PaintSegment::left), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 50)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 0, height + kInvertedSpriteOffset + 8 }, { 16, 32, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 54)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 0, height + kInvertedSpriteOffset + 8 }, { 16, 32, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 58)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 0, 0, height + kInvertedSpriteOffset + 8 }, { 16, 32, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 62)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 16, 0, height + kInvertedSpriteOffset + 8 }, { 16, 32, 3 } }); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 4: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::topLeft, PaintSegment::centre, PaintSegment::bottomRight, PaintSegment::top, + PaintSegment::topRight, PaintSegment::right), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 51)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 6, 0, height + kInvertedSpriteOffset + 8 }, { 20, 32, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 55)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 6, 0, height + kInvertedSpriteOffset + 8 }, { 20, 32, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 59)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 6, 0, height + kInvertedSpriteOffset + 8 }, { 20, 32, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, + session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_GENTLE_LARGE_CURVE_BANKED + 63)), + { 0, 0, height + kInvertedSpriteOffset }, + { { 6, 0, height + kInvertedSpriteOffset + 8 }, { 20, 32, 3 } }); + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + kSupportHeight + 10, + session.SupportColours); + break; + } + if (direction == 0 || direction == 1) + { + PaintUtilPushTunnelRotated(session, direction + 1, height + 8, kTunnelGroup, TunnelSubType::SlopeEnd); + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + } +} + +static void InvertedRCTrackLeftEighthBankToDiagDown25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + uint8_t map[5] = { 4, 3, 1, 2, 0 }; + trackSequence = map[trackSequence]; + InvertedRCTrackRightEighthBankToOrthogonalUp25( + session, ride, trackSequence, (direction + 1) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackRightEighthBankToDiagDown25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + uint8_t map[5] = { 4, 3, 1, 2, 0 }; + trackSequence = map[trackSequence]; + InvertedRCTrackLeftEighthBankToOrthogonalUp25( + session, ride, trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackLeftEighthBankToOrthogonalDown25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence]; + InvertedRCTrackRightEighthBankToDiagUp25( + session, ride, trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackRightEighthBankToOrthogonalDown25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence]; + InvertedRCTrackLeftEighthBankToDiagUp25( + session, ride, trackSequence, (direction + 3) & 3, height, trackElement, supportType); +} + +// diag banked track and transitions + +static void InvertedRCTrackDiagUp25ToLeftBankedUp25( + 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 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 3)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 0)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + 52, session.SupportColours); + break; + case 1: + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + 52, session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 2)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + 52, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + 52, session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 1)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + } +} + +static void InvertedRCTrackDiagUp25ToRightBankedUp25( + 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 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 7)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 4)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 2: + switch (direction) + { + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 6)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + 60, session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 5)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + 60, session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + 60, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + 60, session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + } +} + +static void InvertedRCTrackDiagLeftBankedUp25ToUp25( + 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 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 11)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 8)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + 52, session.SupportColours); + break; + case 1: + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + 52, session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 10)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + 52, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + 52, session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 9)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + } +} + +static void InvertedRCTrackDiagRightBankedUp25ToUp25( + 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 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 15)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 12)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 2: + switch (direction) + { + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 14)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + 62, session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 13)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + 60, session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + 60, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + 60, session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + } +} + +static void InvertedRCTrackDiagDown25ToLeftBankedDown25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackDiagRightBankedUp25ToUp25( + session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackDiagDown25ToRightBankedDown25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackDiagLeftBankedUp25ToUp25( + session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackDiagLeftBankedDown25ToDown25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackDiagUp25ToRightBankedUp25( + session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackDiagRightBankedDown25ToDown25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackDiagUp25ToLeftBankedUp25( + session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackDiagLeftBankedFlatToLeftBankedUp25( + 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 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 19)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 16)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + 48, session.SupportColours); + break; + case 1: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + 52, session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 18)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + 52, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + 52, session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 72); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 17)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + } +} + +static void InvertedRCTrackDiagRightBankedFlatToRightBankedUp25( + 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 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 23)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 20)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + case 2: + switch (direction) + { + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 22)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + 52, session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 21)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + 52, session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + 52, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + 52, session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + } +} + +static void InvertedRCTrackDiagLeftBankedUp25ToLeftBankedFlat( + 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 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 27)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 24)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + 52, session.SupportColours); + break; + case 1: + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + 54, session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 26)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + 52, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + 52, session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 25)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + } +} + +static void InvertedRCTrackDiagRightBankedUp25ToRightBankedFlat( + 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 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 31)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 28)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + case 2: + + switch (direction) + { + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 30)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + 52, session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 29)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + 52, session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + 52, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + 52, session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + } +} + +static void InvertedRCTrackDiagLeftBankedFlatToLeftBankedDown25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackDiagRightBankedUp25ToRightBankedFlat( + session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackDiagRightBankedFlatToRightBankedDown25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackDiagLeftBankedUp25ToLeftBankedFlat( + session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackDiagLeftBankedDown25ToLeftBankedFlat( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackDiagRightBankedFlatToRightBankedUp25( + session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackDiagRightBankedDown25ToRightBankedFlat( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackDiagLeftBankedFlatToLeftBankedUp25( + session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackDiagUp25LeftBanked( + 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 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 35)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 32)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + 52, session.SupportColours); + break; + case 1: + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + 52, session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 34)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + 52, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + 52, session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 33)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + } +} + +static void InvertedRCTrackDiagUp25RightBanked( + 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 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 39)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 36)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 2: + switch (direction) + { + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 38)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + 60, session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 37)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 45 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + 60, session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + 60, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + 60, session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 80); + break; + } +} + +static void InvertedRCTrackDiagDown25LeftBanked( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackDiagUp25RightBanked( + session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackDiagDown25RightBanked( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackDiagUp25LeftBanked(session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackDiagFlatToLeftBankedUp25( + 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 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 43)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 40)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + 48, session.SupportColours); + break; + case 1: + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + 48, session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 42)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + 52, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + 50, session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 41)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + } +} + +static void InvertedRCTrackDiagFlatToRightBankedUp25( + 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 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 47)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 44)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + case 2: + switch (direction) + { + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 46)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + 48, session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 45)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + 48, session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + 48, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + 48, session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + } +} + +static void InvertedRCTrackDiagLeftBankedUp25ToFlat( + 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 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 51)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 48)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + case 2: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + 52, session.SupportColours); + break; + case 1: + + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + 52, session.SupportColours); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 50)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + 52, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + 52, session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 56); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 49)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + } +} + +static void InvertedRCTrackDiagRightBankedUp25ToFlat( + 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 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 55)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + case 1: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 52)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + case 2: + switch (direction) + { + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 54)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + case 3: + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + switch (direction) + { + case 0: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::leftCorner, 0, height + 52, session.SupportColours); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex((SPR_TRACKS_BM_INVERT_DIAG_SLOPED_BANKING + 53)), + { -16, -16, height + kInvertedSpriteOffset }, { { -16, -16, height + 37 }, { 32, 32, 3 } }); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::topCorner, 0, height + 52, session.SupportColours); + break; + case 2: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::rightCorner, 0, height + 52, session.SupportColours); + break; + case 3: + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::bottomCorner, 0, height + 50, session.SupportColours); + break; + } + + PaintUtilSetGeneralSupportHeight(session, height + 64); + break; + } +} + +static void InvertedRCTrackDiagFlatToLeftBankedDown25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackDiagRightBankedUp25ToFlat( + session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackDiagFlatToRightBankedDown25( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackDiagLeftBankedUp25ToFlat( + session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackDiagLeftBankedDown25ToFlat( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackDiagFlatToRightBankedUp25( + session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +static void InvertedRCTrackDiagRightBankedDown25ToFlat( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + InvertedRCTrackDiagFlatToLeftBankedUp25( + session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType); +} + +// unbanked 1/4 helix + +static void InvertedRCTrackLeftQuarterHelixLargeUp( + 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(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT), + { 0, 0, height + 29 }, { { 0, 6, height + 35 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 5), + { 0, 0, height + 29 }, { { 0, 6, height + 35 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 10), + { 0, 0, height + 29 }, { { 0, 6, height + 35 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 15), + { 0, 0, height + 29 }, { { 0, 6, height + 35 }, { 32, 20, 3 } }); + break; + } + + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft, + PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + 46, session.SupportColours); + + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::Flat); + } + PaintUtilSetGeneralSupportHeight(session, height + 48); + break; + case 1: + PaintUtilSetGeneralSupportHeight(session, height + 48); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 1), + { 0, 0, height + 29 }, { { 0, 0, height + 43 }, { 32, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 6), + { 0, 0, height + 29 }, { { 0, 0, height + 43 }, { 32, 16, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 11), + { 0, 0, height + 29 }, { { 0, 16, height + 43 }, { 32, 16, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 16), + { 0, 0, height + 29 }, { { 0, 16, height + 43 }, { 32, 16, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::topRight, PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 48); + break; + case 3: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 2), + { 0, 0, height + 29 }, { { 0, 16, height + 43 }, { 16, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 7), + { 0, 0, height + 29 }, { { 16, 16, height + 43 }, { 16, 16, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 12), + { 0, 0, height + 29 }, { { 16, 0, height + 43 }, { 16, 16, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 17), + { 0, 0, height + 29 }, { { 0, 0, height + 43 }, { 16, 16, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 48); + break; + case 4: + PaintUtilSetGeneralSupportHeight(session, height + 48); + break; + case 5: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 3), + { 0, 0, height + 29 }, { { 16, 0, height + 43 }, { 16, 32, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 8), + { 0, 0, height + 29 }, { { 0, 0, height + 43 }, { 16, 32, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 13), + { 0, 0, height + 29 }, { { 0, 0, height + 43 }, { 16, 32, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 18), + { 0, 0, height + 29 }, { { 16, 0, height + 43 }, { 16, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 48); + break; + case 6: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 4), + { 0, 0, height + 29 }, { { 6, 0, height + 43 }, { 20, 32, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 9), + { 0, 0, height + 29 }, { { 6, 0, height + 43 }, { 20, 32, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 14), + { 0, 0, height + 29 }, { { 6, 0, height + 43 }, { 20, 32, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_LEFT + 19), + { 0, 0, height + 29 }, { { 6, 0, height + 43 }, { 20, 32, 3 } }); + break; + } + + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + 58, session.SupportColours); + + switch (direction) + { + case 2: + PaintUtilPushTunnelRight(session, height + 16, kTunnelGroup, TunnelSubType::Flat); + break; + case 3: + PaintUtilPushTunnelLeft(session, height + 16, kTunnelGroup, TunnelSubType::Flat); + break; + } + PaintUtilSetGeneralSupportHeight(session, height + 48); + break; + } +} + +static void InvertedRCTrackRightQuarterHelixLargeUp( + 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(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT), + { 0, 0, height + 29 }, { { 0, 6, height + 35 }, { 32, 20, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 5), + { 0, 0, height + 29 }, { { 0, 6, height + 35 }, { 32, 20, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 10), + { 0, 0, height + 29 }, { { 0, 6, height + 35 }, { 32, 20, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 15), + { 0, 0, height + 29 }, { { 0, 6, height + 35 }, { 32, 20, 3 } }); + break; + } + + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::right, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomLeft), + direction), + 0xFFFF, 0); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + 46, session.SupportColours); + + if (direction == 0 || direction == 3) + { + PaintUtilPushTunnelRotated(session, direction, height, kTunnelGroup, TunnelSubType::Flat); + } + PaintUtilSetGeneralSupportHeight(session, height + 48); + break; + case 1: + PaintUtilSetGeneralSupportHeight(session, height + 48); + break; + case 2: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 1), + { 0, 0, height + 29 }, { { 0, 16, height + 43 }, { 32, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 6), + { 0, 0, height + 29 }, { { 0, 16, height + 43 }, { 32, 16, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 11), + { 0, 0, height + 29 }, { { 0, 0, height + 43 }, { 32, 16, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 16), + { 0, 0, height + 29 }, { { 0, 0, height + 43 }, { 32, 16, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topRight, + PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 48); + break; + case 3: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 2), + { 0, 0, height + 29 }, { { 0, 0, height + 43 }, { 16, 16, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 7), + { 0, 0, height + 29 }, { { 16, 0, height + 43 }, { 16, 16, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 12), + { 0, 0, height + 29 }, { { 16, 16, height + 43 }, { 16, 16, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 17), + { 0, 0, height + 29 }, { { 0, 16, height + 43 }, { 16, 16, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 48); + break; + case 4: + PaintUtilSetGeneralSupportHeight(session, height + 48); + break; + case 5: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 3), + { 0, 0, height + 29 }, { { 16, 0, height + 43 }, { 16, 32, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 8), + { 0, 0, height + 29 }, { { 0, 0, height + 43 }, { 16, 32, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 13), + { 0, 0, height + 29 }, { { 0, 0, height + 43 }, { 16, 32, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 18), + { 0, 0, height + 29 }, { { 16, 0, height + 43 }, { 16, 32, 3 } }); + break; + } + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, + PaintSegment::bottomLeft, PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + PaintUtilSetGeneralSupportHeight(session, height + 48); + break; + case 6: + switch (direction) + { + case 0: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 4), + { 0, 0, height + 29 }, { { 6, 0, height + 43 }, { 20, 32, 3 } }); + break; + case 1: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 9), + { 0, 0, height + 29 }, { { 6, 0, height + 43 }, { 20, 32, 3 } }); + break; + case 2: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 14), + { 0, 0, height + 29 }, { { 6, 0, height + 43 }, { 20, 32, 3 } }); + break; + case 3: + PaintAddImageAsParentRotated( + session, direction, session.TrackColours.WithIndex(SPR_TRACKS_BM_INVERT_QUARTER_HELIX_RIGHT + 19), + { 0, 0, height + 29 }, { { 6, 0, height + 43 }, { 20, 32, 3 } }); + break; + } + + PaintUtilSetSegmentSupportHeight( + session, + PaintUtilRotateSegments( + EnumsToFlags( + PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight, + PaintSegment::bottomRight), + direction), + 0xFFFF, 0); + MetalASupportsPaintSetup( + session, supportType.metal, MetalSupportPlace::centre, 0, height + 58, session.SupportColours); + + switch (direction) + { + case 0: + PaintUtilPushTunnelRight(session, height + 16, kTunnelGroup, TunnelSubType::Flat); + break; + case 1: + PaintUtilPushTunnelLeft(session, height + 16, kTunnelGroup, TunnelSubType::Flat); + break; + } + PaintUtilSetGeneralSupportHeight(session, height + 48); + break; + } +} + +static void InvertedRCTrackRightQuarterHelixLargeDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + trackSequence = kMapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence]; + InvertedRCTrackLeftQuarterHelixLargeUp( + session, ride, trackSequence, (direction - 1) & 3, height, trackElement, supportType); +} +static void InvertedRCTrackLeftQuarterHelixLargeDown( + PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, + const TrackElement& trackElement, SupportType supportType) +{ + trackSequence = kMapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence]; + InvertedRCTrackRightQuarterHelixLargeUp( + session, ride, trackSequence, DirectionNext(direction), height, trackElement, supportType); +} TrackPaintFunction GetTrackPaintFunctionInvertedRC(TrackElemType trackType) { switch (trackType) @@ -11542,8 +19761,10 @@ TrackPaintFunction GetTrackPaintFunctionInvertedRC(TrackElemType trackType) return InvertedRCTrackLeftLargeHalfLoopDown; case TrackElemType::rightLargeHalfLoopDown: return InvertedRCTrackRightLargeHalfLoopDown; + case TrackElemType::blockBrakes: return InvertedRCTrackBlockBrakes; + case TrackElemType::leftBankedQuarterTurn3TileUp25: return InvertedRCTrackLeftBankedQuarterTurn325DegUp; case TrackElemType::rightBankedQuarterTurn3TileUp25: @@ -11609,10 +19830,253 @@ TrackPaintFunction GetTrackPaintFunctionInvertedRC(TrackElemType trackType) case TrackElemType::rightBankedDown25ToFlat: return InvertedRCTrackRightBanked25DegDownToFlat; + // New Inversions + // Medium half loops + case TrackElemType::leftMediumHalfLoopUp: + return InvertedRCTrackLeftMediumHalfLoopUp; + case TrackElemType::rightMediumHalfLoopUp: + return InvertedRCTrackRightMediumHalfLoopUp; + case TrackElemType::leftMediumHalfLoopDown: + return InvertedRCTrackLeftMediumHalfLoopDown; + case TrackElemType::rightMediumHalfLoopDown: + return InvertedRCTrackRightMediumHalfLoopDown; + + // barrell rolls + case TrackElemType::leftBarrelRollUpToDown: + return InvertedRCTrackLeftBarrelRollUpToDown; + case TrackElemType::rightBarrelRollUpToDown: + return InvertedRCTrackRightBarrelRollUpToDown; + case TrackElemType::leftBarrelRollDownToUp: + return InvertedRCTrackLeftBarrelRollDownToUp; + case TrackElemType::rightBarrelRollDownToUp: + return InvertedRCTrackRightBarrelRollDownToUp; + + // large corkscrew + case TrackElemType::leftLargeCorkscrewUp: + return InvertedRCTrackLeftLargeCorkscrewUp; + case TrackElemType::rightLargeCorkscrewUp: + return InvertedRCTrackRightLargeCorkscrewUp; + case TrackElemType::leftLargeCorkscrewDown: + return InvertedRCTrackLeftLargeCorkscrewDown; + case TrackElemType::rightLargeCorkscrewDown: + return InvertedRCTrackRightLargeCorkscrewDown; + + // zero-g rolls + case TrackElemType::leftZeroGRollUp: + return InvertedRCTrackLeftZeroGRollUp; + case TrackElemType::rightZeroGRollUp: + return InvertedRCTrackRightZeroGRollUp; + case TrackElemType::leftZeroGRollDown: + return InvertedRCTrackLeftZeroGRollDown; + case TrackElemType::rightZeroGRollDown: + return InvertedRCTrackRightZeroGRollDown; + case TrackElemType::leftLargeZeroGRollUp: + return InvertedRCTrackLeftLargeZeroGRollUp; + case TrackElemType::rightLargeZeroGRollUp: + return InvertedRCTrackRightLargeZeroGRollUp; + case TrackElemType::leftLargeZeroGRollDown: + return InvertedRCTrackLeftLargeZeroGRollDown; + case TrackElemType::rightLargeZeroGRollDown: + return InvertedRCTrackRightLargeZeroGRollDown; + + // dive loops + case TrackElemType::leftEighthDiveLoopUpToOrthogonal: + return InvertedRCTrackLeftEighthDiveLoopUpToOrthogonal; + case TrackElemType::rightEighthDiveLoopUpToOrthogonal: + return InvertedRCTrackRightEighthDiveLoopUpToOrthogonal; + case TrackElemType::leftEighthDiveLoopDownToDiag: + return InvertedRCTrackLeftEighthDiveLoopDownToDiag; + case TrackElemType::rightEighthDiveLoopDownToDiag: + return InvertedRCTrackRightEighthDiveLoopToDownOrthogonal; + + // flat to steep transitions + // large + case TrackElemType::flatToUp60LongBase: + return InvertedRCTrackFlatTo60DegUpLongBase; + case TrackElemType::up60ToFlatLongBase: + return InvertedRCTrack60DegUpToFlatLongBase; + case TrackElemType::down60ToFlatLongBase: + return InvertedRCTrack60DegDownToFlatLongBase; + case TrackElemType::flatToDown60LongBase: + return InvertedRCTrackFlatTo60DegDownLongBase; + + case TrackElemType::diagFlatToUp60LongBase: + return InvertedRCTrackDiagFlatTo60DegUpLongBase; + case TrackElemType::diagUp60ToFlatLongBase: + return InvertedRCTrackDiag60DegUpToFlatLongBase; + case TrackElemType::diagFlatToDown60LongBase: + return InvertedRCTrackDiagFlatTo60DegDownLongBase; + case TrackElemType::diagDown60ToFlatLongBase: + return InvertedRCTrackDiag60DegDownToFlatLongBase; + + // small + case TrackElemType::flatToUp60: + return InvertedRCTrackFlatTo60DegUp; + case TrackElemType::up60ToFlat: + return InvertedRCTrack60DegUpToFlat; + case TrackElemType::flatToDown60: + return InvertedRCTrackFlatTo60DegDown; + case TrackElemType::down60ToFlat: + return InvertedRCTrack60DegDownToFlat; + case TrackElemType::diagFlatToUp60: + return InvertedRCTrackDiagFlatTo60DegUp; + case TrackElemType::diagUp60ToFlat: + return InvertedRCTrackDiag60DegUpToFlat; + case TrackElemType::diagFlatToDown60: + return InvertedRCTrackDiagFlatTo60DegDown; + case TrackElemType::diagDown60ToFlat: + return InvertedRCTrackDiag60DegDownToFlat; + + // banked to sloped small turns + case TrackElemType::leftBankToLeftQuarterTurn3TilesUp25: + return InvertedRCTrackLeftBankToLeftQuarterTurn3Tile25DegUp; + case TrackElemType::rightBankToRightQuarterTurn3TilesUp25: + return InvertedRCTrackRightBankToRightQuarterTurn3Tile25DegUp; + case TrackElemType::leftQuarterTurn3TilesDown25ToLeftBank: + return InvertedRCTrackLeftQuarterTurn3Tile25DegDownToLeftBank; + case TrackElemType::rightQuarterTurn3TilesDown25ToRightBank: + return InvertedRCTrackRightQuarterTurn3Tile25DegDownToRightBank; + + // vertical slopes and transitions + case TrackElemType::up90: + return InvertedRCTrack90DegUp; + case TrackElemType::down90: + return InvertedRCTrack90DegDown; + case TrackElemType::up60ToUp90: + return InvertedRCTrack60DegUpTo90DegUp; + case TrackElemType::down90ToDown60: + return InvertedRCTrack90DegDownTo60DegDown; + case TrackElemType::up90ToUp60: + return InvertedRCTrack90DegUpTo60DegUp; + case TrackElemType::down60ToDown90: + return InvertedRCTrack60DegDownTo90DegDown; + + // Vertical turns + case TrackElemType::leftQuarterTurn1TileUp90: + return InvertedRCTrackLeftQuarterTurn1TileUp90; + case TrackElemType::rightQuarterTurn1TileUp90: + return InvertedRCTrackRightQuarterTurn1TileUp90; + case TrackElemType::leftQuarterTurn1TileDown90: + return InvertedRCTrackLeftQuarterTurn1TileDown90; + case TrackElemType::rightQuarterTurn1TileDown90: + return InvertedRCTrackRightQuarterTurn1TileDown90; + + // quarter loops + case TrackElemType::invertedFlatToDown90QuarterLoop: + return InvertedRCTrackInvertedFlatTo90DegQuarterLoopDown; + case TrackElemType::up90ToInvertedFlatQuarterLoop: + return InvertedRCTrack90DegToInvertedFlatQuarterLoopUp; + + // wide sloped turns + case TrackElemType::leftEighthToDiagUp25: + return InvertedRCTrackLeftEighthToDiagUp25; + case TrackElemType::leftEighthToOrthogonalUp25: + return InvertedRCTrackLeftEighthToOrthogonalUp25; + case TrackElemType::rightEighthToDiagUp25: + return InvertedRCTrackRightEighthToDiagUp25; + case TrackElemType::rightEighthToOrthogonalUp25: + return InvertedRCTrackRightEighthToOrthogonalUp25; + case TrackElemType::leftEighthToDiagDown25: + return InvertedRCTrackLeftEighthToDiagDown25; + case TrackElemType::leftEighthToOrthogonalDown25: + return InvertedRCTrackLeftEighthToOrthogonalDown25; + case TrackElemType::rightEighthToDiagDown25: + return InvertedRCTrackRightEighthToDiagDown25; + case TrackElemType::rightEighthToOrthogonalDown25: + return InvertedRCTrackRightEighthToOrthogonalDown25; + + // wide sloped banked turns + case TrackElemType::leftEighthBankToDiagUp25: + return InvertedRCTrackLeftEighthBankToDiagUp25; + case TrackElemType::rightEighthBankToDiagUp25: + return InvertedRCTrackRightEighthBankToDiagUp25; + case TrackElemType::leftEighthBankToDiagDown25: + return InvertedRCTrackLeftEighthBankToDiagDown25; + case TrackElemType::rightEighthBankToDiagDown25: + return InvertedRCTrackRightEighthBankToDiagDown25; + case TrackElemType::leftEighthBankToOrthogonalUp25: + return InvertedRCTrackLeftEighthBankToOrthogonalUp25; + case TrackElemType::rightEighthBankToOrthogonalUp25: + return InvertedRCTrackRightEighthBankToOrthogonalUp25; + case TrackElemType::leftEighthBankToOrthogonalDown25: + return InvertedRCTrackLeftEighthBankToOrthogonalDown25; + case TrackElemType::rightEighthBankToOrthogonalDown25: + return InvertedRCTrackRightEighthBankToOrthogonalDown25; + + // diag bank and slopes + case TrackElemType::diagUp25ToLeftBankedUp25: + return InvertedRCTrackDiagUp25ToLeftBankedUp25; + case TrackElemType::diagUp25ToRightBankedUp25: + return InvertedRCTrackDiagUp25ToRightBankedUp25; + case TrackElemType::diagLeftBankedUp25ToUp25: + return InvertedRCTrackDiagLeftBankedUp25ToUp25; + case TrackElemType::diagRightBankedUp25ToUp25: + return InvertedRCTrackDiagRightBankedUp25ToUp25; + case TrackElemType::diagDown25ToLeftBankedDown25: + return InvertedRCTrackDiagDown25ToLeftBankedDown25; + case TrackElemType::diagDown25ToRightBankedDown25: + return InvertedRCTrackDiagDown25ToRightBankedDown25; + case TrackElemType::diagLeftBankedDown25ToDown25: + return InvertedRCTrackDiagLeftBankedDown25ToDown25; + case TrackElemType::diagRightBankedDown25ToDown25: + return InvertedRCTrackDiagRightBankedDown25ToDown25; + case TrackElemType::diagLeftBankedFlatToLeftBankedUp25: + return InvertedRCTrackDiagLeftBankedFlatToLeftBankedUp25; + case TrackElemType::diagRightBankedFlatToRightBankedUp25: + return InvertedRCTrackDiagRightBankedFlatToRightBankedUp25; + case TrackElemType::diagLeftBankedUp25ToLeftBankedFlat: + return InvertedRCTrackDiagLeftBankedUp25ToLeftBankedFlat; + case TrackElemType::diagRightBankedUp25ToRightBankedFlat: + return InvertedRCTrackDiagRightBankedUp25ToRightBankedFlat; + case TrackElemType::diagLeftBankedFlatToLeftBankedDown25: + return InvertedRCTrackDiagLeftBankedFlatToLeftBankedDown25; + case TrackElemType::diagRightBankedFlatToRightBankedDown25: + return InvertedRCTrackDiagRightBankedFlatToRightBankedDown25; + case TrackElemType::diagLeftBankedDown25ToLeftBankedFlat: + return InvertedRCTrackDiagLeftBankedDown25ToLeftBankedFlat; + case TrackElemType::diagRightBankedDown25ToRightBankedFlat: + return InvertedRCTrackDiagRightBankedDown25ToRightBankedFlat; + case TrackElemType::diagUp25LeftBanked: + return InvertedRCTrackDiagUp25LeftBanked; + case TrackElemType::diagUp25RightBanked: + return InvertedRCTrackDiagUp25RightBanked; + case TrackElemType::diagDown25LeftBanked: + return InvertedRCTrackDiagDown25LeftBanked; + case TrackElemType::diagDown25RightBanked: + return InvertedRCTrackDiagDown25RightBanked; + case TrackElemType::diagFlatToLeftBankedUp25: + return InvertedRCTrackDiagFlatToLeftBankedUp25; + case TrackElemType::diagFlatToRightBankedUp25: + return InvertedRCTrackDiagFlatToRightBankedUp25; + case TrackElemType::diagLeftBankedUp25ToFlat: + return InvertedRCTrackDiagLeftBankedUp25ToFlat; + case TrackElemType::diagRightBankedUp25ToFlat: + return InvertedRCTrackDiagRightBankedUp25ToFlat; + case TrackElemType::diagFlatToLeftBankedDown25: + return InvertedRCTrackDiagFlatToLeftBankedDown25; + case TrackElemType::diagFlatToRightBankedDown25: + return InvertedRCTrackDiagFlatToRightBankedDown25; + case TrackElemType::diagLeftBankedDown25ToFlat: + return InvertedRCTrackDiagLeftBankedDown25ToFlat; + case TrackElemType::diagRightBankedDown25ToFlat: + return InvertedRCTrackDiagRightBankedDown25ToFlat; + + // Unbanked Helix + case TrackElemType::leftQuarterHelixLargeUp: + return InvertedRCTrackLeftQuarterHelixLargeUp; + case TrackElemType::rightQuarterHelixLargeUp: + return InvertedRCTrackRightQuarterHelixLargeUp; + case TrackElemType::leftQuarterHelixLargeDown: + return InvertedRCTrackLeftQuarterHelixLargeDown; + case TrackElemType::rightQuarterHelixLargeDown: + return InvertedRCTrackRightQuarterHelixLargeDown; + + // diag breaks case TrackElemType::diagBrakes: case TrackElemType::diagBlockBrakes: return InvertedRCTrackDiagBrakes; + // booster case TrackElemType::booster: return InvertedRCTrackBooster; default: diff --git a/src/openrct2/park/Legacy.cpp b/src/openrct2/park/Legacy.cpp index 10b9f9be93..4dbee3855d 100644 --- a/src/openrct2/park/Legacy.cpp +++ b/src/openrct2/park/Legacy.cpp @@ -3017,6 +3017,120 @@ bool TrackTypeMustBeMadeInvisible(const OpenRCT2::TrackElement& trackElement, co } } + else if ((rideType == RIDE_TYPE_INVERTED_ROLLER_COASTER) && parkFileVersion < kExtendedInvertedRollerCoasterVersion) + { + switch (trackType) + { + case TrackElemType::flatToUp60: + case TrackElemType::up60ToFlat: + case TrackElemType::flatToDown60: + case TrackElemType::down60ToFlat: + case TrackElemType::diagFlatToUp60: + case TrackElemType::diagUp60ToFlat: + case TrackElemType::diagFlatToDown60: + case TrackElemType::diagDown60ToFlat: + case TrackElemType::flatToUp60LongBase: + case TrackElemType::up60ToFlatLongBase: + case TrackElemType::down60ToFlatLongBase: + case TrackElemType::flatToDown60LongBase: + case TrackElemType::up90: + case TrackElemType::down90: + case TrackElemType::up60ToUp90: + case TrackElemType::down90ToDown60: + case TrackElemType::up90ToUp60: + case TrackElemType::down60ToDown90: + case TrackElemType::leftQuarterTurn1TileUp90: + case TrackElemType::rightQuarterTurn1TileUp90: + case TrackElemType::leftQuarterTurn1TileDown90: + case TrackElemType::rightQuarterTurn1TileDown90: + case TrackElemType::leftEighthToDiagUp25: + case TrackElemType::rightEighthToDiagUp25: + case TrackElemType::leftEighthToDiagDown25: + case TrackElemType::rightEighthToDiagDown25: + case TrackElemType::leftEighthToOrthogonalUp25: + case TrackElemType::rightEighthToOrthogonalUp25: + case TrackElemType::leftEighthToOrthogonalDown25: + case TrackElemType::rightEighthToOrthogonalDown25: + case TrackElemType::diagUp25ToLeftBankedUp25: + case TrackElemType::diagUp25ToRightBankedUp25: + case TrackElemType::diagLeftBankedUp25ToUp25: + case TrackElemType::diagRightBankedUp25ToUp25: + case TrackElemType::diagDown25ToLeftBankedDown25: + case TrackElemType::diagDown25ToRightBankedDown25: + case TrackElemType::diagLeftBankedDown25ToDown25: + case TrackElemType::diagRightBankedDown25ToDown25: + case TrackElemType::diagLeftBankedFlatToLeftBankedUp25: + case TrackElemType::diagRightBankedFlatToRightBankedUp25: + case TrackElemType::diagLeftBankedUp25ToLeftBankedFlat: + case TrackElemType::diagRightBankedUp25ToRightBankedFlat: + case TrackElemType::diagLeftBankedFlatToLeftBankedDown25: + case TrackElemType::diagRightBankedFlatToRightBankedDown25: + case TrackElemType::diagLeftBankedDown25ToLeftBankedFlat: + case TrackElemType::diagRightBankedDown25ToRightBankedFlat: + case TrackElemType::diagUp25LeftBanked: + case TrackElemType::diagUp25RightBanked: + case TrackElemType::diagDown25LeftBanked: + case TrackElemType::diagDown25RightBanked: + case TrackElemType::diagFlatToLeftBankedUp25: + case TrackElemType::diagFlatToRightBankedUp25: + case TrackElemType::diagLeftBankedUp25ToFlat: + case TrackElemType::diagRightBankedUp25ToFlat: + case TrackElemType::diagFlatToLeftBankedDown25: + case TrackElemType::diagFlatToRightBankedDown25: + case TrackElemType::diagLeftBankedDown25ToFlat: + case TrackElemType::diagRightBankedDown25ToFlat: + case TrackElemType::leftEighthBankToDiagUp25: + case TrackElemType::rightEighthBankToDiagUp25: + case TrackElemType::leftEighthBankToDiagDown25: + case TrackElemType::rightEighthBankToDiagDown25: + case TrackElemType::leftEighthBankToOrthogonalUp25: + case TrackElemType::rightEighthBankToOrthogonalUp25: + case TrackElemType::leftEighthBankToOrthogonalDown25: + case TrackElemType::rightEighthBankToOrthogonalDown25: + case TrackElemType::leftBankToLeftQuarterTurn3TilesUp25: + case TrackElemType::rightBankToRightQuarterTurn3TilesUp25: + case TrackElemType::leftQuarterTurn3TilesDown25ToLeftBank: + case TrackElemType::rightQuarterTurn3TilesDown25ToRightBank: + case TrackElemType::leftLargeCorkscrewUp: + case TrackElemType::rightLargeCorkscrewUp: + case TrackElemType::leftLargeCorkscrewDown: + case TrackElemType::rightLargeCorkscrewDown: + case TrackElemType::up90ToInvertedFlatQuarterLoop: + case TrackElemType::invertedFlatToDown90QuarterLoop: + case TrackElemType::leftMediumHalfLoopUp: + case TrackElemType::rightMediumHalfLoopUp: + case TrackElemType::leftMediumHalfLoopDown: + case TrackElemType::rightMediumHalfLoopDown: + case TrackElemType::leftBarrelRollUpToDown: + case TrackElemType::rightBarrelRollUpToDown: + case TrackElemType::leftBarrelRollDownToUp: + case TrackElemType::rightBarrelRollDownToUp: + case TrackElemType::leftZeroGRollUp: + case TrackElemType::rightZeroGRollUp: + case TrackElemType::leftZeroGRollDown: + case TrackElemType::rightZeroGRollDown: + case TrackElemType::leftLargeZeroGRollUp: + case TrackElemType::rightLargeZeroGRollUp: + case TrackElemType::leftLargeZeroGRollDown: + case TrackElemType::rightLargeZeroGRollDown: + case TrackElemType::leftQuarterHelixLargeUp: + case TrackElemType::rightQuarterHelixLargeUp: + case TrackElemType::leftQuarterHelixLargeDown: + case TrackElemType::rightQuarterHelixLargeDown: + case TrackElemType::diagFlatToUp60LongBase: + case TrackElemType::diagUp60ToFlatLongBase: + case TrackElemType::diagFlatToDown60LongBase: + case TrackElemType::diagDown60ToFlatLongBase: + case TrackElemType::leftEighthDiveLoopUpToOrthogonal: + case TrackElemType::rightEighthDiveLoopUpToOrthogonal: + case TrackElemType::leftEighthDiveLoopDownToDiag: + case TrackElemType::rightEighthDiveLoopDownToDiag: + return true; + default: + break; + } + } + return false; } diff --git a/src/openrct2/park/Legacy.h b/src/openrct2/park/Legacy.h index 27617bf37f..bebe4b7ed3 100644 --- a/src/openrct2/park/Legacy.h +++ b/src/openrct2/park/Legacy.h @@ -11,6 +11,7 @@ #include "../core/FlagHolder.hpp" #include "../object/ObjectTypes.h" +#include "../ride/Track.h" #include #include diff --git a/src/openrct2/park/ParkFile.h b/src/openrct2/park/ParkFile.h index f1d98f4890..b28206527b 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 = 60; + constexpr uint32_t kParkFileCurrentVersion = 61; // The minimum version that is forwards compatible with the current version. constexpr uint32_t kParkFileMinVersion = 57; @@ -60,6 +60,7 @@ namespace OpenRCT2 constexpr uint16_t kFixedObsoleteFootpathsVersion = 56; constexpr uint16_t kRevertToVanillaFairRidePriceCalculation = 58; constexpr uint16_t kParkFileVersionUprightQuarterHelices = 60; + constexpr uint16_t kExtendedInvertedRollerCoasterVersion = 61; class ParkFileExporter { diff --git a/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h b/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h index c11d73b0ac..eb3b88d2ee 100644 --- a/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h +++ b/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h @@ -23,8 +23,8 @@ constexpr RideTypeDescriptor InvertedRollerCoasterRTD = .TrackPaintFunctions = TrackDrawerDescriptor({ .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 }, - .extraTrackGroups = {TrackGroup::booster}, + .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 }, }), .InvertedTrackPaintFunctions = {}, .flags = kRtdFlagsHasThreeColours | kRtdFlagsCommonCoaster | kRtdFlagsCommonCoasterNonAlt |