Don't lower card down all the way if it's still selectable.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3493 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2005-04-15 03:10:06 +00:00
parent 12d1d00e4b
commit dcf9c2c9e8
@@ -254,8 +254,7 @@ public abstract class CardPanel extends VirtualMediaPanel
// add to list and update offset
_selectedHandSprites.add(sprite);
sprite.setLocation(sprite.getX(),
_handLocation.y - _selectedCardOffset);
sprite.setLocation(sprite.getX(), getHandY(sprite));
// notify the observers
ObserverList.ObserverOp op = new ObserverList.ObserverOp() {
@@ -279,7 +278,7 @@ public abstract class CardPanel extends VirtualMediaPanel
// remove from list and update offset
_selectedHandSprites.remove(sprite);
sprite.setLocation(sprite.getX(), _handLocation.y);
sprite.setLocation(sprite.getX(), getHandY(sprite));
// notify the observers
ObserverList.ObserverOp op = new ObserverList.ObserverOp() {