KBreakout: Fix brick count.

Review Request #128556 - Created July 30, 2016 and submitted

Information
Julian Helfferich
kbreakout
master, Applications/16.08
328811
Reviewers
Kdegames

As described in bug 328811, some levels clear before all bricks have been destroyed. This happes for example in Level 6, when invisible bricks are destroyed by the "Burning Ball". KBreakout keeps count of the remaining bricks. Indestructable and invisible bricks do not contribute to the remaining bricks. When bricks are destroyed, the remaining brick counter is decreased accordingly. However, when an invisible or indestructable brick explodes, the remaining brick counter is decreased even though these bricks did not contribute to the number of remaining bricks.

In the patch, the remaining brick counter is increased if an invisible or indestructible brick is set to explode.

Print out number of remaining bricks.

a) Before the patch: Confirm that number of remaining bricks is wrong.
b) After the patch: Confirm that number of remaining bricks is correct. Confirm that levels no longer clear prematurely.

Albert Astals Cid
Julian Helfferich
Albert Astals Cid
Julian Helfferich
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit dd0118db78d361bf58c03212c7b6f0fac9c9369f by Albert Astals Cid on behalf of Julian Helfferich to branch Applications/16.08.
Loading...