From 646d1ba05a4f66473f08aee3ce179cb7832be145 Mon Sep 17 00:00:00 2001 From: joep van der velden Date: Fri, 28 Dec 2018 16:37:03 +0100 Subject: [PATCH] Now doesn't revoke if it's granted --- code/datums/weather/weather_types/radiation_storm.dm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/datums/weather/weather_types/radiation_storm.dm b/code/datums/weather/weather_types/radiation_storm.dm index a1c6a83da61..08b30ecef48 100644 --- a/code/datums/weather/weather_types/radiation_storm.dm +++ b/code/datums/weather/weather_types/radiation_storm.dm @@ -15,7 +15,7 @@ end_duration = 100 end_message = "The air seems to be cooling off again." - + var/pre_maint_all_access area_type = /area protected_areas = list(/area/maintenance, /area/turret_protected/ai_upload, /area/turret_protected/ai_upload_foyer, /area/turret_protected/ai, /area/storage/emergency, /area/storage/emergency2, /area/crew_quarters/sleep, /area/security/brig, /area/shuttle) @@ -26,7 +26,9 @@ /datum/weather/rad_storm/telegraph() ..() status_alarm(TRUE) - make_maint_all_access() + pre_maint_all_access = maint_all_access + if(!maint_all_access) + make_maint_all_access() /datum/weather/rad_storm/weather_act(mob/living/L) @@ -51,7 +53,8 @@ return priority_announcement.Announce("The radiation threat has passed. Please return to your workplaces.", "Anomaly Alert") status_alarm(FALSE) - revoke_maint_all_access() + if(!pre_maint_all_access) + revoke_maint_all_access() /datum/weather/rad_storm/proc/status_alarm(active) //Makes the status displays show the radiation warning for those who missed the announcement. if(active)