Use new ImageId in most object previews

This commit is contained in:
Gymnasiast committed 2021-12-04 11:55:33 +01:00
1 parent 66bf0aa1a6
commit cbdb2c03cd
10 files changed
+40 -35

No files matched your search

+1 -1
View File
@@ -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)