From 95aca7b61b2e97bfae758d1c22337776316636aa Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Sun, 10 Aug 2008 05:39:25 +0000 Subject: [PATCH] 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 --- plugins/basetriggers.sp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/basetriggers.sp b/plugins/basetriggers.sp index 50a436fa..954c47df 100644 --- a/plugins/basetriggers.sp +++ b/plugins/basetriggers.sp @@ -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"); }