Teammanager: Remove obsolete code
This commit is contained in:
parent
08ac49923d
commit
7b80848cd0
@ -13,7 +13,6 @@ ConVar g_CVar_sm_warmupratio;
|
|||||||
|
|
||||||
bool g_bRoundEnded = false;
|
bool g_bRoundEnded = false;
|
||||||
bool g_bZombieSpawned = false;
|
bool g_bZombieSpawned = false;
|
||||||
bool g_bIgnoreGameStart = false;
|
|
||||||
int g_TeamChangeQueue[MAXPLAYERS + 1] = { -1, ... };
|
int g_TeamChangeQueue[MAXPLAYERS + 1] = { -1, ... };
|
||||||
|
|
||||||
public Plugin myinfo =
|
public Plugin myinfo =
|
||||||
@ -182,13 +181,6 @@ public void OnRoundEnd(Event event, const char[] name, bool dontBroadcast)
|
|||||||
|
|
||||||
public Action CS_OnTerminateRound(float &delay, CSRoundEndReason &reason)
|
public Action CS_OnTerminateRound(float &delay, CSRoundEndReason &reason)
|
||||||
{
|
{
|
||||||
if(reason == CSRoundEnd_GameStart && g_bIgnoreGameStart)
|
|
||||||
{
|
|
||||||
g_bIgnoreGameStart = false;
|
|
||||||
|
|
||||||
return Plugin_Handled;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(g_bWarmup)
|
if(g_bWarmup)
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
|
|
||||||
@ -201,10 +193,7 @@ public Action ZR_OnClientInfect(int &client, int &attacker, bool &motherInfect,
|
|||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
|
|
||||||
if(motherInfect)
|
if(motherInfect)
|
||||||
{
|
|
||||||
g_bIgnoreGameStart = true;
|
|
||||||
g_bZombieSpawned = true;
|
g_bZombieSpawned = true;
|
||||||
}
|
|
||||||
|
|
||||||
return Plugin_Continue;
|
return Plugin_Continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user