Prune trailing whitespace & foreachize loops.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@840 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -376,8 +376,8 @@ public class Table
|
||||
int[][] teams = tconfig.teamMemberIndices;
|
||||
for (int[] team : teams) {
|
||||
int teamCount = 0;
|
||||
for (int jj=0; jj < team.length; jj++) {
|
||||
if (players[team[jj]] != null) {
|
||||
for (int element : team) {
|
||||
if (players[element] != null) {
|
||||
teamCount++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -355,9 +355,9 @@ public class TableManager
|
||||
|
||||
// clear out all matching entries in the boid map
|
||||
if (table.bodyOids != null) {
|
||||
for (int ii = 0; ii < table.bodyOids.length; ii++) {
|
||||
if (table.bodyOids[ii] != 0) {
|
||||
notePlayerRemoved(table.bodyOids[ii]);
|
||||
for (int bodyOid : table.bodyOids) {
|
||||
if (bodyOid != 0) {
|
||||
notePlayerRemoved(bodyOid);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -471,9 +471,9 @@ public class TableManager
|
||||
|
||||
if (table.bodyOids != null) {
|
||||
// clear the player to table mappings as this game is underway
|
||||
for (int ii = 0; ii < table.bodyOids.length; ii++) {
|
||||
if (table.bodyOids[ii] != 0) {
|
||||
notePlayerRemoved(table.bodyOids[ii]);
|
||||
for (int bodyOid : table.bodyOids) {
|
||||
if (bodyOid != 0) {
|
||||
notePlayerRemoved(bodyOid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user