hedgewars/GSHandlers.inc
changeset 3146 53ba22975536
parent 3145 a9af6bf223cf
child 3149 08c4d9670b54
equal deleted inserted replaced
3145:a9af6bf223cf 3146:53ba22975536
  2831     end;
  2831     end;
  2832 
  2832 
  2833 if Gear^.Health < 0 then Gear^.Health:= 0;
  2833 if Gear^.Health < 0 then Gear^.Health:= 0;
  2834 if (GameTicks and $3F) = 0 then
  2834 if (GameTicks and $3F) = 0 then
  2835        begin
  2835        begin
  2836        if Gear^.Timer < 500 then
  2836        if Gear^.Health < 500 then
  2837          AddVisualGear(hwRound(Gear^.X), hwRound(Gear^.Y), vgtFeather);
  2837          AddVisualGear(hwRound(Gear^.X), hwRound(Gear^.Y), vgtFeather);
  2838        if Gear^.Tex <> nil then FreeTexture(Gear^.Tex);
  2838        if Gear^.Tex <> nil then FreeTexture(Gear^.Tex);
  2839        Gear^.Tex:= RenderStringTex(trmsg[sidFuel] + ': ' + inttostr(round(Gear^.Health / 20)) + '%', cWhiteColor, fntSmall)
  2839        Gear^.Tex:= RenderStringTex(trmsg[sidFuel] + ': ' + inttostr(round(Gear^.Health / 20)) + '%', cWhiteColor, fntSmall)
  2840        end;
  2840        end;
  2841 
  2841