<unC0Rr> might be somewhere width used instead of rightx
authorsheepluva
Fri, 06 May 2016 20:00:55 +0200
changeset 11810 42c11b73f68e
parent 11809 7a8b6694a519
child 11811 2af936302bab
<unC0Rr> might be somewhere width used instead of rightx
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;