Review Request 128556: KBreakout: Fix brick count.

Julian Helfferich julian.helfferich at googlemail.com
Sun Oct 16 21:23:30 UTC 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128556/
-----------------------------------------------------------

(Updated Oct. 16, 2016, 9:23 p.m.)


Status
------

This change has been marked as submitted.


Review request for KDE Games.


Changes
-------

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


Bugs: 328811
    http://bugs.kde.org/show_bug.cgi?id=328811


Repository: kbreakout


Description
-------

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.


Diffs
-----

  src/qml/logic.js dc6a2d3 

Diff: https://git.reviewboard.kde.org/r/128556/diff/


Testing
-------

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.


Thanks,

Julian Helfferich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20161016/99a08806/attachment.html>


More information about the kde-games-devel mailing list