From f138bca380cb4599a3dbd49f874038b5d71b7345 Mon Sep 17 00:00:00 2001 From: Flameshadowxeroshin Date: Fri, 20 Jan 2012 13:35:23 -0600 Subject: [PATCH] make new CustomSpeedMods actually work because I am awesome --- Themes/_fallback/Scripts/03 CustomSpeedMods.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Themes/_fallback/Scripts/03 CustomSpeedMods.lua b/Themes/_fallback/Scripts/03 CustomSpeedMods.lua index 6d767f4ac4..49cf3ccef2 100644 --- a/Themes/_fallback/Scripts/03 CustomSpeedMods.lua +++ b/Themes/_fallback/Scripts/03 CustomSpeedMods.lua @@ -70,7 +70,7 @@ local function ParseSpeedModFile(path) -- strip any whitespace and check for i=1,#mods do string.gsub(mods[i], "%s", "") - if not(mods[i]:find("%d+\.?%d*x") or mods[i]:find("[cmCM]%d+")) then + if not(mods[i]:find("%d+.?%d*[xX]") or mods[i]:find("[cmCM]%d+")) then mods[i] = nil end end @@ -101,6 +101,7 @@ local function MergeTables(parent, child) for k,v in pairs(parent) do child[k] = v end + return child end -- code in this function is based off of code in @@ -191,7 +192,7 @@ local function GetSpeedMods() -- join players, overwriting duplicates for ply=1,#playerMods do - MergeTables(finalMods,InvertTable(playerMods[ply])) + finalMods=MergeTables(finalMods,InvertTable(playerMods[ply])) end -- convert into an unsorted integer-indexed table