From 76a0a03f1586f3b3a8649f86303d4b0ab299e484 Mon Sep 17 00:00:00 2001 From: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> Date: Wed, 1 Sep 2021 12:49:13 -0400 Subject: [PATCH] Update code/modules/events/anomaly.dm Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com> --- code/modules/events/anomaly.dm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/code/modules/events/anomaly.dm b/code/modules/events/anomaly.dm index 17ad79ef0c7..d6135fd8301 100644 --- a/code/modules/events/anomaly.dm +++ b/code/modules/events/anomaly.dm @@ -5,11 +5,13 @@ /datum/event/anomaly/proc/findEventArea() var/static/list/allowed_areas - var/static/list/existing_areas = list() - for(var/area/AR in world) - var/turf/picked = safepick(get_area_turfs(AR.type)) - if(picked && is_station_level(picked.z)) - existing_areas += AR + var/static/list/existing_areas + if(!existing_areas) + existing_areas = list() + for(var/area/AR in world) + var/turf/picked = safepick(get_area_turfs(AR.type)) + if(picked && is_station_level(picked.z)) + existing_areas += AR if(!allowed_areas) //Places that shouldn't explode var/list/safe_area_types = typecacheof(list(