From 5e9dbf03442924c33dfc10aa68839bb1dca5e76a Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 28 Mar 2024 20:54:34 +0100 Subject: [PATCH] unmute sfx in `cargo run` by default --- src/settings.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/settings.rs b/src/settings.rs index 6bacf96..cd34aa4 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -38,15 +38,13 @@ pub struct Settings { impl Default for Settings { fn default() -> Self { - let default_mute_sfx; + let default_mute_sfx = false; let default_mute_music; if let Ok(_) = env::var("CARGO") { // Mute audio by default when run through `cargo` - default_mute_sfx = cfg!(debug_assertions); default_mute_music = cfg!(debug_assertions); } else { - default_mute_sfx = false; default_mute_music = false; }