Removed old tHandles array, updated antistick a bit (just moved stuff).

This commit is contained in:
Greyscale
2009-04-21 02:03:35 +02:00
parent 1ec47ef154
commit 0f15efaa85
4 changed files with 17 additions and 75 deletions

View File

@ -126,15 +126,6 @@ public Action:PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
new index = GetClientOfUserId(GetEventInt(event, "userid"));
for (new x = 0; x < MAXTIMERS; x++)
{
if (tHandles[index][x] != INVALID_HANDLE)
{
KillTimer(tHandles[index][x]);
tHandles[index][x] = INVALID_HANDLE;
}
}
bZombie[index] = false;
// Reset FOV and overlay.
@ -262,16 +253,6 @@ public Action:PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
AddPlayerScore(attacker, bonus);
}
}
// Kill various timers.
for (new x = 0; x < MAXTIMERS; x++)
{
if (tHandles[index][x] != INVALID_HANDLE)
{
KillTimer(tHandles[index][x]);
tHandles[index][x] = INVALID_HANDLE;
}
}
}
// Forward event to modules.