# HG changeset patch # User sheepluva # Date 1402879263 -7200 # Node ID 769061317dc5d660fc5039fedb2de5259af12547 # Parent eda8d563f67724409e3223975c82ed092acd7333 tweaking hogpointer position again diff -r eda8d563f677 -r 769061317dc5 hedgewars/uGearsRender.pas --- a/hedgewars/uGearsRender.pas Mon Jun 16 02:23:37 2014 +0200 +++ b/hedgewars/uGearsRender.pas Mon Jun 16 02:41:03 2014 +0200 @@ -972,7 +972,13 @@ t:= 32;//trunc((SpritesData[sprFinger].Height + t) / cScaleFactor); ty := min(ty, ViewBottomY - 96); // don't overlap with HH or HH tags - if ty < ViewTopY + t then ty:= max(ViewTopY + t, oy + t); + if ty < ViewTopY + t then + begin + if abs(tx - ox) < abs(ty - oy) then + ty:= max(ViewTopY + t, oy + t) + else + ty:= max(ViewTopY + t, ty); + end; dAngle := DxDy2Angle(int2hwfloat(ty - oy), int2hwfloat(tx - ox)) + 90;