From 4b1f10d10d5ae530629233ba901f953cd0a83c94 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 24 Feb 2001 04:25:27 +0000 Subject: [PATCH] fix the problem with getting kicked from tf/megatf servers for changing teams. Got the `changed' test backwards. --- libs/util/cvar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/util/cvar.c b/libs/util/cvar.c index cb9098d8b..2aebf8a85 100644 --- a/libs/util/cvar.c +++ b/libs/util/cvar.c @@ -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);