* Add SVN version to the version string displayed in the client console

if it can be detected
This commit is contained in:
Tony J. White = 2006-08-22 16:13:51 +00:00
parent 467917233a
commit 0df6305274
3 changed files with 20 additions and 5 deletions

View file

@ -619,13 +619,13 @@ void Con_DrawSolidConsole( float frac ) {
re.SetColor( g_color_table[ColorIndex(COLOR_RED)] );
i = strlen( Q3_VERSION );
i = strlen( SVN_VERSION );
for (x=0 ; x<i ; x++) {
SCR_DrawSmallChar( cls.glconfig.vidWidth - ( i - x ) * SMALLCHAR_WIDTH,
(lines-(SMALLCHAR_HEIGHT+SMALLCHAR_HEIGHT/2)), Q3_VERSION[x] );
(lines-(SMALLCHAR_HEIGHT+SMALLCHAR_HEIGHT/2)), SVN_VERSION[x] );
}

View file

@ -35,6 +35,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define RETRANSMIT_TIMEOUT 3000 // time between connection packet retransmits
#ifndef SVN_VERSION
#define SVN_VERSION Q3_VERSION
#endif
// snapshots are a view of the server at a given time
typedef struct {