diff options
author | RaindropsSys <contact@minteck.org> | 2023-09-03 14:39:50 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-09-03 14:39:50 +0200 |
commit | 153d21ace9801ac665e2d7f99c967147d1214f29 (patch) | |
tree | f363dccf520fbc2c1670d2308b73294fa9ab5676 /src/pause.py | |
parent | 6a20ab31ef4d9f6bb0e008b9f1b8d3fbeb6bd956 (diff) | |
download | blocks-153d21ace9801ac665e2d7f99c967147d1214f29.tar.gz blocks-153d21ace9801ac665e2d7f99c967147d1214f29.tar.bz2 blocks-153d21ace9801ac665e2d7f99c967147d1214f29.zip |
Updated 16 files and added 5 files (automated)
Diffstat (limited to 'src/pause.py')
-rw-r--r-- | src/pause.py | 8 |
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 |