From 56902c5a9b6b59341f71098566f2d84a4af4b572 Mon Sep 17 00:00:00 2001 From: tma Date: Fri, 2 Nov 2007 23:36:23 +0000 Subject: * (bug 3393) Blank user names still possible (Michael Jard ) * (bug 3363) Download percentage overflow (Martin Doucha ) * (bug 3390) MSVC project (Julian Priestley ) * For OS X and MinGW ports, don't -I code/SDL when USE_LOCAL_HEADERS is 0 git-svn-id: svn://svn.icculus.org/quake3/trunk@1204 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/q3_ui/ui_connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code/q3_ui') diff --git a/code/q3_ui/ui_connect.c b/code/q3_ui/ui_connect.c index 0db89a2..27db956 100644 --- a/code/q3_ui/ui_connect.c +++ b/code/q3_ui/ui_connect.c @@ -94,7 +94,7 @@ static void UI_DisplayDownloadInfo( const char *downloadName ) { UI_DrawProportionalString( 8, 224, xferText, style, color_white ); if (downloadSize > 0) { - s = va( "%s (%d%%)", downloadName, downloadCount * 100 / downloadSize ); + s = va( "%s (%d%%)", downloadName, (int)( (float)downloadCount * 100.0f / downloadSize ) ); } else { s = downloadName; } -- cgit v1.2.3