Fixed Mine Waypoint Anchor Issue

This commit is contained in:
Rafal Swierczek 2024-05-14 02:40:30 +01:00
parent 96f2566f12
commit 35038061f4

View File

@ -49,7 +49,7 @@ void UMiniWaypoint::NativeTick(const FGeometry& MyGeometry, float InDeltaTime)
ScreenLoc.X -= ViewportHalfX;
ScreenLoc.Y -= ViewportHalfY;
float ViewportMarginX = ViewportHalfX * 0.8f;
float ViewportMarginX = ViewportHalfX * 0.6f;
float ViewportMarginY = ViewportHalfY * 0.6f;
ScreenLoc.X = FMath::Clamp(ScreenLoc.X, ViewportMarginX * -1.f, ViewportMarginX);