From 36391087631553f91aac369044279480ecb18ad7 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Sat, 5 Mar 2011 19:07:56 +0000 Subject: [PATCH] Also send empty valued system cvars, fix proposed by DevHC --- code/qcommon/q_shared.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/qcommon/q_shared.c b/code/qcommon/q_shared.c index 6f68b2e9..68190c4d 100644 --- a/code/qcommon/q_shared.c +++ b/code/qcommon/q_shared.c @@ -1310,6 +1310,7 @@ void Info_SetValueForKey( char *s, const char *key, const char *value ) { Info_SetValueForKey_Big Changes or adds a key/value pair +Includes and retains zero-length values ================== */ void Info_SetValueForKey_Big( char *s, const char *key, const char *value ) { @@ -1330,7 +1331,7 @@ void Info_SetValueForKey_Big( char *s, const char *key, const char *value ) { } Info_RemoveKey_Big (s, key); - if (!value || !strlen(value)) + if (!value) return; Com_sprintf (newi, sizeof(newi), "\\%s\\%s", key, value);