# HG changeset patch
# User nemo
# Date 1270276757 0
# Node ID 5e21acf0c59a1cd70e5da611653866aaa972ca3f
# Parent  88139bfa63c84b69392c06879e1c1540fc5dce84
Add ApplyAmmoChanges to get text/animation/crosshairs

diff -r 88139bfa63c8 -r 5e21acf0c59a hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Sat Apr 03 06:29:24 2010 +0000
+++ b/hedgewars/GSHandlers.inc	Sat Apr 03 06:39:17 2010 +0000
@@ -957,6 +957,7 @@
     begin
     DeleteGear(Gear);
     isCursorVisible:= false;
+    ApplyAmmoChanges(PHedgehog(Gear^.Hedgehog)^);
     exit
     end;
 
@@ -1777,6 +1778,7 @@
         end;
     DeleteGear(Gear);
     isCursorVisible:= false;
+    ApplyAmmoChanges(PHedgehog(Gear^.Hedgehog)^);
     exit
     end;
 
@@ -2751,6 +2753,7 @@
         end;
     DeleteGear(Gear);
     isCursorVisible:= false;
+    ApplyAmmoChanges(PHedgehog(Gear^.Hedgehog)^);
 //    if Gear^.Tex <> nil then FreeTexture(Gear^.Tex);
 //    Gear^.Tex:= RenderStringTex(trmsg[sidFuel] + ': ' + inttostr(round(Gear^.Health / 20)) + '%', cWhiteColor, fntSmall)
     //AddCaption(trmsg[sidFuel]+': '+inttostr(round(Gear^.Health/20))+'%', cWhiteColor, capgrpAmmostate);