From c861df0ab42907d6bac69ca2d78d962258b6c85a Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 13 May 2024 21:43:02 +0200 Subject: [PATCH] disable map controls inside menu --- src/camera.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/camera.rs b/src/camera.rs index 3527a99..510a35a 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -41,7 +41,7 @@ impl Plugin for CameraPlugin { app.add_systems(PostUpdate, update_mapcam_center .before(sync::position_to_transform) .in_set(sync::SyncSet::PositionToTransform)); - app.add_systems(Update, update_map_camera.run_if(alive)); + app.add_systems(Update, update_map_camera.run_if(in_control)); app.add_systems(Update, update_fov.run_if(alive)); app.add_systems(PreUpdate, apply_input_to_player); app.insert_resource(MapCam::default());