hedgewars/uScript.pas
changeset 6453 11c578d30bd3
parent 6430 93eefff23bcd
child 6468 da1e7fe7cff7
--- 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));