Skip to content

Commit

Permalink
Fix crash caused by comparing strings with numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
DeadnightWarrior committed Jan 5, 2013
1 parent bba83f9 commit 4bda657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cont/base/springcontent/gamedata/weapondefs_post.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ local function BackwardCompability(wdName, wd)
wd.weapontype = "LightningCannon"
elseif (wd.weapontype == "AircraftBomb") then
if (wd.manualbombsettings) then
wd.reloadtime = wd.reloadtime or 1.0
wd.burstrate = wd.burstrate or 0.1
wd.reloadtime = tonumber(wd.reloadtime or 1.0)
wd.burstrate = tonumber(wd.burstrate or 0.1)

if (wd.reloadtime < 0.5) then
wd.burstrate = math.min(0.2, wd.reloadtime) -- salvodelay
Expand Down

0 comments on commit 4bda657

Please sign in to comment.