summaryrefslogtreecommitdiff
path: root/src/network/network_content.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-03-06 10:11:59 +0000
committerrubidium <rubidium@openttd.org>2011-03-06 10:11:59 +0000
commitdb6121f361df86c6f961938db5cce0f8a23e923d (patch)
treee3eab9084aee45c1869262f77309db21f162132e /src/network/network_content.h
parentbbde7766d2ce6c3fd11cc6ab9791bc5f264df6c8 (diff)
downloadopenttd-db6121f361df86c6f961938db5cce0f8a23e923d.tar.xz
(svn r22208) -Fix [FS#4543]: When downloading a file via HTTP failed mid-way and OpenTTD fell back to the old system the partial downloaded amount would be counted twice
Diffstat (limited to 'src/network/network_content.h')
-rw-r--r--src/network/network_content.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_content.h b/src/network/network_content.h
index 779f94ea0..4239a005f 100644
--- a/src/network/network_content.h
+++ b/src/network/network_content.h
@@ -49,7 +49,7 @@ struct ContentCallback {
* @param ci the content info of the file
* @param bytes the number of bytes downloaded since the previous call
*/
- virtual void OnDownloadProgress(const ContentInfo *ci, uint bytes) {}
+ virtual void OnDownloadProgress(const ContentInfo *ci, int bytes) {}
/**
* We have finished downloading a file
@@ -89,7 +89,7 @@ protected:
void OnConnect(bool success);
void OnDisconnect();
void OnReceiveContentInfo(const ContentInfo *ci);
- void OnDownloadProgress(const ContentInfo *ci, uint bytes);
+ void OnDownloadProgress(const ContentInfo *ci, int bytes);
void OnDownloadComplete(ContentID cid);
void OnFailure();