Allow set_opacity() to work for turfs too.

Fixes lighting opacity not updating on mined rock walls and false doors.
This commit is contained in:
Leshana
2017-04-15 10:36:04 -05:00
parent d00c2596e8
commit a29b807953
2 changed files with 2 additions and 2 deletions

View File

@@ -85,7 +85,7 @@
return
opacity = new_opacity
var/turf/T = loc
var/turf/T = isturf(src) ? src : loc
if(!isturf(T))
return

View File

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