summaryrefslogtreecommitdiff
path: root/src/qcommon/common.c
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-07-29 13:46:50 +0000
committerTim Angus <tim@ngus.net>2013-01-10 22:55:15 +0000
commit7f1fee44e5cd45cff829951757f5c6460c06cbe8 (patch)
tree1e6f6bcf78ded45a20f2b9e7b0652fbc143a0724 /src/qcommon/common.c
parente7c06719510940898e1f7f8215f4137202611308 (diff)
- Switch master server protocol to dpmaster for better game separation. Based partly on patch by Zack Middleton - Get rid of ugly cvars sv_heartbeat and cl_gamename and replace with single com_gamename - Remove sv_flatline. Flatlines are ignored by dpmaster and are considered to be insecure because flatlines can be udp-spoofed.
Diffstat (limited to 'src/qcommon/common.c')
-rw-r--r--src/qcommon/common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qcommon/common.c b/src/qcommon/common.c
index 3127dec1..5589b384 100644
--- a/src/qcommon/common.c
+++ b/src/qcommon/common.c
@@ -84,6 +84,7 @@ cvar_t *com_maxfpsUnfocused;
cvar_t *com_minimized;
cvar_t *com_maxfpsMinimized;
cvar_t *com_abnormalExit;
+cvar_t *com_gamename;
cvar_t *com_homepath;
cvar_t *com_busyWait;
@@ -2661,6 +2662,7 @@ void Com_Init( char *commandLine ) {
s = va("%s %s %s", Q3_VERSION, PLATFORM_STRING, __DATE__ );
com_version = Cvar_Get ("version", s, CVAR_ROM | CVAR_SERVERINFO );
Cvar_Get ("protocol", va("%i", PROTOCOL_VERSION), CVAR_SERVERINFO | CVAR_ROM);
+ com_gamename = Cvar_Get("com_gamename", GAMENAME_FOR_MASTER, CVAR_SERVERINFO | CVAR_INIT);
Sys_Init();