Merge pull request #15589 from KorPhaeron/weather2

Fixes up weather performance
This commit is contained in:
tkdrg
2016-02-20 09:31:12 -03:00
4 changed files with 17 additions and 9 deletions
+3 -3
View File
@@ -36,9 +36,9 @@
if(M.z == target_z)
M << start_up_message
spawn(start_up_time)
stage = MAIN_STAGE
weather_main()
sleep(start_up_time)
stage = MAIN_STAGE
weather_main()
/datum/weather/proc/weather_main()
@@ -52,6 +52,9 @@
if(stage == MAIN_STAGE)
A.invisibility = 0
A.opacity = 1
A.layer = overlay_layer
A.icon = 'icons/effects/weather_effects.dmi'
A.icon_state = start_up_overlay
else
A.invisibility = 100
A.opacity = 0