Skip to content

Commit

Permalink
fix: softlock caused by auto-save triggering on window
Browse files Browse the repository at this point in the history
Fixes #442
  • Loading branch information
Bentroen committed Apr 4, 2024
1 parent 5815ef9 commit 52144ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/control_draw/control_draw.gml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function control_draw() {
// Autosave
if (autosave && filename_ext(filename) = ".nbs") {
tonextsave -= 1 / room_speed / 60
if (tonextsave <= 0 && playing == 0) save_song(filename)
if (tonextsave <= 0 && playing == 0) save_song(filename, true)
}

// Auto-recovery
Expand Down

0 comments on commit 52144ea

Please sign in to comment.