hedgewars/CCHandlers.inc
changeset 2079 f188ec7c450b
parent 2046 57fb5673ff17
child 2110 df2a1fe3617a
equal deleted inserted replaced
2078:2c7353ca43c9 2079:f188ec7c450b
   280 begin
   280 begin
   281 if CheckNoTeamOrHH then exit;
   281 if CheckNoTeamOrHH then exit;
   282 bShowFinger:= false;
   282 bShowFinger:= false;
   283 with CurrentHedgehog^.Gear^ do
   283 with CurrentHedgehog^.Gear^ do
   284      begin
   284      begin
   285      {$IFDEF DEBUGFILE}AddFileLog('/+attack: Gear^.State = '+inttostr(State));{$ENDIF}
   285      {$IFDEF DEBUGFILE}AddFileLog('/+attack: hedgehog''s Gear^.State = '+inttostr(State));{$ENDIF}
   286      if ((State and gstHHDriven) <> 0) then
   286      if ((State and gstHHDriven) <> 0) then
   287         begin
   287         begin
   288         FollowGear:= CurrentHedgehog^.Gear;
   288         FollowGear:= CurrentHedgehog^.Gear;
   289         if not CurrentTeam^.ExtDriven then SendIPC('A');
   289         if not CurrentTeam^.ExtDriven then SendIPC('A');
   290         Message:= Message or gm_Attack
   290         Message:= Message or gm_Attack