summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2015-02-04 11:35:45 +0100
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:07 +0100
commitd8b92ee09b6032443f0ed6eff7973f292d7a66b6 (patch)
tree6d62d7303ddc06fda804fa81b345c2c503e586d5
parent75c29d4f766ada3a6a01522c3608c7693cddfa4f (diff)
stop embedding/displaying version information in various cases
-rw-r--r--src/game/g_main.c2
-rw-r--r--src/qcommon/common.c6
2 files changed, 1 insertions, 7 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index e388c878..002c83f8 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -156,7 +156,6 @@ static cvarTable_t gameCvarTable[ ] =
// noset vars
{ NULL, "gamename", GAME_VERSION , CVAR_SERVERINFO | CVAR_ROM, 0, qfalse },
- { NULL, "gamedate", __DATE__ , CVAR_ROM, 0, qfalse },
{ &g_restarted, "g_restarted", "0", CVAR_ROM, 0, qfalse },
{ &g_lockTeamsAtStart, "g_lockTeamsAtStart", "0", CVAR_ROM, 0, qfalse },
{ NULL, "sv_mapname", "", CVAR_SERVERINFO | CVAR_ROM, 0, qfalse },
@@ -544,7 +543,6 @@ void G_InitGame( int levelTime, int randomSeed, int restart )
G_Printf( "------- Game Initialization -------\n" );
G_Printf( "gamename: %s\n", GAME_VERSION );
- G_Printf( "gamedate: %s\n", __DATE__ );
BG_InitMemory( );
diff --git a/src/qcommon/common.c b/src/qcommon/common.c
index 275ea4ea..0a91790f 100644
--- a/src/qcommon/common.c
+++ b/src/qcommon/common.c
@@ -2478,11 +2478,8 @@ Com_Init
=================
*/
void Com_Init( char *commandLine ) {
- char *s;
int qport;
- Com_Printf( "%s %s %s\n", Q3_VERSION, PLATFORM_STRING, __DATE__ );
-
if ( setjmp (abortframe) ) {
Sys_Error ("Error during initialization");
}
@@ -2592,8 +2589,7 @@ void Com_Init( char *commandLine ) {
com_busyWait = Cvar_Get("com_busyWait", "0", CVAR_ARCHIVE);
Cvar_Get("com_errorMessage", "", CVAR_ROM | CVAR_NORESTART);
- s = va("%s %s %s", Q3_VERSION, PLATFORM_STRING, __DATE__ );
- com_version = Cvar_Get ("version", s, CVAR_ROM | CVAR_SERVERINFO );
+ com_version = Cvar_Get ("version", PRODUCT_NAME, 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);