ZAS debug_verb runtime prevention.

This commit is contained in:
Ccomp5950
2014-02-16 13:31:56 -06:00
parent db33fb6425
commit 71b41e9ac7

View File

@@ -213,6 +213,10 @@ var/list/debug_verbs = list (
testZAScolors_remove()
var/turf/location = get_turf(usr)
if(!istype(location, /turf/simulated)) // We're in space, let's not cause runtimes.
usr << "\red this debug tool cannot be used from space"
return
var/icon/red = new('icons/misc/debug_group.dmi', "red") //created here so we don't have to make thousands of these.
var/icon/green = new('icons/misc/debug_group.dmi', "green")