diff options
author | Jeija <norrepli@gmail.com> | 2015-01-12 18:51:49 +0100 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2015-01-12 18:51:49 +0100 |
commit | 1bf3151320120d293fba71475c51a43b1c5fe4c7 (patch) | |
tree | a7b6d9d92e0e07338ec5f53474fbdd7435f6e01a | |
parent | a121bc0b12074dbcd0a42f81022cae9f44811f1a (diff) |
Fix #21, undeclared variables
-rw-r--r-- | digilines/wires_common.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/digilines/wires_common.lua b/digilines/wires_common.lua index 44414f2..c5f761b 100644 --- a/digilines/wires_common.lua +++ b/digilines/wires_common.lua @@ -64,6 +64,7 @@ function digiline:update_autoconnect(pos, secondcall) local xmyg = digiline:rules_link_anydir(pos, xmypos) local zmyg = digiline:rules_link_anydir(pos, zmypos) + local zm, xm, zp, xp, xpy, zpy, xmy, zmy if zmg or zmymg then zm = 1 else zm = 0 end if xmg or xmymg then xm = 1 else xm = 0 end if zpg or zpymg then zp = 1 else zp = 0 end |