From 92ee42622542ab5e5c475729bb75e49a0d3b5259 Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Tue, 23 Oct 2007 20:08:19 +0000 Subject: [PATCH] Fixed amb1065 - Votemap clears itself properly after a failed vote --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401647 --- plugins/basevotes/votemap.sp | 39 +++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/plugins/basevotes/votemap.sp b/plugins/basevotes/votemap.sp index 612ed187..a3e8e049 100644 --- a/plugins/basevotes/votemap.sp +++ b/plugins/basevotes/votemap.sp @@ -31,6 +31,21 @@ DisplayVoteMapMenu(client, mapCount, String:maps[5][]) VoteMenuToAll(g_hVoteMenu, 20); } +ResetMenu() +{ + /* Add the removed maps back to the menu */ + new selectedmaps = GetArraySize(g_SelectedMaps); + decl String:mapname[64]; + + for (new i=0; i