allow zooming only when AR is on

This commit is contained in:
yuni 2024-04-05 23:38:27 +02:00
parent 0f8ef18123
commit a0514de123

View file

@ -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;