diff --git a/OpenRA.Game/SelectableExts.cs b/OpenRA.Game/SelectableExts.cs index 5c0959aa05..812b88982b 100644 --- a/OpenRA.Game/SelectableExts.cs +++ b/OpenRA.Game/SelectableExts.cs @@ -83,7 +83,7 @@ namespace OpenRA.Traits bounds.Top + bounds.Size.Height / 2); var pixelDistance = (centerPixel - selectionPixel).Length; - return ((long)-pixelDistance << 32) + info.SelectionPriority(modifiers); + return info.SelectionPriority(modifiers) - (long)pixelDistance << 16; } static readonly Actor[] NoActors = { };