Merge pull request #6570 from jacobdufault/cleanup

Remove unnecessary conditionals
This commit is contained in:
Paul Chote
2014-09-28 10:39:39 +13:00

View File

@@ -63,9 +63,7 @@ namespace OpenRA.Mods.RA.Scripting
context.RegisterType(typeof(int2), "int2", true);
context.RegisterType(typeof(float2), "float2", true);
var sharedScripts = Game.modData.Manifest.LuaScripts ?? new string[0];
if (sharedScripts.Any())
context.LoadLuaScripts(f => GlobalFileSystem.Open(f).ReadAllText(), sharedScripts);
context.LoadLuaScripts(f => GlobalFileSystem.Open(f).ReadAllText(), Game.modData.Manifest.LuaScripts);
AddMapActorGlobals();