From c64f01b244d0c1edc4b6cbfedb792a83389db3fc Mon Sep 17 00:00:00 2001 From: 360ied <19516527+360ied@users.noreply.github.com> Date: Wed, 10 May 2023 13:58:41 -0400 Subject: [PATCH] Don't move camera while in menus --- src/Input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Input.c b/src/Input.c index e54b4338b..879a96c17 100644 --- a/src/Input.c +++ b/src/Input.c @@ -771,6 +771,8 @@ void InputHandler_PickBlock(void) { } void InputHandler_Tick(void) { + if (Gui.InputGrab) return; + cc_bool left, middle, right; cc_bool look_up, look_down, look_right, look_left; TimeMS now = DateTime_CurrentUTC_MS(); @@ -785,7 +787,6 @@ void InputHandler_Tick(void) { if (delta < 250) return; /* 4 times per second */ input_lastClick = now; - if (Gui.InputGrab) return; left = KeyBind_IsPressed(KEYBIND_DELETE_BLOCK); middle = KeyBind_IsPressed(KEYBIND_PICK_BLOCK);