1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-01-20 22:16:53 +00:00

Update pain.lua

This commit is contained in:
LDDestroier 2018-10-21 17:00:10 -04:00 committed by GitHub
parent 6935e0d2aa
commit 53069bbaf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1602,7 +1602,7 @@ local specialCharSelector = function()
while true do
evt, butt, x, y = os.pullEvent()
if evt == "mouse_click" or evt == "mouse_drag" then
if (evt == "mouse_click" or evt == "mouse_drag") then
if chars[y-sy] then
if chars[y-sy][x] then
if (chars[y-sy][x] ~= char) then
@ -1616,7 +1616,7 @@ local specialCharSelector = function()
return char
end
elseif evt == "key" then
if key == keys.c or key == keys.q then
if (butt == keys.c) or (butt == keys.leftCtrl) then
return char
end
end