]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - server.h
implemented individual file downloads on darkplaces servers
[xonotic/darkplaces.git] / server.h
index 41947092940a0e0a8804978cc23c83468f0c58df..10047f670d7d67f8e566d4a5ac11d91caaae6d96 100644 (file)
--- a/server.h
+++ b/server.h
@@ -184,6 +184,12 @@ typedef struct client_s
        entityframe_database_t *entitydatabase;
        entityframe4_database_t *entitydatabase4;
        entityframe5_database_t *entitydatabase5;
+
+       // information on an active download if any
+       qfile_t *download_file;
+       int download_expectedposition; // next position the client should ack
+       qboolean download_started;
+       char download_name[MAX_QPATH];
 } client_t;