From d391af3dc0610097413117fec853ba8eeca8d923 Mon Sep 17 00:00:00 2001 From: 1029chris <1029chris@gmail.com> Date: Mon, 30 May 2016 11:18:00 -0700 Subject: mouse code tweak moved some code from mouse.released to mouse.pressed --- main.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'main.lua') diff --git a/main.lua b/main.lua index 7c479db..616874f 100644 --- a/main.lua +++ b/main.lua @@ -70,6 +70,11 @@ function love.mousepressed(x, y, button) 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 function love.keyreleased(key) if key == "f11" then @@ -86,11 +91,6 @@ function love.mousereleased(x, y, button) for i=1,6 do icon[i].cl = false 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 file.p = false end function love.draw() -- cgit