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

Fix WithTurretAimAnimation IsTraitDisabled handling #14896

Merged
merged 1 commit into from Mar 9, 2018

Conversation

reaperrr
Copy link
Contributor

@reaperrr reaperrr commented Mar 9, 2018

The old sequence was not recovering when this trait lost its required condition while the aim anim was running.

Now it doesn't unconditionally return, but instead checks what the current sequence is and resets to base turret sequence if AimAnim is disabled.

Follow-up to #14895.
Testcase (RA cruiser): https://github.com/reaperrr/OpenRA/tree/aimanim-testcase

In the testcase, the cruiser displays the missile turret in the front while aiming, as long as it is undamaged. Damage it, and the default turret shows instead.

The old sequence was not recovering when this trait lost its required
condition while the aim anim was running.

Now it doesn't unconditionally return, but instead checks what the
current sequence is and resets to base turret sequence if AimAnim is
disabled.
@abcdefg30 abcdefg30 merged commit fd83cbf into OpenRA:bleed Mar 9, 2018
@abcdefg30
Copy link
Member

Changelog

@reaperrr reaperrr deleted the fix-tur-aim-condition branch May 7, 2018 19:16
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.

None yet

2 participants