hedgewars/uGearsList.pas
changeset 7730 2013733f9ca9
parent 7726 1137406bce12
child 7733 a1476c09403f
--- a/hedgewars/uGearsList.pas	Sun Oct 07 16:44:16 2012 -0400
+++ b/hedgewars/uGearsList.pas	Mon Oct 08 13:27:46 2012 -0400
@@ -104,14 +104,14 @@
 gear^.Density:= _1;
 // Define ammo association, if any.
 gear^.AmmoType:= GearKindAmmoTypeMap[Kind];
+gear^.CollisionMask:= $FFFF;
 
 if CurrentHedgehog <> nil then 
     begin
     gear^.Hedgehog:= CurrentHedgehog;
     if (CurrentHedgehog^.Gear <> nil) and (hwRound(CurrentHedgehog^.Gear^.X) = X) and (hwRound(CurrentHedgehog^.Gear^.Y) = Y) then
-        gear^.CollisionMask:= $FF7F;
-    end
-else gear^.CollisionMask:= $FFFF;
+        gear^.CollisionMask:= $FF7F
+    end;
 
 if (Ammoz[Gear^.AmmoType].Ammo.Propz and ammoprop_NeedTarget <> 0) then
     gear^.Z:= cHHZ+1
@@ -250,6 +250,7 @@
                 gear^.Density:= _1_6;
                 gear^.Timer:= 500;
                 end;
+       gtKnife: gear^.Radius:= 5;
         gtCase: begin
                 gear^.ImpactSound:= sndGraveImpact;
                 gear^.nImpactSounds:= 1;