# HG changeset patch # User Wuzzy # Date 1560793865 -7200 # Node ID f532203c5ceb6bde3d7997e0b442bac1a8a8ab50 # Parent e1dbe2c9026f6cfacc5ab1be1d1f3c3d9b462ab7 Fix mapgen flowers being slightly offset on X axis diff -r e1dbe2c9026f -r f532203c5ceb hedgewars/uGears.pas --- a/hedgewars/uGears.pas Mon Jun 17 19:33:43 2019 +0200 +++ b/hedgewars/uGears.pas Mon Jun 17 19:51:05 2019 +0200 @@ -1064,7 +1064,7 @@ y:= hwRound(Gear^.Y) - SpritesData[sprTargetBee].Height div 2; // Calculate offset from map boundaries and border if hasBorder then - x:= max(min(x, RightX - SpritesData[sprTargetBee].Width) - cBorderWidth, LeftX + cBorderWidth) + x:= max(min(x, RightX - SpritesData[sprTargetBee].Width - cBorderWidth), LeftX + cBorderWidth) else x:= max(min(x, RightX - SpritesData[sprTargetBee].Width), LeftX); y:= max(y, TopY);