hedgewars/uScript.pas
branch0.9.17
changeset 6358 eef73add0973
parent 6339 2a3925178178
child 6380 1ff5ad1d771b
--- a/hedgewars/uScript.pas	Sun Nov 13 12:30:32 2011 -0500
+++ b/hedgewars/uScript.pas	Sun Nov 13 12:45:54 2011 -0500
@@ -1616,7 +1616,7 @@
 ScriptSetInteger('SuddenDeathTurns', cSuddenDTurns);
 ScriptSetInteger('WaterRise', cWaterRise);
 ScriptSetInteger('HealthDecrease', cHealthDecrease);
-ScriptSetString('Map', '');
+ScriptSetString('Map', 'CHANGE_ME');
 ScriptSetString('Theme', '');
 ScriptSetString('Goals', '');
 
@@ -1642,7 +1642,8 @@
 cWaterRise       := ScriptGetInteger('WaterRise');
 cHealthDecrease  := ScriptGetInteger('HealthDecrease');
 
-ParseCommand('map ' + ScriptGetString('Map'), true);
+if ScriptGetString('Map') <> 'CHANGE_ME' then
+    ParseCommand('map ' + ScriptGetString('Map'), true);
 if ScriptGetString('Theme') <> '' then
     ParseCommand('theme ' + ScriptGetString('Theme'), true);
 LuaGoals:= ScriptGetString('Goals');