--- a/hedgewars/GSHandlers.inc Mon Nov 14 17:56:44 2011 -0500
+++ b/hedgewars/GSHandlers.inc Mon Nov 14 18:08:36 2011 -0500
@@ -3641,7 +3641,7 @@
begin
Gear^.Damage:= i;
//AddCaption('Fuel: '+inttostr(round(Gear^.Health/20))+'%', cWhiteColor, capgrpAmmostate);
- if Gear^.Tex <> nil then FreeTexture(Gear^.Tex);
+ FreeTexture(Gear^.Tex);
Gear^.Tex := RenderStringTex(trmsg[sidFuel] + ': ' + inttostr(i) +
'%', cWhiteColor, fntSmall)
end;
@@ -4685,7 +4685,7 @@
if (i <> Gear^.Damage) and ((GameTicks and $3F) = 0) then
begin
Gear^.Damage:= i;
- if Gear^.Tex <> nil then FreeTexture(Gear^.Tex);
+ FreeTexture(Gear^.Tex);
Gear^.Tex := RenderStringTex(trmsg[sidFuel] + ': ' + inttostr(i) +
'%', cWhiteColor, fntSmall)
end
@@ -4757,7 +4757,7 @@
if (i <> Gear^.Damage) and ((GameTicks and $3F) = 0) then
begin
Gear^.Damage:= i;
- if Gear^.Tex <> nil then FreeTexture(Gear^.Tex);
+ FreeTexture(Gear^.Tex);
Gear^.Tex := RenderStringTex(trmsg[sidFuel] + ': ' + inttostr(i) +
'%', cWhiteColor, fntSmall)
end