Moved some variables in RTV to OnMapStart

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401709
This commit is contained in:
Michael McKoy 2007-11-20 03:55:54 +00:00
parent d09ea8fda2
commit 776e51dbac

View File

@ -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();
@ -110,6 +104,15 @@ public OnConfigsExecuted()
}
}
public OnMapStart()
{
g_Voters = 0;
g_Votes = 0;
g_VotesNeeded = 0;
g_RTVStarted = false;
g_RTVEnded = false;
}
public OnMapEnd()
{
g_CanRTV = false;