From 700adb228c0d2c45fc7b35c886890f2035124fb8 Mon Sep 17 00:00:00 2001 From: Evert Date: Tue, 22 Aug 2017 10:53:36 +0300 Subject: [PATCH] fix some conflicts for real --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 22d3084..1a3e4f2 100644 --- a/index.js +++ b/index.js @@ -602,6 +602,11 @@ window.onload = function () { if(draw_tile) { ctx.fillRect(x * mt, y * mt, mt, mt) } + + 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) + } } /* for (let i in Game.map.pathgen) {