Fixed pausing on ScreenGameplay by making GameState have a pause variable and not force the song position forward if the game is paused. Implementing a working pause button that the player can press is left as an exercise for the reader.
This commit is contained in:
@@ -249,9 +249,14 @@ protected:
|
||||
STATE_DANCING, /**< The main state where notes have to be pressed. */
|
||||
STATE_OUTRO, /**< The ending state, pressing Back isn't allowed here. */
|
||||
NUM_DANCING_STATES
|
||||
}
|
||||
}
|
||||
/** @brief The specific point within ScreenGameplay. */ m_DancingState;
|
||||
private:
|
||||
bool m_bPaused;
|
||||
// set_paused_internal exists because GameState's pause variable needs to
|
||||
// be kept in sync with ScreenGameplay's.
|
||||
void set_paused_internal(bool p);
|
||||
protected:
|
||||
|
||||
GameController m_PauseController;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user