hedgewars/uCommandHandlers.pas
changeset 7411 efc75c2d3be9
parent 7409 fd91aa100ce0
parent 7201 dc17ffdf0702
child 7413 dbf6e803d5bc
--- a/hedgewars/uCommandHandlers.pas	Fri Jul 20 18:48:04 2012 -0400
+++ b/hedgewars/uCommandHandlers.pas	Thu Aug 30 12:13:24 2012 -0400
@@ -783,6 +783,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
@@ -866,6 +871,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;