hedgewars/uGearsUtils.pas
changeset 10634 35d059bd0932
parent 10558 b574f04c9685
child 10653 ae9ad7735690
equal deleted inserted replaced
10633:2f062fac5791 10634:35d059bd0932
   698     if (CurrentHedgehog^.Effects[heResurrectable] = 0) or ((CurrentHedgehog^.Effects[heResurrectable] <> 0)
   698     if (CurrentHedgehog^.Effects[heResurrectable] = 0) or ((CurrentHedgehog^.Effects[heResurrectable] <> 0)
   699           and (Gear^.Hedgehog^.Team^.Clan <> CurrentHedgehog^.Team^.Clan)) then
   699           and (Gear^.Hedgehog^.Team^.Clan <> CurrentHedgehog^.Team^.Clan)) then
   700         with CurrentHedgehog^ do
   700         with CurrentHedgehog^ do
   701             begin
   701             begin
   702             inc(Team^.stats.AIKills);
   702             inc(Team^.stats.AIKills);
   703             FreeTexture(Team^.AIKillsTex);
   703             FreeAndNilTexture(Team^.AIKillsTex);
   704             Team^.AIKillsTex := RenderStringTex(ansistring(inttostr(Team^.stats.AIKills)), Team^.Clan^.Color, fnt16);
   704             Team^.AIKillsTex := RenderStringTex(ansistring(inttostr(Team^.stats.AIKills)), Team^.Clan^.Color, fnt16);
   705             end;
   705             end;
   706     tempTeam := gear^.Hedgehog^.Team;
   706     tempTeam := gear^.Hedgehog^.Team;
   707     DeleteCI(gear);
   707     DeleteCI(gear);
   708     gX := hwRound(gear^.X);
   708     gX := hwRound(gear^.X);