Fix #6193: All rings in Space Rings use the same secondary colour (#6194)

The Space Rings attraction used the secondary colour of the first ring no matter if the colours are set to all the same or different per ring. Now it uses the right colour for each ring.
This commit is contained in:
Philip Goto 2017-08-17 20:06:08 +02:00 committed by Michael Steenbeek
parent 4a3b54332e
commit 6547116401
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@
- Fix: [#6115] Random title screen music not random on launch
- Fix: [#6133] Construction rights not shown after selecting buy mode.
- Fix: [#6188] Viewports not being clipped properly when zoomed out in OpenGL mode.
- Fix: [#6193] All rings in Space Rings use the same secondary colour
- Fix: Infinite loop when removing scenery elements with >127 base height.
- Improved: [#6186] Transparent menu items now draw properly in OpenGL mode.
- Improved: Load/save window now refreshes list if native file dialog is closed/cancelled

View File

@ -65,7 +65,7 @@ static void paint_space_rings_structure(rct_ride * ride, uint8 direction, uint3
}
if (imageColourFlags == IMAGE_TYPE_REMAP) {
imageColourFlags = SPRITE_ID_PALETTE_COLOUR_2(ride->vehicle_colours[vehicleIndex].body_colour, ride->vehicle_colours[0].trim_colour);
imageColourFlags = SPRITE_ID_PALETTE_COLOUR_2(ride->vehicle_colours[vehicleIndex].body_colour, ride->vehicle_colours[vehicleIndex].trim_colour);
}
uint32 imageId = (baseImageId + frameNum) | imageColourFlags;