New Cvar function: Cvar_SetFlags. Yes, it's there for completeness.

Some minor changes to DGA code I couldn't be bothered to back out before
I committed.  They don't hurt anything, but they don't really improve
matters much either.  The mouse cursor still doesn't get warped off the
screen, but it's no longer bright blue - now it's black and white like
normal.  I'm rewriting the damned DGA code from scratch to Get It Right
this time.
This commit is contained in:
Joseph Carter 2000-05-27 16:40:36 +00:00
parent 30d1dc1c87
commit ef1c6be3df
4 changed files with 62 additions and 29 deletions

View file

@ -200,12 +200,12 @@ void Cvar_Set (cvar_t *var, char *value)
Cvar_Info(var);
}
/*
/*
Cvar_SetROM
doesn't check for CVAR_ROM flag
*/
void Cvar_SetROM (cvar_t *var, char *value)
{
@ -464,3 +464,18 @@ cvar_t *Cvar_Get(char *name, char *string, int cvarflags, char *description)
}
return v;
}
/*
Cvar_SetFlags
sets a Cvar's flags simply and easily
*/
void
Cvar_SetFlags (cvar_t *var, int cvarflags);
{
if (var == NULL)
return;
var->flags = cvarflags;
}