--- 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;