allow zooming only when AR is on
This commit is contained in:
parent
0f8ef18123
commit
a0514de123
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue