From 776e51dbacd43d5af44ddb52fa3b77a4b5b46d86 Mon Sep 17 00:00:00 2001 From: Michael McKoy Date: Tue, 20 Nov 2007 03:55:54 +0000 Subject: [PATCH] Moved some variables in RTV to OnMapStart --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401709 --- plugins/rockthevote.sp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/plugins/rockthevote.sp b/plugins/rockthevote.sp index 1e0d9ee0..25f3a8a8 100644 --- a/plugins/rockthevote.sp +++ b/plugins/rockthevote.sp @@ -88,7 +88,7 @@ public OnPluginStart() AutoExecConfig(true, "rtv"); } - + public OnConfigsExecuted() { if (g_RTVMapList != INVALID_HANDLE) @@ -96,12 +96,6 @@ public OnConfigsExecuted() ClearArray(g_RTVMapList); } - g_Voters = 0; - g_Votes = 0; - g_VotesNeeded = 0; - g_RTVStarted = false; - g_RTVEnded = false; - if (LoadMaps(g_MapList, g_mapFileTime, g_Cvar_File)) { BuildMapMenu(); @@ -109,6 +103,15 @@ public OnConfigsExecuted() CreateTimer(30.0, Timer_DelayRTV); } } + +public OnMapStart() +{ + g_Voters = 0; + g_Votes = 0; + g_VotesNeeded = 0; + g_RTVStarted = false; + g_RTVEnded = false; +} public OnMapEnd() {