summaryrefslogtreecommitdiff
path: root/module/tex/context/third/simpleslides/automata/automata-life.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-08-16 16:03:49 +0200
committerPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-08-16 16:03:49 +0200
commit805134d2763b79ae1f8212092c5d76d934c88dd2 (patch)
tree94971a5a91d9c84856cf86c420bf16c4bf9baa77 /module/tex/context/third/simpleslides/automata/automata-life.lua
parent04fb784929a939f3a252cb307f3d762eda4b6882 (diff)
downloadautomata-backgrounds-805134d2763b79ae1f8212092c5d76d934c88dd2.tar.gz
revised some code; updated interface.xml
Diffstat (limited to 'module/tex/context/third/simpleslides/automata/automata-life.lua')
-rw-r--r--module/tex/context/third/simpleslides/automata/automata-life.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/module/tex/context/third/simpleslides/automata/automata-life.lua b/module/tex/context/third/simpleslides/automata/automata-life.lua
index 01fc97b..5b171e2 100644
--- a/module/tex/context/third/simpleslides/automata/automata-life.lua
+++ b/module/tex/context/third/simpleslides/automata/automata-life.lua
@@ -90,8 +90,6 @@ function gol.parse_rule (raw_rule)
end
function gol.apply_rule (cell, cnt, rule, fade, keep)
- --local live, dead = "1", "0"
- --local new = dead
local new = 0
local live = "1"
local stay = rule.stay
@@ -154,8 +152,8 @@ gol.formats[".gol"] = function (fname)
local line = Cs(cell^1) / function (l)
if not len then len = string.len(l) end
if len ~= string.len(l) then
- -- inconsistent horizontal sizes; kill off program
- return nil
+ -- inconsistent horizontal sizes
+ return false
else
table.insert(tmp,l)
end