hedgewars/uGearsHedgehog.pas
changeset 11922 d0296b8e60c0
parent 11914 c9bad8a01185
child 11939 c7ec309cd685
equal deleted inserted replaced
11921:b1782491f19c 11922:d0296b8e60c0
  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
  1221     if ((HHGear^.State and gstAttacked) = 0) and (HHGear^.Damage = 0) then
  1222         PlaySoundV(sndBoring, Hedgehog^.Team^.voicepack);
  1222         AddVoice(sndBoring, Hedgehog^.Team^.voicepack);
  1223     isCursorVisible:= false;
  1223     isCursorVisible:= false;
  1224     HHGear^.State:= HHGear^.State and (not (gstHHDriven or gstAnimation or gstAttacking));
  1224     HHGear^.State:= HHGear^.State and (not (gstHHDriven or gstAnimation or gstAttacking));
  1225     AttackBar:= 0;
  1225     AttackBar:= 0;
  1226     if HHGear^.Damage > 0 then
  1226     if HHGear^.Damage > 0 then
  1227         HHGear^.State:= HHGear^.State and (not (gstHHJumping or gstHHHJump));
  1227         HHGear^.State:= HHGear^.State and (not (gstHHJumping or gstHHHJump));