27 |
------------------------------ |
------------------------------ |
28 |
|
|
29 |
function options.LevelStat (key, stat) |
function options.LevelStat (key, stat) |
30 |
|
-- Enigma accidentally used to save times in the wrong numeric format. |
31 |
|
-- The following two lines works around this problem |
32 |
|
if stat[1] < 0 then stat[1] = -1 end |
33 |
|
if stat[2] < 0 then stat[2] = -1 end |
34 |
|
|
35 |
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) |
36 |
gsub(key, "([^#]*)#(.+)", function (pack,lev) |
gsub(key, "([^#]*)#(.+)", function (pack,lev) |
37 |
options.SetLevelStatus(pack,lev, %status) |
options.SetLevelStatus(pack,lev, %status) |