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
+1 -1
View File
@@ -20,7 +20,7 @@
. = ..()
var/list/digits = list("1", "2", "3", "4", "5", "6", "7", "8", "9", "0")
code = ""
for(var/i = 0, i < codelen, i++)
for(var/i in 1 to codelen)
var/dig = pick(digits)
code += dig
digits -= dig //there are never matching digits in the answer