OpenDream
OpenDream copied to clipboard
Weirdly-valid indented code causes a compile error
This code is in Eternia:
// snip
if(target)
SpawnSmite(caster, target.loc,spell_dmg)
projectilesleft--
var/list/turfs = new/list()
for(var/turf/T in oview(7,target.loc))
turfs += T
while(projectilesleft && turfs.len > 0)
// snip
Note the for loop that has extra indentation.
It (surprisingly) compiles in BYOND but doesn't in OpenDream with an Expected end of proc statement error
Why does this compile in byond