From b0c98588a5d4d03e074884f80827c10345fdef12 Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Sat, 15 Oct 2016 14:14:32 +0200 Subject: [PATCH] Removes unused variables --- src/ride/transport/minature_railway.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/ride/transport/minature_railway.c b/src/ride/transport/minature_railway.c index 8df2e6e892..e1a36bd12e 100644 --- a/src/ride/transport/minature_railway.c +++ b/src/ride/transport/minature_railway.c @@ -1627,23 +1627,12 @@ static void miniature_railway_track_diag_25_deg_up(uint8 rideIndex, uint8 trackS /** rct2: 0x008AD210 */ static void miniature_railway_track_diag_flat_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement) { - sint8 supportFunction = WOOD_B; - sint16 supportType = monorail_diag_support_types[direction][trackSequence]; - if (supportType == SUPPORT_PLAIN || supportType == SUPPORT_PLAIN_90_DEG) { - supportFunction = WOOD_A; - } - - sint8 heightDiffs[] = {+8, -8, +8, -8}; - sint8 heightDiff = heightDiffs[direction]; - if (trackSequence == 3) { - heightDiff = 8; - } - bool hasSupports = false; uint32 floorImage; rct_xy16 floorBoundSize, floorBoundOffset; + sint16 supportType = monorail_diag_support_types[direction][trackSequence]; if (supportType != -1) { floorImage = floors[supportType].image_id; floorBoundSize = floors[supportType].bound_size;