diff --git a/src/camera.rs b/src/camera.rs index afe23c5..489b196 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -99,7 +99,7 @@ pub fn update_fov( if let (Ok(lifeform), Ok(mut projection)) = (q_player.get_single(), q_camera.get_single_mut()) { let fov: f32; - if mouse_input.pressed(settings.key_zoom) { + if settings.hud_active && mouse_input.pressed(settings.key_zoom) { fov = settings.zoom_fov_radians; if !settings.is_zooming { settings.is_zooming = true;