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:
Kartik K. Agaram 2024-03-17 10:54:26 -07:00
parent fff4dc198c
commit 6c596c0bcd
2 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,6 @@ end
function edit.update(State, dt)
if State.next_save and State.next_save < Current_time then
save_to_disk(State)
State.next_save = nil
end
end

View File

@ -41,6 +41,7 @@ function save_to_disk(State)
outfile:write('\n')
end
outfile:close()
State.next_save = nil
end
-- for tests