Use Frame instead of State for the health flag
authornemo
Mon, 15 Aug 2011 12:47:53 -0400
changeset 5574 3d7438991ed8
parent 5573 cc409ee3ad2e
child 5575 41ee1c71deb3
Use Frame instead of State for the health flag
hedgewars/uVisualGears.pas
--- a/hedgewars/uVisualGears.pas	Mon Aug 15 20:31:31 2011 +0400
+++ b/hedgewars/uVisualGears.pas	Mon Aug 15 12:47:53 2011 -0400
@@ -280,7 +280,8 @@
                 Frame:= 1
                 end;
   vgtHealthTag: begin
-                gear^.Timer:= 1500;
+                Frame:= 0;
+                Timer:= 1500;
                 //gear^.Z:= 2002;
                 end;
   vgtSmokeTrace,
@@ -479,7 +480,7 @@
             vgtSmallDamageTag: DrawCentered(round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, Gear^.Tex);
             vgtHealthTag: if Gear^.Tex <> nil then 
                             begin
-                            if Gear^.State = 0 then 
+                            if Gear^.Frame = 0 then 
                                 DrawCentered(round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, Gear^.Tex)
                             else
                                 begin