hedgewars/uCommandHandlers.pas
changeset 9902 eb8e8b09b2f0
parent 9797 1fdc1507e42d
child 9950 2759212a27de
child 9985 42cd42e44c9a
--- a/hedgewars/uCommandHandlers.pas	Wed Jan 01 13:42:38 2014 +0400
+++ b/hedgewars/uCommandHandlers.pas	Wed Jan 01 14:16:01 2014 +0400
@@ -119,6 +119,11 @@
 ScriptLoad(s)
 end;
 
+procedure chScriptParam(var s: shortstring);
+begin
+    cScriptParam:= s;
+end;
+
 procedure chCurU_p(var s: shortstring);
 begin
 s:= s; // avoid compiler hint
@@ -796,6 +801,7 @@
 //////// End top by freq analysis
     RegisterVariable('gencmd'  , @chGenCmd       , false);
     RegisterVariable('script'  , @chScript       , false);
+    RegisterVariable('scriptparam', @chScriptParam, false);
     RegisterVariable('proto'   , @chCheckProto   , true );
     RegisterVariable('spectate', @chFastUntilLag   , false);
     RegisterVariable('capture' , @chCapture      , true );