Hide tower restriction visualization when not in build phase

This commit is contained in:
Taizo 'Tsa6' Simpson 2017-08-21 17:02:21 -04:00
parent 3233331722
commit dcf51a74ae

View File

@ -588,7 +588,7 @@ window.onload = function () {
ctx.fillRect(x * mt, y * mt, mt, mt) 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.fillStyle = 'rgba(255, 0, 0, 0.45)'
ctx.fillRect(x * mt, y * mt, mt, mt) ctx.fillRect(x * mt, y * mt, mt, mt)
} }