Added Limits Check

This commit is contained in:
ChocoTaco 2019-12-26 17:05:06 -05:00
parent d8274cf7a3
commit c894fb7264

View file

@ -89,6 +89,12 @@ function MapRepetitionCheckerFindRandom()
if($MRC::PrevMap[%x] !$= "" && $MRC::PrevMap[%x] $= $EvoCachedNextMission)
%redo = 1;
}
//Make sure its within maplimits
%newmaplimits = $Host::MapPlayerLimits[$EvoCachedNextMission, $CurrentMissionType];
%min = getWord(%newmaplimits,0);
%max = getWord(%newmaplimits,1);
if(%min > $AllPlayerCount || $AllPlayerCount > %max)
%redo = 1;
if( %redo )
MapRepetitionCheckerFindRandom();