mirror of https://github.com/OpenRCT2/OpenRCT2.git
Apply review comments
This commit is contained in:
parent
68d0d05d49
commit
7a36e34782
|
@ -172,9 +172,7 @@ static void spiral_slide_paint_tile_front(
|
||||||
|
|
||||||
image_id = (offset + slide_progress) | (ride.slide_peep_t_shirt_colour << 19) | (1 << 29);
|
image_id = (offset + slide_progress) | (ride.slide_peep_t_shirt_colour << 19) | (1 << 29);
|
||||||
|
|
||||||
PaintAddImageAsChild(
|
PaintAddImageAsChild(session, image_id, { 16, 16, height }, boundingBox, boundingBoxOffset);
|
||||||
session, image_id, { 16, 16, height }, { boundingBox.x, boundingBox.y, boundingBox.z },
|
|
||||||
{ boundingBoxOffset.x, boundingBoxOffset.y, boundingBoxOffset.z });
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1133,8 +1133,8 @@ static void paint_miniature_railway_track_s_bend_left(
|
||||||
if (!isSupported)
|
if (!isSupported)
|
||||||
{
|
{
|
||||||
PaintAddImageAsParentRotated(
|
PaintAddImageAsParentRotated(
|
||||||
session, direction, imageId, { static_cast<int8_t>(offset.x), static_cast<int8_t>(offset.y), height },
|
session, direction, imageId, { offset.x, offset.y, height }, { bounds.x, bounds.y, 2 },
|
||||||
{ bounds.x, bounds.y, 2 }, { offset.x, offset.y, height });
|
{ offset.x, offset.y, height });
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1145,8 +1145,8 @@ static void paint_miniature_railway_track_s_bend_left(
|
||||||
|
|
||||||
imageId = miniature_railway_track_pieces_s_bend_left[direction & 1][trackSequence] | session.TrackColours[SCHEME_TRACK];
|
imageId = miniature_railway_track_pieces_s_bend_left[direction & 1][trackSequence] | session.TrackColours[SCHEME_TRACK];
|
||||||
PaintAddImageAsChildRotated(
|
PaintAddImageAsChildRotated(
|
||||||
session, direction, imageId, { static_cast<int8_t>(offset.x), static_cast<int8_t>(offset.y), height },
|
session, direction, imageId, { offset.x, offset.y, height }, { bounds.x, bounds.y, 2 },
|
||||||
{ bounds.x, bounds.y, 2 }, { offset.x, offset.y, height });
|
{ offset.x, offset.y, height });
|
||||||
}
|
}
|
||||||
if (direction == 0 || direction == 2)
|
if (direction == 0 || direction == 2)
|
||||||
{
|
{
|
||||||
|
@ -1240,8 +1240,8 @@ static void paint_miniature_railway_track_s_bend_right(
|
||||||
if (!isSupported)
|
if (!isSupported)
|
||||||
{
|
{
|
||||||
PaintAddImageAsParentRotated(
|
PaintAddImageAsParentRotated(
|
||||||
session, direction, imageId, { static_cast<int8_t>(offset.x), static_cast<int8_t>(offset.y), height },
|
session, direction, imageId, { offset.x, offset.y, height }, { bounds.x, bounds.y, 2 },
|
||||||
{ bounds.x, bounds.y, 2 }, { offset.x, offset.y, height });
|
{ offset.x, offset.y, height });
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1253,8 +1253,8 @@ static void paint_miniature_railway_track_s_bend_right(
|
||||||
imageId = miniature_railway_track_pieces_s_bend_right[direction & 1][trackSequence]
|
imageId = miniature_railway_track_pieces_s_bend_right[direction & 1][trackSequence]
|
||||||
| session.TrackColours[SCHEME_TRACK];
|
| session.TrackColours[SCHEME_TRACK];
|
||||||
PaintAddImageAsChildRotated(
|
PaintAddImageAsChildRotated(
|
||||||
session, direction, imageId, { static_cast<int8_t>(offset.x), static_cast<int8_t>(offset.y), height },
|
session, direction, imageId, { offset.x, offset.y, height }, { bounds.x, bounds.y, 2 },
|
||||||
{ bounds.x, bounds.y, 2 }, { offset.x, offset.y, height });
|
{ offset.x, offset.y, height });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (direction == 0 || direction == 2)
|
if (direction == 0 || direction == 2)
|
||||||
|
|
Loading…
Reference in New Issue