no longer depends on E().sI
This commit is contained in:
parent
9ae5e54176
commit
2249062214
@ -1,4 +1,5 @@
|
|||||||
function nshc_w(evPP,nid)
|
function nshc_w(evPP,nid)
|
||||||
|
local sI = E().sI or 1
|
||||||
while true do
|
while true do
|
||||||
if ev[1] == "net_msg" then
|
if ev[1] == "net_msg" then
|
||||||
local V,msg=false,tostring(ev[4])
|
local V,msg=false,tostring(ev[4])
|
||||||
@ -7,9 +8,9 @@ function nshc_w(evPP,nid)
|
|||||||
write(msg:sub(4))
|
write(msg:sub(4))
|
||||||
end
|
end
|
||||||
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
|
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]))
|
ns(nid,evPP,"key"..tostring(ev[3]))
|
||||||
end
|
end
|
||||||
C.yield()
|
C.yield()
|
||||||
|
Loading…
Reference in New Issue
Block a user