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:
Ray Greenwell
2006-08-16 00:09:05 +00:00
parent cab4e2eac8
commit f171848695
@@ -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()));
} }