[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:
SkyratBot
2021-11-08 15:50:29 +00:00
committed by GitHub
parent f44a214a2f
commit 98428cdfb5
49 changed files with 124 additions and 125 deletions

View File

@@ -69,7 +69,7 @@
if(bigZ % 2 == 0)
offByOneOffset = 0
for(var/i = lilZ, i <= bigZ+offByOneOffset, i++)
for(var/i in lilZ to bigZ+offByOneOffset)
var/theRadius = radius
if(i != sphereMagic)
theRadius = max(radius/max((2*abs(sphereMagic-i)),1),1)