hedgewars/GSHandlers.inc
changeset 3146 53ba22975536
parent 3145 a9af6bf223cf
child 3149 08c4d9670b54
--- a/hedgewars/GSHandlers.inc	Sun Mar 28 23:10:33 2010 +0000
+++ b/hedgewars/GSHandlers.inc	Sun Mar 28 23:11:16 2010 +0000
@@ -2833,7 +2833,7 @@
 if Gear^.Health < 0 then Gear^.Health:= 0;
 if (GameTicks and $3F) = 0 then
        begin
-       if Gear^.Timer < 500 then
+       if Gear^.Health < 500 then
          AddVisualGear(hwRound(Gear^.X), hwRound(Gear^.Y), vgtFeather);
        if Gear^.Tex <> nil then FreeTexture(Gear^.Tex);
        Gear^.Tex:= RenderStringTex(trmsg[sidFuel] + ': ' + inttostr(round(Gear^.Health / 20)) + '%', cWhiteColor, fntSmall)