Engine:
* Added cReadyDelay as "Ready" to console variables so it might be changed by frontend
--- 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