Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI - Fix units not being removed from the garrison unitMove list consistently #6651

Merged
merged 3 commits into from
Oct 24, 2018

Conversation

alganthe
Copy link
Contributor

When merged this pull request will:

  • Fix an issue where units would keep trying to path until it fails even if they're ungarrisoned or garrisoned via teleport, this would also keep drawing the red lines to the old positions.

Not sure how I missed this during testing.

};

if ({(_x getVariable [QGVAR(garrisonned), false]) && !isPlayer _x} count (units _x) == 0) then {
if ({(_unit getVariable [QGVAR(garrisonned), false]) && !isPlayer _unit} count (units _unit) == 0) then {
Copy link
Contributor

Choose a reason for hiding this comment

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

count == 0 could be a findIf == -1 instead.

dedmen saw nothing :D
@PabstMirror PabstMirror changed the title Fix units not being removed from the garrison unitMove list consistently AI - Fix units not being removed from the garrison unitMove list consistently Oct 24, 2018
@PabstMirror PabstMirror added the kind/bug-fix Release Notes: **FIXED:** label Oct 24, 2018
@PabstMirror PabstMirror added this to the 3.13.0 milestone Oct 24, 2018
@PabstMirror PabstMirror merged commit 8580cb2 into acemod:master Oct 24, 2018
@PabstMirror PabstMirror modified the milestones: 3.13.0, 3.12.4 Nov 9, 2018
BaerMitUmlaut pushed a commit that referenced this pull request Aug 5, 2019
…istently (#6651)

* Fix units not being removed from the garrison unitMove list consistently

Not sure how I missed that.

* fix whitespace

* Fix typo in unGarrison check

dedmen saw nothing :D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug-fix Release Notes: **FIXED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants