Summary: | Columns of invisible blocks after one block reached the top of the playing field. | ||
---|---|---|---|
Product: | [Applications] kblocks | Reporter: | Julian Helfferich <julian.helfferich> |
Component: | general | Assignee: | Zhongjie Cai <squall.leonhart.cai> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gee_jay_, kde-games-bugs |
Priority: | NOR | ||
Version: | 0.3 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kblocks/65a1b8136535758c77f66b505255206fd13f3117 | Version Fixed In: | |
Sentry Crash Report: |
Description
Julian Helfferich
2014-04-21 17:34:32 UTC
I noticed this behavior too. The following patch solves it somehow but you might get half figures. So it isn't 100% OK but me and my addiction can live with it. >---------------------------------------------------------------< --- kblocks/KBlocksField.cpp 2014-02-22 18:05:27.533871295 +0100 +++ kblocks-patched/KBlocksField.cpp 2014-02-22 18:07:54.743875286 +0100 @@ -138,6 +138,12 @@ maBoard[i][j] = maBoard[i-1][j]; } } + + for(int j = 0; j < mWidth; j++) + { + maBoard[0][j] = false; + } + mCurModifyID += 1; } >---------------------------------------------------------------< Git commit 65a1b8136535758c77f66b505255206fd13f3117 by Julian Helfferich. Committed on 25/10/2015 at 02:15. Pushed by helfferich into branch 'master'. Avoid occurence of invisible blocks. When a line is removed, fill the top line with empty cells. Before, the top line was not updated. This lead to the occurence of invisible blocks, if pieces were stacked up to the top line before. This patch was suggested by GJ in the discussion to bug #333694. Related: bug 344506 REVIEW: 125578 M +24 -0 KBlocksField.cpp http://commits.kde.org/kblocks/65a1b8136535758c77f66b505255206fd13f3117 |