From: terencehill Date: Mon, 21 Sep 2020 15:51:05 +0000 (+0200) Subject: Lock camera angles while moving the cursor if hud_cursormode is 0 in minigame menu... X-Git-Tag: xonotic-v0.8.5~761 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2f249ba88312a2d17721de6291aac5761537bf36;p=xonotic%2Fxonotic-data.pk3dir.git Lock camera angles while moving the cursor if hud_cursormode is 0 in minigame menu and ONS radar too --- diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index d7dc3996f..ee9164bae 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -1307,9 +1307,17 @@ void View_PostProcessing() void View_Lock() { - int lock_type = (!autocvar_hud_cursormode && ((autocvar__hud_configure && spectatee_status <= 0) || intermission > 1 || QuickMenu_IsOpened())); - if (lock_type == 0) - lock_type = autocvar_cl_lockview; + int lock_type = autocvar_cl_lockview; + + if (!autocvar_hud_cursormode + && ((autocvar__hud_configure && spectatee_status <= 0) + || intermission > 1 + || HUD_Radar_Clickable() + || HUD_MinigameMenu_IsOpened() + || QuickMenu_IsOpened() + ) + ) + lock_type = 1; // lock_type 1: lock origin and angles // lock_type 2: lock only origin