From a815a3c6263a24bcae4f4a5ec911fa574ed6fa38 Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Thu, 31 Oct 2019 16:18:44 +0100 Subject: [PATCH] Remove unnecessary static_casts --- src/openrct2/ride/TrackPaint.cpp | 10 +++++----- src/openrct2/ride/thrill/TopSpin.cpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/openrct2/ride/TrackPaint.cpp b/src/openrct2/ride/TrackPaint.cpp index 6423970be1..a87e9519d0 100644 --- a/src/openrct2/ride/TrackPaint.cpp +++ b/src/openrct2/ride/TrackPaint.cpp @@ -775,27 +775,27 @@ bool track_paint_util_draw_station_covers_2( int32_t imageOffset = 0; CoordsXYZ bounds, boundsOffset; - CoordsXYZ offset = CoordsXYZ(0, 0, static_cast(height)); + CoordsXYZ offset = CoordsXYZ(0, 0, height); switch (edge) { case EDGE_NE: bounds = CoordsXYZ(1, 30, heights[stationVariant][0]); - boundsOffset = CoordsXYZ(0, 1, static_cast(height + 1)); + boundsOffset = CoordsXYZ(0, 1, height + 1); imageOffset = hasFence ? SPR_STATION_COVER_OFFSET_SE_NW_BACK_1 : SPR_STATION_COVER_OFFSET_SE_NW_BACK_0; break; case EDGE_SE: bounds = CoordsXYZ(32, 32, 0); - boundsOffset = CoordsXYZ(0, 0, static_cast(height + 1 + heights[stationVariant][0])); + boundsOffset = CoordsXYZ(0, 0, height + 1 + heights[stationVariant][0]); imageOffset = SPR_STATION_COVER_OFFSET_NE_SW_FRONT; break; case EDGE_SW: bounds = CoordsXYZ(32, 32, 0); - boundsOffset = CoordsXYZ(0, 0, static_cast(height + 1 + heights[stationVariant][0])); + boundsOffset = CoordsXYZ(0, 0, height + 1 + heights[stationVariant][0]); imageOffset = SPR_STATION_COVER_OFFSET_SE_NW_FRONT; break; case EDGE_NW: bounds = CoordsXYZ(30, 1, heights[stationVariant][0]); - boundsOffset = CoordsXYZ(1, 0, static_cast(height + 1)); + boundsOffset = CoordsXYZ(1, 0, height + 1); imageOffset = hasFence ? SPR_STATION_COVER_OFFSET_NE_SW_BACK_1 : SPR_STATION_COVER_OFFSET_NE_SW_BACK_0; break; } diff --git a/src/openrct2/ride/thrill/TopSpin.cpp b/src/openrct2/ride/thrill/TopSpin.cpp index 769aa87fbc..61d7a5e3f0 100644 --- a/src/openrct2/ride/thrill/TopSpin.cpp +++ b/src/openrct2/ride/thrill/TopSpin.cpp @@ -142,7 +142,7 @@ static void top_spin_paint_vehicle( } image_id += seatImageId; - CoordsXYZ seatCoords(al, cl, static_cast(height)); + CoordsXYZ seatCoords(al, cl, height); if (armRotation >= static_cast(std::size(TopSpinSeatHeightOffset))) {