[MIRROR] Improve cancellability of Run Weather admin verb (#5081)

* Improve cancellability of Run Weather admin verb (#43528)
This commit is contained in:
yogstation13-bot
2019-04-09 06:38:02 +02:00
committed by Gary Lafortune
parent 67337a1c01
commit b97faa602b

View File

@@ -1113,11 +1113,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)