Use GameObject.isInPlay() to determine in-play status.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@41 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -68,7 +68,7 @@ public class TurnGameControllerDelegate extends GameControllerDelegate
|
|||||||
public boolean isOurTurn ()
|
public boolean isOurTurn ()
|
||||||
{
|
{
|
||||||
BodyObject self = (BodyObject)_ctx.getClient().getClientObject();
|
BodyObject self = (BodyObject)_ctx.getClient().getClientObject();
|
||||||
return (_gameObj.state == GameObject.IN_PLAY &&
|
return (_gameObj.isInPlay() &&
|
||||||
self.getVisibleName().equals(_turnGame.getTurnHolder()));
|
self.getVisibleName().equals(_turnGame.getTurnHolder()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user