Lets you query base datum if you specify a list to search

This commit is contained in:
Exxion
2019-10-28 13:42:12 -04:00
parent d4dbf7d76e
commit c8cd3b2b2c

View File

@@ -73,14 +73,14 @@
if("select", "delete", "update")
select_types = query_tree[query_tree[1]]
if("/datum" in select_types)
to_chat(usr, "<span class='danger'>Querying /datum is not supported. Please use a more specific type.</span>")
return
from_objs = SDQL_from_objs(query_tree["from"])
CHECK_TICK
if(from_objs == world && ("/datum" in select_types))
to_chat(usr, "<span class='danger'>Querying all datums is not supported. Please use a more specific type or specify a list to search.</span>")
return
var/list/objs = list()
for(var/type in select_types)