oops 0.9.17
authornemo
Sun, 13 Nov 2011 12:45:54 -0500
branch0.9.17
changeset 6358 eef73add0973
parent 6356 9bda193d02d8
child 6359 37bb74f0dae9
oops
hedgewars/uScript.pas
--- 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');