share/hedgewars/Data/Scripts/Params.lua
author sheepluva
Sun, 09 Aug 2015 04:02:23 +0200
changeset 11042 d29a05a55bbc
parent 9985 42cd42e44c9a
permissions -rw-r--r--
fix the fix

-- Library for parameters handling

params = {}

function parseParams()
    if ScriptParam ~= nil then
        for k, v in string.gmatch(ScriptParam, "(%w+)=([^,]+)") do
            params[k] = v
        end
    end
end