diff options
| author | 1029chris <1029chris@gmail.com> | 2016-06-14 14:28:45 -0700 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2016-06-14 14:28:45 -0700 |
| commit | 5f57817773fe44b6417fa4e577fe45ebd2c7c351 (patch) | |
| tree | e997b50627b512801bef699d6cb77e1ac2ac976a /main.lua | |
| parent | 2ab453ac53e4c2a9d23a58a12c5403d2b6b96b69 (diff) | |
Fixed loading crash when clicking
Diffstat (limited to 'main.lua')
| -rw-r--r-- | main.lua | 44 |
1 files changed, 24 insertions, 20 deletions
@@ -63,17 +63,19 @@ function love.update(dt) end end function love.mousepressed(x, y, button) - sys.mouse.p.x = x - sys.mouse.p.y = y - if button == 2 then - sys.mouse.p.p = false - end - if button == 1 then - sys.mouse.p.p = true - end - if v1.msgs[v1.c.chat.msgs] ~= nil then - if string.len(v1.msgs[v1.c.chat.msgs]) == string.len(v1.c.chat.msg) and v1.yes == true then - v1.c.chat.next = false + if scene ~= 0 then + sys.mouse.p.x = x + sys.mouse.p.y = y + if button == 2 then + sys.mouse.p.p = false + end + if button == 1 then + sys.mouse.p.p = true + end + if v1.msgs[v1.c.chat.msgs] ~= nil then + if string.len(v1.msgs[v1.c.chat.msgs]) == string.len(v1.c.chat.msg) and v1.yes == true then + v1.c.chat.next = false + end end end end @@ -87,16 +89,18 @@ function love.keyreleased(key) end end function love.mousereleased(x, y, button) - sys.mouse.p.p = false - start.p = false - for i=1,6 do - icon[i].cl = false + if scene ~= 0 then + sys.mouse.p.p = false + start.p = false + for i=1,6 do + icon[i].cl = false + end + file.p = false + mplay.drag = false + vplay.drag = false + mplay.pr = false + vplay.pr = false end - file.p = false - mplay.drag = false - vplay.drag = false - mplay.pr = false - vplay.pr = false end function love.draw() if scene == 1 then |
