Replaces a portion of C-style for loops with the more commonplace for loops, which are faster. (#62624)

Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com>
This commit is contained in:
Ghom
2021-11-07 16:42:41 -08:00
committed by GitHub
co-authored by Kyle Spier-Swenson
parent 78faf06434
commit b79dd74fd0
49 changed files with 124 additions and 125 deletions
+3 -2
View File
@@ -983,8 +983,9 @@ GLOBAL_DATUM_INIT(sdql2_vv_statobj, /obj/effect/statclick/sdql2_vv_all, new(null
/proc/SDQL_testout(list/query_tree, indent = 0)
var/static/whitespace = "&nbsp;&nbsp;&nbsp; "
var/spaces = ""
for(var/s = 0, s < indent, s++)
spaces += whitespace
if(indent > 0)
for(var/i in 1 to indent)
spaces += whitespace
for(var/item in query_tree)
if(istype(item, /list))