Moved some variables in RTV to OnMapStart
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401709
This commit is contained in:
parent
d09ea8fda2
commit
776e51dbac
@ -88,7 +88,7 @@ public OnPluginStart()
|
|||||||
|
|
||||||
AutoExecConfig(true, "rtv");
|
AutoExecConfig(true, "rtv");
|
||||||
}
|
}
|
||||||
|
|
||||||
public OnConfigsExecuted()
|
public OnConfigsExecuted()
|
||||||
{
|
{
|
||||||
if (g_RTVMapList != INVALID_HANDLE)
|
if (g_RTVMapList != INVALID_HANDLE)
|
||||||
@ -96,12 +96,6 @@ public OnConfigsExecuted()
|
|||||||
ClearArray(g_RTVMapList);
|
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))
|
if (LoadMaps(g_MapList, g_mapFileTime, g_Cvar_File))
|
||||||
{
|
{
|
||||||
BuildMapMenu();
|
BuildMapMenu();
|
||||||
@ -109,6 +103,15 @@ public OnConfigsExecuted()
|
|||||||
CreateTimer(30.0, Timer_DelayRTV);
|
CreateTimer(30.0, Timer_DelayRTV);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public OnMapStart()
|
||||||
|
{
|
||||||
|
g_Voters = 0;
|
||||||
|
g_Votes = 0;
|
||||||
|
g_VotesNeeded = 0;
|
||||||
|
g_RTVStarted = false;
|
||||||
|
g_RTVEnded = false;
|
||||||
|
}
|
||||||
|
|
||||||
public OnMapEnd()
|
public OnMapEnd()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user