Browse Source

Merge pull request #188 from Hoikas/patcher

Fix Patcher Progress
Branan Purvine-Riley 13 years ago
parent
commit
86de0d4e51
  1. 3
      Sources/Plasma/PubUtilLib/plAgeLoader/plResPatcher.cpp

3
Sources/Plasma/PubUtilLib/plAgeLoader/plResPatcher.cpp

@ -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);
}

Loading…
Cancel
Save