corrects some loop syntax (#92252)

## About The Pull Request
spacemandmm, and byond, did not used to error on using `for init; test,
inc`. spacemandmm now does, and i think it's bad syntax to keep around
anyway

## Why It's Good For The Game
this syntax was mad

## Changelog
no playerfacing changes

Co-authored-by: harryob <55142896+harryob@users.noreply.github.com>
This commit is contained in:
harry
2025-07-24 05:03:09 +01:00
committed by Roxy
parent bc453705cf
commit cc651eac83
3 changed files with 3 additions and 3 deletions

View File

@@ -85,7 +85,7 @@
if(origin)
var/turf/starting = get_turf(origin)
check_turf(starting, found_turfs, NONE)
for(var/i = 1; i <= length(found_turfs), i++)
for(var/i = 1; i <= length(found_turfs); i++)
var/turf/focus = found_turfs[i]
var/list/focus_packet = found_turfs[focus]
var/dirs_checked = focus_packet[MERGE_TURF_PACKET_DIR]

View File

@@ -84,7 +84,7 @@
var/textLen = min(length(text), 7)
var/startX = 16 - (2*textLen)
var/i
for(i=1; i <= textLen, i++)
for(i=1; i <= textLen; i++)
var/letter = uppertext(text[i])
var/icon/letter_icon = icon("icon" = 'icons/testing/Font_Minimal.dmi', "icon_state" = letter)
letter_icon.Shift(EAST, startX) //16 - (2*n)

View File

@@ -376,7 +376,7 @@ no power level overlay is currently in the overlays list.
if(connected_gens.len < 2)
return
var/connected_gen_counter
for(connected_gen_counter = 1; connected_gen_counter < connected_gens.len, connected_gen_counter++)
for(connected_gen_counter = 1; connected_gen_counter < connected_gens.len; connected_gen_counter++)
var/list/connected_gen_list = ((connected_gens[connected_gen_counter].connected_gens & connected_gens[connected_gen_counter+1].connected_gens)^src)
if(!connected_gen_list.len)