Also send empty valued system cvars, fix proposed by DevHC

This commit is contained in:
Thilo Schulz 2011-03-05 19:07:56 +00:00
parent 2e2e54e3c5
commit 3639108763

View file

@ -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);