From 805134d2763b79ae1f8212092c5d76d934c88dd2 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 16 Aug 2010 16:03:49 +0200 Subject: revised some code; updated interface.xml --- module/tex/context/third/simpleslides/automata/automata-life.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'module/tex/context/third/simpleslides/automata/automata-life.lua') 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 -- cgit v1.2.3