]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
reduce cvar spam when using developer_extra
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 8 Jun 2011 13:20:59 +0000 (13:20 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 8 Jun 2011 13:20:59 +0000 (13:20 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11185 d7cf8633-e32d-0410-b094-e92efae38249

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