# HG changeset patch # User Wuzzy # Date 1479865148 -3600 # Node ID b2783dd12f30214e9992a02159fde81bdcf7b3e4 # Parent ad38e2c7ab12864be1cac713c923f5a608599d6c Fix incorrect type check of wpRad in Racer diff -r ad38e2c7ab12 -r b2783dd12f30 share/hedgewars/Data/Scripts/Multiplayer/Racer.lua --- a/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua Wed Nov 23 02:00:24 2016 +0100 +++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua Wed Nov 23 02:39:08 2016 +0100 @@ -191,7 +191,7 @@ end if params["waypointradius"] ~= nil then wpRad = math.max(40, math.floor(tonumber(params["waypointradius"]))) - if type(roundLimit) ~= "number" then + if type(wpRad) ~= "number" then wpRad = 450 end end