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()); }