Skip to content

Commit

Permalink
Add hostport, countrycode and city CVAR_SERVERINFO
Browse files Browse the repository at this point in the history
  • Loading branch information
osm committed Jan 11, 2025
1 parent 1b63963 commit f80fa83
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sv_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ cvar_t coop = {"coop", "0"}; // dont delete this variable - it used by mods
cvar_t sv_paused = {"sv_paused", "0", CVAR_ROM};

cvar_t hostname = {"hostname", "unnamed", CVAR_SERVERINFO};
cvar_t hostport = {"hostport", "", CVAR_SERVERINFO};
cvar_t countrycode = {"countrycode", "", CVAR_SERVERINFO};
cvar_t city = {"city", "", CVAR_SERVERINFO};

cvar_t sv_forcenick = {"sv_forcenick", "0"}; //0 - don't force; 1 - as login;
cvar_t sv_registrationinfo = {"sv_registrationinfo", ""}; // text shown before "enter login"
Expand Down Expand Up @@ -3431,6 +3434,9 @@ void SV_InitLocal (void)
Cvar_Register (&maxspectators);
Cvar_Register (&maxvip_spectators);
Cvar_Register (&hostname);
Cvar_Register (&hostport);
Cvar_Register (&countrycode);
Cvar_Register (&city);
Cvar_Register (&deathmatch);
Cvar_Register (&watervis);
Cvar_Register (&serverdemo);
Expand Down

0 comments on commit f80fa83

Please sign in to comment.