cargo fmt

This commit is contained in:
yuni 2024-09-15 04:53:33 +02:00
parent 934305ad52
commit 0dd0474bb0
3 changed files with 3 additions and 11 deletions

View file

@ -47,11 +47,7 @@ impl Plugin for AudioPlugin {
pub struct ZoomTimer(Timer); pub struct ZoomTimer(Timer);
const PATHS: &[(SfxType, Sfx, &str)] = &[ const PATHS: &[(SfxType, Sfx, &str)] = &[
( (SfxType::Radio, Sfx::BGMTakeoff, "music/Takeoff.ogg"),
SfxType::Radio,
Sfx::BGMTakeoff,
"music/Takeoff.ogg",
),
( (
SfxType::Radio, SfxType::Radio,
Sfx::BGMActualJupiterRecording, Sfx::BGMActualJupiterRecording,

View file

@ -362,8 +362,7 @@ fn handle_cheats(
settings.god_mode ^= true; settings.god_mode ^= true;
if settings.god_mode { if settings.god_mode {
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Honk)); ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Honk));
} } else {
else {
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Switch)); ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Switch));
} }
} }

View file

@ -172,10 +172,7 @@ impl Default for Settings {
alive: true, alive: true,
mute_sfx: false, mute_sfx: false,
noise_cancellation_mode: 0, noise_cancellation_mode: 0,
noise_cancellation_modes: vec![ noise_cancellation_modes: vec!["Off".to_string(), "On".to_string()],
"Off".to_string(),
"On".to_string(),
],
radio_mode: 1, radio_mode: 1,
radio_modes: vec![ radio_modes: vec![
// see also: settings.is_radio_playing() // see also: settings.is_radio_playing()