--- a/hedgewars/HHHandlers.inc Wed Aug 25 12:28:37 2010 +0200
+++ b/hedgewars/HHHandlers.inc Wed Aug 25 21:06:34 2010 +0100
@@ -851,10 +851,14 @@
if not PHedgehog(Gear^.Hedgehog)^.Team^.hasGone then
begin
- Gear^.State:= Gear^.State or gstHHDeath;
- Gear^.doStep:= @doStepHedgehogDead;
- // Death message
- AddCaption(Format(GetEventString(eidDied), PHedgehog(Gear^.Hedgehog)^.Name), cWhiteColor, capgrpMessage);
+ if PHedgehog(Gear^.Hedgehog)^.Effects[heResurrectable] then begin
+ ResurrectHedgehog(Gear);
+ end else begin
+ Gear^.State:= Gear^.State or gstHHDeath;
+ Gear^.doStep:= @doStepHedgehogDead;
+ // Death message
+ AddCaption(Format(GetEventString(eidDied), PHedgehog(Gear^.Hedgehog)^.Name), cWhiteColor, capgrpMessage);
+ end;
end
else
begin