Fix runtimes when events cannot find a valid event area (#26594)

* Fix runtimes when events cannot find a valid event area

* oops
This commit is contained in:
Luc
2024-09-03 09:13:49 -04:00
committed by GitHub
parent 6f1a90c59d
commit 00a0b8f004
3 changed files with 10 additions and 0 deletions
+5
View File
@@ -18,6 +18,8 @@
impact_area = findEventArea()
/datum/event/tear/start()
if(isnull(impact_area))
log_debug("No valid event areas could be generated for dimensional tear.")
var/list/area_turfs = get_area_turfs(impact_area)
while(length(area_turfs))
var/turf/T = pick_n_take(area_turfs)
@@ -45,6 +47,9 @@
if(!target_area)
if(false_alarm)
target_area = findEventArea()
if(isnull(target_area))
log_debug("Tried to announce a false-alarm tear without a valid area!")
kill()
else
log_debug("Tried to announce a tear without a valid area!")
kill()