v3.0.0: adjusted new sprite state code. latest add/remove is prioritized

This commit is contained in:
Evan Debenham
2025-02-23 14:49:20 -05:00
parent d5d7bcd8c7
commit 157e74585d

View File

@@ -362,6 +362,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
public void add( State state ) {
synchronized (State.class) {
stateRemovals.remove(state);
stateAdditions.add(state);
}
}
@@ -460,6 +461,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
public void remove( State state ) {
synchronized (State.class) {
stateAdditions.remove(state);
stateRemovals.add(state);
}
}