hedgewars/uGearsHandlersMess.pas
changeset 13157 34ca90c2ffad
parent 13156 deab88f1f6f7
child 13158 2a53b598c1ae
--- a/hedgewars/uGearsHandlersMess.pas	Fri Mar 09 23:34:46 2018 +0100
+++ b/hedgewars/uGearsHandlersMess.pas	Sat Mar 10 00:54:00 2018 +0100
@@ -1130,11 +1130,18 @@
 procedure doStepShotIdle(Gear: PGear);
 begin
     AllInactive := false;
-    inc(Gear^.Timer);
-    if Gear^.Timer > 75 then
+    if (Gear^.Kind <> gtMinigunBullet) then
+        begin
+        inc(Gear^.Timer);
+        if Gear^.Timer > 75 then
+            begin
+            DeleteGear(Gear);
+            AfterAttack
+            end
+        end
+    else
         begin
         DeleteGear(Gear);
-        AfterAttack
         end
 end;