hedgewars/uGearsHandlersMess.pas
changeset 14753 52916435d9b1
parent 14719 4a4ff2354b58
child 14756 2d859d34e6f6
--- a/hedgewars/uGearsHandlersMess.pas	Mon Apr 01 17:35:07 2019 +0200
+++ b/hedgewars/uGearsHandlersMess.pas	Mon Apr 01 18:49:08 2019 +0200
@@ -5255,7 +5255,7 @@
     if (WorldEdge = weBounce) then
         if (hwRound(Gear^.X) - Gear^.Radius < leftX) then
             valid := false
-        else if (hwRound(Gear^.X) - Gear^.Radius > rightX) then
+        else if (hwRound(Gear^.X) + Gear^.Radius > rightX) then
             valid := false;
 
     if (not valid) then