hedgewars/GSHandlers.inc
changeset 3424 5543340db663
parent 3423 39e3c8f2e52a
child 3428 46a2694867bc
equal deleted inserted replaced
3423:39e3c8f2e52a 3424:5543340db663
  1935     DeleteGear(Gear)
  1935     DeleteGear(Gear)
  1936     end
  1936     end
  1937 else begin
  1937 else begin
  1938     PlaySound(sndPlaced);
  1938     PlaySound(sndPlaced);
  1939     DeleteGear(Gear);
  1939     DeleteGear(Gear);
       
  1940     //Using these two instead means girder stays active without needing to reselect it
       
  1941     //OnUsedAmmo(PHedgehog(HHGear^.Hedgehog)^);
       
  1942     //ApplyAmmoChanges(PHedgehog(HHGear^.Hedgehog)^)
  1940     AfterAttack;
  1943     AfterAttack;
  1941     end;
  1944     end;
  1942 
  1945 
  1943 HHGear^.State:= HHGear^.State and not (gstAttacking or gstAttacked);
  1946 HHGear^.State:= HHGear^.State and not (gstAttacking or gstAttacked);
  1944 HHGear^.Message:= HHGear^.Message and not gm_Attack;
  1947 HHGear^.Message:= HHGear^.Message and not gm_Attack;