hedgewars/GSHandlers.inc
changeset 3431 e36dffdf7b82
parent 3428 46a2694867bc
child 3440 dee31c5149e0
equal deleted inserted replaced
3430:21c08c95a672 3431:e36dffdf7b82
  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)^)
       
  1943     AfterAttack;
  1940     AfterAttack;
  1944     end;
  1941     end;
  1945 
  1942 
  1946 HHGear^.State:= HHGear^.State and not (gstAttacking or gstAttacked);
  1943 HHGear^.State:= HHGear^.State and not (gstAttacking or gstAttacked);
  1947 HHGear^.Message:= HHGear^.Message and not gm_Attack;
  1944 HHGear^.Message:= HHGear^.Message and not gm_Attack;