From b207826e56d153497f35b500f7f6428e8a20c2c5 Mon Sep 17 00:00:00 2001 From: Jeroen D Stout Date: Wed, 11 Oct 2017 18:17:08 +0200 Subject: [PATCH] Increase bounding box z of litter --- src/openrct2/paint/sprite/litter.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/openrct2/paint/sprite/litter.c b/src/openrct2/paint/sprite/litter.c index c93d4b30b8..3e4d10424e 100644 --- a/src/openrct2/paint/sprite/litter.c +++ b/src/openrct2/paint/sprite/litter.c @@ -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()); }