mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-30 10:15:36 +01:00
Modify ride drawing code to use ImageId
This commit is contained in:
committed by
GitHub
parent
67856292a4
commit
6f3790cf98
@@ -66,9 +66,9 @@ static void PaintMotionSimulatorVehicle(
|
||||
|
||||
auto imageTemplate = ImageId(0, ride.vehicle_colours[0].Body, ride.vehicle_colours[0].Trim);
|
||||
auto imageFlags = session.TrackColours[SCHEME_MISC];
|
||||
if (imageFlags != IMAGE_TYPE_REMAP)
|
||||
if (imageFlags.ToUInt32() != IMAGE_TYPE_REMAP)
|
||||
{
|
||||
imageTemplate = ImageId::FromUInt32(imageFlags);
|
||||
imageTemplate = imageFlags;
|
||||
}
|
||||
auto simulatorImageId = imageTemplate.WithIndex(imageIndex);
|
||||
auto stairsImageId = imageTemplate.WithIndex(SPR_MOTION_SIMULATOR_STAIRS_R0 + direction);
|
||||
|
||||
Reference in New Issue
Block a user