diff options
Diffstat (limited to 'code/ui')
-rw-r--r-- | code/ui/ui_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/code/ui/ui_main.c b/code/ui/ui_main.c index dc09385..b6d98aa 100644 --- a/code/ui/ui_main.c +++ b/code/ui/ui_main.c @@ -5424,7 +5424,8 @@ 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; } |