v1.3.2: adjusted Tengu's sprite logic to prevent hangs in rare cases
This commit is contained in:
+10
-5
@@ -53,13 +53,18 @@ public class TenguSprite extends MobSprite {
|
|||||||
|
|
||||||
play( run.clone() );
|
play( run.clone() );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void idle() {
|
public void play(Animation anim) {
|
||||||
isMoving = false;
|
if (isMoving && anim != run){
|
||||||
super.idle();
|
synchronized (this){
|
||||||
|
isMoving = false;
|
||||||
|
notifyAll();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
super.play(anim);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void move( int from, int to ) {
|
public void move( int from, int to ) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user