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 CBSPPart::ReplaceColor #14

Merged
merged 4 commits into from Sep 11, 2018
Merged

Conversation

rherriman
Copy link
Member

Resolves issues #3 and #9. Feedback welcome since it may not be the most efficient solution.

Also contains additional tweaks to team colors, although the hull head is still not applying "special" colors correctly. (I'm aware of why it isn't working but haven't decided on a solution yet.)

Everything in issue avaraline#2 is resolved, unfortunately we now have the
opposite problem! The HUD is correct, the leg and scout shapes are
correct, but the head retains the true team color.

I suspect the issues lies with CBSPPart::ReplaceColor itself, based on
how it seems to usually be called. The current implementation replaces
`origColor` with `newColor`, but only if `origColor` is actually
encountered. If the color (`kMarkerColor`, for example) was already
replaced, it won't work.
@rherriman rherriman requested a review from a team September 11, 2018 05:58
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