Hotfix for hole detection
This commit is contained in:
parent
94e519c078
commit
18613261bc
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue