mapchooser_extended: honor map limits for automatically nominated maps
This commit is contained in:
parent
f1e888f6e4
commit
fa6b704db4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user