Fixed several plugins excluding the last client from loops (bug 3984, r=dvander).

This commit is contained in:
Eric Minekus
2009-10-02 02:26:11 -07:00
parent d4deeb4edd
commit 85963cafe7
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ public Action:Timer_FireBomb(Handle:timer, any:value)
new teamOnly = ((GetConVarInt(g_Cvar_FireBombMode) == 1) ? true : false);
new maxClients = GetMaxClients();
for (new i = 1; i < maxClients; i++)
for (new i = 1; i <= maxClients; i++)
{
if (!IsClientInGame(i) || !IsPlayerAlive(i) || i == client)
{
+2 -2
View File
@@ -107,7 +107,7 @@ KillAllFreezes( )
{
new maxclients = GetMaxClients( );
for(new i = 1; i < maxclients; i++)
for(new i = 1; i <= maxclients; i++)
{
if (g_FreezeSerial[i] != 0)
{
@@ -256,7 +256,7 @@ public Action:Timer_FreezeBomb(Handle:timer, any:value)
new bool:teamOnly = ((GetConVarInt(g_Cvar_FreezeBombMode) == 1) ? true : false);
new maxClients = GetMaxClients( );
for (new i = 1; i < maxClients; i++)
for (new i = 1; i <= maxClients; i++)
{
if (!IsClientInGame(i) || !IsPlayerAlive(i) || i == client)
{
+1 -1
View File
@@ -143,7 +143,7 @@ public Action:Timer_TimeBomb(Handle:timer, any:value)
new teamOnly = ((GetConVarInt(g_Cvar_TimeBombMode) == 1) ? true : false);
new maxClients = GetMaxClients();
for (new i = 1; i < maxClients; i++)
for (new i = 1; i <= maxClients; i++)
{
if (!IsClientInGame(i) || !IsPlayerAlive(i) || i == client)
{