tweak to avoid jaggies
authornemo
Fri, 02 Sep 2011 19:06:05 -0400
changeset 5744 746de1d303d2
parent 5743 d4c12b7c7bb9
child 5745 71e69623be39
tweak to avoid jaggies
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Fri Sep 02 16:15:37 2011 -0400
+++ b/hedgewars/uGears.pas	Fri Sep 02 19:06:05 2011 -0400
@@ -944,7 +944,7 @@
             end;
         if delay2 = 0 then
             begin
-            if (CurrentHedgehog^.Gear <> nil) and (CurrentHedgehog^.Gear^.State and gstAttacked = 0) then SweepDirty;
+            if (CurrentHedgehog^.Gear <> nil) and (CurrentHedgehog^.Gear^.State and gstAttacked = 0) and (CurAmmoGear = nil) then SweepDirty;
             CheckNoDamage;
             AliveCount:= 0; // shorter version of check for win to allow typical step activity to proceed
             for i:= 0 to Pred(ClansCount) do