From 7f1fee44e5cd45cff829951757f5c6460c06cbe8 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Fri, 29 Jul 2011 13:46:50 +0000 Subject: - 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. --- src/qcommon/common.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qcommon/common.c') 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(); -- cgit