fixed white gaps + added gravity back in
This commit is contained in:
parent
232fc71421
commit
a96331e954
1 changed files with 2 additions and 2 deletions
|
@ -126,14 +126,14 @@ function Clock(sideLength) {
|
|||
}
|
||||
} else {
|
||||
if (block.distFromHex + iter - arr[position - 1].distFromHex - arr[position - 1].height <= 0) {
|
||||
block.distFromHex = arr[position - 1].distFromHex - arr[position - 1].height;
|
||||
block.distFromHex = arr[position - 1].distFromHex + arr[position - 1].height;
|
||||
block.settled = 1;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (arr.length > 0) {
|
||||
if (block.distFromHex + iter - arr[arr.length - 1].distFromHex - arr[arr.length - 1].height <= 0) {
|
||||
block.distFromHex = arr[arr.length - 1].distFromHex - arr[arr.length - 1].height;
|
||||
block.distFromHex = arr[arr.length - 1].distFromHex + arr[arr.length - 1].height;
|
||||
this.addBlock(block);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue