1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00

Increase bounding box z of litter

This commit is contained in:
Jeroen D Stout
2017-10-11 18:17:08 +02:00
committed by Ted John
parent afab2bd51f
commit b207826e56

View File

@@ -84,6 +84,8 @@ void litter_paint(paint_session * session, rct_litter *litter, sint32 imageDirec
imageDirection &= litter_sprites[litter->type].direction_mask;
uint32 image_id = imageDirection + litter_sprites[litter->type].base_id;
sub_98197C(session, image_id, 0, 0, 4, 4, -1, litter->z, -4, -4, litter->z + 2, get_current_rotation());
// In the following call to sub_98197C, we add 4 (instead of 2) to the
// bound_box_offset_z to make sure litter is drawn on top of railways
sub_98197C(session, image_id, 0, 0, 4, 4, -1, litter->z, -4, -4, litter->z + 4, get_current_rotation());
}