From 60bcf925253a1e24eebd221a02d284e48f19e58d Mon Sep 17 00:00:00 2001 From: mazmazz Date: Thu, 20 Dec 2018 02:18:59 -0500 Subject: [PATCH] Adjust execversion retrieval in CV_FilterVarByVersion --- src/command.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/command.c b/src/command.c index 3045c176..3bd80e1e 100644 --- a/src/command.c +++ b/src/command.c @@ -1730,11 +1730,6 @@ static boolean CV_FilterJoyAxisVars(consvar_t *v, const char *valstr) static boolean CV_FilterVarByVersion(consvar_t *v, const char *valstr) { - INT32 majorexecversion = abs(cv_execversion.value) & 0xFFFF; -#if 0 // unused for now - INT32 minorexecversion = abs(cv_execversion.value) >> 16; -#endif - // True means allow the CV change, False means block it // We only care about CV_SAVE because this filters the user's config files @@ -1742,7 +1737,7 @@ static boolean CV_FilterVarByVersion(consvar_t *v, const char *valstr) if (!(v->flags & CV_SAVE)) return true; - if (majorexecversion < 26) // 26 = 2.1.21 + if (GETMAJOREXECVERSION(cv_execversion.value) < 26) // 26 = 2.1.21 { // MOUSE SETTINGS // alwaysfreelook split between first and third person (chasefreelook)