git repos / blockattack-game

commit 2f225191

sago007 · 2016-04-16 13:37
2f225191cfe810de62ceffe7482ceb8c98f94698 patch · browse files
parent 0cba733dda026e5ef73c0c7e080ee35a412e4be6

If there are an empty line it is fine. No reason to check hight for grey garbage as the hight is hardcoded to 1.

Changed files

M source/code/BlockGame.cpp before
diff --git a/source/code/BlockGame.cpp b/source/code/BlockGame.cpp index a94c037..08bd331 100644 --- a/source/code/BlockGame.cpp +++ b/source/code/BlockGame.cpp
@@ -606,9 +606,6 @@ bool BlockGame::CreateGreyGarbage() {
if (startPosition >= 29) {
return false; //failed to place blocks
}
- if (29-startPosition<1) {
- return false; //not enough space
- }
int start = 0;
int end = 6;
for (int i = startPosition; i <startPosition+1; i++) {