fix some conflicts for real

This commit is contained in:
Evert Prants 2017-08-22 10:53:36 +03:00
parent 8e080b48f3
commit 700adb228c
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -602,6 +602,11 @@ window.onload = function () {
if(draw_tile) { if(draw_tile) {
ctx.fillRect(x * mt, y * mt, mt, mt) 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) { for (let i in Game.map.pathgen) {