changeset 15964 | d18261ddac4a |
parent 15788 | acf70c44065b |
child 15970 | a803428704fd |
--- a/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua Wed Jun 28 07:28:52 2023 +0200 +++ b/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua Wed Jun 28 12:01:43 2023 +0200 @@ -682,9 +682,10 @@ roundLimit = tonumber(params["rounds"]) - if (roundLimit == 0) or (roundLimit == nil) then + if roundLimit == nil then roundLimit = 3 end + roundLimit = math.max(1, math.floor(roundLimit)) if mapID == nil then mapID = 2 + GetRandom(7)