Commit 06831e32 authored by Julian Helfferich's avatar Julian Helfferich
Browse files

Stop playing sounds when game is paused

KBlocksWin now tells the AIPlayer and the KeyboardPlayer when the game
is paused and resumed. The pauseGame() functions are already available
for the two classes, but they have not been used yet.

REVIEW: 127489
parent d8d4f559
......@@ -149,6 +149,9 @@ void KBlocksWin::pauseGame()
mpPlayManager->pauseGame(m_pauseAction->isChecked());
mpGameScene->pauseGame(m_pauseAction->isChecked());
mpKBPlayer->pauseGame(m_pauseAction->isChecked());
mpAIPlayer->pauseGame(m_pauseAction->isChecked());
Kg::difficulty()->setGameRunning(!m_pauseAction->isChecked());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment