no longer depends on E().sI

This commit is contained in:
Izaya 2017-05-23 17:10:12 +00:00
parent 9ae5e54176
commit 2249062214

View File

@ -1,4 +1,5 @@
function nshc_w(evPP,nid)
local sI = E().sI or 1
while true do
if ev[1] == "net_msg" then
local V,msg=false,tostring(ev[4])
@ -7,9 +8,9 @@ function nshc_w(evPP,nid)
write(msg:sub(4))
end
end
elseif ev[1] == "key" and ev[2] == E().sI and ev[3] == 29 and ev[4] == 27 then
elseif ev[1] == "key" and ev[2] == sI and ev[3] == 29 and ev[4] == 27 then
break
elseif ev[1] == "key" and ev[2] == E().sI then
elseif ev[1] == "key" and ev[2] == sI then
ns(nid,evPP,"key"..tostring(ev[3]))
end
C.yield()