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());