mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 14:24:33 +01:00
Make GfxDrawSprite() take reference
This commit is contained in:
committed by
duncanspumpkin
parent
437329bb13
commit
9c2d5b9fef
@@ -81,16 +81,16 @@ void WallObject::DrawPreview(DrawPixelInfo& dpi, int32_t width, int32_t height)
|
||||
imageId = imageId.WithSecondary(COLOUR_YELLOW);
|
||||
}
|
||||
|
||||
GfxDrawSprite(&dpi, imageId, screenCoords);
|
||||
GfxDrawSprite(dpi, imageId, screenCoords);
|
||||
|
||||
if (_legacyType.flags & WALL_SCENERY_HAS_GLASS)
|
||||
{
|
||||
auto glassImageId = imageId.WithTransparency(COLOUR_BORDEAUX_RED).WithIndexOffset(6);
|
||||
GfxDrawSprite(&dpi, glassImageId, screenCoords);
|
||||
GfxDrawSprite(dpi, glassImageId, screenCoords);
|
||||
}
|
||||
else if (_legacyType.flags & WALL_SCENERY_IS_DOOR)
|
||||
{
|
||||
GfxDrawSprite(&dpi, imageId.WithIndexOffset(1), screenCoords);
|
||||
GfxDrawSprite(dpi, imageId.WithIndexOffset(1), screenCoords);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user