Skip to content

Commit

Permalink
Fix force rally point not setting building as primary
Browse files Browse the repository at this point in the history
  • Loading branch information
PunkPun authored and abcdefg30 committed Feb 23, 2024
1 parent ade0760 commit d3c44de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Traits/Buildings/RallyPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public bool CanTarget(Actor self, in Target target, ref TargetModifiers modifier
{
var closest = self.World.Selection.Actors
.Where(a => a.TraitOrDefault<RallyPoint>()?.Info.ForceSetType == info.ForceSetType)
.ClosestToWithPathTo(self.World, target.CenterPosition);
.ClosestToIgnoringPath(target.CenterPosition);

ForceSet = closest == self;
}
Expand Down

0 comments on commit d3c44de

Please sign in to comment.