mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix peeps not showing on one side of pirate ship (#16499)
This commit fixes this bug by adding a missing ^ operator on frameNum. Before a recent refactor, the framenum was changed to the mirrored one with "^ 1", but it was omitted. Using "^ col" when col is 0 or 1, adds this back.
This commit is contained in:
parent
0ee836096b
commit
b5f649c972
|
@ -81,9 +81,9 @@ static void PaintSwingingShipRiders(
|
||||||
if (vehicle.num_peeps <= peep)
|
if (vehicle.num_peeps <= peep)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
auto frameNum = 1 + (row * 2) + (direction >> 1);
|
auto frameNum = 1 + (row * 2) + ((direction >> 1) ^ col);
|
||||||
auto imageIndex = baseImageIndex + frameNum;
|
auto imageIndex = baseImageIndex + frameNum;
|
||||||
auto imageId = ImageId(imageIndex, vehicle.peep_tshirt_colours[row], vehicle.peep_tshirt_colours[row + 1]);
|
auto imageId = ImageId(imageIndex, vehicle.peep_tshirt_colours[peep], vehicle.peep_tshirt_colours[peep + 1]);
|
||||||
PaintAddImageAsChild(session, imageId, offset, bbLength, bbOffset);
|
PaintAddImageAsChild(session, imageId, offset, bbLength, bbOffset);
|
||||||
|
|
||||||
peep += 2;
|
peep += 2;
|
||||||
|
|
Loading…
Reference in New Issue