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
@@ -151,7 +151,7 @@
/obj/item/storage/secure/briefcase/syndie/PopulateContents()
..()
var/datum/component/storage/STR = GetComponent(/datum/component/storage)
for(var/i = 0, i < STR.max_items - 2, i++)
for(var/i in 1 to STR.max_items - 2)
new /obj/item/stack/spacecash/c1000(src)
+1 -1
View File
@@ -316,7 +316,7 @@
var/obj/effect/resin_container/A = new (get_turf(src))
log_game("[key_name(user)] used Resin Launcher at [AREACOORD(user)].")
playsound(src,'sound/items/syringeproj.ogg',40,TRUE)
for(var/a=0, a<5, a++)
for(var/i in 1 to 5)
step_towards(A, target)
sleep(2)
A.Smoke()