mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 00:58:26 +01:00
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:
co-authored by
Kyle Spier-Swenson
parent
78faf06434
commit
b79dd74fd0
@@ -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)
|
||||
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user