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

Fix low scenery items drawing box

This commit is contained in:
duncanspumpkin
2016-05-22 07:32:23 +01:00
parent 804568f3c8
commit 0e38c5a2d1

View File

@@ -90,8 +90,8 @@ void scenery_paint(uint8 direction, int height, rct_map_element* mapElement) {
boxoffset.x = x_offset;
boxoffset.y = y_offset;
boxlength.z = entry->small_scenery.height - 4;
if (boxlength.z > 0x80) {
boxlength.z = 0x80;
if (boxlength.z < 0) {
boxlength.z = -128;
}
if (entry->small_scenery.flags & SMALL_SCENERY_FLAG6) {
if (mapElement->properties.scenery.age >= 40) {