Skip to content

FadeTo transitional game state stack weirdness #22

@erisdev

Description

@erisdev

I've found that with a transitional game state set, pushing a new state then popping it back results in a new copy of the previous state being pushed onto the stack. Behold my hypothetical situation:

  1. TitleScreen

push_game_state OptionsMenu
  1. OptionsMenu
  2. TitleScreen

pop_game_state
  1. TitleScreen
  2. TitleScreen

I can't quite pinpoint it, but it seems to be a logic error in either GameStateManager#pop_game_state or #switch_game_state.

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