From e7c1f7ddb295ad2efb109bb9e054857b809386c4 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 8 Jun 2011 13:20:59 +0000 Subject: [PATCH] reduce cvar spam when using developer_extra git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11185 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_wgl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2