From 363a60b9d4c01225deefacb23586f9c51739d434 Mon Sep 17 00:00:00 2001 From: tjw Date: Fri, 13 Oct 2006 19:44:52 +0000 Subject: * (bug 2784) help to prevent reliable command overflow in cases when a slow client is loading the map on a busy server. Specifically, hold back all configstring update commands while the client is CS_PRIMED. Once the client goes from CS_PRIMED to CS_ACTIVE, send the cleint commands for updating each of the configstring indexes which were updated while the client was CS_PRIMED. git-svn-id: svn://svn.icculus.org/quake3/trunk@935 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/server/server.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'code/server/server.h') diff --git a/code/server/server.h b/code/server/server.h index 94bde88..57a49f3 100644 --- a/code/server/server.h +++ b/code/server/server.h @@ -168,6 +168,7 @@ typedef struct client_s { netchan_buffer_t **netchan_end_queue; int oldServerTime; + qboolean csUpdated[MAX_CONFIGSTRINGS+1]; } client_t; //============================================================================= @@ -272,6 +273,7 @@ void SV_MasterShutdown (void); // void SV_SetConfigstring( int index, const char *val ); void SV_GetConfigstring( int index, char *buffer, int bufferSize ); +void SV_UpdateConfigstrings( client_t *client ); void SV_SetUserinfo( int index, const char *val ); void SV_GetUserinfo( int index, char *buffer, int bufferSize ); -- cgit v1.2.3