From c66fcf217e930c98ec9d565d7321de94619e5290 Mon Sep 17 00:00:00 2001 From: Taizo 'Tsa6' Simpson Date: Mon, 21 Aug 2017 17:07:46 -0400 Subject: [PATCH] Fixed visualization showing on some non-grass tiles --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d983944..dc4fe6a 100644 --- a/index.js +++ b/index.js @@ -588,7 +588,7 @@ window.onload = function () { ctx.fillRect(x * mt, y * mt, mt, mt) - if(Game.state == 2 && tile != 1 && !getTowerAt(x, y) && !canPlaceTowerAt(x, y)) { + if(Game.state == 2 && tile == 0 && !getTowerAt(x, y) && !canPlaceTowerAt(x, y)) { ctx.fillStyle = 'rgba(255, 0, 0, 0.45)' ctx.fillRect(x * mt, y * mt, mt, mt) }