hedgewars/uScript.pas
changeset 7771 ce6d4dd0c780
parent 7754 e81dc9bef8b8
child 7805 2a249a4faf5b
--- a/hedgewars/uScript.pas	Sat Oct 20 18:54:03 2012 +0400
+++ b/hedgewars/uScript.pas	Sat Oct 20 22:43:25 2012 -0400
@@ -1892,7 +1892,8 @@
 cWaterRise       := ScriptGetInteger('WaterRise');
 cHealthDecrease  := ScriptGetInteger('HealthDecrease');
 
-ParseCommand('map ' + ScriptGetString('Map'), true);
+if cMapName <> ScriptGetString('Map') then
+    ParseCommand('map ' + ScriptGetString('Map'), true);
 if ScriptGetString('Theme') <> '' then
     ParseCommand('theme ' + ScriptGetString('Theme'), true);
 LuaGoals:= ScriptGetString('Goals');