mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-10 15:22:20 +00:00
Adjust execversion retrieval in CV_FilterVarByVersion
This commit is contained in:
parent
969960a1eb
commit
60bcf92525
1 changed files with 1 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue