Fixed visualization showing on some non-grass tiles

This commit is contained in:
Taizo 'Tsa6' Simpson 2017-08-21 17:07:46 -04:00
parent dcf51a74ae
commit c66fcf217e
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}