hedgewars/uGearsHedgehog.pas
changeset 7462 9cc5a2586978
parent 7459 8511a3f899d3
child 7503 deaeac102355
child 7597 1ef520fea21c
--- a/hedgewars/uGearsHedgehog.pas	Fri Jul 27 19:27:39 2012 -0400
+++ b/hedgewars/uGearsHedgehog.pas	Fri Jul 27 23:16:30 2012 -0400
@@ -487,7 +487,7 @@
                 TurnTimeLeft:=(Ammoz[a].TimeAfterTurn * cGetAwayTime) div 100;
                 end;
             if ((Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) = 0) and (HHGear <> nil) then 
-                HHGear^.State:= HHGear^.State and (not gstAttacked);
+                HHGear^.State:= HHGear^.State or gstAttacked;
             if (Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) <> 0 then
                 ApplyAmmoChanges(CurrentHedgehog^)
             end;