We need to sort card sprites using a comparator if we want to sort them not
based on render order as we use render order. Also some widening. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@301 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -203,19 +203,6 @@ public class CardSprite extends FadableImageSprite
|
||||
gfx.setTransform(otrans);
|
||||
}
|
||||
|
||||
/**
|
||||
* Compares this to another card sprite based on their cards.
|
||||
*/
|
||||
protected int naturalCompareTo (AbstractMedia other)
|
||||
{
|
||||
CardSprite cs = (CardSprite)other;
|
||||
if (_card == null || cs._card == null) {
|
||||
return 0;
|
||||
} else {
|
||||
return _card.compareTo(cs._card);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the mirage according to the current state.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user