Commit 54cabb53 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Fix score being wrongly calculated if clicking while animation is running

BUGS: 455871
parent c688371c
Pipeline #198087 passed with stage
in 1 minute and 26 seconds
......@@ -468,6 +468,14 @@ void GameScene::removePieces( int x, int y )
// If the animation is running we need to emit here the "old"
// remaining count otherwise the remainCountChanged won't
// be emitted until the "next" animation finishes meaning
// that the scores get calculated wrongly because it thinks
// you removed more pieces in one go that you really did
if (m_animation->state() == QAbstractAnimation::Running) {
Q_EMIT remainCountChanged( currentRemainCount() );
// unhighlight pieces
unhighlightPieces( x, y );
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