Fixed memory leak, and timer error.

This commit is contained in:
Greyscale 2009-06-22 13:07:19 -07:00
parent c24d1a32be
commit 0c75482eb8
2 changed files with 4 additions and 1 deletions

View File

@ -207,6 +207,9 @@ RoundEndOutcome:RoundEndReasonToOutcome(reason)
*/
public Action:RoundEndTimer(Handle:timer)
{
// Set the global timer handle variable to INVALID_HANDLE.
tRoundEnd = INVALID_HANDLE;
// If there aren't clients on both teams, then stop.
if (!ZRTeamHasClients())
{

View File

@ -343,7 +343,7 @@ WeaponsOnItemPickup(client, weapon)
WritePackCell(eventinfo, weapon);
// Create post delay timer.
CreateTimer(0.0, WeaponsOnItemPickupPost, eventinfo);
CreateTimer(0.0, WeaponsOnItemPickupPost, eventinfo, TIMER_DATA_HNDL_CLOSE);
}
/**