hedgewars/uGearsList.pas
changeset 7010 10a0a31804f3
parent 7001 89488f5b99ca
child 7028 0f60591f3a16
--- a/hedgewars/uGearsList.pas	Wed May 02 19:16:12 2012 -0400
+++ b/hedgewars/uGearsList.pas	Thu May 03 00:20:58 2012 -0400
@@ -148,7 +148,7 @@
                 gear^.Z:= cHHZ;
                 if (GameFlags and gfAISurvival) <> 0 then
                     if gear^.Hedgehog^.BotLevel > 0 then
-                        gear^.Hedgehog^.Effects[heResurrectable] := true;
+                        gear^.Hedgehog^.Effects[heResurrectable] := 0;
                 end;
        gtShell: begin
                 gear^.Radius:= 4;
@@ -541,8 +541,8 @@
 
         inc(KilledHHs);
         RecountTeamHealth(team);
-        if (CurrentHedgehog <> nil) and CurrentHedgehog^.Effects[heResurrectable] and
-        (not Gear^.Hedgehog^.Effects[heResurrectable]) then
+        if (CurrentHedgehog <> nil) and (CurrentHedgehog^.Effects[heResurrectable] <> 0)  and
+        (Gear^.Hedgehog^.Effects[heResurrectable] = 0) then
             with CurrentHedgehog^ do 
                 begin
                 inc(Team^.stats.AIKills);