From 99fd2ec750a93232df3ac477cf3147f979227655 Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 28 Mar 2024 20:35:54 +0100 Subject: [PATCH] cleanup --- src/hud.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hud.rs b/src/hud.rs index 04df403..e1cebde 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -423,17 +423,17 @@ fn update( fn handle_input( keyboard_input: Res>, mut settings: ResMut, - mut query: Query<&mut Visibility, With>, - mut query_bloomsettings: Query<&mut BloomSettings>, + mut q_gauges: Query<&mut Visibility, With>, + mut q_bloomsettings: Query<&mut BloomSettings>, + q_choices: Query<&ChoiceAvailable>, mut evwriter_sendmsg: EventWriter, mut evwriter_sfx: EventWriter, mut evwriter_togglemusic: EventWriter, - q_choices: Query<&ChoiceAvailable>, mut ambient_light: ResMut, ) { if keyboard_input.just_pressed(settings.key_togglehud) { - if let Ok(mut vis) = query.get_single_mut() { - if let Ok(mut bloomsettings) = query_bloomsettings.get_single_mut() { + if let Ok(mut vis) = q_gauges.get_single_mut() { + if let Ok(mut bloomsettings) = q_bloomsettings.get_single_mut() { if *vis == Visibility::Inherited { *vis = Visibility::Hidden; settings.hud_active = false;