mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
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:
@@ -85,7 +85,7 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
opacity = new_opacity
|
opacity = new_opacity
|
||||||
var/turf/T = loc
|
var/turf/T = isturf(src) ? src : loc
|
||||||
if(!isturf(T))
|
if(!isturf(T))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ var/list/mining_overlay_cache = list()
|
|||||||
/turf/simulated/mineral/proc/update_general()
|
/turf/simulated/mineral/proc/update_general()
|
||||||
update_icon(1)
|
update_icon(1)
|
||||||
if(ticker && ticker.current_state == GAME_STATE_PLAYING)
|
if(ticker && ticker.current_state == GAME_STATE_PLAYING)
|
||||||
// TODO - Look into this
|
recalc_atom_opacity()
|
||||||
reconsider_lights()
|
reconsider_lights()
|
||||||
if(air_master)
|
if(air_master)
|
||||||
air_master.mark_for_update(src)
|
air_master.mark_for_update(src)
|
||||||
|
|||||||
Reference in New Issue
Block a user