v0.9.2: fixed visual bugs with statuses when motion gets interrrupted

This commit is contained in:
Evan Debenham 2021-02-07 14:07:50 -05:00
parent 3fe42591d9
commit 041046cc74

View File

@ -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
public PointF destinationCenter(){
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);
} else {
return center();