MAX_EDICTS: 4096 -> 2048
This commit is contained in:
parent
0cbb43502c
commit
aade44c915
@ -15,7 +15,7 @@
|
|||||||
#define SPECMODE_THIRDPERSON 5
|
#define SPECMODE_THIRDPERSON 5
|
||||||
#define SPECMODE_FREELOOK 6
|
#define SPECMODE_FREELOOK 6
|
||||||
|
|
||||||
#define MAX_EDICTS 4096
|
#define MAX_EDICTS 2048
|
||||||
bool g_bHasOutputs[MAX_EDICTS];
|
bool g_bHasOutputs[MAX_EDICTS];
|
||||||
|
|
||||||
bool g_bShowBossHitmarker[MAXPLAYERS+1];
|
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)
|
public void OnEntitySpawned(int Entity, const char[] sClassname)
|
||||||
{
|
{
|
||||||
int ent = EntRefToEntIndex(Entity);
|
int ent = EntRefToEntIndex(Entity);
|
||||||
if ((GetOutputCount(ent, "m_OnDamaged") > 0) || (GetOutputCount(ent, "m_OnHealthChanged") > 0))
|
|
||||||
g_bHasOutputs[ent] = true;
|
if (0 < ent < MAX_EDICTS)
|
||||||
else
|
{
|
||||||
g_bHasOutputs[ent] = false;
|
if ((GetOutputCount(ent, "m_OnDamaged") > 0) || (GetOutputCount(ent, "m_OnHealthChanged") > 0))
|
||||||
|
g_bHasOutputs[ent] = true;
|
||||||
|
else
|
||||||
|
g_bHasOutputs[ent] = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user