Fix #12737: Space Rings draw the same vehicle 4 times (#12738)

paint_space_rings_structure always used vehicle 0 for it's vehicle reference
This commit is contained in:
Cory Sanin 2020-08-20 12:04:15 -05:00 committed by GitHub
parent d5626f7f12
commit df5dd4f253
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
- Fix: [#12691] Ride graph tooltip incorrectly used count instead of number string.
- Fix: [#12694] Crash when switching ride types with construction window open.
- Fix: [#12701] Silent NSIS setup flag /S isn't silent, upgrade pop-up appears anyway.
- Fix: [#12737] Space Rings draw the same vehicle 4 times.
- Fix: Incomplete loop collision box allowed overlapping track (original bug).
0.3.0 (2020-08-15)

View File

@ -44,7 +44,7 @@ static void paint_space_rings_structure(paint_session* session, Ride* ride, uint
int32_t frameNum = direction;
uint32_t baseImageId = rideEntry->vehicles[0].base_image_id;
auto vehicle = GetEntity<Vehicle>(ride->vehicles[0]);
auto vehicle = GetEntity<Vehicle>(ride->vehicles[vehicleIndex]);
if (ride->lifecycle_flags & RIDE_LIFECYCLE_ON_TRACK && vehicle != nullptr)
{
session->InteractionType = VIEWPORT_INTERACTION_ITEM_SPRITE;