hedgewars/uGearsHandlersMess.pas
changeset 9305 8e5140875ab5
parent 9291 15f7bb217b66
child 9356 2f00db522065
equal deleted inserted replaced
9304:3f4c3fc146c2 9305:8e5140875ab5
  5247     i, t, gX, gY: LongInt;
  5247     i, t, gX, gY: LongInt;
  5248     hogs: PGearArrayS;
  5248     hogs: PGearArrayS;
  5249     vg: PVisualGear;
  5249     vg: PVisualGear;
  5250 begin
  5250 begin
  5251     HHGear := Gear^.Hedgehog^.Gear;
  5251     HHGear := Gear^.Hedgehog^.Gear;
  5252     if (Gear^.Message and gmAttack <> 0) or (Gear^.Health = 0) or (HHGear = nil) or (HHGear^.Damage <> 0) or (HHGear^.dX.QWordValue > 4294967)  then
  5252     if (Gear^.Message and gmAttack <> 0) or (HHGear = nil) or ((HHGear^.State and gstHHDriven) = 0) or (HHGear^.dX.QWordValue > 4294967)  then
  5253         begin
  5253         begin
  5254         StopSoundChan(Gear^.SoundChannel);
  5254         StopSoundChan(Gear^.SoundChannel);
  5255         DeleteGear(Gear);
  5255         DeleteGear(Gear);
  5256         AfterAttack;
  5256         AfterAttack;
  5257         exit
  5257         exit