From 70aa4ce18e9c52dd7ef8627abd66dea0a5f640ee Mon Sep 17 00:00:00 2001
From: mazmazz <mar.marcoz@outlook.com>
Date: Thu, 6 Dec 2018 11:59:34 -0500
Subject: [PATCH] Add alwaysfreelook2 and mousemove2 to config versioning

* Change alwaysfreelook2 to be consistent with alwaysfreelook (the only one that wasn't the same)
---
 src/command.c | 7 +++++--
 src/g_game.c  | 2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/command.c b/src/command.c
index 454bc76de8..cc208e94af 100644
--- a/src/command.c
+++ b/src/command.c
@@ -1743,9 +1743,12 @@ static boolean CV_FilterVarByVersion(consvar_t *v, const char *valstr)
 		// MOUSE SETTINGS
 		// alwaysfreelook split between first and third person (chasefreelook)
 		// mousemove was on by default, which invalidates the current approach
-		if (!stricmp(v->name, "alwaysfreelook"))
+		if (!stricmp(v->name, "alwaysfreelook")
+			|| !stricmp(v->name, "alwaysfreelook2")
+			|| !stricmp(v->name, "mousemove")
+			|| !stricmp(v->name, "mousemove2"))
 			return false;
-		if (!stricmp(v->name, "mousemove"))
+		if ()
 			return false;
 
 		// mousesens was changed from 35 to 20 due to oversensitivity
diff --git a/src/g_game.c b/src/g_game.c
index 67f482e369..1b782a681b 100644
--- a/src/g_game.c
+++ b/src/g_game.c
@@ -352,7 +352,7 @@ consvar_t cv_crosshair2 = {"crosshair2", "Cross", CV_SAVE, crosshair_cons_t, NUL
 consvar_t cv_invertmouse = {"invertmouse", "Off", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
 consvar_t cv_invertmouse2 = {"invertmouse2", "Off", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
 consvar_t cv_alwaysfreelook = {"alwaysmlook", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
-consvar_t cv_alwaysfreelook2 = {"alwaysmlook2", "Off", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
+consvar_t cv_alwaysfreelook2 = {"alwaysmlook2", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
 consvar_t cv_chasefreelook = {"chasemlook", "Off", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
 consvar_t cv_chasefreelook2 = {"chasemlook2", "Off", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
 consvar_t cv_mousemove = {"mousemove", "Off", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
-- 
GitLab