Skip to content

BreakLoop is correct in Player but broken in RPG_RT #1442

@mateofio

Description

@mateofio

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions