mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
Added Limits Check
This commit is contained in:
parent
d8274cf7a3
commit
c894fb7264
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue