mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
[MIRROR] Replaces a portion of C-style for loops with the more commonplace for loops, which are faster. [MDB IGNORE] (#9298)
* Replaces a portion of C-style for loops with the more commonplace for loops, which are faster. * Update code/modules/projectiles/boxes_magazines/_box_magazine.dm Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> Co-authored-by: jjpark-kb <55967837+jjpark-kb@users.noreply.github.com>
This commit is contained in:
co-authored by
Ghom
jjpark-kb
parent
f44a214a2f
commit
98428cdfb5
@@ -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 = " "
|
||||
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))
|
||||
|
||||
@@ -779,7 +779,7 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new)
|
||||
surname_found = i
|
||||
break
|
||||
//forenames
|
||||
for(var/i=1, i<surname_found, i++)
|
||||
for(var/i in 1 to surname_found-1)
|
||||
var/word = ckey(L[i])
|
||||
if(word)
|
||||
forenames[word] = M
|
||||
|
||||
Reference in New Issue
Block a user