--- a/hedgewars/uCommandHandlers.pas Wed Oct 05 22:57:42 2011 +0400
+++ b/hedgewars/uCommandHandlers.pas Thu Oct 06 00:11:55 2011 +0400
@@ -451,11 +451,13 @@
procedure chSetMap(var s: shortstring);
begin
if isDeveloperMode then
-begin
-UserPathz[ptMapCurrent]:= UserPathz[ptMaps] + '/' + s;
-Pathz[ptMapCurrent]:= Pathz[ptMaps] + '/' + s;
-InitStepsFlags:= InitStepsFlags or cifMap
-end
+ begin
+ UserPathz[ptMapCurrent]:= UserPathz[ptMaps] + '/' + s;
+ Pathz[ptMapCurrent]:= Pathz[ptMaps] + '/' + s;
+ InitStepsFlags:= InitStepsFlags or cifMap
+ end;
+
+ScriptLoad(s)
end;
procedure chSetTheme(var s: shortstring);