Fixed scene rendering issues and improved performance.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@517 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2001-10-22 18:21:42 +00:00
parent 7bd5d86c34
commit c7d26cea8e
9 changed files with 138 additions and 65 deletions
@@ -1,5 +1,5 @@
//
// $Id: IsoUtil.java,v 1.11 2001/10/19 23:26:31 shaper Exp $
// $Id: IsoUtil.java,v 1.12 2001/10/22 18:21:41 shaper Exp $
package com.threerings.miso.scene.util;
@@ -419,6 +419,13 @@ public class IsoUtil
return comp;
}
// check whether right edge of b overlaps with left edge of a
comp = getRightOverlap(db, da);
if (comp != 0) {
// reverse ordering per reversed overlap check
return (comp == -1) ? 1 : -1;
}
// determine ordering based purely on coordinates
if (da.x <= db.x && da.y <= db.y) {
return -1;