From 008e2d55bcf7017f0b19e369874dec0236384ed9 Mon Sep 17 00:00:00 2001 From: yuni Date: Sun, 17 Nov 2024 21:33:41 +0100 Subject: [PATCH] disable player movement/rotation controls in map --- src/camera.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/camera.rs b/src/camera.rs index 13608df..6a8f08c 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -458,6 +458,9 @@ pub fn apply_input_to_player( key_input: Res>, q_windows: Query<&Window, With>, ) { + if settings.map_active || !settings.in_control() { + return; + } let player = q_player.get_single_mut(); if player.is_err() { return;