31 |
-- The following two lines works around this problem |
-- The following two lines works around this problem |
32 |
if stat[1] < 0 then stat[1] = -1 end |
if stat[1] < 0 then stat[1] = -1 end |
33 |
if stat[2] < 0 then stat[2] = -1 end |
if stat[2] < 0 then stat[2] = -1 end |
34 |
|
if stat[3] < 0 then stat[3] = 0 end |
35 |
|
|
36 |
local status = LevelStatus:new(stat[1], stat[2], stat[3], stat[4] or 0) |
local status = LevelStatus:new(stat[1], stat[2], stat[3], stat[4] or 0) |
37 |
gsub(key, "([^#]*)#(.+)", function (pack,lev) |
gsub(key, "([^#]*)#(.+)", function (pack,lev) |