equal
deleted
inserted
replaced
680 parseParams() |
680 parseParams() |
681 mapID = tonumber(params["m"]) |
681 mapID = tonumber(params["m"]) |
682 |
682 |
683 roundLimit = tonumber(params["rounds"]) |
683 roundLimit = tonumber(params["rounds"]) |
684 |
684 |
685 if (roundLimit == 0) or (roundLimit == nil) then |
685 if roundLimit == nil then |
686 roundLimit = 3 |
686 roundLimit = 3 |
687 end |
687 end |
|
688 roundLimit = math.max(1, math.floor(roundLimit)) |
688 |
689 |
689 if mapID == nil then |
690 if mapID == nil then |
690 mapID = 2 + GetRandom(7) |
691 mapID = 2 + GetRandom(7) |
691 end |
692 end |
692 |
693 |