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.6.0~163^2~325 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cf74e01c006d2937bf1e3a522efc7b2dd0f40ba2;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 --- 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