hedgewars/uGears.pas
branchicegun
changeset 8563 4d9d8287e601
parent 8492 67d2ad3b3ce9
child 8574 684169401a2f
--- a/hedgewars/uGears.pas	Sun Feb 24 21:44:40 2013 -0500
+++ b/hedgewars/uGears.pas	Sun Feb 24 23:07:46 2013 -0500
@@ -765,6 +765,8 @@
     begin
     dec(i);
     Gear:= t^.ar[i];
+    if (Ammo^.Kind = gtFlame) and (Gear^.Kind = gtHedgehog) and (Gear^.Hedgehog^.Effects[heFrozen] > 255) then
+        Gear^.Hedgehog^.Effects[heFrozen]:= max(255,Gear^.Hedgehog^.Effects[heFrozen]-10000);
     tmpDmg:= ModifyDamage(Damage, Gear);
     if (Gear^.State and gstNoDamage) = 0 then
         begin
@@ -779,6 +781,7 @@
         if (Gear^.Kind = gtHedgehog) and (Ammo^.State and gsttmpFlag <> 0) and (Ammo^.Kind = gtShover) then
             Gear^.FlightTime:= 1;
 
+
         case Gear^.Kind of
             gtHedgehog,
             gtMine,