snapshots fixes

This commit is contained in:
p.kosyh 2010-07-06 09:18:25 +00:00
parent b20da4d481
commit 2efc6a7c9a

View file

@ -27,6 +27,11 @@ function make_snapshot(nr)
game._snapshots[nr] = h.txt;
end
function isSnapshot(nr)
if not tonumber(nr) then nr = 0 end
return (game._snapshots[nr] ~= nil)
end
function restore_snapshot(nr)
if not tonumber(nr) then nr = 0 end
local ss = game._snapshots