Added a layer to resolve the Client Bug problems in 1.5

This commit is contained in:
svenvandevelde
2016-02-19 14:35:59 +01:00
parent c81e7c2488
commit 61d51fe9a5
7 changed files with 165 additions and 32 deletions

View File

@@ -21,8 +21,10 @@ Include.Files = {}
Include.File = function( IncludeFile )
if not Include.Files[ IncludeFile ] then
Include.Files[IncludeFile] = IncludeFile
env.info( "Include:" .. IncludeFile .. " from " .. Include.ProgramPath )
local f = assert( base.loadfile( Include.ProgramPath .. IncludeFile .. ".lua" ) )
if f == nil then
env.info( "Include:" .. IncludeFile .. " from " .. Include.MissionPath )
local f = assert( base.loadfile( Include.MissionPath .. IncludeFile .. ".lua" ) )
if f == nil then
error ("Could not load MOOSE file " .. IncludeFile .. ".lua" )