/[enigma]/enigma/data/startup.lua
ViewVC logotype

Diff of /enigma/data/startup.lua

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by dheck, Wed Jun 18 10:06:14 2003 UTC revision 1.3 by dheck, Thu Jun 19 22:16:20 2003 UTC
# Line 27  end Line 27  end
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)

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26