2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-01 01:25:38 +03:00

Get rid of the magic numbers.

This commit is contained in:
Adidasman1 2016-03-09 00:02:47 +04:00
parent 8196956dab
commit 8a265746f1
2 changed files with 4 additions and 4 deletions

View File

@ -6409,7 +6409,7 @@ void SV_BanId_f(void)
if (i >= numuserfilters)
{
if (numuserfilters >= 32768)
if (numuserfilters >= MAX_USERFILTERS)
{
Con_Printf(__FUNCTION__ ": User filter list is full\n");
return;
@ -6855,7 +6855,7 @@ ipaddress A.B.C.D/24 is equivalent to A.B.C.0 and A.B.C\n");
}
}
if (numipfilters >= 32768)
if (numipfilters >= MAX_IPFILTERS)
{
Con_Printf("IP filter list is full\n");
return;

View File

@ -848,8 +848,8 @@ void DLL_SetModKey(modinfo_t *pinfo, char *pkey, char *pvalue)
else if (!Q_stricmp(pkey, "edicts"))
{
pinfo->num_edicts = Q_atoi(pvalue);
if (pinfo->num_edicts < 900)
pinfo->num_edicts = 900;
if (pinfo->num_edicts < NUM_EDICTS)
pinfo->num_edicts = NUM_EDICTS;
}
else if (!Q_stricmp(pkey, "crcclientdll"))
{