From 18613261bcb9eaed91a980d7b0b9a69b508aedb8 Mon Sep 17 00:00:00 2001 From: Simon Giesel Date: Tue, 20 Jun 2017 14:30:32 +0200 Subject: [PATCH] Hotfix for hole detection --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 72b36db..989f834 100644 --- a/index.html +++ b/index.html @@ -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') }