Merge pull request #36288 from Cyberboss/BansKevinzFinally

You can no longer SDQL select certain datums
This commit is contained in:
vuonojenmustaturska
2018-03-09 18:45:24 +02:00
committed by CitadelStationBot
parent ad0be11cbc
commit bf63e9ad3f
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