-
Notifications
You must be signed in to change notification settings - Fork 222
Closed
Labels
Description
There's an interesting bug that's present in both RM2K and RM2k3 RPG_RT. I can reproduce it on the latest versions in steam.
BreakLoop doesn't work with nested loops. It always just jumps to the next EndLoop statement regardless of nesting.
Consider the following code:
Loop
BreakLoop
Loop
EndLoop
Text: Hello
EndLoop
Text: Goodbye
Anyone who has done any programming would expect to see "Goodbye" and then the code exits. But in RPG_RT this code will infinite loop on "Hello".
I see that Player handles BreakLoop correctly, but being correct is not compatible with RPG_RT.
What should we do here?
I wonder if any game really relies on this broken behavior?
Reactions are currently unavailable