Skip to content

Commit

Permalink
Merge pull request #149 from osm/add-more-serverinfo
Browse files Browse the repository at this point in the history
Add more serverinfo
  • Loading branch information
tcsabina authored Jan 12, 2025
2 parents 1fdfa60 + f80fa83 commit 79bf209
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ build/vs/*.exe
build/vs/*.db
build/vs/*.def
build/vs/*.ilk
build/
/.cache
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 79bf209

Please sign in to comment.