Add ApplyAmmoChanges to get text/animation/crosshairs
authornemo
Sat, 03 Apr 2010 06:39:17 +0000
changeset 3280 5e21acf0c59a
parent 3279 88139bfa63c8
child 3281 2f3be13e1140
Add ApplyAmmoChanges to get text/animation/crosshairs
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);