Skip to content

Fix force rally point not setting building as primary#21348

Merged
abcdefg30 merged 1 commit intoOpenRA:bleedfrom
PunkPun:fix-primary
Feb 23, 2024
Merged

Fix force rally point not setting building as primary#21348
abcdefg30 merged 1 commit intoOpenRA:bleedfrom
PunkPun:fix-primary

Conversation

@PunkPun
Copy link
Copy Markdown
Member

@PunkPun PunkPun commented Feb 18, 2024

Closes #21312
Regression from #20227

buildings can't move so the search failed

@PunkPun PunkPun added this to the Next Release milestone Feb 18, 2024
Copy link
Copy Markdown
Member

@atlimit8 atlimit8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It not only works, the idea of path finding for the buildings themselves does not make sense. The use of ClosestToWithPathTo(this IEnumerable<Actor> actors, World world, WPos targetPosition) was looking for a path that the production facility can take. The intention was probably for validating the location. However, That would require being able to check against the types of actors that can be produced, assuming that a mod does not have some custom use for the rally point such as auto-spawning actors.

@abcdefg30 abcdefg30 merged commit d3c44de into OpenRA:bleed Feb 23, 2024
@abcdefg30
Copy link
Copy Markdown
Member

Changelog

@PunkPun PunkPun deleted the fix-primary branch February 23, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using Ctrl+ Rally point didnt set building as Primary

3 participants