Improve cancellability of Run Weather admin verb (#43528)

This commit is contained in:
Tad Hardesty
2019-04-08 15:53:44 -04:00
committed by moo
parent c7390b28d7
commit 9c9cc9110a
+3 -4
View File
@@ -1103,11 +1103,10 @@ GLOBAL_LIST_EMPTY(custom_outfits) //Admin created outfits
if(!weather_type)
return
var/z_level = input("Z-Level to target? Leave blank to target current Z-Level.", "Z-Level") as num|null
var/turf/T = get_turf(mob)
var/z_level = input("Z-Level to target?", "Z-Level", T?.z) as num|null
if(!isnum(z_level))
if(!src.mob)
return
z_level = src.mob.z
return
SSweather.run_weather(weather_type, z_level)