Optimize a couple things

This commit is contained in:
Chompstation Bot
2021-07-20 21:30:20 +00:00
parent 4a6c523aa6
commit 15cafbe65b
262 changed files with 9437 additions and 934 deletions
+2 -4
View File
@@ -238,8 +238,7 @@ Example: USING PROCCALL = BLOCKING, SELECT = FORCE_NULLS, PRIORITY = HIGH SELECT
do
CHECK_TICK
finished = TRUE
for(var/i in running)
var/datum/SDQL2_query/query = i
for(var/datum/SDQL2_query/query as anything in running)
if(QDELETED(query))
running -= query
continue
@@ -562,8 +561,7 @@ GLOBAL_DATUM_INIT(sdql2_vv_statobj, /obj/effect/statclick/SDQL2_VV_all, new(null
location = list(location)
if(type == "*")
for(var/i in location)
var/datum/d = i
for(var/datum/d as anything in location)
if(d.can_vv_get() || superuser)
out += d
SDQL2_TICK_CHECK