From f4665a0caf833d910dc73237b7f3286969476153 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 3 Apr 2012 14:50:28 -0400 Subject: [PATCH] Use the correct file sizes in plResPatcher --- Sources/Plasma/PubUtilLib/plAgeLoader/plResPatcher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/Plasma/PubUtilLib/plAgeLoader/plResPatcher.cpp b/Sources/Plasma/PubUtilLib/plAgeLoader/plResPatcher.cpp index 44b9e7d3..718ca27f 100644 --- a/Sources/Plasma/PubUtilLib/plAgeLoader/plResPatcher.cpp +++ b/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); }