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 base class of plLayerSDLAnimation #281

Merged
merged 1 commit into from
Mar 3, 2024

Conversation

dgelessus
Copy link
Contributor

According to the MOULa source code, the correct superclass is plLayerAnimationBase and not plLayerAnimation. libHSPlasma largely seems to agree - the CREATABLE declaration and all of the super method calls already use plLayerAnimationBase. The base class declarations saying plLayerAnimation were probably by accident.

Someone who knows more than me about old Plasma should double-check this, but I think this change is correct for all Plasma versions - the read/write code has always used plLayerAnimationBase as the base class and that apparently worked fine for more than a decade.

According to the MOULa source code, the correct superclass is
plLayerAnimationBase and not plLayerAnimation. libHSPlasma largely seems
to agree - the CREATABLE declaration and all of the super method calls
already use plLayerAnimationBase. The base class declarations saying
plLayerAnimation were probably by accident.
dgelessus added a commit to dgelessus/PlasmaShop that referenced this pull request Mar 2, 2024
The base class of plLayerSDLAnimation is actually plLayerAnimationBase
and not plLayerAnimation. This was declared inconsistently in
libHSPlasma (see H-uru/libhsplasma#281).
Copy link
Member

@zrax zrax left a comment

Choose a reason for hiding this comment

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

This looks correct for PotS as well

@zrax zrax merged commit cea0d6b into H-uru:master Mar 3, 2024
9 checks passed
@dgelessus dgelessus deleted the fix_pllayersdlanimation_base_class branch March 3, 2024 00: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.

2 participants