MAX_EDICTS: 4096 -> 2048

This commit is contained in:
neon 2019-10-28 13:08:12 +01:00
parent 0cbb43502c
commit aade44c915

View File

@ -15,7 +15,7 @@
#define SPECMODE_THIRDPERSON 5
#define SPECMODE_FREELOOK 6
#define MAX_EDICTS 4096
#define MAX_EDICTS 2048
bool g_bHasOutputs[MAX_EDICTS];
bool g_bShowBossHitmarker[MAXPLAYERS+1];
@ -435,10 +435,14 @@ public int MenuHandler_MainMenu(Menu menu, MenuAction action, int client, int se
public void OnEntitySpawned(int Entity, const char[] sClassname)
{
int ent = EntRefToEntIndex(Entity);
if ((GetOutputCount(ent, "m_OnDamaged") > 0) || (GetOutputCount(ent, "m_OnHealthChanged") > 0))
g_bHasOutputs[ent] = true;
else
g_bHasOutputs[ent] = false;
if (0 < ent < MAX_EDICTS)
{
if ((GetOutputCount(ent, "m_OnDamaged") > 0) || (GetOutputCount(ent, "m_OnHealthChanged") > 0))
g_bHasOutputs[ent] = true;
else
g_bHasOutputs[ent] = false;
}
}
//----------------------------------------------------------------------------------------------------