mirror of https://github.com/OpenRCT2/OpenRCT2.git
Simplify passing args on PaintAddImageAsParent where possible
This commit is contained in:
parent
7feea62ab3
commit
efa9af4610
|
@ -289,9 +289,7 @@ void PaintLargeScenery(paint_session* session, uint8_t direction, uint16_t heigh
|
||||||
boxlength.x = s98E3C4[esi].length.x;
|
boxlength.x = s98E3C4[esi].length.x;
|
||||||
boxlength.y = s98E3C4[esi].length.y;
|
boxlength.y = s98E3C4[esi].length.y;
|
||||||
boxlength.z = boxlengthZ;
|
boxlength.z = boxlengthZ;
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(session, image_id, { 0, 0, height }, { boxlength.x, boxlength.y, boxlengthZ }, boxoffset);
|
||||||
session, image_id, { 0, 0, height }, { boxlength.x, boxlength.y, boxlengthZ },
|
|
||||||
{ boxoffset.x, boxoffset.y, boxoffset.z });
|
|
||||||
if (sceneryEntry->scrolling_mode == SCROLLING_MODE_NONE || direction == 1 || direction == 2)
|
if (sceneryEntry->scrolling_mode == SCROLLING_MODE_NONE || direction == 1 || direction == 2)
|
||||||
{
|
{
|
||||||
large_scenery_paint_supports(session, direction, height, tileElement, dword_F4387C, tile);
|
large_scenery_paint_supports(session, direction, height, tileElement, dword_F4387C, tile);
|
||||||
|
|
|
@ -441,8 +441,7 @@ static void sub_6A4101(
|
||||||
boundBoxOffsets.x = BannerBoundBoxes[direction][1].x;
|
boundBoxOffsets.x = BannerBoundBoxes[direction][1].x;
|
||||||
boundBoxOffsets.y = BannerBoundBoxes[direction][1].y;
|
boundBoxOffsets.y = BannerBoundBoxes[direction][1].y;
|
||||||
imageId++;
|
imageId++;
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 1, 21 }, boundBoxOffsets);
|
||||||
session, imageId, { 0, 0, height }, { 1, 1, 21 }, { boundBoxOffsets.x, boundBoxOffsets.y, boundBoxOffsets.z });
|
|
||||||
|
|
||||||
direction--;
|
direction--;
|
||||||
// If text shown
|
// If text shown
|
||||||
|
|
|
@ -159,8 +159,7 @@ void PaintSmallScenery(paint_session* session, uint8_t direction, int32_t height
|
||||||
if (!(scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_VISIBLE_WHEN_ZOOMED)))
|
if (!(scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_VISIBLE_WHEN_ZOOMED)))
|
||||||
{
|
{
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(
|
||||||
session, baseImageid, { x_offset, y_offset, height }, { boxlength.x, boxlength.y, boxlength.z - 1 },
|
session, baseImageid, { x_offset, y_offset, height }, { boxlength.x, boxlength.y, boxlength.z - 1 }, boxoffset);
|
||||||
{ boxoffset.x, boxoffset.y, boxoffset.z });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_HAS_GLASS))
|
if (scenery_small_entry_has_flag(sceneryEntry, SMALL_SCENERY_FLAG_HAS_GLASS))
|
||||||
|
@ -327,7 +326,7 @@ void PaintSmallScenery(paint_session* session, uint8_t direction, int32_t height
|
||||||
{
|
{
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(
|
||||||
session, image_id, { x_offset, y_offset, height }, { boxlength.x, boxlength.y, boxlength.z - 1 },
|
session, image_id, { x_offset, y_offset, height }, { boxlength.x, boxlength.y, boxlength.z - 1 },
|
||||||
{ boxoffset.x, boxoffset.y, boxoffset.z });
|
boxoffset);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -59,17 +59,13 @@ static void PaintWallDoor(
|
||||||
{
|
{
|
||||||
paint_struct* ps;
|
paint_struct* ps;
|
||||||
|
|
||||||
ps = PaintAddImageAsParent(
|
ps = PaintAddImageAsParent(session, imageId, offset, boundsR1, boundsR1_);
|
||||||
session, imageId, { static_cast<int8_t>(offset.x), static_cast<int8_t>(offset.y), offset.z },
|
|
||||||
{ boundsR1.x, boundsR1.y, static_cast<int8_t>(boundsR1.z) }, { boundsR1_.x, boundsR1_.y, boundsR1_.z });
|
|
||||||
if (ps != nullptr)
|
if (ps != nullptr)
|
||||||
{
|
{
|
||||||
ps->tertiary_colour = tertiaryColour;
|
ps->tertiary_colour = tertiaryColour;
|
||||||
}
|
}
|
||||||
|
|
||||||
ps = PaintAddImageAsParent(
|
ps = PaintAddImageAsParent(session, imageId + 1, offset, boundsR2, boundsR2_);
|
||||||
session, imageId + 1, { static_cast<int8_t>(offset.x), static_cast<int8_t>(offset.y), offset.z },
|
|
||||||
{ boundsR2.x, boundsR2.y, static_cast<int8_t>(boundsR2.z) }, { boundsR2_.x, boundsR2_.y, boundsR2_.z });
|
|
||||||
if (ps != nullptr)
|
if (ps != nullptr)
|
||||||
{
|
{
|
||||||
ps->tertiary_colour = tertiaryColour;
|
ps->tertiary_colour = tertiaryColour;
|
||||||
|
@ -79,9 +75,7 @@ static void PaintWallDoor(
|
||||||
{
|
{
|
||||||
paint_struct* ps;
|
paint_struct* ps;
|
||||||
|
|
||||||
ps = PaintAddImageAsParent(
|
ps = PaintAddImageAsParent(session, imageId, offset, boundsL1, boundsL1_);
|
||||||
session, imageId, { static_cast<int8_t>(offset.x), static_cast<int8_t>(offset.y), offset.z },
|
|
||||||
{ boundsL1.x, boundsL1.y, static_cast<int8_t>(boundsL1.z) }, { boundsL1_.x, boundsL1_.y, boundsL1_.z });
|
|
||||||
if (ps != nullptr)
|
if (ps != nullptr)
|
||||||
{
|
{
|
||||||
ps->tertiary_colour = tertiaryColour;
|
ps->tertiary_colour = tertiaryColour;
|
||||||
|
@ -117,9 +111,7 @@ static void PaintWallWall(
|
||||||
imageId = (imageId & 0x7FFFF) | dword_141F710;
|
imageId = (imageId & 0x7FFFF) | dword_141F710;
|
||||||
}
|
}
|
||||||
|
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(session, imageId, offset, bounds, boundsOffset);
|
||||||
session, imageId, { static_cast<int8_t>(offset.x), static_cast<int8_t>(offset.y), offset.z },
|
|
||||||
{ bounds.x, bounds.y, static_cast<int8_t>(bounds.z) }, { boundsOffset.x, boundsOffset.y, boundsOffset.z });
|
|
||||||
if (dword_141F710 == 0)
|
if (dword_141F710 == 0)
|
||||||
{
|
{
|
||||||
imageId = baseImageId + dword_141F718;
|
imageId = baseImageId + dword_141F718;
|
||||||
|
@ -140,9 +132,7 @@ static void PaintWallWall(
|
||||||
imageId = (imageId & 0x7FFFF) | dword_141F710;
|
imageId = (imageId & 0x7FFFF) | dword_141F710;
|
||||||
}
|
}
|
||||||
|
|
||||||
paint_struct* paint = PaintAddImageAsParent(
|
paint_struct* paint = PaintAddImageAsParent(session, imageId, offset, bounds, boundsOffset);
|
||||||
session, imageId, { static_cast<int8_t>(offset.x), static_cast<int8_t>(offset.y), offset.z },
|
|
||||||
{ bounds.x, bounds.y, static_cast<int8_t>(bounds.z) }, { boundsOffset.x, boundsOffset.y, boundsOffset.z });
|
|
||||||
if (paint != nullptr)
|
if (paint != nullptr)
|
||||||
{
|
{
|
||||||
paint->tertiary_colour = tertiaryColour;
|
paint->tertiary_colour = tertiaryColour;
|
||||||
|
|
|
@ -844,9 +844,7 @@ bool track_paint_util_draw_station_covers_2(
|
||||||
}
|
}
|
||||||
|
|
||||||
imageId = (baseImageId + imageOffset) | session->TrackColours[SCHEME_TRACK];
|
imageId = (baseImageId + imageOffset) | session->TrackColours[SCHEME_TRACK];
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(session, imageId, offset, bounds, boundsOffset);
|
||||||
session, imageId, { static_cast<int8_t>(offset.x), static_cast<int8_t>(offset.y), offset.z },
|
|
||||||
{ bounds.x, bounds.y, static_cast<int8_t>(bounds.z) }, { boundsOffset.x, boundsOffset.y, boundsOffset.z });
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1048,7 +1046,7 @@ void track_paint_util_right_helix_up_small_quarter_tiles_paint(
|
||||||
|
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(
|
||||||
session, imageId, { static_cast<int8_t>(offset.x), static_cast<int8_t>(offset.y), height },
|
session, imageId, { static_cast<int8_t>(offset.x), static_cast<int8_t>(offset.y), height },
|
||||||
{ boundsLength.x, boundsLength.y, thickness[1] }, { boundsOffset.x, boundsOffset.y, height + boundsOffset.z });
|
{ boundsLength.x, boundsLength.y, thickness[1] }, boundsOffset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1305,8 +1303,7 @@ void track_paint_util_eighth_to_diag_tiles_paint(
|
||||||
CoordsXYZ boundsOffset = (boundsOffsets == nullptr ? CoordsXYZ(offset, 0) : boundsOffsets[direction][index]);
|
CoordsXYZ boundsOffset = (boundsOffsets == nullptr ? CoordsXYZ(offset, 0) : boundsOffsets[direction][index]);
|
||||||
|
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(
|
||||||
session, imageId, { static_cast<int8_t>(offset.x), static_cast<int8_t>(offset.y), height },
|
session, imageId, { offset.x, offset.y, height }, { boundsLength.x, boundsLength.y, thickness[direction][index] },
|
||||||
{ boundsLength.x, boundsLength.y, thickness[direction][index] },
|
|
||||||
{ boundsOffset.x, boundsOffset.y, height + boundsOffset.z });
|
{ boundsOffset.x, boundsOffset.y, height + boundsOffset.z });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1484,12 +1481,12 @@ void track_paint_util_right_quarter_turn_5_tiles_paint_2(
|
||||||
}
|
}
|
||||||
|
|
||||||
const sprite_bb* spriteBB = &sprites[direction][sprite];
|
const sprite_bb* spriteBB = &sprites[direction][sprite];
|
||||||
uint32_t imageId = spriteBB->sprite_id | colourFlags;
|
const uint32_t imageId = spriteBB->sprite_id | colourFlags;
|
||||||
|
const auto& offset = spriteBB->offset;
|
||||||
|
const auto& bbOffset = spriteBB->offset;
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(
|
||||||
session, imageId,
|
session, imageId, { offset.x, offset.y, height + offset.z }, spriteBB->bb_size,
|
||||||
{ static_cast<int8_t>(spriteBB->offset.x), static_cast<int8_t>(spriteBB->offset.y), height + spriteBB->offset.z },
|
{ bbOffset.x, bbOffset.y, height + bbOffset.z });
|
||||||
{ spriteBB->bb_size.x, spriteBB->bb_size.y, static_cast<int8_t>(spriteBB->bb_size.z) },
|
|
||||||
{ spriteBB->bb_offset.x, spriteBB->bb_offset.y, height + spriteBB->bb_offset.z });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void track_paint_util_right_quarter_turn_5_tiles_paint_3(
|
void track_paint_util_right_quarter_turn_5_tiles_paint_3(
|
||||||
|
|
|
@ -2467,10 +2467,8 @@ static void junior_rc_left_bank_paint_setup(
|
||||||
|
|
||||||
image_id = junior_rc_track_pieces_left_bank[direction] | session->TrackColours[SCHEME_TRACK];
|
image_id = junior_rc_track_pieces_left_bank[direction] | session->TrackColours[SCHEME_TRACK];
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(
|
||||||
session, image_id, { 0, 0, height },
|
session, image_id, { 0, 0, height }, junior_rc_left_bank_bound_lengths[direction],
|
||||||
{ junior_rc_left_bank_bound_lengths[direction].x, junior_rc_left_bank_bound_lengths[direction].y,
|
{ junior_rc_left_bank_bound_offsets[direction], height });
|
||||||
static_cast<int8_t>(junior_rc_left_bank_bound_lengths[direction].z) },
|
|
||||||
{ junior_rc_left_bank_bound_offsets[direction].x, junior_rc_left_bank_bound_offsets[direction].y, height });
|
|
||||||
|
|
||||||
if (direction & 1)
|
if (direction & 1)
|
||||||
{
|
{
|
||||||
|
@ -3085,9 +3083,9 @@ void junior_rc_paint_track_right_quarter_turn_3_tiles_25_deg_up(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (imageId != 0)
|
if (imageId != 0)
|
||||||
PaintAddImageAsParent(
|
{
|
||||||
session, imageId, { static_cast<int8_t>(offset.x), static_cast<int8_t>(offset.y), height },
|
PaintAddImageAsParent(session, imageId, { offset, height }, { boundsLength, 1 }, { boundsOffset, height });
|
||||||
{ boundsLength.x, boundsLength.y, 1 }, { boundsOffset.x, boundsOffset.y, height });
|
}
|
||||||
|
|
||||||
if (direction == 0 && trackSequence == 0)
|
if (direction == 0 && trackSequence == 0)
|
||||||
{
|
{
|
||||||
|
@ -4959,12 +4957,9 @@ void junior_rc_paint_track_60_deg_up(
|
||||||
image_id |= junior_rc_track_pieces_60_deg_up[EnumValue(chainType)][direction];
|
image_id |= junior_rc_track_pieces_60_deg_up[EnumValue(chainType)][direction];
|
||||||
|
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(
|
||||||
session, image_id,
|
session, image_id, { junior_rc_60_deg_up_tile_offsets[direction], height },
|
||||||
{ static_cast<int8_t>(junior_rc_60_deg_up_tile_offsets[direction].x),
|
{ junior_rc_60_deg_up_bound_lengths[direction], junior_rc_60_deg_up_bound_thickness[direction] },
|
||||||
static_cast<int8_t>(junior_rc_60_deg_up_tile_offsets[direction].y), height },
|
{ junior_rc_60_deg_up_bound_offsets[direction], height });
|
||||||
{ junior_rc_60_deg_up_bound_lengths[direction].x, junior_rc_60_deg_up_bound_lengths[direction].y,
|
|
||||||
junior_rc_60_deg_up_bound_thickness[direction] },
|
|
||||||
{ junior_rc_60_deg_up_bound_offsets[direction].x, junior_rc_60_deg_up_bound_offsets[direction].y, height });
|
|
||||||
|
|
||||||
switch (direction)
|
switch (direction)
|
||||||
{
|
{
|
||||||
|
@ -5037,14 +5032,10 @@ void junior_rc_paint_track_25_deg_up_to_60_deg_up(
|
||||||
image_id |= junior_rc_track_pieces_25_deg_up_to_60_deg_up[EnumValue(chainType)][direction][0];
|
image_id |= junior_rc_track_pieces_25_deg_up_to_60_deg_up[EnumValue(chainType)][direction][0];
|
||||||
|
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(
|
||||||
session, image_id,
|
session, image_id, { junior_rc_60_deg_up_tile_offsets[direction], height },
|
||||||
{ static_cast<int8_t>(junior_rc_60_deg_up_tile_offsets[direction].x),
|
{ junior_rc_25_deg_up_to_60_deg_up_bound_lengths[direction][0],
|
||||||
static_cast<int8_t>(junior_rc_60_deg_up_tile_offsets[direction].y), height },
|
|
||||||
{ junior_rc_25_deg_up_to_60_deg_up_bound_lengths[direction][0].x,
|
|
||||||
junior_rc_25_deg_up_to_60_deg_up_bound_lengths[direction][0].y,
|
|
||||||
junior_rc_25_deg_up_to_60_deg_up_bound_thickness[direction] },
|
junior_rc_25_deg_up_to_60_deg_up_bound_thickness[direction] },
|
||||||
{ junior_rc_25_deg_up_to_60_deg_up_bound_offsets[direction][0].x,
|
{ junior_rc_25_deg_up_to_60_deg_up_bound_offsets[direction][0], height });
|
||||||
junior_rc_25_deg_up_to_60_deg_up_bound_offsets[direction][0].y, height });
|
|
||||||
|
|
||||||
if (junior_rc_track_pieces_25_deg_up_to_60_deg_up[EnumValue(chainType)][direction][1] != 0)
|
if (junior_rc_track_pieces_25_deg_up_to_60_deg_up[EnumValue(chainType)][direction][1] != 0)
|
||||||
{
|
{
|
||||||
|
@ -5053,14 +5044,10 @@ void junior_rc_paint_track_25_deg_up_to_60_deg_up(
|
||||||
image_id |= junior_rc_track_pieces_25_deg_up_to_60_deg_up[EnumValue(chainType)][direction][1];
|
image_id |= junior_rc_track_pieces_25_deg_up_to_60_deg_up[EnumValue(chainType)][direction][1];
|
||||||
|
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(
|
||||||
session, image_id,
|
session, image_id, { junior_rc_60_deg_up_tile_offsets[direction], height },
|
||||||
{ static_cast<int8_t>(junior_rc_60_deg_up_tile_offsets[direction].x),
|
{ junior_rc_25_deg_up_to_60_deg_up_bound_lengths[direction][1],
|
||||||
static_cast<int8_t>(junior_rc_60_deg_up_tile_offsets[direction].y), height },
|
|
||||||
{ junior_rc_25_deg_up_to_60_deg_up_bound_lengths[direction][1].x,
|
|
||||||
junior_rc_25_deg_up_to_60_deg_up_bound_lengths[direction][1].y,
|
|
||||||
junior_rc_25_deg_up_to_60_deg_up_bound_thickness[direction] },
|
junior_rc_25_deg_up_to_60_deg_up_bound_thickness[direction] },
|
||||||
{ junior_rc_25_deg_up_to_60_deg_up_bound_offsets[direction][1].x,
|
{ junior_rc_25_deg_up_to_60_deg_up_bound_offsets[direction][1], height });
|
||||||
junior_rc_25_deg_up_to_60_deg_up_bound_offsets[direction][1].y, height });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (direction)
|
switch (direction)
|
||||||
|
@ -5118,14 +5105,10 @@ void junior_rc_paint_track_60_deg_up_to_25_deg_up(
|
||||||
image_id |= junior_rc_track_pieces_60_deg_up_to_25_deg_up[EnumValue(chainType)][direction][0];
|
image_id |= junior_rc_track_pieces_60_deg_up_to_25_deg_up[EnumValue(chainType)][direction][0];
|
||||||
|
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(
|
||||||
session, image_id,
|
session, image_id, { junior_rc_60_deg_up_tile_offsets[direction], height },
|
||||||
{ static_cast<int8_t>(junior_rc_60_deg_up_tile_offsets[direction].x),
|
{ junior_rc_25_deg_up_to_60_deg_up_bound_lengths[direction][0],
|
||||||
static_cast<int8_t>(junior_rc_60_deg_up_tile_offsets[direction].y), height },
|
|
||||||
{ junior_rc_25_deg_up_to_60_deg_up_bound_lengths[direction][0].x,
|
|
||||||
junior_rc_25_deg_up_to_60_deg_up_bound_lengths[direction][0].y,
|
|
||||||
junior_rc_25_deg_up_to_60_deg_up_bound_thickness[direction] },
|
junior_rc_25_deg_up_to_60_deg_up_bound_thickness[direction] },
|
||||||
{ junior_rc_25_deg_up_to_60_deg_up_bound_offsets[direction][0].x,
|
{ junior_rc_25_deg_up_to_60_deg_up_bound_offsets[direction][0], height });
|
||||||
junior_rc_25_deg_up_to_60_deg_up_bound_offsets[direction][0].y, height });
|
|
||||||
|
|
||||||
if (junior_rc_track_pieces_60_deg_up_to_25_deg_up[EnumValue(chainType)][direction][1] != 0)
|
if (junior_rc_track_pieces_60_deg_up_to_25_deg_up[EnumValue(chainType)][direction][1] != 0)
|
||||||
{
|
{
|
||||||
|
@ -5134,14 +5117,10 @@ void junior_rc_paint_track_60_deg_up_to_25_deg_up(
|
||||||
image_id |= junior_rc_track_pieces_60_deg_up_to_25_deg_up[EnumValue(chainType)][direction][1];
|
image_id |= junior_rc_track_pieces_60_deg_up_to_25_deg_up[EnumValue(chainType)][direction][1];
|
||||||
|
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(
|
||||||
session, image_id,
|
session, image_id, { junior_rc_60_deg_up_tile_offsets[direction], height },
|
||||||
{ static_cast<int8_t>(junior_rc_60_deg_up_tile_offsets[direction].x),
|
{ junior_rc_25_deg_up_to_60_deg_up_bound_lengths[direction][1],
|
||||||
static_cast<int8_t>(junior_rc_60_deg_up_tile_offsets[direction].y), height },
|
|
||||||
{ junior_rc_25_deg_up_to_60_deg_up_bound_lengths[direction][1].x,
|
|
||||||
junior_rc_25_deg_up_to_60_deg_up_bound_lengths[direction][1].y,
|
|
||||||
junior_rc_25_deg_up_to_60_deg_up_bound_thickness[direction] },
|
junior_rc_25_deg_up_to_60_deg_up_bound_thickness[direction] },
|
||||||
{ junior_rc_25_deg_up_to_60_deg_up_bound_offsets[direction][1].x,
|
{ junior_rc_25_deg_up_to_60_deg_up_bound_offsets[direction][1], height });
|
||||||
junior_rc_25_deg_up_to_60_deg_up_bound_offsets[direction][1].y, height });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (direction)
|
switch (direction)
|
||||||
|
@ -5437,13 +5416,9 @@ static void junior_rc_flat_to_60_deg_up_paint_setup(
|
||||||
image_id |= junior_rc_track_pieces_flat_to_60_deg_up[isChained][direction][0];
|
image_id |= junior_rc_track_pieces_flat_to_60_deg_up[isChained][direction][0];
|
||||||
|
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(
|
||||||
session, image_id,
|
session, image_id, { junior_rc_flat_to_60_deg_up_tile_offsets[direction][0], height + 24 },
|
||||||
{ static_cast<int8_t>(junior_rc_flat_to_60_deg_up_tile_offsets[direction][0].x),
|
{ junior_rc_flat_to_60_deg_up_bound_lengths[direction][0], junior_rc_flat_to_60_deg_up_bound_thickness[direction] },
|
||||||
static_cast<int8_t>(junior_rc_flat_to_60_deg_up_tile_offsets[direction][0].y), height + 24 },
|
{ junior_rc_flat_to_60_deg_up_bound_offsets[direction][0], height });
|
||||||
{ junior_rc_flat_to_60_deg_up_bound_lengths[direction][0].x, junior_rc_flat_to_60_deg_up_bound_lengths[direction][0].y,
|
|
||||||
junior_rc_flat_to_60_deg_up_bound_thickness[direction] },
|
|
||||||
{ junior_rc_flat_to_60_deg_up_bound_offsets[direction][0].x, junior_rc_flat_to_60_deg_up_bound_offsets[direction][0].y,
|
|
||||||
height });
|
|
||||||
|
|
||||||
if (junior_rc_track_pieces_flat_to_60_deg_up[isChained][direction][1] != 0)
|
if (junior_rc_track_pieces_flat_to_60_deg_up[isChained][direction][1] != 0)
|
||||||
{
|
{
|
||||||
|
@ -5452,14 +5427,9 @@ static void junior_rc_flat_to_60_deg_up_paint_setup(
|
||||||
image_id |= junior_rc_track_pieces_flat_to_60_deg_up[isChained][direction][1];
|
image_id |= junior_rc_track_pieces_flat_to_60_deg_up[isChained][direction][1];
|
||||||
|
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(
|
||||||
session, image_id,
|
session, image_id, { junior_rc_flat_to_60_deg_up_tile_offsets[direction][1], height },
|
||||||
{ static_cast<int8_t>(junior_rc_flat_to_60_deg_up_tile_offsets[direction][1].x),
|
{ junior_rc_flat_to_60_deg_up_bound_lengths[direction][1], junior_rc_flat_to_60_deg_up_bound_thickness[direction] },
|
||||||
static_cast<int8_t>(junior_rc_flat_to_60_deg_up_tile_offsets[direction][1].y), height },
|
{ junior_rc_flat_to_60_deg_up_bound_offsets[direction][1], height });
|
||||||
{ junior_rc_flat_to_60_deg_up_bound_lengths[direction][1].x,
|
|
||||||
junior_rc_flat_to_60_deg_up_bound_lengths[direction][1].y,
|
|
||||||
junior_rc_flat_to_60_deg_up_bound_thickness[direction] },
|
|
||||||
{ junior_rc_flat_to_60_deg_up_bound_offsets[direction][1].x,
|
|
||||||
junior_rc_flat_to_60_deg_up_bound_offsets[direction][1].y, height });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (direction)
|
switch (direction)
|
||||||
|
@ -5509,13 +5479,9 @@ static void junior_rc_60_deg_up_to_flat_paint_setup(
|
||||||
image_id |= junior_rc_track_pieces_60_deg_up_to_flat[isChained][direction][0];
|
image_id |= junior_rc_track_pieces_60_deg_up_to_flat[isChained][direction][0];
|
||||||
|
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(
|
||||||
session, image_id,
|
session, image_id, { junior_rc_60_deg_up_to_flat_tile_offsets[direction][0], height + 24 },
|
||||||
{ static_cast<int8_t>(junior_rc_60_deg_up_to_flat_tile_offsets[direction][0].x),
|
{ junior_rc_flat_to_60_deg_up_bound_lengths[direction][0], junior_rc_flat_to_60_deg_up_bound_thickness[direction] },
|
||||||
static_cast<int8_t>(junior_rc_60_deg_up_to_flat_tile_offsets[direction][0].y), height + 24 },
|
{ junior_rc_flat_to_60_deg_up_bound_offsets[direction][0], height });
|
||||||
{ junior_rc_flat_to_60_deg_up_bound_lengths[direction][0].x, junior_rc_flat_to_60_deg_up_bound_lengths[direction][0].y,
|
|
||||||
junior_rc_flat_to_60_deg_up_bound_thickness[direction] },
|
|
||||||
{ junior_rc_flat_to_60_deg_up_bound_offsets[direction][0].x, junior_rc_flat_to_60_deg_up_bound_offsets[direction][0].y,
|
|
||||||
height });
|
|
||||||
|
|
||||||
if (junior_rc_track_pieces_60_deg_up_to_flat[isChained][direction][1] != 0)
|
if (junior_rc_track_pieces_60_deg_up_to_flat[isChained][direction][1] != 0)
|
||||||
{
|
{
|
||||||
|
@ -5524,14 +5490,9 @@ static void junior_rc_60_deg_up_to_flat_paint_setup(
|
||||||
image_id |= junior_rc_track_pieces_60_deg_up_to_flat[isChained][direction][1];
|
image_id |= junior_rc_track_pieces_60_deg_up_to_flat[isChained][direction][1];
|
||||||
|
|
||||||
PaintAddImageAsParent(
|
PaintAddImageAsParent(
|
||||||
session, image_id,
|
session, image_id, { junior_rc_60_deg_up_to_flat_tile_offsets[direction][1], height },
|
||||||
{ static_cast<int8_t>(junior_rc_60_deg_up_to_flat_tile_offsets[direction][1].x),
|
{ junior_rc_flat_to_60_deg_up_bound_lengths[direction][1], junior_rc_flat_to_60_deg_up_bound_thickness[direction] },
|
||||||
static_cast<int8_t>(junior_rc_60_deg_up_to_flat_tile_offsets[direction][1].y), height },
|
{ junior_rc_flat_to_60_deg_up_bound_offsets[direction][1], height });
|
||||||
{ junior_rc_flat_to_60_deg_up_bound_lengths[direction][1].x,
|
|
||||||
junior_rc_flat_to_60_deg_up_bound_lengths[direction][1].y,
|
|
||||||
junior_rc_flat_to_60_deg_up_bound_thickness[direction] },
|
|
||||||
{ junior_rc_flat_to_60_deg_up_bound_offsets[direction][1].x,
|
|
||||||
junior_rc_flat_to_60_deg_up_bound_offsets[direction][1].y, height });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (direction)
|
switch (direction)
|
||||||
|
|
Loading…
Reference in New Issue