Archived
4
1
Fork 0

Hotfix for hole detection

This commit is contained in:
Simon Giesel 2017-06-20 14:30:32 +02:00
parent 94e519c078
commit 18613261bc

View file

@ -198,7 +198,7 @@ var _COLOR_GRASS = '#388E3C',
}
function checkHole() {
if(bX >= hole[0]-_HOLE_WIDTH/2 && bX <= hole[0]+_HOLE_WIDTH/2 && bY >= hole[1] && bY-_HOLE_WIDTH/2 <= hole[1]+_HOLE_WIDTH/2)
if(bX >= hole[0]-_HOLE_WIDTH/2 && bX <= hole[0]+_HOLE_WIDTH/2 && bY >= hole[1]-_HOLE_WIDTH/2 && bY <= hole[1]+_HOLE_WIDTH/2)
alert('Hole')
}