fix the problem with getting kicked from tf/megatf servers for changing teams.

Got the `changed' test backwards.
This commit is contained in:
Bill Currie 2001-02-24 04:25:27 +00:00
parent 2bfeed6820
commit 4b1f10d10d

View file

@ -192,7 +192,7 @@ Cvar_Set (cvar_t *var, char *value)
return;
}
changed = strequal (var->string, value);
changed = !strequal (var->string, value);
free (var->string); // free the old value string
var->string = strdup (value);
@ -218,7 +218,7 @@ Cvar_SetROM (cvar_t *var, char *value)
if (!var)
return;
changed = strequal (var->string, value);
changed = !strequal (var->string, value);
free (var->string); // free the old value string
var->string = strdup (value);