1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-30 02:05:13 +01:00

Use new ImageId in most object previews

This commit is contained in:
Gymnasiast
2021-11-29 14:36:36 +01:00
parent 66bf0aa1a6
commit cbdb2c03cd
10 changed files with 40 additions and 35 deletions

View File

@@ -105,8 +105,8 @@ void LargeSceneryObject::DrawPreview(rct_drawpixelinfo* dpi, int32_t width, int3
{
auto screenCoords = ScreenCoordsXY{ width / 2, (height / 2) - 39 };
uint32_t imageId = 0xB2D00000 | _legacyType.image;
gfx_draw_sprite(dpi, imageId, screenCoords, 0);
const auto image = ImageId(_legacyType.image, COLOUR_BORDEAUX_RED, COLOUR_YELLOW);
gfx_draw_sprite(dpi, image, screenCoords);
}
std::vector<rct_large_scenery_tile> LargeSceneryObject::ReadTiles(OpenRCT2::IStream* stream)