small bugfix
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Sun, 24 Feb 2019 21:26:06 +0000 (15:26 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Sun, 24 Feb 2019 21:26:06 +0000 (15:26 -0600)
main.lua

index 0e2e22944dd4cbf118c2d001e51977ea3f8a0a29..3d2ade34b9c88c9f6e66c3021ee193be8bc2f13d 100644 (file)
--- a/main.lua
+++ b/main.lua
@@ -251,8 +251,9 @@ function love.load()
 
                mousedown = function(self, x, y)
                        for i, button in ipairs(self.buttons) do
-                               if y >= (i - 1) * 60 + 10 and y <= i * 60 + 10 then
+                               if y >= (i - 1) * 60 + 10 and y <= i * 60 - 10 then
                                        button:click()
+                                       break
                                end
                        end
                end;