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

avm1: Fix removeMovieClip depth range #1024

Merged
merged 2 commits into from Aug 21, 2020

Conversation

Herschel
Copy link
Member

removeMovieClip should only function on objects within a certain
depth range, usually to prevent removing timeline clips. However,
this wasn't working properly in some cases because the depth was
being biased incorrectly. This would allow some clips to be removed
when they wouldn't be in the Flash Player.

This fixes the "Start Game" buttons not appearing in Proximity (https://www.newgrounds.com/portal/view/183428), which was cause by a remove-all-clips loop on the main menu (cc #923).

removeMovieClip should only function on objects within a certain
depth range, usually to prevent removing timeline clips. However,
this wasn't working properly in some cases because the depth was
being biased incorrectly (removeMovieClip never takes a depth
parameter, so we should not bias the depth).
@Herschel Herschel merged commit 06b6d14 into ruffle-rs:master Aug 21, 2020
@Herschel Herschel deleted the remove-movie-clip-fix branch August 21, 2020 08:08
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

1 participant