Skip to content

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

@hsandt

Description

@hsandt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions