2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 02:27:40 -04:00

Merge pull request #188 from Hoikas/patcher

Fix Patcher Progress
This commit is contained in:
Branan Purvine-Riley
2012-04-05 23:17:01 -07:00

View File

@ -183,7 +183,8 @@ static void ManifestDownloaded(
PatcherLog(kInfo, " Enqueueing %s: File Sizes Differ", fileName);
// If we're still here, then we need to update the file.
patcher->GetProgress()->SetLength((float)mfs.fileSize + patcher->GetProgress()->GetMax());
float size = mfs.zipSize ? (float)mfs.zipSize : (float)mfs.fileSize;
patcher->GetProgress()->SetLength(size + patcher->GetProgress()->GetMax());
patcher->RequestFile(mfs.downloadName, mfs.clientName);
}