diff --git a/index.js b/index.js index 122eeeb..d983944 100644 --- a/index.js +++ b/index.js @@ -588,7 +588,7 @@ window.onload = function () { ctx.fillRect(x * mt, y * mt, mt, mt) - if(tile != 1 && !getTowerAt(x, y) && !canPlaceTowerAt(x, y)) { + if(Game.state == 2 && tile != 1 && !getTowerAt(x, y) && !canPlaceTowerAt(x, y)) { ctx.fillStyle = 'rgba(255, 0, 0, 0.45)' ctx.fillRect(x * mt, y * mt, mt, mt) }