Fix mining turfs permenently unlit.

* Mining turfs generated during random mapgen get their opacity changed
without a call to recalc_atom_opacity() becuase the game ticker has not
started.  Make sure we call it even before that point.
This commit is contained in:
Leshana
2017-04-16 14:46:09 -04:00
parent d09cc7a57d
commit b9dd5233a6

View File

@@ -81,8 +81,8 @@ var/list/mining_overlay_cache = list()
/turf/simulated/mineral/proc/update_general()
update_icon(1)
recalc_atom_opacity()
if(ticker && ticker.current_state == GAME_STATE_PLAYING)
recalc_atom_opacity()
reconsider_lights()
if(air_master)
air_master.mark_for_update(src)