1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Remove unnecessary static_casts

This commit is contained in:
Sijmen Schoon
2019-10-31 16:18:44 +01:00
parent 3f3baa2b13
commit a815a3c626
2 changed files with 6 additions and 6 deletions

View File

@@ -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<int16_t>(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<int16_t>(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<int16_t>(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<int16_t>(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<int16_t>(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;
}

View File

@@ -142,7 +142,7 @@ static void top_spin_paint_vehicle(
}
image_id += seatImageId;
CoordsXYZ seatCoords(al, cl, static_cast<int16_t>(height));
CoordsXYZ seatCoords(al, cl, height);
if (armRotation >= static_cast<int8_t>(std::size(TopSpinSeatHeightOffset)))
{