Also switch saucer from updating every N ticks to updating as-needed.
--- a/hedgewars/GSHandlers.inc Fri Nov 12 12:25:38 2010 -0500
+++ b/hedgewars/GSHandlers.inc Fri Nov 12 12:30:22 2010 -0500
@@ -3059,11 +3059,13 @@
end;
if Gear^.Health < 0 then Gear^.Health := 0;
- if (GameTicks and $3F) = 0 then
+ i:= Gear^.Health div 20;
+ if i <> Gear^.Damage then
begin
+ Gear^.Damage:= i;
//AddCaption('Fuel: '+inttostr(round(Gear^.Health/20))+'%', cWhiteColor, capgrpAmmostate);
if Gear^.Tex <> nil then FreeTexture(Gear^.Tex);
- Gear^.Tex := RenderStringTex(trmsg[sidFuel] + ': ' + inttostr(round(Gear^.Health / 20)) +
+ Gear^.Tex := RenderStringTex(trmsg[sidFuel] + ': ' + inttostr(i) +
'%', cWhiteColor, fntSmall)
end;
--- a/hedgewars/uGears.pas Fri Nov 12 12:25:38 2010 -0500
+++ b/hedgewars/uGears.pas Fri Nov 12 12:30:22 2010 -0500
@@ -494,6 +494,7 @@
end;
gtJetpack: begin
gear^.Health:= 2000;
+ gear^.Damage:= 100
end;
gtMolotov: begin
gear^.Radius:= 6;