hedgewars/GSHandlers.inc
changeset 7767 d1ea9b3f543e
parent 7759 b64afd109cf7
child 7777 e0be9fbc21b4
--- a/hedgewars/GSHandlers.inc	Wed Oct 17 23:50:28 2012 +0400
+++ b/hedgewars/GSHandlers.inc	Thu Oct 18 14:04:24 2012 -0400
@@ -5294,8 +5294,8 @@
     else if GameTicks and $3F = 0 then
         begin
         if  (TestCollisionYwithGear(Gear, -1) = 0)
-        and not TestCollisionXwithGear(Gear, 1)
-        and not TestCollisionXwithGear(Gear, -1)
+        and (not TestCollisionXwithGear(Gear, 1))
+        and (not TestCollisionXwithGear(Gear, -1))
         and (TestCollisionYwithGear(Gear, 1) = 0) then Gear^.State:= Gear^.State and (not gstCollision) or gstMoving;
         end
 end;