From 946099e93d09997f674651b28a18dd188705dbda Mon Sep 17 00:00:00 2001 From: Matthias Richter Date: Sun, 3 Jan 2016 19:15:57 +0100 Subject: [PATCH] Fix mouse in rectangle test --- core.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core.lua b/core.lua index e1f1254..ab94084 100644 --- a/core.lua +++ b/core.lua @@ -64,7 +64,7 @@ end -- mouse handling function suit:mouseInRect(x,y,w,h) return self.mouse_x >= x and self.mouse_y >= y and - self.mouse_x <= x+w and self.mouse_y > y+h + self.mouse_x <= x+w and self.mouse_y <= y+h end function suit:registerMouseHit(id, ul_x, ul_y, hit)