From a1180f96842586846f89135a5d386af6aac4d218 Mon Sep 17 00:00:00 2001 From: gumartinm Date: Sun, 6 Nov 2011 22:37:56 +0100 Subject: [PATCH] Fix bottom boundary --- AndroidTetris/src/de/android/androidtetris/DrawView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AndroidTetris/src/de/android/androidtetris/DrawView.java b/AndroidTetris/src/de/android/androidtetris/DrawView.java index 2583f11..97297d6 100644 --- a/AndroidTetris/src/de/android/androidtetris/DrawView.java +++ b/AndroidTetris/src/de/android/androidtetris/DrawView.java @@ -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 -- 2.1.4