1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Clean up call to PaintAddImageAsParent()

This commit is contained in:
Gymnasiast
2023-02-13 23:37:50 +01:00
parent d3ea4bfbc8
commit 8b2d3937fd

View File

@@ -843,16 +843,11 @@ bool MetalASupportsPaintSetup(
uint8_t ebp = esi[segment * 8 + 1];
int8_t xOffset = SupportBoundBoxes[segment].x;
int8_t yOffset = SupportBoundBoxes[segment].y;
xOffset += Loc97B052[ebp].x;
yOffset += Loc97B052[ebp].y;
int16_t boundBoxLengthX = _97B062[ebp].x;
int16_t boundBoxLengthY = _97B062[ebp].y;
auto offset = CoordsXYZ{ SupportBoundBoxes[segment] + Loc97B052[ebp], height };
auto boundBoxLength = CoordsXYZ(_97B062[ebp], 1);
auto image_id = imageTemplate.WithIndex(_metalSupportTypeToCrossbeamImages[supportType][ebp]);
PaintAddImageAsParent(session, image_id, { xOffset, yOffset, height }, { boundBoxLengthX, boundBoxLengthY, 1 });
PaintAddImageAsParent(session, image_id, offset, boundBoxLength);
segment = newSegment;
}