v0.9.2: fixed visual bugs with statuses when motion gets interrrupted
This commit is contained in:
parent
3fe42591d9
commit
041046cc74
|
@ -220,7 +220,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
|
||||||
//returns where the center of this sprite will be after it completes any motion in progress
|
//returns where the center of this sprite will be after it completes any motion in progress
|
||||||
public PointF destinationCenter(){
|
public PointF destinationCenter(){
|
||||||
PosTweener motion = this.motion;
|
PosTweener motion = this.motion;
|
||||||
if (motion != null){
|
if (motion != null && motion.elapsed >= 0){
|
||||||
return new PointF(motion.end.x + width()/2f, motion.end.y + height()/2f);
|
return new PointF(motion.end.x + width()/2f, motion.end.y + height()/2f);
|
||||||
} else {
|
} else {
|
||||||
return center();
|
return center();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user