--- 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;