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:
parent
8196956dab
commit
8a265746f1
@ -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;
|
||||
|
@ -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"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user