hedgewars/uGearsHedgehog.pas
changeset 11919 c9bad8a01185
parent 11918 232b57a70aca
child 11927 d0296b8e60c0
equal deleted inserted replaced
11918:232b57a70aca 11919:c9bad8a01185
  1216     if (Hedgehog^.CurAmmoType = amKnife) then
  1216     if (Hedgehog^.CurAmmoType = amKnife) then
  1217        LoadHedgehogHat(Hedgehog^, Hedgehog^.Hat);
  1217        LoadHedgehogHat(Hedgehog^, Hedgehog^.Hat);
  1218     if TagTurnTimeLeft = 0 then
  1218     if TagTurnTimeLeft = 0 then
  1219         TagTurnTimeLeft:= TurnTimeLeft;
  1219         TagTurnTimeLeft:= TurnTimeLeft;
  1220     TurnTimeLeft:= 0;
  1220     TurnTimeLeft:= 0;
       
  1221     if ((HHGear^.State and gstAttacked) = 0) and (HHGear^.Damage = 0) then
       
  1222         PlaySoundV(sndBoring, Hedgehog^.Team^.voicepack);
  1221     isCursorVisible:= false;
  1223     isCursorVisible:= false;
  1222     HHGear^.State:= HHGear^.State and (not (gstHHDriven or gstAnimation or gstAttacking));
  1224     HHGear^.State:= HHGear^.State and (not (gstHHDriven or gstAnimation or gstAttacking));
  1223     AttackBar:= 0;
  1225     AttackBar:= 0;
  1224     if HHGear^.Damage > 0 then
  1226     if HHGear^.Damage > 0 then
  1225         HHGear^.State:= HHGear^.State and (not (gstHHJumping or gstHHHJump));
  1227         HHGear^.State:= HHGear^.State and (not (gstHHJumping or gstHHHJump));