Skip to content

Commit

Permalink
Re-add a line break
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 committed Dec 25, 2024
1 parent c071a4e commit 401077d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/ui/game/worldview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ local function CreatePositionMarker(army, worldView)
if not worldView:IsHidden() then
local pos = worldView:Project(self.pos)
LayoutHelpers.AtLeftTopIn(self, worldView, (pos.x - self.Width() / 2) / LayoutHelpers.GetPixelScaleFactor(), (pos.y - self.Height() / 2) / LayoutHelpers.GetPixelScaleFactor())

if (self:Left() < worldView:Left() or self:Top() < worldView:Top() or self:Right() > worldView:Right() or self:Bottom() > worldView:Bottom()) then
if not self:IsHidden() then
self:Hide()
Expand Down

0 comments on commit 401077d

Please sign in to comment.