mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fixes half drawn doors in scenery window
This commit is contained in:
parent
f20763f080
commit
bcfe502647
|
@ -1088,6 +1088,12 @@ void window_scenery_scrollpaint()
|
||||||
if (sceneryEntry->wall.flags & WALL_SCENERY_HAS_SECONDARY_COLOUR) {
|
if (sceneryEntry->wall.flags & WALL_SCENERY_HAS_SECONDARY_COLOUR) {
|
||||||
imageId |= (window_scenery_secondary_colour << 24) | 0x80000000;
|
imageId |= (window_scenery_secondary_colour << 24) | 0x80000000;
|
||||||
}
|
}
|
||||||
|
gfx_draw_sprite(clipdpi, imageId, 0x2F, (sceneryEntry->wall.height * 2) + 0x32,
|
||||||
|
tertiaryColour);
|
||||||
|
|
||||||
|
imageId = (sceneryEntry->image + 0x40000006) | (window_scenery_primary_colour << 19);
|
||||||
|
gfx_draw_sprite(clipdpi, imageId, 0x2F, (sceneryEntry->wall.height * 2) + 0x32,
|
||||||
|
tertiaryColour);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
imageId |= (window_scenery_primary_colour << 19) | 0x20000000;
|
imageId |= (window_scenery_primary_colour << 19) | 0x20000000;
|
||||||
|
@ -1101,10 +1107,16 @@ void window_scenery_scrollpaint()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
gfx_draw_sprite(clipdpi, imageId, 0x2F, (sceneryEntry->wall.height * 2) + 0x32,
|
gfx_draw_sprite(clipdpi, imageId, 0x2F, (sceneryEntry->wall.height * 2) + 0x32,
|
||||||
tertiaryColour);
|
tertiaryColour);
|
||||||
|
|
||||||
|
if (sceneryEntry->wall.flags & WALL_SCENERY_FLAG5){
|
||||||
|
gfx_draw_sprite(clipdpi, imageId + 1, 0x2F, (sceneryEntry->wall.height * 2) + 0x32,
|
||||||
|
tertiaryColour);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
rct2_free(clipdpi);
|
rct2_free(clipdpi);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue