diff options
author | Alexander Tkachev | 2016-07-14 15:35:38 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 479c76bbd2752f0bf2d1bab2a00cb7dd1544d1a8 (patch) | |
tree | 03abd9393419f0a49fdcb8035b386951a428933a /backends | |
parent | 0ca791709329c3e7f24f68fa2da7c86c87dac557 (diff) | |
download | scummvm-rg350-479c76bbd2752f0bf2d1bab2a00cb7dd1544d1a8.tar.gz scummvm-rg350-479c76bbd2752f0bf2d1bab2a00cb7dd1544d1a8.tar.bz2 scummvm-rg350-479c76bbd2752f0bf2d1bab2a00cb7dd1544d1a8.zip |
CLOUD: Fix IdDownloadRequest
Wrong value was returned in getProgress() on nullptr there.
Diffstat (limited to 'backends')
-rw-r--r-- | backends/cloud/id/iddownloadrequest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/cloud/id/iddownloadrequest.cpp b/backends/cloud/id/iddownloadrequest.cpp index ac62284d46..7166a1e026 100644 --- a/backends/cloud/id/iddownloadrequest.cpp +++ b/backends/cloud/id/iddownloadrequest.cpp @@ -90,7 +90,9 @@ void IdDownloadRequest::finishDownload(bool success) { double IdDownloadRequest::getProgress() const { DownloadRequest *downloadRequest = dynamic_cast<DownloadRequest *>(_workingRequest); - if (downloadRequest == nullptr) return 0.02; // resolving id still + if (downloadRequest == nullptr) return 0; // resolving id still + + // id resolve is 10 % and download is the other 90 % return 0.1 + 0.9 * downloadRequest->getProgress(); // downloading } |