hedgewars/uGearsUtils.pas
changeset 7754 e81dc9bef8b8
parent 7721 2b1ad418ba39
child 7767 d1ea9b3f543e
--- a/hedgewars/uGearsUtils.pas	Sun Oct 14 00:22:33 2012 +0400
+++ b/hedgewars/uGearsUtils.pas	Sun Oct 14 13:35:15 2012 -0400
@@ -105,6 +105,7 @@
                 gtCase,
                 gtTarget,
                 gtFlame,
+                gtKnife,
                 gtExplosives,
                 gtStructure: begin
 // Run the calcs only once we know we have a type that will need damage
@@ -130,6 +131,7 @@
                                 Gear^.dY:= Gear^.dY + SignAs(_0_005 * dmg + cHHKick, tdY)/(Gear^.Density/_3);
 
                                 Gear^.State:= (Gear^.State or gstMoving) and (not gstLoser);
+                                if Gear^.Kind = gtKnife then Gear^.State:= Gear^.State and not gstCollision;
                                 if not Gear^.Invulnerable then
                                     Gear^.State:= (Gear^.State or gstMoving) and (not gstWinner);
                                 Gear^.Active:= true;