Skip to content

Switch a buggy function that led to overlapping patrol units#1558

Merged
Tedster59 merged 1 commit intoX2CommunityCore:masterfrom
furudee:1550-patrol
Jan 19, 2026
Merged

Switch a buggy function that led to overlapping patrol units#1558
Tedster59 merged 1 commit intoX2CommunityCore:masterfrom
furudee:1550-patrol

Conversation

@furudee
Copy link
Contributor

@furudee furudee commented Jan 18, 2026

#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 group

so 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

@Tedster59 Tedster59 merged commit 1e87269 into X2CommunityCore:master Jan 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants