hedgewars/uGearsUtils.pas
changeset 8987 47cf32305d99
parent 8966 5ab59d79bc9a
child 8989 ae97ab6dcc70
--- a/hedgewars/uGearsUtils.pas	Mon May 13 23:31:03 2013 +0200
+++ b/hedgewars/uGearsUtils.pas	Mon May 13 22:40:32 2013 -0400
@@ -361,7 +361,7 @@
             else DeleteGear(Gear);
             exit
             end;
-        isSubmersible:= (Gear = CurrentHedgehog^.Gear) and (CurAmmoGear <> nil) and (CurAmmoGear^.AmmoType = amJetpack);
+        isSubmersible:= ((Gear = CurrentHedgehog^.Gear) and (CurAmmoGear <> nil) and (CurAmmoGear^.AmmoType = amJetpack)) or (Gear^.State and gstNoDrown <> 0);
         skipSpeed := _0_25;
         skipAngle := _1_9;
         skipDecay := _0_87;