Unify Maximum supported clients, raised SDKTools limit (bug 5964, r=psychonic).
This commit is contained in:
@@ -37,7 +37,7 @@ SH_DECL_HOOK5_void(IVEngineServer, PlaybackTempEntity, SH_NOATTRIB, 0, IRecipien
|
||||
|
||||
CellRecipientFilter g_TERecFilter;
|
||||
TempEntityInfo *g_CurrentTE = NULL;
|
||||
int g_TEPlayers[256];
|
||||
int g_TEPlayers[SM_MAXPLAYERS+1];
|
||||
bool tenatives_initialized = false;
|
||||
|
||||
/*************************
|
||||
|
||||
@@ -576,7 +576,7 @@ static cell_t SlapPlayer(IPluginContext *pContext, const cell_t *params)
|
||||
{
|
||||
char name[48];
|
||||
const char *sound_name;
|
||||
cell_t player_list[256], total_players = 0;
|
||||
cell_t player_list[SM_MAXPLAYERS], total_players = 0;
|
||||
int maxClients = playerhelpers->GetMaxClients();
|
||||
|
||||
int r = (rand() % s_sound_count) + 1;
|
||||
|
||||
@@ -51,10 +51,10 @@ enum ListenOverride
|
||||
Listen_Yes, /**< Can hear */
|
||||
};
|
||||
|
||||
size_t g_VoiceFlags[65];
|
||||
size_t g_VoiceFlags[SM_MAXPLAYERS+1];
|
||||
size_t g_VoiceHookCount = 0;
|
||||
ListenOverride g_VoiceMap[65][65];
|
||||
bool g_ClientMutes[65][65];
|
||||
ListenOverride g_VoiceMap[SM_MAXPLAYERS+1][SM_MAXPLAYERS+1];
|
||||
bool g_ClientMutes[SM_MAXPLAYERS+1][SM_MAXPLAYERS+1];
|
||||
|
||||
SH_DECL_HOOK3(IVoiceServer, SetClientListening, SH_NOATTRIB, 0, bool, int, int, bool);
|
||||
|
||||
|
||||
@@ -308,11 +308,11 @@ void SoundHooks::OnEmitSound(IRecipientFilter &filter, int iEntIndex, int iChann
|
||||
|
||||
for (iter=m_NormalFuncs.begin(); iter!=m_NormalFuncs.end(); iter++)
|
||||
{
|
||||
int players[64], size;
|
||||
int players[SM_MAXPLAYERS], size;
|
||||
size = _FillInPlayers(players, &filter);
|
||||
pFunc = (*iter);
|
||||
|
||||
pFunc->PushArray(players, 64, SM_PARAM_COPYBACK);
|
||||
pFunc->PushArray(players, SM_ARRAYSIZE(players), SM_PARAM_COPYBACK);
|
||||
pFunc->PushCellByRef(&size);
|
||||
pFunc->PushStringEx(buffer, sizeof(buffer), SM_PARAM_STRING_COPY, SM_PARAM_COPYBACK);
|
||||
pFunc->PushCellByRef(&iEntIndex);
|
||||
@@ -423,11 +423,11 @@ void SoundHooks::OnEmitSound2(IRecipientFilter &filter, int iEntIndex, int iChan
|
||||
|
||||
for (iter=m_NormalFuncs.begin(); iter!=m_NormalFuncs.end(); iter++)
|
||||
{
|
||||
int players[64], size;
|
||||
int players[SM_MAXPLAYERS], size;
|
||||
size = _FillInPlayers(players, &filter);
|
||||
pFunc = (*iter);
|
||||
|
||||
pFunc->PushArray(players, 64, SM_PARAM_COPYBACK);
|
||||
pFunc->PushArray(players, SM_ARRAYSIZE(players), SM_PARAM_COPYBACK);
|
||||
pFunc->PushCellByRef(&size);
|
||||
pFunc->PushStringEx(buffer, sizeof(buffer), SM_PARAM_STRING_COPY, SM_PARAM_COPYBACK);
|
||||
pFunc->PushCellByRef(&iEntIndex);
|
||||
|
||||
Reference in New Issue
Block a user