aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-10-17 14:49:55 -0700
committer1029chris <1029chris@gmail.com>2016-10-17 14:49:55 -0700
commitcffe98dc03bc1113fe9d665c04bfb17cfde24a57 (patch)
tree098fabf41f1a05632d383cf3d0508dd75a2c5983
parent3e9448f46e69a04d5e47207f9a536547f9e6e21b (diff)
Fixed mouse glitch
-rw-r--r--main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index 565e613..8ab39d5 100644
--- a/main.lua
+++ b/main.lua
@@ -61,7 +61,7 @@ function love.mousepressed(x, y, button)
if scene ~= 0 then
sys.mouse.p.x = x
sys.mouse.p.y = y
- if button == 2 then
+ if button ~= 1 then
sys.mouse.p.p = false
end
if button == 1 then