Feather: wrong constant fix
authormbait
Sun, 28 Mar 2010 23:11:16 +0000
changeset 3146 53ba22975536
parent 3145 a9af6bf223cf
child 3147 3ef9ee196251
Feather: wrong constant fix
hedgewars/GSHandlers.inc
--- 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)