From 10ba5809d2cfeb474a9f2e31bd82ef65d7b877d8 Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Thu, 19 Feb 2009 20:35:41 +1300 Subject: [PATCH] Fixed mapchooser not checking for an existing vote with mp_fraglimit (bug 3503) --- plugins/mapchooser.sp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/plugins/mapchooser.sp b/plugins/mapchooser.sp index 9f7b72f0..8590fcd0 100644 --- a/plugins/mapchooser.sp +++ b/plugins/mapchooser.sp @@ -469,8 +469,19 @@ public Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast) return; } + if (g_MapVoteCompleted) + { + return; + } + new fragger = GetClientOfUserId(GetEventInt(event, "attacker")); - if (fragger && GetClientFrags(fragger) >= (GetConVarInt(g_Cvar_Fraglimit) - GetConVarInt(g_Cvar_StartFrags))) + + if (!fragger) + { + return; + } + + if (GetClientFrags(fragger) >= (GetConVarInt(g_Cvar_Fraglimit) - GetConVarInt(g_Cvar_StartFrags))) { InitiateVote(MapChange_MapEnd, INVALID_HANDLE); }