# HG changeset patch # User nemo # Date 1361837981 18000 # Node ID d18bc19d780abdc4b3abae91e274cf6ccf3f3ea3 # Parent d2bfe0683b9a76df5afbbe4b038ed9e0694d527b graphics tweak. flag a couple more overeager setall HH diff -r d2bfe0683b9a -r d18bc19d780a hedgewars/GSHandlers.inc --- a/hedgewars/GSHandlers.inc Mon Feb 25 13:51:45 2013 -0500 +++ b/hedgewars/GSHandlers.inc Mon Feb 25 19:19:41 2013 -0500 @@ -1783,7 +1783,7 @@ Gear^.Y := Gear^.Y + Gear^.dY; if (not Gear^.dY.isNegative) and (Gear^.dY > _0_001) then - SetAllHHToActive; + SetAllHHToActive(false); if (not Gear^.dY.isNegative) and (TestCollisionYwithGear(Gear, 1) <> 0) then begin diff -r d2bfe0683b9a -r d18bc19d780a hedgewars/uLandGraphics.pas --- a/hedgewars/uLandGraphics.pas Mon Feb 25 13:51:45 2013 -0500 +++ b/hedgewars/uLandGraphics.pas Mon Feb 25 19:19:41 2013 -0500 @@ -350,7 +350,7 @@ else LandPixels[t div 2, i div 2]:= ExplosionBorderColor; - Land[t, i]:= Land[t, i] or lfDamaged; + Land[t, i]:= (Land[t, i] or lfDamaged) and not lfIce; //Despeckle(i, t); LandDirty[t div 32, i div 32]:= 1; end; @@ -364,7 +364,7 @@ LandPixels[t, i]:= ExplosionBorderColor else LandPixels[t div 2, i div 2]:= ExplosionBorderColor; - Land[t, i]:= Land[t, i] or lfDamaged; + Land[t, i]:= (Land[t, i] or lfDamaged) and not lfIce; //Despeckle(i, t); LandDirty[t div 32, i div 32]:= 1; end; @@ -379,7 +379,7 @@ else LandPixels[t div 2, i div 2]:= ExplosionBorderColor; - Land[t, i]:= Land[t, i] or lfDamaged; + Land[t, i]:= (Land[t, i] or lfDamaged) and not lfIce; //Despeckle(i, t); LandDirty[t div 32, i div 32]:= 1; end; @@ -394,7 +394,7 @@ else LandPixels[t div 2, i div 2]:= ExplosionBorderColor; - Land[t, i]:= Land[t, i] or lfDamaged; + Land[t, i]:= (Land[t, i] or lfDamaged) and not lfIce; //Despeckle(i, y - dy); LandDirty[t div 32, i div 32]:= 1; end; @@ -525,7 +525,7 @@ else LandPixels[ty div 2, tx div 2]:= ExplosionBorderColor; - Land[ty, tx]:= Land[ty, tx] or lfDamaged; + Land[ty, tx]:= (Land[ty, tx] or lfDamaged) and not lfIce; LandDirty[ty div 32, tx div 32]:= 1; end; inc(y, dY) @@ -567,6 +567,7 @@ and ((tx and LAND_WIDTH_MASK) = 0) and (((Land[ty, tx] and lfBasic) <> 0) or ((Land[ty, tx] and lfObject) <> 0)) then begin + Land[ty, tx]:= Land[ty, tx] and not lfIce; if despeckle then begin Land[ty, tx]:= Land[ty, tx] or lfDamaged; @@ -595,7 +596,7 @@ if ((ty and LAND_HEIGHT_MASK) = 0) and ((tx and LAND_WIDTH_MASK) = 0) and (((Land[ty, tx] and lfBasic) <> 0) or ((Land[ty, tx] and lfObject) <> 0)) then begin - Land[ty, tx]:= Land[ty, tx] or lfDamaged; + Land[ty, tx]:= (Land[ty, tx] or lfDamaged) and not lfIce; if despeckle then LandDirty[ty div 32, tx div 32]:= 1; if (cReducedQuality and rqBlurryLand) = 0 then @@ -638,7 +639,7 @@ if ((ty and LAND_HEIGHT_MASK) = 0) and ((tx and LAND_WIDTH_MASK) = 0) and (((Land[ty, tx] and lfBasic) <> 0) or ((Land[ty, tx] and lfObject) <> 0)) then begin - Land[ty, tx]:= Land[ty, tx] or lfDamaged; + Land[ty, tx]:=( Land[ty, tx] or lfDamaged) and not lfIce; if despeckle then LandDirty[ty div 32, tx div 32]:= 1; if (cReducedQuality and rqBlurryLand) = 0 then @@ -664,7 +665,7 @@ if ((ty and LAND_HEIGHT_MASK) = 0) and ((tx and LAND_WIDTH_MASK) = 0) and (((Land[ty, tx] and lfBasic) <> 0) or ((Land[ty, tx] and lfObject) <> 0)) then begin - Land[ty, tx]:= Land[ty, tx] or lfDamaged; + Land[ty, tx]:= (Land[ty, tx] or lfDamaged) and not lfIce; if despeckle then LandDirty[ty div 32, tx div 32]:= 1; if (cReducedQuality and rqBlurryLand) = 0 then