mirror of
https://github.com/ioquake/ioq3.git
synced 2025-06-01 17:32:54 +00:00
Remove extra client_t::csUpdated[] slot
sv.configstrings[] is limited to 0 to MAX_CONFIGSTRINGS-1, make client_t::csUpdated[] the same.
This commit is contained in:
parent
4520857fc9
commit
a889d7a14f
2 changed files with 2 additions and 2 deletions
|
@ -194,7 +194,7 @@ typedef struct client_s {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int oldServerTime;
|
int oldServerTime;
|
||||||
qboolean csUpdated[MAX_CONFIGSTRINGS+1];
|
qboolean csUpdated[MAX_CONFIGSTRINGS];
|
||||||
|
|
||||||
#ifdef LEGACY_PROTOCOL
|
#ifdef LEGACY_PROTOCOL
|
||||||
qboolean compat;
|
qboolean compat;
|
||||||
|
|
|
@ -82,7 +82,7 @@ void SV_UpdateConfigstrings(client_t *client)
|
||||||
{
|
{
|
||||||
int index;
|
int index;
|
||||||
|
|
||||||
for( index = 0; index <= MAX_CONFIGSTRINGS; index++ ) {
|
for( index = 0; index < MAX_CONFIGSTRINGS; index++ ) {
|
||||||
// if the CS hasn't changed since we went to CS_PRIMED, ignore
|
// if the CS hasn't changed since we went to CS_PRIMED, ignore
|
||||||
if(!client->csUpdated[index])
|
if(!client->csUpdated[index])
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue