mapchooser_extended: honor map limits for automatically nominated maps

This commit is contained in:
BotoX 2018-01-19 15:36:19 +01:00
parent f1e888f6e4
commit fa6b704db4

View File

@ -1144,15 +1144,17 @@ void InitiateVote(MapChange when, Handle inputlist=INVALID_HANDLE)
GetArrayString(g_NextMapList, count, map, PLATFORM_MAX_PATH);
count++;
if(randomizeList == INVALID_HANDLE)
if(InternalGetMapPlayerRestriction(map) == 0)
{
/* Insert the map and increment our count */
AddMapItem(map);
if(randomizeList == INVALID_HANDLE)
{
/* Insert the map and increment our count */
AddMapItem(map);
}
else
PushArrayString(randomizeList, map);
i++;
}
else
PushArrayString(randomizeList, map);
i++;
//Run out of maps, this will have to do.
if(count >= availableMaps)