]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
don't spam joy_active notices with developer_extra
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 28 Jun 2011 00:55:10 +0000 (00:55 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 28 Jun 2011 00:55:10 +0000 (00:55 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11225 d7cf8633-e32d-0410-b094-e92efae38249

vid_sdl.c

index 4fb37539e4a4117ae4c95e8e0a69a6d93e61e2e7..d356150d6dc2e4d8cb4aafb31e327358ceeafe6d 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -1690,7 +1690,8 @@ void VID_EnableJoystick(qboolean enable)
        if (sdlindex >= 0)
                success = true;
 
-       Cvar_SetValueQuick(&joy_active, success ? 1 : 0);
+       if (joy_active.integer != (success ? 1 : 0))
+               Cvar_SetValueQuick(&joy_active, success ? 1 : 0);
 }
 
 #if SETVIDEOMODE