diff -r 7c6f9b6672dc -r 11c578d30bd3 hedgewars/uScript.pas --- a/hedgewars/uScript.pas Sun Nov 27 19:34:08 2011 +0300 +++ b/hedgewars/uScript.pas Sun Nov 27 23:13:22 2011 +0300 @@ -53,7 +53,7 @@ implementation {$IFNDEF LUA_DISABLED} -uses LuaPas in 'LuaPas.pas', +uses LuaPas, uConsole, uConsts, uVisualGears, @@ -1715,7 +1715,7 @@ procedure ScriptCall(fname : shortstring); begin -if not ScriptLoaded or not ScriptExists(fname) then +if not ScriptLoaded or (not ScriptExists(fname)) then exit; SetGlobals; lua_getglobal(luaState, Str2PChar(fname)); @@ -1763,7 +1763,7 @@ function ScriptCall(fname : shortstring; par1, par2, par3, par4 : LongInt) : LongInt; begin -if not ScriptLoaded or not ScriptExists(fname) then +if not ScriptLoaded or (not ScriptExists(fname)) then exit; SetGlobals; lua_getglobal(luaState, Str2PChar(fname));