hedgewars/uGearsUtils.pas
changeset 13148 ec165591a1ee
parent 12937 a84a05719454
child 13318 9071600f7b22
equal deleted inserted replaced
13147:7040506c831f 13148:ec165591a1ee
  1271         Gear^.Hedgehog^.Effects[heFrozen]:= max(255,Gear^.Hedgehog^.Effects[heFrozen]-10000);
  1271         Gear^.Hedgehog^.Effects[heFrozen]:= max(255,Gear^.Hedgehog^.Effects[heFrozen]-10000);
  1272     tmpDmg:= ModifyDamage(Damage, Gear);
  1272     tmpDmg:= ModifyDamage(Damage, Gear);
  1273     if (Gear^.State and gstNoDamage) = 0 then
  1273     if (Gear^.State and gstNoDamage) = 0 then
  1274         begin
  1274         begin
  1275 
  1275 
  1276         if (Ammo^.Kind = gtDEagleShot) or (Ammo^.Kind = gtSniperRifleShot)
  1276         if (Gear^.Kind <> gtMinigun) and
  1277         or (Ammo^.Kind = gtMinigunBullet) then
  1277             ((Ammo^.Kind = gtDEagleShot)
       
  1278                 or (Ammo^.Kind = gtSniperRifleShot)
       
  1279                 or (Ammo^.Kind = gtMinigunBullet)) then
  1278             begin
  1280             begin
  1279             VGear := AddVisualGear(t^.cX[i], t^.cY[i], vgtBulletHit);
  1281             VGear := AddVisualGear(t^.cX[i], t^.cY[i], vgtBulletHit);
  1280             if VGear <> nil then
  1282             if VGear <> nil then
  1281                 VGear^.Angle := DxDy2Angle(-Ammo^.dX, Ammo^.dY);
  1283                 VGear^.Angle := DxDy2Angle(-Ammo^.dX, Ammo^.dY);
  1282             end;
  1284             end;