summaryrefslogtreecommitdiff
path: root/src/ui/ui_main.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2007-11-03 00:06:23 +0000
committerTim Angus <tim@ngus.net>2007-11-03 00:06:23 +0000
commitc6a9027b7cf0d35401cae346b67ca95c5f55b4a1 (patch)
tree3e41bfc88a8fb845cff921ccd62f5b3489fee703 /src/ui/ui_main.c
parent5c3429cb21861e253d9a80fa07f6487013c99109 (diff)
* Merge ioq3-r1204
Diffstat (limited to 'src/ui/ui_main.c')
-rw-r--r--src/ui/ui_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c
index 39e6c1b5..7618c211 100644
--- a/src/ui/ui_main.c
+++ b/src/ui/ui_main.c
@@ -5535,7 +5535,7 @@ static void UI_DisplayDownloadInfo( const char *downloadName, float centerPoint,
Text_PaintCenter(centerPoint, yStart + 248, scale, colorWhite, xferText, 0);
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;
}