hedgewars/HHHandlers.inc
changeset 522 ca089787f59d
parent 520 e83dfb7ffead
child 525 ae21b8e86dd9
equal deleted inserted replaced
521:bc8fd78d7598 522:ca089787f59d
   389    end else
   389    end else
   390    if Gear^.Health = 0 then
   390    if Gear^.Health = 0 then
   391       begin
   391       begin
   392       if AllInactive then
   392       if AllInactive then
   393          begin
   393          begin
       
   394          Gear^.State:= Gear^.State or gstNoDamage;
   394          doMakeExplosion(hwRound(Gear^.X), hwRound(Gear^.Y), 30, EXPLAutoSound);
   395          doMakeExplosion(hwRound(Gear^.X), hwRound(Gear^.Y), 30, EXPLAutoSound);
   395          AddGear(hwRound(Gear^.X), hwRound(Gear^.Y), gtGrave, 0, _0, _0, 0)^.Hedgehog:= Gear^.Hedgehog;
   396          AddGear(hwRound(Gear^.X), hwRound(Gear^.Y), gtGrave, 0, _0, _0, 0)^.Hedgehog:= Gear^.Hedgehog;
   396          DeleteGear(Gear);
   397          DeleteGear(Gear);
   397          SetAllToActive
   398          SetAllToActive
   398          end;
   399          end;