hedgewars/uCommandHandlers.pas
changeset 14770 533ac9774279
parent 14702 bd43e703608b
child 14916 d4a19bf6687e
--- a/hedgewars/uCommandHandlers.pas	Wed Apr 03 13:00:05 2019 +0200
+++ b/hedgewars/uCommandHandlers.pas	Sun Apr 07 18:21:14 2019 +0200
@@ -939,6 +939,12 @@
     HideMission();
 end;
 
+procedure chGearInfo(var s: shortstring);
+begin
+  s:= s; // avoid compiler hint
+  isShowGearInfo:= not isShowGearInfo;
+end;
+
 procedure initModule;
 begin
 //////// Begin top sorted by freq analysis not including chatmsg
@@ -1031,6 +1037,7 @@
     RegisterVariable('advmapgen',@chAdvancedMapGenMode, false);
     RegisterVariable('+mission', @chShowMission_p, true);
     RegisterVariable('-mission', @chShowMission_m, true);
+    RegisterVariable('gearinfo', @chGearInfo     , true );
     RegisterVariable('timer_u' , @chTimerU       , true );
 end;