From 63a822862d82692e7f9217d8008e8bd6b6a82497 Mon Sep 17 00:00:00 2001 From: Walter Korman Date: Thu, 25 Oct 2001 16:35:45 +0000 Subject: [PATCH] Explicitly check to make sure two dirty items occupying the same tile are sprites since that's what we're actually expecting. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@557 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/miso/client/DirtyItemList.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/miso/client/DirtyItemList.java b/src/java/com/threerings/miso/client/DirtyItemList.java index cadfbb0e9..9425a9b26 100644 --- a/src/java/com/threerings/miso/client/DirtyItemList.java +++ b/src/java/com/threerings/miso/client/DirtyItemList.java @@ -1,5 +1,5 @@ // -// $Id: DirtyItemList.java,v 1.2 2001/10/25 01:42:49 shaper Exp $ +// $Id: DirtyItemList.java,v 1.3 2001/10/25 16:35:45 shaper Exp $ package com.threerings.miso.scene; @@ -164,7 +164,8 @@ public class DirtyItemList extends ArrayList if (da.ox == db.ox && da.oy == db.oy && - da.obj != db.obj) { + (da.obj instanceof AmbulatorySprite) && + (db.obj instanceof AmbulatorySprite)) { // we're comparing two sprites co-existing on the same // tile, so study their fine coordinates to determine // rendering order