From 153d21ace9801ac665e2d7f99c967147d1214f29 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sun, 3 Sep 2023 14:39:50 +0200 Subject: Updated 16 files and added 5 files (automated) --- src/pause.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/pause.py') 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 -- cgit