Use isMoving.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3504 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2005-04-19 18:29:14 +00:00
parent 1ce83b126d
commit ad5be61e28
@@ -734,7 +734,7 @@ public abstract class CardPanel extends VirtualMediaPanel
int size = _handSprites.size(); int size = _handSprites.size();
for (int i = 0; i < size; i++) { for (int i = 0; i < size; i++) {
CardSprite cs = (CardSprite)_handSprites.get(i); CardSprite cs = (CardSprite)_handSprites.get(i);
if (cs.getPath() == null) { if (!cs.isMoving()) {
cs.setLocation(cs.getX(), getHandY(cs)); cs.setLocation(cs.getX(), getHandY(cs));
} }
} }
@@ -947,7 +947,7 @@ public abstract class CardPanel extends VirtualMediaPanel
protected void maybeUpdateOffset (CardSprite sprite) protected void maybeUpdateOffset (CardSprite sprite)
{ {
// update the offset if it's in the hand and isn't moving // update the offset if it's in the hand and isn't moving
if (_handSprites.contains(sprite) && sprite.getPath() == null) { if (_handSprites.contains(sprite) && !sprite.isMoving()) {
sprite.setLocation(sprite.getX(), getHandY(sprite)); sprite.setLocation(sprite.getX(), getHandY(sprite));
} }
} }