From a29b8079530a85d9bc7ae8fb2103a963784ed273 Mon Sep 17 00:00:00 2001 From: Leshana Date: Sat, 15 Apr 2017 10:36:04 -0500 Subject: [PATCH] Allow set_opacity() to work for turfs too. Fixes lighting opacity not updating on mined rock walls and false doors. --- code/modules/lighting/lighting_atom.dm | 2 +- code/modules/mining/mine_turfs.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/lighting/lighting_atom.dm b/code/modules/lighting/lighting_atom.dm index 6ec1e6ecd7..8700a65c6e 100644 --- a/code/modules/lighting/lighting_atom.dm +++ b/code/modules/lighting/lighting_atom.dm @@ -85,7 +85,7 @@ return opacity = new_opacity - var/turf/T = loc + var/turf/T = isturf(src) ? src : loc if(!isturf(T)) return diff --git a/code/modules/mining/mine_turfs.dm b/code/modules/mining/mine_turfs.dm index cc7c8c40bb..32ca92b311 100644 --- a/code/modules/mining/mine_turfs.dm +++ b/code/modules/mining/mine_turfs.dm @@ -82,7 +82,7 @@ var/list/mining_overlay_cache = list() /turf/simulated/mineral/proc/update_general() update_icon(1) if(ticker && ticker.current_state == GAME_STATE_PLAYING) - // TODO - Look into this + recalc_atom_opacity() reconsider_lights() if(air_master) air_master.mark_for_update(src)