diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-02-04 16:57:40 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-02-04 16:57:40 +0100 |
commit | 3dfdaaaa3ca1b07ac0f31cf1b40e190a65f87143 (patch) | |
tree | 05365f941eace9710340e745f1c72caa83670e87 | |
parent | 0ec47fd7d8c7ffbf962b3e5105f26bc677a639a3 (diff) |
Revert "stop embedding/displaying version information in various cases"
This reverts commit 82f45b3acaf411e967cb978233786326e5c0c95e.
-rw-r--r-- | src/game/g_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 ) |