1
0
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:
Michael Steenbeek
2022-09-28 21:36:56 +02:00
committed by GitHub
parent 67856292a4
commit 6f3790cf98
84 changed files with 34489 additions and 31721 deletions

View File

@@ -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);