Fixes pointless for() loops (#21613)

OpenDream's `EmptyBlock` pragma had a bug that prevented it from firing
in certain cases of empty `for()` loops. That has been resolved and it's
uncovered a few issues with your code.

Please merge this ASAP as it has no impact on current behavior (besides
saving CPU cycles) and the bad code is currently blocking OpenDream CI
for the linked PR.
This commit is contained in:
ike709
2025-11-20 15:36:03 +00:00
committed by GitHub
parent 5f9c78d612
commit 419b3e7e32
3 changed files with 0 additions and 4 deletions
-1
View File
@@ -60,7 +60,6 @@
var/list/picked_apcs = list()
// Up to 2/4/6 APCs per tick depending on severity
for(var/i = 0, i < ((severity + 1)), i++)
for(var/i = 0, i < (severity * 2), i++)
picked_apcs |= pick(valid_apcs)