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,6 +1144,8 @@ void InitiateVote(MapChange when, Handle inputlist=INVALID_HANDLE)
GetArrayString(g_NextMapList, count, map, PLATFORM_MAX_PATH); GetArrayString(g_NextMapList, count, map, PLATFORM_MAX_PATH);
count++; count++;
if(InternalGetMapPlayerRestriction(map) == 0)
{
if(randomizeList == INVALID_HANDLE) if(randomizeList == INVALID_HANDLE)
{ {
/* Insert the map and increment our count */ /* Insert the map and increment our count */
@ -1151,8 +1153,8 @@ void InitiateVote(MapChange when, Handle inputlist=INVALID_HANDLE)
} }
else else
PushArrayString(randomizeList, map); PushArrayString(randomizeList, map);
i++; i++;
}
//Run out of maps, this will have to do. //Run out of maps, this will have to do.
if(count >= availableMaps) if(count >= availableMaps)