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:
Kyzentun Keeslala
2015-09-03 14:39:57 -06:00
parent 60b69ab6b6
commit f182a04780
4 changed files with 18 additions and 4 deletions
+6 -1
View File
@@ -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;
/**