Engine:
authorsmaxx
Thu, 26 Aug 2010 22:58:38 +0200
changeset 3777 5276f2150d65
parent 3776 28849f5a03c9
child 3778 2e61bb50cc57
Engine: * Added cReadyDelay as "Ready" to console variables so it might be changed by frontend
hedgewars/uConsole.pas
hedgewars/uScript.pas
--- a/hedgewars/uConsole.pas	Thu Aug 26 22:41:36 2010 +0200
+++ b/hedgewars/uConsole.pas	Thu Aug 26 22:58:38 2010 +0200
@@ -225,6 +225,7 @@
     RegisterVariable('mapgen'  , vtLongInt, @cMapGen        , false);
     RegisterVariable('maze_size',vtLongInt, @cMazeSize      , false);
     RegisterVariable('delay'   , vtLongInt, @cInactDelay    , false);
+    RegisterVariable('ready'   , vtLongInt, @cReadyDelay    , false);
     RegisterVariable('casefreq', vtLongInt, @cCaseFactor    , false);
     RegisterVariable('sd_turns', vtLongInt, @cSuddenDTurns  , false);
     RegisterVariable('damagepct',vtLongInt, @cDamagePercent , false);
--- a/hedgewars/uScript.pas	Thu Aug 26 22:41:36 2010 +0200
+++ b/hedgewars/uScript.pas	Thu Aug 26 22:58:38 2010 +0200
@@ -801,12 +801,12 @@
 ParseCommand('$landadds ' + ScriptGetString('LandAdds'), true);
 ParseCommand('$explosives ' + ScriptGetString('Explosives'), true);
 ParseCommand('$delay ' + ScriptGetString('Delay'), true);
+ParseCommand('$ready ' + ScriptGetString('Ready'), true);
 ParseCommand('$sd_turns ' + ScriptGetString('SuddenDeathTurns'), true);
 if ScriptGetString('Map') <> '' then
     ParseCommand('map ' + ScriptGetString('Map'), true);
 if ScriptGetString('Theme') <> '' then
     ParseCommand('theme ' + ScriptGetString('Theme'), true);
-cReadyDelay:= ScriptGetInteger('Ready');
 
 if ScriptExists('onAmmoStoreInit') then
     begin