]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_wgl.c
server list: allow more AND and OR masks (except in DP_SMALLMEMORY profile)
[xonotic/darkplaces.git] / vid_wgl.c
index 167e6ea7573dae6d708b0da50cd3e492396c8eed..d30c6a759f368321862876df7e02dfc8873ede85 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -2028,7 +2028,8 @@ void VID_EnableJoystick(qboolean enable)
        if (joy_detected.integer != sharedcount)
                Cvar_SetValueQuick(&joy_detected, sharedcount);
 
-       Cvar_SetValueQuick(&joy_active, success ? 1 : 0);
+       if (joy_active.integer != (success ? 1 : 0))
+               Cvar_SetValueQuick(&joy_active, success ? 1 : 0);
 }
 
 #ifdef SUPPORTDIRECTX