From: havoc Date: Wed, 8 Jun 2011 13:20:59 +0000 (+0000) Subject: reduce cvar spam when using developer_extra X-Git-Tag: xonotic-v0.6.0~163^2~361 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;ds=sidebyside;h=e7c1f7ddb295ad2efb109bb9e054857b809386c4;p=xonotic%2Fdarkplaces.git reduce cvar spam when using developer_extra git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11185 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_wgl.c b/vid_wgl.c index 167e6ea7..d30c6a75 100644 --- 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