Switch a buggy function that led to overlapping patrol units#1558
Merged
Tedster59 merged 1 commit intoX2CommunityCore:masterfrom Jan 19, 2026
Merged
Switch a buggy function that led to overlapping patrol units#1558Tedster59 merged 1 commit intoX2CommunityCore:masterfrom
Tedster59 merged 1 commit intoX2CommunityCore:masterfrom
Conversation
Tedster59
approved these changes
Jan 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#1551
class'X2PathSolver'.static.IsUnitTrapped(UnitState)doesnt seem to work properly and randomly returns true for unobstructed units, which led to scampering enemies taking cover on the same tile as another unit of their groupso replace that with another check that queries all reachable tiles and only unblock group tiles if the tile array length is less than what the unit can reach in one move