# HG changeset patch
# User sheepluva
# Date 1462557655 -7200
# Node ID 42c11b73f68e26abaa9e407a76ad460734f2e658
# Parent  7a8b6694a5190e28066ddbc7afbc7685598bbc28
<unC0Rr> might be somewhere width used instead of rightx

diff -r 7a8b6694a519 -r 42c11b73f68e hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Wed May 04 14:30:04 2016 -0400
+++ b/hedgewars/uGears.pas	Fri May 06 20:00:55 2016 +0200
@@ -876,7 +876,7 @@
         if PlacingHogs then
             ar[i]^.Unplaced:= true
         else
-            FindPlace(ar[i]^.Gear, false, leftX, playWidth, true);
+            FindPlace(ar[i]^.Gear, false, leftX, rightX, true);
         if ar[i]^.Gear <> nil then
             begin
             ar[i]^.Gear^.dX.isNegative:= hwRound(ar[i]^.Gear^.X) > leftX + playWidth div 2;