Occam's razor.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@33 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2006-07-29 01:10:59 +00:00
parent ed0c4fd3f4
commit 6f10fc445f
@@ -23,6 +23,8 @@ package com.threerings.parlor.client;
import java.util.ArrayList;
import com.samskivert.util.ListUtil;
import com.threerings.presents.client.BasicDirector;
import com.threerings.presents.client.Client;
@@ -303,11 +305,8 @@ public class TableDirector extends BasicDirector
// look for our username in the occupants array
BodyObject self = (BodyObject)_ctx.getClient().getClientObject();
for (int i = 0; i < table.occupants.length; i++) {
if (self.getVisibleName().equals(table.occupants[i])) {
if (ListUtil.contains(table.occupants, self.getVisibleName())) {
_ourTable = table;
break;
}
}
// if nothing changed, bail now