Fixed amb1924 - Nextmap command now checks if end of map voting is enabled

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402441
This commit is contained in:
Matt Woodrow 2008-08-10 05:39:25 +00:00
parent e52e3c4639
commit 95aca7b61b

View File

@ -148,7 +148,7 @@ public Action:Command_Nextmap(client, args)
if(GetConVarInt(g_Cvar_TriggerShow))
{
if (mapchooser && !HasEndOfMapVoteFinished())
if (mapchooser && EndOfMapVoteEnabled() && !HasEndOfMapVoteFinished())
{
PrintToChatAll("[SM] %t", "Pending Vote");
}
@ -159,7 +159,7 @@ public Action:Command_Nextmap(client, args)
}
else
{
if (mapchooser && !HasEndOfMapVoteFinished())
if (mapchooser && EndOfMapVoteEnabled() && !HasEndOfMapVoteFinished())
{
ReplyToCommand(client, "[SM] %t", "Pending Vote");
}
@ -253,7 +253,7 @@ public Action:Command_Say(client, args)
if(GetConVarInt(g_Cvar_TriggerShow))
{
if (mapchooser && !HasEndOfMapVoteFinished())
if (mapchooser && EndOfMapVoteEnabled() && !HasEndOfMapVoteFinished())
{
PrintToChatAll("[SM] %t", "Pending Vote");
}