[ioquake3] 02/12: Fix Team Arena server refresh time format

Simon McVittie smcv at debian.org
Mon Nov 27 12:04:07 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag debian/1.36+u20171122_dfsg-1
in repository ioquake3.

commit 471ea9e56411606e814a703419433494a71a3f42
Author: Zack Middleton <zack at cloemail.com>
Date:   Fri Nov 10 20:05:51 2017 -0600

    Fix Team Arena server refresh time format
    
    Make minute less than 10 have a leading 0. Change '7:1' to '7:01'.
---
 code/ui/ui_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/code/ui/ui_main.c b/code/ui/ui_main.c
index bd8c515..32b6acd 100644
--- a/code/ui/ui_main.c
+++ b/code/ui/ui_main.c
@@ -6021,7 +6021,7 @@ static void UI_StartServerRefresh(qboolean full, qboolean force)
 	}
 
 	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));
+	trap_Cvar_Set( va("ui_lastServerRefresh_%i", ui_netSource.integer), va("%s-%i, %i at %i:%02i", MonthAbbrev[q.tm_mon],q.tm_mday, 1900+q.tm_year,q.tm_hour,q.tm_min));
 
 	if (!full) {
 		UI_UpdatePendingPings();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git



More information about the Pkg-games-commits mailing list