From ae2fcf2525bafc6f1b4f37b634397dbe965ddaf2 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 5 Apr 2024 02:58:17 +0200 Subject: [PATCH] cleanup --- src/hud.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hud.rs b/src/hud.rs index 03d3011..da5f70e 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -477,8 +477,8 @@ fn handle_input( keyboard_input: Res>, mut settings: ResMut, mut q_hud: Query<&mut Visibility, With>, - mut evwriter_sfx: EventWriter, - mut evwriter_togglemusic: EventWriter, + mut ew_sfx: EventWriter, + mut ew_togglemusic: EventWriter, mut ambient_light: ResMut, ) { if keyboard_input.just_pressed(settings.key_togglehud) { @@ -496,7 +496,7 @@ fn handle_input( settings.hud_active = true; ambient_light.brightness = AMBIENT_LIGHT_AR; } - evwriter_sfx.send(audio::PlaySfxEvent(audio::Sfx::Switch)); - evwriter_togglemusic.send(audio::ToggleMusicEvent()); + ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Switch)); + ew_togglemusic.send(audio::ToggleMusicEvent()); } }