You can no longer SDQL select certain datums

This commit is contained in:
Cyberboss
2018-03-09 10:23:41 -05:00
parent 2e03d27a01
commit 650a5eebe3
3 changed files with 13 additions and 7 deletions
+7 -7
View File
@@ -235,42 +235,42 @@
if(ispath(type, /mob))
for(var/mob/d in location)
if(typecache[d.type])
if(typecache[d.type] && d.can_vv_get())
out += d
CHECK_TICK
else if(ispath(type, /turf))
for(var/turf/d in location)
if(typecache[d.type])
if(typecache[d.type] && d.can_vv_get())
out += d
CHECK_TICK
else if(ispath(type, /obj))
for(var/obj/d in location)
if(typecache[d.type])
if(typecache[d.type] && d.can_vv_get())
out += d
CHECK_TICK
else if(ispath(type, /area))
for(var/area/d in location)
if(typecache[d.type])
if(typecache[d.type] && d.can_vv_get())
out += d
CHECK_TICK
else if(ispath(type, /atom))
for(var/atom/d in location)
if(typecache[d.type])
if(typecache[d.type] && d.can_vv_get())
out += d
CHECK_TICK
else if(ispath(type, /datum))
if(location == world) //snowflake for byond shortcut
for(var/datum/d) //stupid byond trick to have it not return atoms to make this less laggy
if(typecache[d.type])
if(typecache[d.type] && d.can_vv_get())
out += d
CHECK_TICK
else
for(var/datum/d in location)
if(typecache[d.type])
if(typecache[d.type] && d.can_vv_get())
out += d
CHECK_TICK