Do the right thing, not the wrong thing. It's late...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@694 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" output="dist/classes" path="src/java"/>
|
<classpathentry kind="src" path="src/java"/>
|
||||||
<classpathentry kind="src" path="tests/src/java"/>
|
<classpathentry kind="src" path="tests/src/java"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||||
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/nenya"/>
|
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/nenya"/>
|
||||||
|
|||||||
@@ -687,7 +687,8 @@ public class GameManager extends PlaceManager
|
|||||||
public BodyObject checkWritePermission (ClientObject client, int playerId)
|
public BodyObject checkWritePermission (ClientObject client, int playerId)
|
||||||
{
|
{
|
||||||
// subclasses can be more restrictive here
|
// subclasses can be more restrictive here
|
||||||
return _omgr.getObject(client.getOid());
|
DObject player = _omgr.getObject(playerId);
|
||||||
|
return (player instanceof BodyObject) ? (BodyObject) player : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user