From 30fa51246e3d850114886abf21cbaec4eb85f064 Mon Sep 17 00:00:00 2001 From: BotoX Date: Sun, 12 Aug 2018 20:11:22 +0200 Subject: [PATCH] mapchooser_extended: map restriction related fix --- mapchooser_extended/scripting/mapchooser_extended.sp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mapchooser_extended/scripting/mapchooser_extended.sp b/mapchooser_extended/scripting/mapchooser_extended.sp index 7d711f93..9561984d 100644 --- a/mapchooser_extended/scripting/mapchooser_extended.sp +++ b/mapchooser_extended/scripting/mapchooser_extended.sp @@ -1689,8 +1689,11 @@ void CreateNextVote() b = GetRandomInt(0, GetArraySize(tempMaps) - 1); GetArrayString(tempMaps, b, map, PLATFORM_MAX_PATH); - if(InternalGetMapPlayerRestriction(map) == 0) - break; + if(InternalGetMapTimeRestriction(map) != 0) + continue; + + if(InternalGetMapPlayerRestriction(map) != 0) + continue; bool okay = true;