summaryrefslogtreecommitdiff
path: root/src/client/download.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2013-02-04 20:25:42 +0400
committerAndrey Nazarov <skuller@skuller.net>2013-02-04 20:25:42 +0400
commit50db352d2c60f3e8c7facefe53b3fe05a24cd6b7 (patch)
tree48e5d573a574ccf2b1dc35cf6349fbcc182c1f9b /src/client/download.c
parent0c7246e527541552f37e9bd276d252ad4abd352d (diff)
Fix position display for resumed download.
Diffstat (limited to 'src/client/download.c')
-rw-r--r--src/client/download.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/download.c b/src/client/download.c
index 795f466..9f5e97d 100644
--- a/src/client/download.c
+++ b/src/client/download.c
@@ -255,6 +255,7 @@ static qboolean start_udp_download(dlqueue_t *q)
ret = FS_FOpenFile(cls.download.temp, &f, FS_MODE_RDWR);
if (ret >= 0) { // it exists
cls.download.file = f;
+ cls.download.position = ret;
// give the server an offset to start the download
Com_DPrintf("[UDP] Resuming %s\n", q->path);
#if USE_ZLIB