snapshots fixes
This commit is contained in:
parent
b20da4d481
commit
2efc6a7c9a
|
@ -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
|
Loading…
Reference in a new issue