summaryrefslogtreecommitdiff
path: root/src/pause.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/pause.py')
-rw-r--r--src/pause.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pause.py b/src/pause.py
index a68ea1f..84a7242 100644
--- a/src/pause.py
+++ b/src/pause.py
@@ -31,8 +31,9 @@ def click(mouse, screen, paused, keep, save_data, regions):
return mouse, screen, paused, keep
-def save_and_quit(screen, path, regions):
- audio.play_sfx("save")
+def save_and_quit(screen, path, regions, sfx=True):
+ if sfx:
+ audio.play_sfx("save")
canvas = pygame.Surface((1280, 720))
canvas.fill("black")
@@ -52,6 +53,7 @@ def save_and_quit(screen, path, regions):
pygame.display.flip()
audio.stop(1)
- audio.wait_for_sfx()
+ if sfx:
+ audio.wait_for_sfx()
save.save_world(path, regions) \ No newline at end of file