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:
ywnico 2022-06-23 02:07:59 -04:00 committed by GitHub
parent 5b2d1c2527
commit 2d9e2de603
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 });
}