1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00

Make GfxDrawSprite() take reference

This commit is contained in:
Gymnasiast
2023-04-03 20:38:28 +02:00
committed by duncanspumpkin
parent 437329bb13
commit 9c2d5b9fef
64 changed files with 213 additions and 213 deletions

View File

@@ -64,16 +64,16 @@ void StationObject::DrawPreview(DrawPixelInfo& dpi, int32_t width, int32_t heigh
imageId = imageId.WithSecondary(colour1);
}
GfxDrawSprite(&dpi, imageId, screenCoords);
GfxDrawSprite(dpi, imageId, screenCoords);
if (Flags & STATION_OBJECT_FLAGS::IS_TRANSPARENT)
{
GfxDrawSprite(&dpi, tImageId, screenCoords);
GfxDrawSprite(dpi, tImageId, screenCoords);
}
GfxDrawSprite(&dpi, imageId.WithIndexOffset(4), screenCoords);
GfxDrawSprite(dpi, imageId.WithIndexOffset(4), screenCoords);
if (Flags & STATION_OBJECT_FLAGS::IS_TRANSPARENT)
{
GfxDrawSprite(&dpi, tImageId.WithIndexOffset(4), screenCoords);
GfxDrawSprite(dpi, tImageId.WithIndexOffset(4), screenCoords);
}
}