less consolidateBlocks

This commit is contained in:
garrettdreyfus 2014-05-23 21:36:59 -04:00
parent 4cc4ca6dea
commit 3dad2f1e9c
2 changed files with 2 additions and 12 deletions

View file

@ -40,15 +40,5 @@ function consolidateBlocks(clock,side,index){
clock.blocks[arr[0]][arr[1]].deleted = 1;
}
}
for (i in sidesChanged) {
var flag =0;
for( var j=0;j<clock.blocks[sidesChanged[i]].length;j++) {
if(clock.blocks[sidesChanged[i]][j].deleted ==1){
flag=1;
}
else if(flag==1){
consolidateBlocks(clock,sidesChanged[i],j);
}
}
}
}

View file

@ -267,4 +267,4 @@ function checkGameOver() {
}
}
return false;
}
}