1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 17:24:47 +01:00

Lanterns no longer emit light when broken

This commit is contained in:
JeroenDStout
2016-06-01 00:45:08 +02:00
parent 4f4003b499
commit 2a126d8853

View File

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