less consolidateBlocks
This commit is contained in:
parent
2782e1b401
commit
4774b021d1
2 changed files with 2 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -267,4 +267,4 @@ function checkGameOver() {
|
|||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue