mirror of
https://github.com/ioquake/ioq3.git
synced 2025-05-29 16:11:31 +00:00
* (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.
This commit is contained in:
parent
41add6c01f
commit
189e8b33f3
4 changed files with 90 additions and 34 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue