From e10a3ae94de279caa888ab51fe2f59b2fdb7e2d5 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Fri, 11 Aug 2006 23:30:45 +0000 Subject: [PATCH] Let's rename that, because it will only return the index if the player is actually in the game. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@39 c613c5cb-e716-0410-b11b-feb51c14d237 --- src/java/com/threerings/parlor/game/server/GameManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/parlor/game/server/GameManager.java b/src/java/com/threerings/parlor/game/server/GameManager.java index 33b0e0c4..2e45f8d4 100644 --- a/src/java/com/threerings/parlor/game/server/GameManager.java +++ b/src/java/com/threerings/parlor/game/server/GameManager.java @@ -375,9 +375,10 @@ public class GameManager extends PlaceManager } /** - * Is the specified oid that of a player in this game? + * Get the player index of the specified oid, or -1 if the oid is + * not a player or is a player that is not presently in the game. */ - public int getPlayerIndex (int bodyOid) + public int getPresentPlayerIndex (int bodyOid) { return (_playerOids == null) ? -1