v0.6.1b: stability improvemens to movieclip

This commit is contained in:
Evan Debenham 2017-08-23 01:14:00 -04:00
parent 6a7c063893
commit e3653e6fcc

View File

@ -54,7 +54,7 @@ public class MovieClip extends Image {
return curAnim != null && curAnim.looped;
}
protected void updateAnimation() {
protected synchronized void updateAnimation() {
if (curAnim != null && curAnim.delay > 0 && (curAnim.looped || !finished)) {
int lastFrame = curFrame;
@ -91,7 +91,7 @@ public class MovieClip extends Image {
play( anim, false );
}
public void play( Animation anim, boolean force ) {
public synchronized void play( Animation anim, boolean force ) {
if (!force && (curAnim != null) && (curAnim == anim) && (curAnim.looped || !finished)) {
return;