mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Use new ImageId in most object previews
This commit is contained in:
@@ -82,7 +82,7 @@ void FootpathItemObject::Unload()
|
||||
void FootpathItemObject::DrawPreview(rct_drawpixelinfo* dpi, int32_t width, int32_t height) const
|
||||
{
|
||||
auto screenCoords = ScreenCoordsXY{ width / 2, height / 2 };
|
||||
gfx_draw_sprite(dpi, _legacyType.image, screenCoords - ScreenCoordsXY{ 22, 24 }, 0);
|
||||
gfx_draw_sprite(dpi, ImageId(_legacyType.image), screenCoords - ScreenCoordsXY{ 22, 24 });
|
||||
}
|
||||
|
||||
static PathBitDrawType ParseDrawType(const std::string& s)
|
||||
|
||||
Reference in New Issue
Block a user