mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
[MIRROR] Improve cancellability of Run Weather admin verb (#5081)
* Improve cancellability of Run Weather admin verb (#43528)
This commit is contained in:
committed by
Gary Lafortune
parent
67337a1c01
commit
b97faa602b
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user