Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local labels are incorrectly detected in call statement when mixed with other call/jump statements) #75

Open
hsandt opened this issue Jul 12, 2024 · 0 comments

Comments

@hsandt
Copy link

hsandt commented Jul 12, 2024

Take this simple flow:

label scene1:
    # menu is just to give a concrete example
    # but even without it, you can reproduce the bug
    menu:
        "A":
            jump .a
        "B":
            jump .b
    return

label .a:
    return

label .b:
    return

It generates the following graph (passing -hide-screens to simplify):
renpy-graphviz

Now replace the second jump with a call:

    menu:
        "A":
            jump .a
        "B":
            call .b
    return

renpy-graphviz

The path to .b is now missing.

Now use call on first statement only:

    menu:
        "A":
            call .a
        "B":
            jump .b
    return

renpy-graphviz

This time, the path to .a is missing.

Finally, use call everywhere:

    menu:
        "A":
            call .a
        "B":
            call .b
    return

renpy-graphviz

and nothing appears.

hsandt added a commit to hsandt/o2a2-2024-unsatisfied that referenced this issue Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant