hedgewars/uGears.pas
changeset 2792 a3efbf1c4500
parent 2790 83630d5f94db
child 2801 24739a3bf5e3
equal deleted inserted replaced
2791:ac4b69e5f9f7 2792:a3efbf1c4500
   423                 end;
   423                 end;
   424      end;
   424      end;
   425 InsertGearToList(gear);
   425 InsertGearToList(gear);
   426 AddGear:= gear;
   426 AddGear:= gear;
   427 
   427 
   428 ScriptCall('onGearAdd', LongInt(gear));
   428 ScriptCall('onGearAdd', gear^.uid);
   429 end;
   429 end;
   430 
   430 
   431 procedure DeleteGear(Gear: PGear);
   431 procedure DeleteGear(Gear: PGear);
   432 var team: PTeam;
   432 var team: PTeam;
   433 	t,i: Longword;
   433 	t,i: Longword;
   434     k: boolean;
   434     k: boolean;
   435 begin
   435 begin
   436 
   436 
   437 ScriptCall('onGearDelete', LongInt(gear));
   437 ScriptCall('onGearDelete', gear^.uid);
   438 
   438 
   439 DeleteCI(Gear);
   439 DeleteCI(Gear);
   440 
   440 
   441 if Gear^.Tex <> nil then
   441 if Gear^.Tex <> nil then
   442 	begin
   442 	begin