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);
const PATHS: &[(SfxType, Sfx, &str)] = &[
(
SfxType::Radio,
Sfx::BGMTakeoff,
"music/Takeoff.ogg",
),
(SfxType::Radio, Sfx::BGMTakeoff, "music/Takeoff.ogg"),
(
SfxType::Radio,
Sfx::BGMActualJupiterRecording,

View file

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

View file

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