hedgewars/uGearsHandlersMess.pas
changeset 9356 2f00db522065
parent 9305 8e5140875ab5
child 9362 c9fdf8a3baf0
equal deleted inserted replaced
9351:09115096c7d6 9356:2f00db522065
  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 (HHGear = nil) or ((HHGear^.State and gstHHDriven) = 0) or (HHGear^.dX.QWordValue > 4294967)  then
  5252     if (Gear^.Message and gmAttack <> 0) or (Gear^.Health = 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