Commit 093908ca authored by Julian Helfferich's avatar Julian Helfferich 💬
Browse files

Make test pass and first fix to the reported bug.

Now, the final piece does correctly move into place at the end of the
game. But some improvements are still possible:

1) The piece only moves to the correct location after the highscore
window is displayed (and closed).

2) The piece that could not be placed and ended the game is invisible.
parent 35007319
Pipeline #48214 passed with stage
in 4 minutes and 4 seconds
......@@ -149,13 +149,13 @@ void KBlocksItemGroup::updateGame()
{
int gameResult = mpSingleGame->updateGame();
bool hasRemovedLines = updateLayout();
if (gameResult == GameResult_Game_Over) {
mUpdateTimer.stop();
return;
}
bool hasRemovedLines = updateLayout();
if (hasRemovedLines && mGameAnimEnabled) {
mUpdateTimer.stop();
fadeOutOldLine();
......
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