hedgewars/uCommandHandlers.pas
changeset 13726 61095cb5f58a
parent 13647 3d14950641a4
child 13772 2e8b3081cf80
--- a/hedgewars/uCommandHandlers.pas	Fri Aug 31 16:51:33 2018 +0200
+++ b/hedgewars/uCommandHandlers.pas	Fri Aug 31 18:15:45 2018 +0200
@@ -113,7 +113,7 @@
 if s[byte(s[0])]='"' then
     Delete(s, byte(s[0]), 1);
 cScriptName:= s;
-ScriptLoad(s)
+ScriptLoad(s, true)
 end;
 
 procedure chScriptParam(var s: shortstring);
@@ -536,7 +536,7 @@
     InitStepsFlags:= InitStepsFlags or cifMap
     end;
 cMapName:= s;
-ScriptLoad('Maps/' + s + '/map.lua')
+ScriptLoad('Maps/' + s + '/map.lua', false)
 end;
 
 procedure chSetTheme(var s: shortstring);