plugins/rockthevote.sp
changeset 1719 c9d5e55f0899
parent 1713 5cc4dd21d55e
child 1777 470d0571f601
     1.1 --- a/plugins/rockthevote.sp	Fri Nov 23 23:24:40 2007 +0000
     1.2 +++ b/plugins/rockthevote.sp	Sat Nov 24 03:28:33 2007 +0000
     1.3 @@ -344,6 +344,13 @@
     1.4  	
     1.5  	new Handle:tempMaps  = CloneArray(g_MapList);
     1.6  	decl String:map[32];
     1.7 +
     1.8 +	GetCurrentMap(map, sizeof(map));
     1.9 +	new index = FindStringInArray(tempMaps, map);
    1.10 +	if (index != -1)
    1.11 +	{
    1.12 +		RemoveFromArray(tempMaps, index);
    1.13 +	}	
    1.14  	
    1.15  	// We assume that g_RTVMapList is within the correct limits, based on the logic for nominations
    1.16  	for (new i = 0; i < GetArraySize(g_RTVMapList); i++)
    1.17 @@ -351,7 +358,7 @@
    1.18  		GetArrayString(g_RTVMapList, i, map, sizeof(map));
    1.19  		AddMenuItem(MapVoteMenu, map, map);
    1.20  		
    1.21 -		new index = FindStringInArray(tempMaps, map);
    1.22 +		index = FindStringInArray(tempMaps, map);
    1.23  		if (index != -1)
    1.24  		{
    1.25  			RemoveFromArray(tempMaps, index);