mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Fixed the mob-spawning panel which is accessible via the game-panel. Credits to BurZeZ
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5033 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -1372,7 +1372,7 @@
|
|||||||
dat += "<br>NOTE: this screen currently does nothing<br>"
|
dat += "<br>NOTE: this screen currently does nothing<br>"
|
||||||
usr << browse(dat, "window=prom_demot;size=480x300")
|
usr << browse(dat, "window=prom_demot;size=480x300")
|
||||||
|
|
||||||
else if(href_list["object_list"])
|
else if(href_list["object_list"]) //this is the laggiest thing ever
|
||||||
if(!check_rights(R_SPAWN)) return
|
if(!check_rights(R_SPAWN)) return
|
||||||
|
|
||||||
if(!config.allow_admin_spawning)
|
if(!config.allow_admin_spawning)
|
||||||
@@ -1410,18 +1410,15 @@
|
|||||||
if(!check_rights(R_FUN,0))
|
if(!check_rights(R_FUN,0))
|
||||||
removed_paths += dirty_path
|
removed_paths += dirty_path
|
||||||
continue
|
continue
|
||||||
else if(ispath(path, /mob))
|
|
||||||
removed_paths += dirty_path
|
|
||||||
continue
|
|
||||||
paths += path
|
paths += path
|
||||||
|
|
||||||
if(!paths)
|
if(!paths)
|
||||||
alert("The path list you sent is empty")
|
alert("The path list you sent is empty")
|
||||||
return
|
return
|
||||||
if (length(paths) > 5)
|
if(length(paths) > 5)
|
||||||
alert("Select fewer object types, (max 5)")
|
alert("Select fewer object types, (max 5)")
|
||||||
return
|
return
|
||||||
else if (length(removed_paths))
|
else if(length(removed_paths))
|
||||||
alert("Removed:\n" + dd_list2text(removed_paths, "\n"))
|
alert("Removed:\n" + dd_list2text(removed_paths, "\n"))
|
||||||
|
|
||||||
var/list/offset = text2list(href_list["offset"],",")
|
var/list/offset = text2list(href_list["offset"],",")
|
||||||
|
|||||||
Reference in New Issue
Block a user