cvars now sport a callback function that gets called whenever the cvar changes

or on initial get.
This commit is contained in:
Bill Currie 2001-03-31 01:02:52 +00:00
parent 4162243287
commit e939ccc40a
101 changed files with 680 additions and 669 deletions

View file

@ -129,9 +129,9 @@ Netchan_Init (void)
void
Netchan_Init_Cvars (void)
{
showpackets = Cvar_Get ("showpackets", "0", CVAR_NONE, "Show all network packets");
showdrop = Cvar_Get ("showdrop", "0", CVAR_NONE, "Toggle the display of how many packets you are dropping");
qport = Cvar_Get ("qport", "0", CVAR_NONE, "The internal port number for the game networking code."
showpackets = Cvar_Get ("showpackets", "0", CVAR_NONE, 0, "Show all network packets");
showdrop = Cvar_Get ("showdrop", "0", CVAR_NONE, 0, "Toggle the display of how many packets you are dropping");
qport = Cvar_Get ("qport", "0", CVAR_NONE, 0, "The internal port number for the game networking code."
"Useful for clients who use multiple connections through one IP address (NAT/IP-MASQ) because default port is random.");
}