Added leading zero's in the "last refresh time" text

This commit is contained in:
Andrei Drexler 2002-06-04 21:19:10 +00:00
parent 463b56e07a
commit ccd12e3d6d

View file

@ -5,6 +5,9 @@
//-----------------------------------------------------------------------------
//
// $Log$
// Revision 1.27 2002/06/04 21:19:10 makro
// Added leading zero's in the "last refresh time" text
//
// Revision 1.26 2002/06/02 22:22:04 makro
// Bug in the server browser
//
@ -6442,7 +6445,9 @@ static void UI_StartServerRefresh(qboolean full)
qtime_t q;
trap_RealTime(&q);
trap_Cvar_Set( va("ui_lastServerRefresh_%i", ui_netSource.integer), va("%s-%i, %i at %i:%i", MonthAbbrev[q.tm_mon],q.tm_mday, 1900+q.tm_year,q.tm_hour,q.tm_min));
//Makro - added leading zero's
//trap_Cvar_Set( va("ui_lastServerRefresh_%i", ui_netSource.integer), va("%s-%i, %i at %i:%i", MonthAbbrev[q.tm_mon],q.tm_mday, 1900+q.tm_year,q.tm_hour,q.tm_min));
trap_Cvar_Set( va("ui_lastServerRefresh_%i", ui_netSource.integer), va("%s-%i, %2d at %2d:%2d", MonthAbbrev[q.tm_mon],q.tm_mday, 1900+q.tm_year,q.tm_hour,q.tm_min));
if (!full) {
UI_UpdatePendingPings();