diff options
Diffstat (limited to 'edit.lua')
-rw-r--r-- | edit.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/edit.lua b/edit.lua index 3c722a7..db276a7 100644 --- a/edit.lua +++ b/edit.lua @@ -176,7 +176,7 @@ end function edit.update(State, dt) Drawing.update(State, dt) - if State.next_save and State.next_save < App.getTime() then + if State.next_save and State.next_save < Current_time then save_to_disk(State) State.next_save = nil end @@ -184,7 +184,7 @@ end function schedule_save(State) if State.next_save == nil then - State.next_save = App.getTime() + 3 -- short enough that you're likely to still remember what you did + State.next_save = Current_time + 3 -- short enough that you're likely to still remember what you did end end |