1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

Fix #3859: Scenery bounding box incorrect (#3874)

This commit is contained in:
Yaroslav Tretyakov
2016-06-14 01:02:59 -06:00
committed by Ted John
parent bd038c63b2
commit a5bf11ce86

View File

@@ -106,8 +106,8 @@ void scenery_paint(uint8 direction, int height, rct_map_element* mapElement) {
}
// 6E007F:
boxlength.z = entry->small_scenery.height - 4;
if (boxlength.z < 0) {
boxlength.z = -128;
if (boxlength.z > 128) {
boxlength.z = 128;
}
if (entry->small_scenery.flags & SMALL_SCENERY_FLAG6) {
if (mapElement->properties.scenery.age >= 40) {