Skip to content

Commit ee6d2c0

Browse files
Synchronize changes from 1.6 master branch [ci skip]
40d9ac1 Fix in-game updater dialog incorrectly showing 0% progress
2 parents bf3becd + 40d9ac1 commit ee6d2c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client/core/CVersionUpdater.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2770,7 +2770,7 @@ int CVersionUpdater::_PollDownload()
27702770
if (m_JobInfo.bShowDownloadPercent)
27712771
{
27722772
const bool bIsDownloadedSizeRight = m_JobInfo.uiBytesDownloaded > 0 && m_JobInfo.iFilesize >= m_JobInfo.uiBytesDownloaded;
2773-
const float fDownloadedPercent = bIsDownloadedSizeRight ? Round(m_JobInfo.uiBytesDownloaded / m_JobInfo.iFilesize * 100.f) : 0;
2773+
const int fDownloadedPercent = bIsDownloadedSizeRight ? Round((float)m_JobInfo.uiBytesDownloaded / m_JobInfo.iFilesize * 100.f) : 0;
27742774
GetQuestionBox().SetMessage(SString(_("%3d %% completed"), fDownloadedPercent));
27752775
}
27762776
if (m_JobInfo.iIdleTime > 1000 && m_JobInfo.iIdleTimeLeft > 500)

0 commit comments

Comments
 (0)