hedgewars/uCommandHandlers.pas
branch0.9.15
changeset 4746 3ae448aebe7e
parent 4744 ecc2c757d0df
child 4751 849740a91d36
equal deleted inserted replaced
4744:ecc2c757d0df 4746:3ae448aebe7e
    47     SendIPC('Q');
    47     SendIPC('Q');
    48     GameState:= gsExit
    48     GameState:= gsExit
    49     end
    49     end
    50 else
    50 else
    51     ParseCommand('chat team', true);
    51     ParseCommand('chat team', true);
       
    52 end;
       
    53 
       
    54 procedure chShutdown (var s: shortstring);
       
    55 begin
       
    56     s:= s; // avoid compiler hint
       
    57     SendIPC('H');
       
    58     GameState:= gsExit
    52 end;
    59 end;
    53 
    60 
    54 procedure chCheckProto(var s: shortstring);
    61 procedure chCheckProto(var s: shortstring);
    55 var i, c: LongInt;
    62 var i, c: LongInt;
    56 begin
    63 begin
   589     RegisterVariable('grave'   , vtCommand, @chGrave        , false);
   596     RegisterVariable('grave'   , vtCommand, @chGrave        , false);
   590     RegisterVariable('hat'     , vtCommand, @chSetHat       , false);
   597     RegisterVariable('hat'     , vtCommand, @chSetHat       , false);
   591     RegisterVariable('quit'    , vtCommand, @chQuit         , true );
   598     RegisterVariable('quit'    , vtCommand, @chQuit         , true );
   592     RegisterVariable('forcequit', vtCommand, @chForceQuit   , true );
   599     RegisterVariable('forcequit', vtCommand, @chForceQuit   , true );
   593     RegisterVariable('confirm' , vtCommand, @chConfirm      , true );
   600     RegisterVariable('confirm' , vtCommand, @chConfirm      , true );
       
   601     RegisterVariable('shutdown', vtCommand, @chShutdown     , true );
   594     RegisterVariable('+speedup', vtCommand, @chSpeedup_p    , true );
   602     RegisterVariable('+speedup', vtCommand, @chSpeedup_p    , true );
   595     RegisterVariable('-speedup', vtCommand, @chSpeedup_m    , true );
   603     RegisterVariable('-speedup', vtCommand, @chSpeedup_m    , true );
   596     RegisterVariable('zoomin'  , vtCommand, @chZoomIn       , true );
   604     RegisterVariable('zoomin'  , vtCommand, @chZoomIn       , true );
   597     RegisterVariable('zoomout' , vtCommand, @chZoomOut      , true );
   605     RegisterVariable('zoomout' , vtCommand, @chZoomOut      , true );
   598     RegisterVariable('zoomreset',vtCommand, @chZoomReset    , true );
   606     RegisterVariable('zoomreset',vtCommand, @chZoomReset    , true );