mirror of https://github.com/OpenRCT2/OpenRCT2.git
Refactor uses of PaintAddImageAsParent in AirPoweredVerticalCoaster.cpp
This commit is contained in:
parent
a12a2b6964
commit
4009582f6d
|
@ -437,13 +437,13 @@ static void air_powered_vertical_rc_track_banked_right_quarter_turn_5(
|
|||
{
|
||||
uint32_t imageId = SPR_AIR_POWERED_VERTICAL_RC_BANKED_QUARTER_TURN_5_FRONT_NW_SW_PART_4
|
||||
| session->TrackColours[SCHEME_TRACK];
|
||||
PaintAddImageAsParent(session, imageId, 0, 0, 32, 1, 26, height, 0, 27, height);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height });
|
||||
}
|
||||
else if (direction == 3 && trackSequence == 0)
|
||||
{
|
||||
uint32_t imageId = SPR_AIR_POWERED_VERTICAL_RC_BANKED_QUARTER_TURN_5_FRONT_SE_NE_PART_0
|
||||
| session->TrackColours[SCHEME_TRACK];
|
||||
PaintAddImageAsParent(session, imageId, 0, 0, 1, 32, 26, height, 27, 0, height);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 32, 26 }, { 27, 0, height });
|
||||
}
|
||||
|
||||
track_paint_util_right_quarter_turn_5_tiles_wooden_supports(session, height, direction, trackSequence);
|
||||
|
@ -729,7 +729,7 @@ static void air_powered_vertical_rc_track_vertical_slope_up(
|
|||
{
|
||||
floorImageId = SPR_FLOOR_PLANKS | session->TrackColours[SCHEME_SUPPORTS];
|
||||
}
|
||||
PaintAddImageAsParent(session, floorImageId, 0, 0, 26, 26, 126, height, 3, 3, height);
|
||||
PaintAddImageAsParent(session, floorImageId, { 0, 0, height }, { 26, 26, 126 }, { 3, 3, height });
|
||||
PaintAddImageAsChildRotated(session, direction, supportsImageId, 0, 0, 26, 26, 126, height, 3, 3, height);
|
||||
}
|
||||
else
|
||||
|
@ -913,13 +913,13 @@ static void air_powered_vertical_rc_track_booster(
|
|||
if (direction & 1)
|
||||
{
|
||||
uint32_t imageId = SPR_REVERSE_FREEFALL_RC_FLAT_NW_SE | colour;
|
||||
PaintAddImageAsParent(session, imageId, 0, 0, 20, 32, 1, height, 6, 0, height);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 20, 32, 1 }, { 6, 0, height });
|
||||
paint_util_push_tunnel_right(session, height, TUNNEL_SQUARE_FLAT);
|
||||
}
|
||||
else
|
||||
{
|
||||
uint32_t imageId = SPR_REVERSE_FREEFALL_RC_FLAT_SW_NE | colour;
|
||||
PaintAddImageAsParent(session, imageId, 0, 0, 32, 20, 1, height, 0, 6, height);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 20, 1 }, { 0, 6, height });
|
||||
paint_util_push_tunnel_left(session, height, TUNNEL_SQUARE_FLAT);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue