snapshots fixes
This commit is contained in:
parent
b20da4d481
commit
2efc6a7c9a
|
@ -27,6 +27,11 @@ function make_snapshot(nr)
|
||||||
game._snapshots[nr] = h.txt;
|
game._snapshots[nr] = h.txt;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function isSnapshot(nr)
|
||||||
|
if not tonumber(nr) then nr = 0 end
|
||||||
|
return (game._snapshots[nr] ~= nil)
|
||||||
|
end
|
||||||
|
|
||||||
function restore_snapshot(nr)
|
function restore_snapshot(nr)
|
||||||
if not tonumber(nr) then nr = 0 end
|
if not tonumber(nr) then nr = 0 end
|
||||||
local ss = game._snapshots
|
local ss = game._snapshots
|
Reference in a new issue