From 3dfdaaaa3ca1b07ac0f31cf1b40e190a65f87143 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sun, 4 Feb 2018 16:57:40 +0100 Subject: Revert "stop embedding/displaying version information in various cases" This reverts commit 82f45b3acaf411e967cb978233786326e5c0c95e. --- src/game/g_main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/game/g_main.c b/src/game/g_main.c index cb372a3..5c7940c 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -298,11 +298,13 @@ 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 }, { NULL, "P", "", CVAR_SERVERINFO | CVAR_ROM, 0, qfalse }, { NULL, "ff", "0", CVAR_SERVERINFO | CVAR_ROM, 0, qfalse }, + { NULL, "qvm_version", QVM_NAME " " QVM_VERSIONNUM " (" __DATE__ ", " __TIME__ ")", CVAR_SERVERINFO | CVAR_ROM, 0, qfalse }, // latched vars @@ -847,6 +849,7 @@ 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__ ); G_ProcessIPBans( ); @@ -861,6 +864,9 @@ void G_InitGame( int levelTime, int randomSeed, int restart ) level.snd_fry = G_SoundIndex( "sound/misc/fry.wav" ); // FIXME standing in lava / slime + trap_Cvar_Set( "qvm_version", + QVM_NAME " " QVM_VERSIONNUM " (" __DATE__ ", " __TIME__ ")" ); + if( g_logFile.string[ 0 ] ) { if( g_logFileSync.integer ) -- cgit