From 2a126d885352a0e0644d895cd46b061cdf838c90 Mon Sep 17 00:00:00 2001 From: JeroenDStout Date: Wed, 1 Jun 2016 00:45:08 +0200 Subject: [PATCH] Lanterns no longer emit light when broken --- src/paint/map_element/path.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/paint/map_element/path.c b/src/paint/map_element/path.c index 42b5090220..7eae95bdb0 100644 --- a/src/paint/map_element/path.c +++ b/src/paint/map_element/path.c @@ -33,13 +33,12 @@ void path_paint(uint8 direction, uint16 height, rct_map_element *mapElement) { #ifdef STOUT_EXPANDED_RENDERING_LIGHT - if (footpath_element_has_path_scenery(mapElement)) { + if (footpath_element_has_path_scenery(mapElement) && !(mapElement->flags & MAP_ELEMENT_FLAG_BROKEN)) { rct_scenery_entry *sceneryEntry; sceneryEntry = get_footpath_item_entry(footpath_element_get_path_scenery_index(mapElement)); if (sceneryEntry->path_bit.flags & PATH_BIT_FLAG_LAMP) { - if (!(mapElement->properties.path.edges & (1 << 0))) { lightfx_add_3d_light_magic_from_drawing_tile(-16, 0, height + 23, LIGHTFX_LIGHT_TYPE_LANTERN_3); }