From a96331e9549f0acb13f6235c8a47ccffe8ca1c86 Mon Sep 17 00:00:00 2001 From: meadowstream Date: Mon, 19 May 2014 16:36:28 -0400 Subject: [PATCH] fixed white gaps + added gravity back in --- js/entities.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/entities.js b/js/entities.js index 1c07019..b20b030 100644 --- a/js/entities.js +++ b/js/entities.js @@ -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 {