From 40f3680e0857d900d01f47bea6566ff546df4885 Mon Sep 17 00:00:00 2001 From: BotoX Date: Wed, 17 Aug 2016 20:58:49 +0200 Subject: [PATCH] mapchooser_extended: honor map restriction for maps inserted if there are not enough nominations --- mapchooser_extended/scripting/mapchooser_extended.sp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mapchooser_extended/scripting/mapchooser_extended.sp b/mapchooser_extended/scripting/mapchooser_extended.sp index 0a69057..9a73656 100644 --- a/mapchooser_extended/scripting/mapchooser_extended.sp +++ b/mapchooser_extended/scripting/mapchooser_extended.sp @@ -1141,6 +1141,10 @@ void InitiateVote(MapChange when, Handle inputlist=INVALID_HANDLE) GetArrayString(g_NextMapList, count, map, PLATFORM_MAX_PATH); count++; + // Honor map restriction. + if(InternalGetMapPlayerRestriction(map) != 0) + continue; + if(randomizeList == INVALID_HANDLE) { /* Insert the map and increment our count */