Qt: Fix held-rewind getting into bad pause states

This commit is contained in:
Jeffrey Pfau 2015-06-01 23:40:48 -07:00
parent 502ca7abd7
commit 3af3fab3cf
1 changed files with 4 additions and 1 deletions

View File

@ -419,6 +419,9 @@ void GameController::threadContinue() {
}
void GameController::frameAdvance() {
if (m_rewindTimer.isActive()) {
return;
}
m_pauseMutex.lock();
m_pauseAfterFrame = true;
setPaused(false);
@ -454,7 +457,7 @@ void GameController::rewind(int states) {
}
void GameController::startRewinding() {
if (!m_gameOpen) {
if (!m_gameOpen || m_rewindTimer.isActive()) {
return;
}
m_wasPaused = isPaused();