summaryrefslogtreecommitdiff
path: root/src/server/sv_snapshot.c
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-07-12 11:01:20 +0000
committerTim Angus <tim@ngus.net>2013-01-10 21:57:40 +0000
commit3bd2ba9e590cb882b684b1eb4b2650b1a4c94f7f (patch)
tree277a7efa735dfa9854d5e41199b65ef48f0043c2 /src/server/sv_snapshot.c
parentc22cbd3e5552c0599dad9d60c1ea80a56b48f883 (diff)
- Greatly improve UDP downloading speed for clients - Add download rate control cvar sv_dlRate - Don't send snapshots to downloading clients
Diffstat (limited to 'src/server/sv_snapshot.c')
-rw-r--r--src/server/sv_snapshot.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/server/sv_snapshot.c b/src/server/sv_snapshot.c
index 10820d07..590cfd7e 100644
--- a/src/server/sv_snapshot.c
+++ b/src/server/sv_snapshot.c
@@ -642,9 +642,6 @@ void SV_SendClientSnapshot( client_t *client ) {
// and the playerState_t
SV_WriteSnapshotToClient( client, &msg );
- // Add any download data if the client is downloading
- SV_WriteDownloadToClient( client, &msg );
-
#ifdef USE_VOIP
SV_WriteVoipToClient( client, &msg );
#endif
@@ -678,6 +675,9 @@ void SV_SendClientMessages( void ) {
continue; // not time yet
}
+ if(*c->downloadName)
+ continue; // Client is downloading, don't send snapshots
+
// send additional message fragments if the last message
// was too large to send at once
if ( c->netchan.unsentFragments ) {
@@ -691,4 +691,3 @@ void SV_SendClientMessages( void ) {
SV_SendClientSnapshot( c );
}
}
-