hoist next_save to all saves
Now we can rely on its state even when we don't rely on autosave.
This commit is contained in:
parent
fff4dc198c
commit
6c596c0bcd
1
edit.lua
1
edit.lua
|
@ -140,7 +140,6 @@ end
|
||||||
function edit.update(State, dt)
|
function edit.update(State, dt)
|
||||||
if State.next_save and State.next_save < Current_time then
|
if State.next_save and State.next_save < Current_time then
|
||||||
save_to_disk(State)
|
save_to_disk(State)
|
||||||
State.next_save = nil
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue