Fix bottom boundary
authorgumartinm <gu.martinm@gmail.com>
Sun, 6 Nov 2011 21:37:56 +0000 (22:37 +0100)
committergumartinm <gu.martinm@gmail.com>
Sun, 6 Nov 2011 21:37:56 +0000 (22:37 +0100)
AndroidTetris/src/de/android/androidtetris/DrawView.java

index 2583f11..97297d6 100644 (file)
@@ -220,7 +220,7 @@ public class DrawView extends SurfaceView {
        for(int x=0; x<4; x++)
                for(int y=0; y<4; y++)
                        if(currentPiece.size[x][y] != Tile.NOCOLOR)
-                               if (newy + y > MAPHEIGHT)
+                               if (newy + y == MAPHEIGHT)
                                        return true;
        
        //Check collisions