summaryrefslogtreecommitdiff
path: root/util.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util.lua')
-rw-r--r--util.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.lua b/util.lua
index e662e4c..ac15fab 100644
--- a/util.lua
+++ b/util.lua
@@ -22,9 +22,9 @@ function digilines.rotate_rules_left(rules)
local nr={}
for i, rule in ipairs(rules) do
nr[i]={}
- nr[i].z=-rules[i].x
- nr[i].x=rules[i].z
- nr[i].y=rules[i].y
+ nr[i].z=-rule.x
+ nr[i].x=rule.z
+ nr[i].y=rule.y
end
return nr
end