mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
Rename Cvar_AliasGet to Cvar_MakeAliase.
This commit is contained in:
parent
a8245e598e
commit
d2894a6f68
4 changed files with 4 additions and 4 deletions
|
@ -83,7 +83,7 @@ cvar_t *Cvar_Get (const char *name, const char *value, int cvarflags,
|
||||||
|
|
||||||
cvar_t *Cvar_FindAlias (const char *alias_name);
|
cvar_t *Cvar_FindAlias (const char *alias_name);
|
||||||
|
|
||||||
void Cvar_Alias_Get (const char *name, cvar_t *cvar);
|
void Cvar_MakeAlias (const char *name, cvar_t *cvar);
|
||||||
|
|
||||||
// equivelants to "<name> <variable>" typed at the console
|
// equivelants to "<name> <variable>" typed at the console
|
||||||
void Cvar_Set (cvar_t *var, const char *value);
|
void Cvar_Set (cvar_t *var, const char *value);
|
||||||
|
|
|
@ -83,7 +83,7 @@ Cvar_FindAlias (const char *alias_name)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Cvar_Alias_Get (const char *name, cvar_t *cvar)
|
Cvar_MakeAlias (const char *name, cvar_t *cvar)
|
||||||
{
|
{
|
||||||
cvar_alias_t *alias;
|
cvar_alias_t *alias;
|
||||||
cvar_t *var;
|
cvar_t *var;
|
||||||
|
|
|
@ -138,7 +138,7 @@ CL_InitCvars (void)
|
||||||
"mouse strafe speed");
|
"mouse strafe speed");
|
||||||
hud_fps = Cvar_Get ("hud_fps", "0", CVAR_ARCHIVE, NULL,
|
hud_fps = Cvar_Get ("hud_fps", "0", CVAR_ARCHIVE, NULL,
|
||||||
"display realtime frames per second");
|
"display realtime frames per second");
|
||||||
Cvar_Alias_Get ("show_fps", hud_fps);
|
Cvar_MakeAlias ("show_fps", hud_fps);
|
||||||
hud_time = Cvar_Get ("hud_time", "0", CVAR_ARCHIVE, NULL,
|
hud_time = Cvar_Get ("hud_time", "0", CVAR_ARCHIVE, NULL,
|
||||||
"display the current time");
|
"display the current time");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1347,7 +1347,7 @@ CL_Init_Cvars (void)
|
||||||
"sending rcon commands");
|
"sending rcon commands");
|
||||||
hud_fps = Cvar_Get ("hud_fps", "0", CVAR_ARCHIVE, NULL,
|
hud_fps = Cvar_Get ("hud_fps", "0", CVAR_ARCHIVE, NULL,
|
||||||
"display realtime frames per second");
|
"display realtime frames per second");
|
||||||
Cvar_Alias_Get ("show_fps", hud_fps);
|
Cvar_MakeAlias ("show_fps", hud_fps);
|
||||||
hud_ping = Cvar_Get ("hud_ping", "0", CVAR_ARCHIVE, NULL,
|
hud_ping = Cvar_Get ("hud_ping", "0", CVAR_ARCHIVE, NULL,
|
||||||
"display current ping to server");
|
"display current ping to server");
|
||||||
hud_pl = Cvar_Get ("hud_pl", "0", CVAR_ARCHIVE, NULL,
|
hud_pl = Cvar_Get ("hud_pl", "0", CVAR_ARCHIVE, NULL,
|
||||||
|
|
Loading…
Reference in a new issue