hedgewars/uGears.pas
changeset 529 812682c1ab62
parent 522 ca089787f59d
child 531 1f6c6eb0ea02
equal deleted inserted replaced
528:54fd6924de4e 529:812682c1ab62
   355       end;
   355       end;
   356 end;
   356 end;
   357 
   357 
   358 procedure AddDamageTag(X, Y, Damage: LongWord; Gear: PGear);
   358 procedure AddDamageTag(X, Y, Damage: LongWord; Gear: PGear);
   359 begin
   359 begin
   360 AddGear(X, Y, gtSmallDamage, Damage, _0, _0, 0)^.Hedgehog:= Gear^.Hedgehog;
   360 if cAltDamage then
       
   361    AddGear(X, Y, gtSmallDamage, Damage, _0, _0, 0)^.Hedgehog:= Gear^.Hedgehog;
   361 end;
   362 end;
   362 
   363 
   363 procedure ProcessGears;
   364 procedure ProcessGears;
   364 const delay: LongInt = cInactDelay;
   365 const delay: LongInt = cInactDelay;
   365       step: (stDelay, stChDmg, stChWin, stSpawn, stNTurn) = stDelay;
   366       step: (stDelay, stChDmg, stChWin, stSpawn, stNTurn) = stDelay;