[Kde-games-devel] KBlocks: unable to move blocks because of "invisible blocks"

GJ gee_jay_ at yahoo.com
Sat Feb 22 17:44:41 UTC 2014


Hi,

I noticed a bug in KBlocks when a complete line is removed.
All the remaining blocks will be drawn a line lower.
But when the top line is filled with at least 1 block while you complete a line, the "occupied state" will be remembered and it will always be copied to the line just below.
What you get is that an empty block space is marked as occupied and that you can't move your figure over this location.

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;
 }
>---------------------------------------------------------------<



Kind regards



More information about the kde-games-devel mailing list