Commit 145820a7 authored by Julian Helfferich's avatar Julian Helfferich
Browse files

Fix unplayable game when changing difficulty

Previously, changing the difficulty before the first game was started
by selecting "Single Game" or "Human vs. AI" started an unplayable

Now, levelChanged() calls singleGame() or pveStepGame() instead of
startGame(). These functions are also called when selecting "Single
Game" or "Human vs. AI", respectively, and correctly connect keyboard
events to the game.

BUG: 339038
REVIEW: 127171
parent 9bca7835
......@@ -231,7 +231,11 @@ void KBlocksWin::onIsHighscore(int index, int points, int level)
void KBlocksWin::levelChanged()
//Scene reads the difficulty level for us
if (mGameCount == 1) {
} else {
Supports Markdown
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