hedgewars/uGearsHedgehog.pas
changeset 11918 232b57a70aca
parent 11916 6145efcff302
child 11919 c9bad8a01185
equal deleted inserted replaced
11917:d3a852554aa7 11918:232b57a70aca
   557                 if TagTurnTimeLeft = 0 then
   557                 if TagTurnTimeLeft = 0 then
   558                     TagTurnTimeLeft:= TurnTimeLeft;
   558                     TagTurnTimeLeft:= TurnTimeLeft;
   559                 if (CurAmmoGear <> nil) and (CurAmmoGear^.State and gstSubmersible <> 0) and CheckCoordInWater(hwRound(CurAmmoGear^.X), hwRound(CurAmmoGear^.Y)) then
   559                 if (CurAmmoGear <> nil) and (CurAmmoGear^.State and gstSubmersible <> 0) and CheckCoordInWater(hwRound(CurAmmoGear^.X), hwRound(CurAmmoGear^.Y)) then
   560                      TurnTimeLeft:=(Ammoz[a].TimeAfterTurn * cGetAwayTime) div 25
   560                      TurnTimeLeft:=(Ammoz[a].TimeAfterTurn * cGetAwayTime) div 25
   561                 else TurnTimeLeft:=(Ammoz[a].TimeAfterTurn * cGetAwayTime) div 100;
   561                 else TurnTimeLeft:=(Ammoz[a].TimeAfterTurn * cGetAwayTime) div 100;
       
   562                 IsGetAwayTime := true;
   562                 end;
   563                 end;
   563             if ((Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) = 0) and (HHGear <> nil) then
   564             if ((Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) = 0) and (HHGear <> nil) then
   564                 HHGear^.State:= HHGear^.State or gstAttacked;
   565                 HHGear^.State:= HHGear^.State or gstAttacked;
   565             if (Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) <> 0 then
   566             if (Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) <> 0 then
   566                 ApplyAmmoChanges(CurrentHedgehog^)
   567                 ApplyAmmoChanges(CurrentHedgehog^)