]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix bug in [515]'s csqc code - it was using the literal number 64 for the max players...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 11 Mar 2006 17:22:22 +0000 (17:22 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 11 Mar 2006 17:22:22 +0000 (17:22 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6101 d7cf8633-e32d-0410-b094-e92efae38249

protocol.c

index 91e0b7cbc88cdc8b4a1fbbc70b2085ef09fd51a4..508b8802910b67c5997a7b0f41bd48c3746ef440 100644 (file)
@@ -243,7 +243,7 @@ void EntityFrameQuake_ISeeDeadEntities(void)
 static mempool_t *sv2csqc = NULL;
 int csqc_clent = 0;
 sizebuf_t *sv2csqcbuf = NULL;
-static unsigned char *sv2csqcents_version[64];
+static unsigned char *sv2csqcents_version[MAX_SCOREBOARD];
 
 void EntityFrameCSQC_ClearVersions (void)
 {
@@ -252,7 +252,7 @@ void EntityFrameCSQC_ClearVersions (void)
                Mem_FreePool(&sv2csqc);
                sv2csqc = NULL;
        }
-       memset(sv2csqcents_version, 0, 64*sizeof(unsigned char *));
+       memset(sv2csqcents_version, 0, MAX_SCOREBOARD*sizeof(unsigned char *));
 }
 
 void EntityFrameCSQC_InitClientVersions (int client, qboolean clear)