hedgewars/uGearsHandlersMess.pas
changeset 9305 8e5140875ab5
parent 9291 15f7bb217b66
child 9356 2f00db522065
--- a/hedgewars/uGearsHandlersMess.pas	Sat Jun 29 23:58:37 2013 +0400
+++ b/hedgewars/uGearsHandlersMess.pas	Sun Jun 30 21:37:29 2013 -0400
@@ -5249,7 +5249,7 @@
     vg: PVisualGear;
 begin
     HHGear := Gear^.Hedgehog^.Gear;
-    if (Gear^.Message and gmAttack <> 0) or (Gear^.Health = 0) or (HHGear = nil) or (HHGear^.Damage <> 0) or (HHGear^.dX.QWordValue > 4294967)  then
+    if (Gear^.Message and gmAttack <> 0) or (HHGear = nil) or ((HHGear^.State and gstHHDriven) = 0) or (HHGear^.dX.QWordValue > 4294967)  then
         begin
         StopSoundChan(Gear^.SoundChannel);
         DeleteGear(Gear);