mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
Improve cancellability of Run Weather admin verb (#43528)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user