--- a/hedgewars/uTeams.pas Thu Jun 27 15:51:20 2013 +0400
+++ b/hedgewars/uTeams.pas Thu Jun 27 14:01:43 2013 -0400
@@ -126,7 +126,7 @@
DeleteCI(Gear);
FindPlace(Gear, false, 0, LAND_WIDTH);
if Gear <> nil then
- AddGearCI(Gear)
+ AddCI(Gear)
end
end;
@@ -504,7 +504,7 @@
HH^.GearHidden:= nil;
InsertGearToList(HH^.Gear);
HH^.Gear^.State:= (HH^.Gear^.State and (not (gstHHDriven or gstInvisible or gstAttacking))) or gstAttacked;
- AddGearCI(HH^.Gear);
+ AddCI(HH^.Gear);
HH^.Gear^.Active:= true;
ScriptCall('onHogRestore', HH^.Gear^.Uid)
end;
@@ -688,8 +688,8 @@
CurrentHedgehog:= newHog;
if (CurrentHedgehog <> nil) and (CurrentHedgehog^.CurAmmoType = amKnife) then
LoadHedgehogHat(CurrentHedgehog^, 'Reserved/chef');
- if oldCI then AddGearCI(oldHH^.Gear);
- if newCI then AddGearCI(newHog^.Gear)
+ if oldCI then AddCI(oldHH^.Gear);
+ if newCI then AddCI(newHog^.Gear)
end;