From 94384e8fc7412286bf64c60489b86bae84b15d1d Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 10 Apr 2007 17:30:28 +0000 Subject: [PATCH] Don't note removed on empty slots. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@276 c613c5cb-e716-0410-b11b-feb51c14d237 --- src/java/com/threerings/parlor/server/TableManager.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/parlor/server/TableManager.java b/src/java/com/threerings/parlor/server/TableManager.java index 389aab1f..c9e0d290 100644 --- a/src/java/com/threerings/parlor/server/TableManager.java +++ b/src/java/com/threerings/parlor/server/TableManager.java @@ -260,7 +260,9 @@ public class TableManager // clear out all matching entries in the boid map if (table.bodyOids != null) { for (int ii = 0; ii < table.bodyOids.length; ii++) { - notePlayerRemoved(table, table.bodyOids[ii]); + if (table.bodyOids[ii] > 0) { + notePlayerRemoved(table, table.bodyOids[ii]); + } } } @@ -355,7 +357,9 @@ public class TableManager if (table.bodyOids != null) { // clear the occupant to table mappings as this game is underway for (int ii = 0; ii < table.bodyOids.length; ii++) { - notePlayerRemoved(table, table.bodyOids[ii]); + if (table.bodyOids[ii] > 0) { + notePlayerRemoved(table, table.bodyOids[ii]); + } } }