Changeset 3335

Show
Ignore:
Timestamp:
11/30/08 23:40:13 (5 weeks ago)
Author:
licho
Message:

another shot at PW stuff

Location:
trunk/mods/ca/LuaRules/Gadgets
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/mods/ca/LuaRules/Gadgets/awards.lua

    r3334 r3335  
    521521                optionsRaw = string.gsub(optionsRaw, '_', '=') 
    522522                optionsRaw = GG.base64dec(optionsRaw) 
    523                 hostName = optionsRaw.hostname 
     523                options = assert(loadstring(optionsRaw))() 
     524                hostName = options.hostname 
    524525        end   
    525526end 
  • trunk/mods/ca/LuaRules/Gadgets/unit_morph.lua

    r3334 r3335  
    499499        optionsRaw = GG.base64dec(optionsRaw) 
    500500        hostName = optionsRaw.hostname 
     501        options = assert(loadstring(optionsRaw))() 
     502        hostName = options.hostname 
    501503  end   
    502504