Fixed bug in checking whether two objects overlap horizontally.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@494 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: IsoUtil.java,v 1.9 2001/10/17 22:21:22 shaper Exp $
|
// $Id: IsoUtil.java,v 1.10 2001/10/18 20:24:05 shaper Exp $
|
||||||
|
|
||||||
package com.threerings.miso.scene.util;
|
package com.threerings.miso.scene.util;
|
||||||
|
|
||||||
@@ -451,15 +451,11 @@ public class IsoUtil
|
|||||||
bx -= (((ObjectTile)db.obj).baseWidth - 1);
|
bx -= (((ObjectTile)db.obj).baseWidth - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Log.info("getOverlap [ax=" + ax + ", ay=" + ay +
|
if (ax < bx && ay > by) {
|
||||||
// ", bx=" + bx + ", by=" + by + "].");
|
|
||||||
|
|
||||||
if (ax > bx && ay < by) {
|
|
||||||
// we most certainly don't overlap
|
// we most certainly don't overlap
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// calculate inequality constant for db's leftmost corner
|
// calculate inequality constant for db's leftmost corner
|
||||||
int k = (bx + by);
|
int k = (bx + by);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user