Don't note removed on empty slots.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@276 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2007-04-10 17:30:28 +00:00
parent d1672d7c79
commit 94384e8fc7
@@ -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]);
}
}
}