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:
@@ -260,7 +260,9 @@ public class TableManager
|
|||||||
// clear out all matching entries in the boid map
|
// clear out all matching entries in the boid map
|
||||||
if (table.bodyOids != null) {
|
if (table.bodyOids != null) {
|
||||||
for (int ii = 0; ii < table.bodyOids.length; ii++) {
|
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) {
|
if (table.bodyOids != null) {
|
||||||
// clear the occupant to table mappings as this game is underway
|
// clear the occupant to table mappings as this game is underway
|
||||||
for (int ii = 0; ii < table.bodyOids.length; ii++) {
|
for (int ii = 0; ii < table.bodyOids.length; ii++) {
|
||||||
notePlayerRemoved(table, table.bodyOids[ii]);
|
if (table.bodyOids[ii] > 0) {
|
||||||
|
notePlayerRemoved(table, table.bodyOids[ii]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user