hedgewars/GSHandlers.inc
changeset 4036 69e535a0e43a
parent 4035 3ed9573bcf5e
child 4038 8972dd38bbad
equal deleted inserted replaced
4035:3ed9573bcf5e 4036:69e535a0e43a
  4147                 resgear^.Health := graves[i]^.Health;
  4147                 resgear^.Health := graves[i]^.Health;
  4148                 PHedgehog(graves[i]^.Hedgehog)^.Gear := resgear;
  4148                 PHedgehog(graves[i]^.Hedgehog)^.Gear := resgear;
  4149                 DeleteGear(graves[i]);
  4149                 DeleteGear(graves[i]);
  4150                 RenderHealth(PHedgehog(resgear^.Hedgehog)^);
  4150                 RenderHealth(PHedgehog(resgear^.Hedgehog)^);
  4151                 RecountTeamHealth(Phedgehog(resgear^.Hedgehog)^.Team);
  4151                 RecountTeamHealth(Phedgehog(resgear^.Hedgehog)^.Team);
       
  4152                 PHedgehog(resgear^.Hedgehog)^.Effects[heResurrected]:= true;
  4152                 if PHedgehog(resgear^.Hedgehog)^.Hat = 'NoHat' then
  4153                 if PHedgehog(resgear^.Hedgehog)^.Hat = 'NoHat' then
  4153                     begin
  4154                     begin
  4154                     FreeTexture(PHedgehog(resgear^.Hedgehog)^.HatTex);
  4155                     FreeTexture(PHedgehog(resgear^.Hedgehog)^.HatTex);
  4155                     PHedgehog(resgear^.Hedgehog)^.HatTex := Surface2Tex(
  4156                     PHedgehog(resgear^.Hedgehog)^.HatTex := Surface2Tex(
  4156                         LoadImage(Pathz[ptHats] + '/Reserved/Zombie', ifNone),
  4157                         LoadImage(Pathz[ptHats] + '/Reserved/Zombie', ifNone),