From 1d91e86b4b8039ee2ae2b15c8d6d33e7cd61a377 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 26 Sep 2000 03:16:16 +0000 Subject: [PATCH] found I had missed a few places to set int_val during the port to newtree --- source/cvar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/cvar.c b/source/cvar.c index 7c27838..cd4b309 100644 --- a/source/cvar.c +++ b/source/cvar.c @@ -225,6 +225,7 @@ void Cvar_SetROM (cvar_t *var, char *value) var->string = malloc (strlen(value)+1); strcpy (var->string, value); var->value = atof (var->string); + var->int_val = atoi (var->string); if ((var->flags & CVAR_SERVERINFO) && changed) { if (sv.active) @@ -470,6 +471,7 @@ cvar_t *Cvar_Get(char *name, char *string, int cvarflags, char *description) v->flags = cvarflags; v->description = strdup(description); v->value = atof (v->string); + v->int_val = atoi (v->string); return v; } // Cvar does exist, so we update the flags and return.