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: Spirit Cobra statue shadow and small doc updates #2666

Merged

Conversation

Archez
Copy link
Contributor

@Archez Archez commented Apr 3, 2023

This PR fixes an issue where the shadows on the Cobra statues were not updating when the statue is rotated. This required adding a texture invalidation for the shadow. The invalidation only happens when the statue rotates (checking against the current actionFunc).

While working in this file, I took the time to bring over doc updates/changes from decomp (since it was relatively small).
If we feel this should be moved to a separate PR, then I can do that too and just leave the shadow texture fix.

Fixes #2341

Build Artifacts

Comment on lines +588 to +592
// Fixes cobra statue shadow texture not updating when rotating it
if (this->actionFunc == func_80896ABC) {
gSPInvalidateTexCache(POLY_XLU_DISP++, COBRA_SHADOW_TEX_PTR(this));
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is basically the main fix for the texture updating (in addition to the helper macro)

@briaguya-ai briaguya-ai merged commit b10e489 into HarbourMasters:develop-khan Apr 7, 2023
@Archez Archez deleted the fix-cobra-statue-shadow branch April 7, 2023 15:33
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