Runtime fix for buildmode type path inputs, incorrect paths are now rejected.

This commit is contained in:
Aranclanos
2013-07-25 22:55:12 -03:00
parent 6435de1c03
commit 5af0af2eee
+3 -2
View File
@@ -145,10 +145,11 @@
return
if(2)
objholder = input(usr,"Enter typepath:" ,"Typepath","/obj/structure/closet")
var/P = text2path(objholder)
var/list/removed_paths = list("/obj/effect/bhole")
if(objholder in removed_paths)
alert("That path is not allowed.")
if((objholder in removed_paths) || !ispath(P))
objholder = "/obj/structure/closet"
alert("That path is not allowed.")
else if (dd_hasprefix(objholder, "/mob") && !check_rights(R_DEBUG,0))
objholder = "/obj/structure/closet"
if(3)