hedgewars/uCommandHandlers.pas
changeset 7201 dc17ffdf0702
parent 7187 aff30d80bd7b
child 7411 efc75c2d3be9
--- a/hedgewars/uCommandHandlers.pas	Fri Jun 08 19:25:40 2012 +0200
+++ b/hedgewars/uCommandHandlers.pas	Mon Jun 25 10:46:48 2012 +0300
@@ -781,6 +781,11 @@
 fastUntilLag:= StrToInt(s) <> 0
 end;
 
+procedure chCampVar(var s:shortstring);
+begin
+  CampaignVariable := s;
+end;
+
 procedure initModule;
 begin
 //////// Begin top sorted by freq analysis not including chatmsg
@@ -864,6 +869,7 @@
     RegisterVariable('-cur_l'  , @chCurL_m       , true );
     RegisterVariable('+cur_r'  , @chCurR_p       , true );
     RegisterVariable('-cur_r'  , @chCurR_m       , true );
+    RegisterVariable('campvar' , @chCampVar      , true );
 end;
 
 procedure freeModule;