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:
@@ -23,6 +23,8 @@ package com.threerings.parlor.client;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
import com.samskivert.util.ListUtil;
|
||||||
|
|
||||||
import com.threerings.presents.client.BasicDirector;
|
import com.threerings.presents.client.BasicDirector;
|
||||||
import com.threerings.presents.client.Client;
|
import com.threerings.presents.client.Client;
|
||||||
|
|
||||||
@@ -303,11 +305,8 @@ public class TableDirector extends BasicDirector
|
|||||||
|
|
||||||
// look for our username in the occupants array
|
// look for our username in the occupants array
|
||||||
BodyObject self = (BodyObject)_ctx.getClient().getClientObject();
|
BodyObject self = (BodyObject)_ctx.getClient().getClientObject();
|
||||||
for (int i = 0; i < table.occupants.length; i++) {
|
if (ListUtil.contains(table.occupants, self.getVisibleName())) {
|
||||||
if (self.getVisibleName().equals(table.occupants[i])) {
|
_ourTable = table;
|
||||||
_ourTable = table;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// if nothing changed, bail now
|
// if nothing changed, bail now
|
||||||
|
|||||||
Reference in New Issue
Block a user