console: fix version drawn all the time which engine runs

This commit is contained in:
a1batross 2018-11-29 20:43:53 +03:00
parent 3046c9e68e
commit f173ce11f7
1 changed files with 3 additions and 0 deletions

View File

@ -2191,6 +2191,9 @@ void Con_DrawVersion( void )
return;
}
if( host.force_draw_version_time > host.realtime )
host.force_draw_version = false;
if( host.force_draw_version || draw_version )
Q_snprintf( curbuild, MAX_STRING, "%s v%i/%s (build %i)", XASH_ENGINE_NAME, PROTOCOL_VERSION, XASH_VERSION, Q_buildnum( ));
else Q_snprintf( curbuild, MAX_STRING, "v%i/%s (build %i)", PROTOCOL_VERSION, XASH_VERSION, Q_buildnum( ));