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,9 +260,11 @@ 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++) {
|
||||
if (table.bodyOids[ii] > 0) {
|
||||
notePlayerRemoved(table, table.bodyOids[ii]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// remove the mapping by gameOid
|
||||
_goidMap.remove(table.gameOid); // no-op if gameOid == 0
|
||||
@@ -355,9 +357,11 @@ 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++) {
|
||||
if (table.bodyOids[ii] > 0) {
|
||||
notePlayerRemoved(table, table.bodyOids[ii]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// add an object death listener to unmap the table when the game finally goes away
|
||||
gameobj.addListener(_gameListener);
|
||||
|
||||
Reference in New Issue
Block a user