mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-04-29 15:35:24 +00:00
Added Limits Check
This commit is contained in:
parent
d8274cf7a3
commit
c894fb7264
1 changed files with 6 additions and 0 deletions
|
|
@ -89,6 +89,12 @@ function MapRepetitionCheckerFindRandom()
|
||||||
if($MRC::PrevMap[%x] !$= "" && $MRC::PrevMap[%x] $= $EvoCachedNextMission)
|
if($MRC::PrevMap[%x] !$= "" && $MRC::PrevMap[%x] $= $EvoCachedNextMission)
|
||||||
%redo = 1;
|
%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 )
|
if( %redo )
|
||||||
MapRepetitionCheckerFindRandom();
|
MapRepetitionCheckerFindRandom();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue