hedgewars/GSHandlers.inc
changeset 3403 244382ea33c2
parent 3401 d5d31d16eccc
child 3404 d445798e5fe2
equal deleted inserted replaced
3402:b1fbf50da522 3403:244382ea33c2
  2018 if ((Gear^.Message and not gm_Switch) <> 0) or (TurnTimeLeft = 0) then
  2018 if ((Gear^.Message and not gm_Switch) <> 0) or (TurnTimeLeft = 0) then
  2019     begin
  2019     begin
  2020     HHGear:= PHedgehog(Gear^.Hedgehog)^.Gear;
  2020     HHGear:= PHedgehog(Gear^.Hedgehog)^.Gear;
  2021     Msg:= Gear^.Message and not gm_Switch;
  2021     Msg:= Gear^.Message and not gm_Switch;
  2022     DeleteGear(Gear);
  2022     DeleteGear(Gear);
  2023     AfterAttack;
  2023     OnUsedAmmo(PHedgehog(HHGear^.Hedgehog)^);
       
  2024     ApplyAmmoChanges(PHedgehog(HHGear^.Hedgehog)^);
  2024 
  2025 
  2025     HHGear:= CurrentHedgehog^.Gear;
  2026     HHGear:= CurrentHedgehog^.Gear;
  2026     ApplyAmmoChanges(PHedgehog(HHGear^.Hedgehog)^);
  2027     ApplyAmmoChanges(PHedgehog(HHGear^.Hedgehog)^);
  2027     HHGear^.Message:= Msg;
  2028     HHGear^.Message:= Msg;
  2028     exit
  2029     exit