More juicy fallthrough bug finding.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@65 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Michael Bayne
2006-10-26 23:09:43 +00:00
parent e1c864ff46
commit db91a42b05
2 changed files with 6 additions and 3 deletions
@@ -484,8 +484,7 @@ public class DirtyItemList
* Returns whether two dirty items have a partitioning object
* between them on the given axis.
*/
protected int comparePartitioned (
int axis, DirtyItem da, DirtyItem db)
protected int comparePartitioned (int axis, DirtyItem da, DirtyItem db)
{
// prepare for the partitioning check
SortableArrayList sitems;
@@ -560,6 +559,7 @@ public class DirtyItemList
dp.rx <= db.lx) {
return (swapped) ? 1 : -1;
}
break;
case Y_AXIS:
default:
@@ -569,6 +569,7 @@ public class DirtyItemList
dp.oy <= db.ry) {
return (swapped) ? 1 : -1;
}
break;
}
}