diff options
| author | 1029chris <1029chris@gmail.com> | 2016-05-30 11:18:00 -0700 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2016-05-30 11:18:00 -0700 |
| commit | d391af3dc0610097413117fec853ba8eeca8d923 (patch) | |
| tree | 93eed31a474d09dc4264e78a66ecff5b828c9194 | |
| parent | fdc485028deac070d2bebbf60880aa3d9ef877b3 (diff) | |
mouse code tweak
moved some code from mouse.released to mouse.pressed
| -rw-r--r-- | main.lua | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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() |
