hedgewars/GSHandlers.inc
changeset 3145 a9af6bf223cf
parent 3143 682bc7f99c63
child 3146 53ba22975536
equal deleted inserted replaced
3144:f1ba655a6941 3145:a9af6bf223cf
  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
       
  2837          AddVisualGear(hwRound(Gear^.X), hwRound(Gear^.Y), vgtFeather);
  2836        if Gear^.Tex <> nil then FreeTexture(Gear^.Tex);
  2838        if Gear^.Tex <> nil then FreeTexture(Gear^.Tex);
  2837        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)
  2838        end;
  2840        end;
  2839 
  2841 
  2840 if (HHGear^.Message and gm_Attack <> 0) then begin
  2842 if (HHGear^.Message and gm_Attack <> 0) then begin