Fix #6131: Icon for suspended vehicles aligned too low

This commit is contained in:
linkinpark9812 2017-08-06 09:01:20 -05:00 committed by Michał Janiszewski
parent df742b70b6
commit 63fbd131ff
1 changed files with 14 additions and 2 deletions

View File

@ -1310,6 +1310,18 @@ static void window_ride_draw_tab_vehicle(rct_drawpixelinfo *dpi, rct_window *w)
clipDPI.y *= 2;
}
// For any suspended rides, move image higher in the vehicle tab on the rides window
if (ride->type == RIDE_TYPE_COMPACT_INVERTED_COASTER
|| ride->type == RIDE_TYPE_INVERTED_ROLLER_COASTER
|| ride->type == RIDE_TYPE_INVERTED_IMPULSE_COASTER
|| ride->type == RIDE_TYPE_SUSPENDED_SWINGING_COASTER
|| ride->type == RIDE_TYPE_CHAIRLIFT
|| ride->type == RIDE_TYPE_MINI_SUSPENDED_COASTER
|| ride->type == RIDE_TYPE_SUSPENDED_MONORAIL)
{
y /= 4;
}
const uint8 vehicle = ride_entry_get_vehicle_at_position(ride->subtype, ride->num_cars_per_train, rideEntry->tab_vehicle);
rct_ride_entry_vehicle* rideVehicleEntry = &rideEntry->vehicles[vehicle];