Closed Aussiemon closed 7 months ago
This is a side effect of the current simple decompilation logic for if statements.
I'm planning to improve this by trying to rebuild them without gotos first, but this will only work
for blocks that don't contain real gotos because I can't think of an algorithm that finds a combination
with the least amount of gotos left without needing to brute force it.
I've improved the decompilation logic, if the original code didn't have gotos the decompiled code should also not contain any.
This snippet
becomes
Breaks converting to gotos is problematic when expecting Lua 5.1 output.