From 9fbe564327ed887873b448219c641dc87130be05 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Mon, 7 Nov 2022 15:43:26 +1100 Subject: [PATCH] - Fix bad if statement guarding `cl_clampedpitch` in menu and make non-global. --- source/core/gamecvars.cpp | 2 +- wadsrc/static/menudef.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/gamecvars.cpp b/source/core/gamecvars.cpp index 19a9f5db3..aa265fa74 100644 --- a/source/core/gamecvars.cpp +++ b/source/core/gamecvars.cpp @@ -89,7 +89,7 @@ CVARD(Bool, cl_bloodqavinterp, true, CVAR_ARCHIVE, "enable/disable Blood's QAV i CVARD(Bool, cl_bloodweapinterp, false, CVAR_ARCHIVE, "enable/disable Blood's weapon interpolation. Depends on 'cl_bloodqavinterp'") CVARD(Bool, cl_bloodoldweapbalance, false, CVAR_ARCHIVE, "enable/disable legacy 1.0 weapon handling for Blood") CVARD(Bool, cl_loadingscreens, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG, "enable/disable loading screens for games") -CVARD(Bool, cl_clampedpitch, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG, "clamp the view pitch to original ranges") +CVARD(Bool, cl_clampedpitch, true, CVAR_ARCHIVE, "clamp the view pitch to original ranges") CUSTOM_CVARD(Int, cl_autoaim, 1, CVAR_ARCHIVE|CVAR_USERINFO, "enable/disable weapon autoaim") diff --git a/wadsrc/static/menudef.txt b/wadsrc/static/menudef.txt index 9b0775a35..e81282935 100644 --- a/wadsrc/static/menudef.txt +++ b/wadsrc/static/menudef.txt @@ -1020,7 +1020,7 @@ OptionMenu GameplayOptions protected Option "$ENEMY_BEHAVIOR", "cl_bloodvanillaenemies", "EnemyBehavior" } StaticText "" - ifgame(Duke, Nam, WW2GI, Redneck, RedneckRides, Blood, ShadowWarrior) + ifgame(Duke, Nam, WW2GI, Redneck, RedneckRides) { Option "$PLRMNU_FULLVIEWPITCH", "cl_clampedpitch", "OffOn" }