mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix: Wrong T-shirt colors when riding Twist (#17433)
A typo in the code had caused the wrong ImageId object to be used when painting the peeps, resulting in their T-shirts being set to the ride colors. The peeps are now painted with the correct T-shirt colors.
This commit is contained in:
parent
5b2d1c2527
commit
2d9e2de603
|
@ -67,7 +67,7 @@ static void paint_twist_structure(
|
|||
{
|
||||
imageTemplate = ImageId(0, vehicle->peep_tshirt_colours[i], vehicle->peep_tshirt_colours[i + 1]);
|
||||
auto peepFrameNum = (frameNum + i * 12) % 216;
|
||||
imageId = imageId.WithIndex(baseImageId + 24 + peepFrameNum);
|
||||
imageId = imageTemplate.WithIndex(baseImageId + 24 + peepFrameNum);
|
||||
PaintAddImageAsChild(
|
||||
session, imageId, { xOffset, yOffset, height }, { 24, 24, 48 }, { xOffset + 16, yOffset + 16, height });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue