mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-30 04:30:43 +00:00
fix the problem with getting kicked from tf/megatf servers for changing teams.
Got the `changed' test backwards.
This commit is contained in:
parent
2bfeed6820
commit
4b1f10d10d
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue