Lua formatting
This commit is contained in:
parent
aded514bdd
commit
90590d59ef
@ -7,7 +7,7 @@ function ShouldUnloadMod( arg0 )
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Load usermaps mod if custom map selected
|
-- Load usermaps mod if custom map selected
|
||||||
local MustLoadUsermaps = function( arg0, arg1 )
|
local mustLoadUsermaps = function(arg0, arg1)
|
||||||
if CoD.perController[arg1].mapCategory == CoD.CONTENT_MODS_INDEX then
|
if CoD.perController[arg1].mapCategory == CoD.CONTENT_MODS_INDEX then
|
||||||
if not Engine.IsUsingMods() then
|
if not Engine.IsUsingMods() then
|
||||||
LuaUtils.Mods_LoadMod("usermaps") -- LuaUtils.Mods_LoadMod(arg0.loadModName)
|
LuaUtils.Mods_LoadMod("usermaps") -- LuaUtils.Mods_LoadMod(arg0.loadModName)
|
||||||
@ -21,5 +21,5 @@ end
|
|||||||
|
|
||||||
function MapSelected(arg0, arg1)
|
function MapSelected(arg0, arg1)
|
||||||
SetMap(arg1, arg0.mapName, false)
|
SetMap(arg1, arg0.mapName, false)
|
||||||
MustLoadUsermaps( arg0, arg1 )
|
mustLoadUsermaps(arg0, arg1)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user