From: havoc Date: Tue, 28 Jun 2011 00:55:10 +0000 (+0000) Subject: don't spam joy_active notices with developer_extra X-Git-Tag: xonotic-v0.5.0~94 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b1a09cbd395be0dcdbfcef19622638ff21bf6915;p=xonotic%2Fdarkplaces.git 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 ::stable-branch::merge=cf74e01c006d2937bf1e3a522efc7b2dd0f40ba2 --- 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