From cf74e01c006d2937bf1e3a522efc7b2dd0f40ba2 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 28 Jun 2011 00:55:10 +0000 Subject: [PATCH] don't spam joy_active notices with developer_extra git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11225 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_sdl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vid_sdl.c b/vid_sdl.c index 4fb37539..d356150d 100644 --- 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 -- 2.39.2