Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more serverinfo #149

Merged
merged 2 commits into from
Jan 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading