Use different group to not erase messages, restore gear deletion on hog damage.
--- a/hedgewars/GSHandlers.inc Sun Jun 21 15:36:50 2009 +0000
+++ b/hedgewars/GSHandlers.inc Sun Jun 21 15:41:07 2009 +0000
@@ -2212,7 +2212,7 @@
dec(Gear^.Health, fuel div 5)
end;
if Gear^.Health < 0 then Gear^.Health:= 0;
-if (GameTicks and $3F) = 0 then AddCaption('Fuel: '+inttostr(round(Gear^.Health/20))+'%', $FFFFFF, capgrpMessage);
+if (GameTicks and $3F) = 0 then AddCaption('Fuel: '+inttostr(round(Gear^.Health/20))+'%', $FFFFFF, capgrpAmmostate);
//AddCaption(inttostr(round(Gear^.Health/20))+'% : '+inttostr(round(Gear^.Timer/1000)), $FFFFFF, capgrpMessage);
@@ -2224,6 +2224,7 @@
doStepHedgehogMoving(HHGear);
if (Gear^.Health = 0)
+ or (HHGear^.Damage <> 0)
or CheckGearDrowning(HHGear)
or ((Gear^.Message and gm_Attack) <> 0) then
begin
--- a/hedgewars/uConsts.pas Sun Jun 21 15:36:50 2009 +0000
+++ b/hedgewars/uConsts.pas Sun Jun 21 15:41:07 2009 +0000
@@ -105,7 +105,7 @@
THWFont = (fnt16, fntBig, fntSmall);
TCapGroup = (capgrpGameState, capgrpAmmoinfo, capgrpVolume,
- capgrpMessage);
+ capgrpMessage, capgrpAmmostate);
TStatInfoType = (siGameResult, siMaxStepDamage, siMaxStepKills, siKilledHHs,
siClanHealth);